RE: Users Schema's
You can do this with ALTER SESSION SET CURRENT_SCHEMA = USERB; You can find it in Oracle 8i SQL Reference, Volume 1. Best regards, Marco -Oorspronkelijk bericht- Van: Dave Leach [mailto:[EMAIL PROTECTED]] Verzonden: woensdag 22 augustus 2001 12:02 Aan: Multiple recipients of list ORACLE-L Onderwerp: Users Schema's Help!!, Can anyone shed some light on this or am I just going mad!!. We have a situation whereby multiple users need to access (both selects and dml) tables belonging to 1 specific schema, this must also be achieved without prefixing the tables with the userid as the SQL is driven by the application and is not configurable. My original idea was to use synonyms but I am sure that I have read somewhere that in 8i there was an alternative to this whereby a user can be set up to use another users schema eg. USERA when logged on will effectively be treated as if they are logged on as USERB. I have searched every bit of documentation I can find (manuals, metalink etc) but can find no mention of this, have I just dreamn't this or can someone shed some light. Many thanks for any replies. Dave Leach ** The above information is confidential to the addressee and may be privileged. Unauthorised access and use is prohibited. Internet communications are not secure and therefore this Company does not accept legal responsibility for the contents of this message. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Claybrook Computing Limited is a subsidiary of Claybrook Computing (Holdings) Limited Registered Office: Abbey House. 282 Farnborough Road, Farnborough, Hampshire GU14 7NJ Registered in England and Wales No 1287205 A Hogg Robinson plc company ** -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Dave Leach INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rooy van, Marco INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Users Schema's
are we talking about alter user set current_schema = new schema ? you require a BECOME USER priv for this -- From: Dave Leach[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Wednesday, August 22, 2001 5:01 PM To: Multiple recipients of list ORACLE-L Subject: Users Schema's Help!!, Can anyone shed some light on this or am I just going mad!!. We have a situation whereby multiple users need to access (both selects and dml) tables belonging to 1 specific schema, this must also be achieved without prefixing the tables with the userid as the SQL is driven by the application and is not configurable. My original idea was to use synonyms but I am sure that I have read somewhere that in 8i there was an alternative to this whereby a user can be set up to use another users schema eg. USERA when logged on will effectively be treated as if they are logged on as USERB. I have searched every bit of documentation I can find (manuals, metalink etc) but can find no mention of this, have I just dreamn't this or can someone shed some light. Many thanks for any replies. Dave Leach ** The above information is confidential to the addressee and may be privileged. Unauthorised access and use is prohibited. Internet communications are not secure and therefore this Company does not accept legal responsibility for the contents of this message. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Claybrook Computing Limited is a subsidiary of Claybrook Computing (Holdings) Limited Registered Office: Abbey House. 282 Farnborough Road, Farnborough, Hampshire GU14 7NJ Registered in England and Wales No 1287205 A Hogg Robinson plc company ** -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Dave Leach INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rahul INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Users Schema's
Dave, You can use the following : alter session set current_schema = USERB Check out the SQL Reference manual - Chapter 7 SQL Statements, ALTER SESSION (page 387) HTH Mark -Original Message- Sent: Wednesday, August 22, 2001 11:02 To: Multiple recipients of list ORACLE-L Help!!, Can anyone shed some light on this or am I just going mad!!. We have a situation whereby multiple users need to access (both selects and dml) tables belonging to 1 specific schema, this must also be achieved without prefixing the tables with the userid as the SQL is driven by the application and is not configurable. My original idea was to use synonyms but I am sure that I have read somewhere that in 8i there was an alternative to this whereby a user can be set up to use another users schema eg. USERA when logged on will effectively be treated as if they are logged on as USERB. I have searched every bit of documentation I can find (manuals, metalink etc) but can find no mention of this, have I just dreamn't this or can someone shed some light. Many thanks for any replies. Dave Leach ** The above information is confidential to the addressee and may be privileged. Unauthorised access and use is prohibited. Internet communications are not secure and therefore this Company does not accept legal responsibility for the contents of this message. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Claybrook Computing Limited is a subsidiary of Claybrook Computing (Holdings) Limited Registered Office: Abbey House. 282 Farnborough Road, Farnborough, Hampshire GU14 7NJ Registered in England and Wales No 1287205 A Hogg Robinson plc company ** -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Dave Leach INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mark Leith INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: Users Schema's
You may be thinking of the 'proxy user' feature: alter user xxx grant connect through yyy with role rrr; However, the features that this enables are currently available only through OCI programming at present. The other thing you may be thinking of is alter session set current_schema = XXX; which you can embed into a database logon trigger using 'execute immediate' Jonathan Lewis Host to The Co-Operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html Author of: Practical Oracle 8i: Building Efficient Databases See http://www.jlcomp.demon.co.uk/book_rev.html For latest news of public appearances See http://www.jlcomp.demon.co.uk Screen saver or Life saver: http://www.ud.com Use spare CPU to assist in cancer research. -Original Message- To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Date: 22 August 2001 10:25 |Help!!, | |Can anyone shed some light on this or am I just going mad!!. | |We have a situation whereby multiple users need to access (both selects and |dml) tables belonging to 1 specific schema, this must also be achieved |without prefixing the tables with the userid as the SQL is driven by the |application and is not configurable. | |My original idea was to use synonyms but I am sure that I have read |somewhere that in 8i there was an alternative to this whereby a user can be |set up to use another users schema eg. USERA when logged on will effectively |be treated as if they are logged on as USERB. I have searched every bit of |documentation I can find (manuals, metalink etc) but can find no mention of |this, have I just dreamn't this or can someone shed some light. | |Many thanks for any replies. | |Dave Leach | | |* * |The above information is confidential to the addressee and may be |privileged. Unauthorised access and use is prohibited. | |Internet communications are not secure and therefore this Company does |not accept legal responsibility for the contents of this message. | |If you are not the intended recipient, any disclosure, copying, |distribution or any action taken or omitted to be taken in reliance on |it, is prohibited and may be unlawful. | |Claybrook Computing Limited is a subsidiary of |Claybrook Computing (Holdings) Limited |Registered Office: Abbey House. 282 Farnborough Road, Farnborough, |Hampshire GU14 7NJ |Registered in England and Wales No 1287205 | |A Hogg Robinson plc company |* * |-- |Please see the official ORACLE-L FAQ: http://www.orafaq.com |-- |Author: Dave Leach | INET: [EMAIL PROTECTED] | |Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 |San Diego, California-- Public Internet access / Mailing Lists | |To REMOVE yourself from this mailing list, send an E-Mail message |to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in |the message BODY, include a line containing: UNSUB ORACLE-L |(or the name of mailing list you want to be removed from). You may |also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jonathan Lewis INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: Users Schema's
Many thanks for all the replies on this, it is indeed a documented parameter under the ALTER SESSION command. I can't believe I missed this bearing in mind the time I spent searching. My sanity is restored for now!! Dave Leach -Original Message- Sent: 22 August 2001 11:32 To: Multiple recipients of list ORACLE-L Dave, You can use the following : alter session set current_schema = USERB Check out the SQL Reference manual - Chapter 7 SQL Statements, ALTER SESSION (page 387) HTH Mark -Original Message- Sent: Wednesday, August 22, 2001 11:02 To: Multiple recipients of list ORACLE-L Help!!, Can anyone shed some light on this or am I just going mad!!. We have a situation whereby multiple users need to access (both selects and dml) tables belonging to 1 specific schema, this must also be achieved without prefixing the tables with the userid as the SQL is driven by the application and is not configurable. My original idea was to use synonyms but I am sure that I have read somewhere that in 8i there was an alternative to this whereby a user can be set up to use another users schema eg. USERA when logged on will effectively be treated as if they are logged on as USERB. I have searched every bit of documentation I can find (manuals, metalink etc) but can find no mention of this, have I just dreamn't this or can someone shed some light. Many thanks for any replies. Dave Leach ** The above information is confidential to the addressee and may be privileged. Unauthorised access and use is prohibited. Internet communications are not secure and therefore this Company does not accept legal responsibility for the contents of this message. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Claybrook Computing Limited is a subsidiary of Claybrook Computing (Holdings) Limited Registered Office: Abbey House. 282 Farnborough Road, Farnborough, Hampshire GU14 7NJ Registered in England and Wales No 1287205 A Hogg Robinson plc company ** -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Dave Leach INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mark Leith INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Dave Leach INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).