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

create user with access to only one view

Status
Not open for further replies.

jarthi

Programmer
Oct 25, 2000
31
US
Hi:
I would like to create a user and give access to only one view in the entire database.
Is it possible to do it? If so how?

Thanks,
Arthi
 
Sounds like you could do this simply with a couple of commands:

CREATE USER Scott IDENTIFIED BY Tiger;

GRANT SELECT ON Schema.ViewName TO Scott;

This is a pretty basic administrative task. If you are having trouble with it, I am going to politely suggest some DBA training or a good Oracle DBA book. It gets a bit more difficult after this... Terry
**************************
* General Disclaimor - Please read *
**************************
Please make sure your post is in the CORRECT forum, has a descriptive title, gives as much detail to the problem as possible, and has examples of expected results. This will enable me and others to help you faster...
 
In additon to THoey's reply, be aware that any PUBLIC synonyms you may have created ( or were created at Database create time) will be accessable to ANY user - this includes many system and sys views that access
the data dictionary, etc...

So , strictly, any user can see many views..[wink]
 
Terry's suggestion is the right way to go, but you will also have to grant connect to the id in order to allow it to log in.

grant connect to scott;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top