Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: possible to dynamicly connect to a different user in pl/sql?

Re: possible to dynamicly connect to a different user in pl/sql?

From: Yechiel Adar <adar76_at_inter.net.il>
Date: Sun, 24 Aug 2003 06:39:35 -0800
Message-ID: <F001.005CCDB1.20030824063935@fatcity.com>


I think that there are two reasons to do it:

  1. You need permissions that are granted to another user
  2. You need to work in another schema and you have permissions to these objects.

In 1) you can grant yourself the necessary permissions. in 2) try execute immediate 'alter session set current schema' (I did not check if this will work in PL/sql.

Yechiel Adar
Mehish
----- Original Message -----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Sent: Wednesday, August 20, 2003 5:21 PM

> I doubt it... but this could save me from coding it into a unix script and
keeping all my code in my package. I tried
>
> execute immediate 'connect user/password; and it failed.
>
> is this doable?
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: <rgaffuri_at_cox.net
> INET: rgaffuri_at_cox.net
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (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.net
-- 
Author: Yechiel Adar
  INET: adar76_at_inter.net.il

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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).
Received on Sun Aug 24 2003 - 09:39:35 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US