Topic: User Administration >> select from different user?
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: select from different user? |
| Reporter |
Posted: Jun 13, 2003 09:49:00 AM |
Total Post: 2
Joined: Jan, 2003
|
I want to create another user (user2) to select any objects in schema user1. However my application code is working in user1.
Ex:
When I connect by user2, without modifying any commands which were writen in user1 (select * from EMP), I can select table EMP in schema user1. If not, I must rewrite many codes by adding schema name before objects (select * from user2.EMP).
Thanks!
|
|
|
uadmin |
| Posted: Jun 13, 2003 10:28:00 AM | |
|
Total Post: 6
Joined: Jan, 2003
|
If you can avoid user1.emp by creating synonyms.
For example
In user2 schema create synonym emp for user1.emp. After that you can just use select * from emp from user2.
Regards,
Rob
|
|
|
|
|
positive |
| Posted: Jun 29, 2008 03:31:38 PM | |
|
Total Post: 418
Joined: Jun, 2008
|
create a role bundling all the privileges that is assigned to user1
assign this to user2
http://neworacledba.blogspot.com/
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 816 |
| Mohammed Taj | 746 |
| Jayanta Sur | 479 |
| positive fanatic | 418 |
| Vigyan Kaushik | 386 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 250 |
| Ramesh Jois | 245 |
| neeraj sharma | 243 |
| Bishal Khetan | 207 |
|
|