Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access to procedure from another schema

Status
Not open for further replies.

rk68

Programmer
Jul 15, 2003
171
IN
I have schema (say schema name A) which has multiple procedures & tables of clients with DBA rights.
I have created various users & have to give them access to the above schema.

a) How can I give access to a user to schema A
b) post giving access to the user, how can he execute the procedures of Schema A

TIA
RAJ
 
rk68 said:
a) How can I give access to a user to schema A
Create role and grant permissions on A objects to the role -- then Grant role to users

rk68 said:
b) post giving access to the user, how can he execute the procedures of Schema A
Grant execute on the procedure(s) to the role, and use format "{schema A}.proc_name" to execute it.

PS: If procedures perform dml on schema A tables, you need to grant "insert|update|delete" permissions on those tables directly to the user(s).
[3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top