If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > locking a set of tables

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-02, 15:48
tdennings tdennings is offline
Registered User
 
Join Date: Jan 2002
Location: Michigan
Posts: 1
Unhappy locking a set of tables

I have a tablespace I want read only. I have spent countless hours creating the perfect demo set of tables filled with all the data I need. I did this one other time and all my data was overwritten by someone who did not know what they were doing. Is there a way to lock the tables to where they can only be read by the User I created for them??? Help Please
Reply With Quote
  #2 (permalink)  
Old 02-20-02, 08:08
BSchol BSchol is offline
Registered User
 
Join Date: Jun 2001
Location: The Netherlands
Posts: 38
You basically want a set of tables that cannot be altered (updated, deleted from) by any other user thaen yourself.
What you should do is create two schemas (or user account as some people call it).
One schema, say A, is where you create and fill your tables. You give this schema a password you alone know.
Create a second schema, say B, which your normal users will use. Now from schema A grant schema B select privilege on the tables from schema A. After that log onto schema B and create synonyms for the tables from schema A.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On