SQLJ permissions for Teradata Java UDF (JUDF) Compilation and Creation

If you receive the following error message, you need some permissions on your SQLJ database in your Teradata RDBMS:

“User does not have permission to access SQLJ on the current database”

Image

This simply means that the user that is creating the JUDF needs “EXECUTE PROCEDURE” access on the “SQLJ” database within Teradata.  A statement such as the following will fix this for you:

GRANT EXECUTE PROCEDURE ON SQLJ TO <username>;

By default, only the DBC user has permission to do this, so as good practice you should first use DBC to grant permission to your DBC/super-user account, rather than having to use DBC every time:

GRANT ALL ON SQLJ TO <super-user> WITH GRANT OPTION;

References:

http://developer.teradata.com/tools/articles/creating-a-table-java-user-defined-function-using-the-teradata-plug-in-for-eclipse

http://developer.teradata.com/extensibility/articles/hadoop-dfs-to-teradata

This information was based on a Teradata 14.0 system.

Advertisements

About Lachlan Macnish

I'm a BI and IM systems specialist from Melbourne, Australia (currently Sr Tech Support Engineer working for SAS) https://au.linkedin.com/in/lachlanmacnish
This entry was posted in Uncategorized and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s