How to enable an Oracle db user to access package variables?
If I log into the Oracle database as the schema owner, the below code works fine: begin dbms_output.put_line(pkg_name.variable_name); end; If I try that with a different user (created by the schema owner), I get: PLS00201: identifier 'pkg_name.variable_name' must be declared The user does have the execute privilege granted to them for that package. The variable is declared in the package, not the package body. I've read examples of creating a function that returns the value which sounds like a hassle. Is that the only way to enable access to 'public' variables by non-schema-owner user accounts
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.