I have a grant alter sequence to a user. But I have to specify the schema name to alter the sequence otherwise it comes back with error sequence does not exist. Is it possible to do the grant in a way so I don’t have to specify the schema name? I can do select/insert/update without specifying the schema name.
I have a grant alter sequence to a user. But I have to specify
Share
Name resolution and access privileges are separate concepts. The
grantgives you permission to alter the schema, but you’re still constrained by the namespace you’re in. There are four ways to make a name in one schema resolve in another:select schema_name.sequence_name.nextval from dual;alter session set current_schema = schema_name;create synonym sequence_name for schema_name.sequence_name;create public synonym sequence_name for schema_name.sequence_name;