Need to make read only schema [message #377502] |
Tue, 23 December 2008 04:57 |
sundarfaq
Messages: 235 Registered: October 2007 Location: Chennai
|
Senior Member |
|
|
Hi,
I need to make read only schema for non system users.
I am pl/sql developer.I only to create database objects.The other users are able to only select data in one scheama not to create a any database objects.
How can resolve this sceanrio?
Thanks,
Michael.
|
|
|
|
|
|
Re: Need to make read only schema [message #377517 is a reply to message #377514] |
Tue, 23 December 2008 05:24 |
sundarfaq
Messages: 235 Registered: October 2007 Location: Chennai
|
Senior Member |
|
|
the schema owner represents the Oracle user that owns all your database objects, while application users are Oracle users that need access to those schema objects.
Allowing applications to make direct connections to the schema owner is a bad idea because it gives those applications far to many privileges, which can easily result in damage to your data and the objects themselves and also i have create one columns in table.For these select privilages,it will not replicate in user(B).
Thanks,
Michael.
|
|
|
|
Re: Need to make read only schema [message #382726 is a reply to message #377502] |
Fri, 23 January 2009 14:59 |
sundarfaq
Messages: 235 Registered: October 2007 Location: Chennai
|
Senior Member |
|
|
Hi,
I have created synonyms for all tables and give select privilege to it.i able to select the data from other users.
Is any possible to select any tables from one user to other user?
I tried like this.
grant select,insert,update,delete any tables from usera to userb:
It shows a error like ORA-00990: missing or invalid privilege error.
Is it possible?
thanks,
Michael
|
|
|
|
|
Re: Need to make read only schema [message #382746 is a reply to message #382726] |
Sat, 24 January 2009 01:04 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Just in case you didn't get the point:
grant select,insert,update,delete any tables from usera to userb:
any tables is wrong (if you really used that syntax) as you'll have to grant privileges for every single table in its own GRANT statement:
GRANT SELECT ON emp TO user_b;
GRANT SELECT ON dept TO user_b;
etc.
Of course, it might be painful if there are many tables; that's why you may write a SQL which will create these statements for you. If you are interested in such a solution, search the board - there've already been such questions (and answers).
|
|
|