Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

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

  




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 Khokhar816
  Mohammed Taj746
  Jayanta Sur479
  positive fanatic418
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi250
  Ramesh Jois245
  neeraj sharma243
  Bishal Khetan207






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software