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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a user to have access to a table in my schema 1

Status
Not open for further replies.

evergreean43

Technical User
May 25, 2006
165
US
Currently I have a Schema in my Oracle 9i database with the name of dbdata where I log in such as:

sqlplus dbdata/dbdataPassword@myserver/aaa


I would like to allow another person to be able to access a table in my schema and select and update information on that table (called dept). Do I create another user to have access to tables in my schema?

After I log into my schema I can do these commands?
Code:
create user Smith identified by SmithPassword; 

GRANT SELECT, UPDATE ON dept TO SMITH;

Then "Joe Smith" can log into the schema:

sqlplus Smith/SmithPassword@myserver/aaa


Please advise.

 

Yes. [3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 

PS: You may need to grant at least CONNECT (or create session) to smith. [censored]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Thanks for quick response.

Can you advise SQL for granting CONNECT and CREATE SESSION?

What is difference? I only want the user to touch one or two tables in my schema called dbdata.
 

CONNECT has CREATE SESSION privilege.

GRANT CONNECT TO SMITH;


----------------------------------------------------------------------------
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