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:[EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Sergey V Dolgov 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).
