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[2]: change a database connection in a stored procedure?

Re[2]: change a database connection in a stored procedure?

From: Sergey V Dolgov <dsv_at_pptus.oilnet.ru>
Date: Tue, 07 May 2002 00:08:19 -0800
Message-ID: <F001.004599FC.20020507000819@fatcity.com>


Hello kranti,

I made a mistake. You can't change your database connection at all from stored procedure
(there is no such SQL command "connect" it's a sqlplus directive). When I gave the answer I thought about database link. You can drop and create it using dynamic SQL.

Tuesday, May 07, 2002, 2:08:27 PM, you wrote:

kp> Hi Sergey,
kp> I am using dynamic SQL but it is returing error for connect statement. Can u
kp> give me some example code.

kp> Rgds
kp> Kranti
kp> -----Original Message-----

kp> Sent: Tuesday, May 07, 2002 7:38 AM
kp> To: Multiple recipients of list ORACLE-L

kp> Hello kranti,

kp> Use dynamic SQL.

kp> Monday, May 06, 2002, 8:23:29 PM, you wrote:

kp>> Hi List,
kp>>         Can someone tell me is it possible to change a database
kp> connection
kp>> in a stored procedure? if so how?
kp>> TIA
kp>> Kranti






--

Best regards,

 Sergey                            mailto:dsv_at_pptus.oilnet.ru


--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Sergey V Dolgov
  INET: dsv_at_pptus.oilnet.ru

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: 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 Tue May 07 2002 - 03:08:19 CDT

Original text of this message

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