Re: Access schema using a different user

  • From: Marian Bednar <bednar@xxxxxx>
  • To: oracle-l digest users <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 11 Feb 2016 12:20:59 +0100

John,

another user can issue
alter session set current_schema=your_schema;

then user can access your tables without your schema prefixes 

Marian



From:   John Dunn <JDunn@xxxxxxxxx>
To:     oracle-l digest users <oracle-l@xxxxxxxxxxxxx>, 
Date:   11. 02. 2016 12:08
Subject:        Access schema using a different user
Sent by:        oracle-l-bounce@xxxxxxxxxxxxx



I want to give a another  database user to access to my schema 
 
I know I can create a role that will grant rights/privileges to the new 
user to allow them to access the schema objects.
 
However the application will reference the database tables etc using the 
user that is used to connect and obviously the tables will not exist for 
that user.
 
Is the only way to resolve this using synonyms or is there something 
simpler?
 
Oracle version is 11.2
 
Any help appreciated.
 
 
 
John Dunn
Product Consultant
Sefas Innovation Limited.
Tel:   + 44 (0) 117 910 0529
www.sefas.com
 
P   Please consider the environment before printing this email 
Sefas Innovation Limited, 
Floor 3, Whitefriars, Lewins Mead,
Bristol BS1 2NT, UK.
Tel: +44 (0) 117 906 9920 
 
Registered No: 3769761 England. 
Registered Office: One New Street, Wells, Somerset, BA5 2LA, United 
Kingdom. 
VAT Registration No: GB 741 5377 32
Unless stated to be non-confidential, this email and any attachments are 
private and confidential and are for the addressee only.  Sefas monitors 
e-mails to ensure its systems operate effectively and to minimize the risk 
of viruses.  Whilst Sefas has taken reasonable steps to scan this email, 
it does not accept liability for any virus that may be contained in it.
Internet communications are not 100% secure and as such Sefas is not 
responsible for their abuse by 3rd parties, nor for any alteration or 
corruption in transmission.
 
 

Other related posts: