Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. CREATE USER user1
  2. IDENTIFIED BY user1
  3. DEFAULT TABLESPACE users
  4. TEMPORARY TABLESPACE temp
  5. ACCOUNT UNLOCK;
  6.  
  7. CREATE ROLE ReadOnly;
  8. --GRANT SELECT ON table1 to ReadOnly;
  9. --GRANT SELECT ON table2 to ReadOnly;
  10. --GRANT SELECT ON table3 to ReadOnly;
  11. GRANT CONNECT to user1;
  12. GRANT ReadOnly to user1;
  13.  
  14. grant create session to user1;
  15.  
  16. connect user1
  17. show user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement