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

GRANTING PRIVELEGES -SYNTAX

Status
Not open for further replies.

cm80

Technical User
May 3, 2001
85
US
Hi
I am developing an Oracle database and I am trying to grant another user on one of my tables but keep getting an error.

The syntax I am using is as follows:

GRANT SELECT ON tablename TO username [IDENTIFIED BY 'password']

I tried it without the square brackets and single quotes but that didn't make any difference.

Do I have the wrong syntax?

Thanks,
cm80

 
Just try:

GRANT SELECT ON tablename TO username;

that should be it - it is better to grant these to roles though, then just grant the role to a user.


What good is a cake if you can't eat it????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top