Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to pass the connect clause to connect as a database user in a
Hi,
Not really an answer to your Q, but if the procedure is created by a user
with create any table privileges you can create tables in another schema
right?
So simply create your user and then create the tables in that new users
schema, no need to connect as that user.
Jack
"Ranganath K" <ranganathk_at_subex To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> group.com> cc: Sent by: Subject: How to pass the connect clause to connect as a database root_at_fatcity.com user in a stored procedure? 29-05-2001 09:20 Please respond to ORACLE-L
Dear DBA Gurus,
I want to create a stored procedure in which a name is passed as
input parameter. The procedure should take the name as input parameter and
create a user with the username and password same as name. Then I want to
connect as the newly created user and create a set of tables. I know how
to
create a user and create tables in Pl/Sql using Execute immediate statement
but I don't know how to pass the connect clause in stored procedure so that
I can connect as the newly created user. Anybody knows how to to this?
If
so, please let me know. Any help in this regard will be very much
appreciated.
TIA and Regards,
Ranganath
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ranganath K
INET: ranganathk_at_subexgroup.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender en het origineel en eventuele kopieën te verwijderen en te vernietigen.
Ernst & Young hanteert bij de uitoefening van haar werkzaamheden algemene voorwaarden, waarin een beperking van aansprakelijkheid is opgenomen. De algemene voorwaarden worden u op verzoek kosteloos toegezonden.
If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies.
In carrying out its engagements, Ernst & Young applies general terms and conditions, which contain a clause that limits its liability. A copy of these terms and conditions is available on request free of charge.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: nlzanen1_at_EY.NL
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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 29 2001 - 03:17:06 CDT
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message