Persistent remote connection in PL/SQL? [message #8983] |
Wed, 08 October 2003 19:39 |
William
Messages: 17 Registered: September 2000
|
Junior Member |
|
|
Is it possible to establish a persistent remote connection in PL/SQL?
ie:
declare
user_v VARCHAR2(10) := 'scott';
password_v VARCHAR2(10) := 'tiger';
begin
execute immediate 'connect :user/:sys_pass@'||instance_v using user_v, password_v;
execute immediate 'alter system set audit_trail=db scope=spfile';
end;
I know this doesn't work, but is there some way to accomplish the same effect, since system control commands don't have a syntax for db_links?
Thanks
|
|
|
|
Re: Persistent remote connection in PL/SQL? [message #8997 is a reply to message #8983] |
Thu, 09 October 2003 12:43 |
Thiru
Messages: 1089 Registered: May 2002
|
Senior Member |
|
|
William,
there are certain things that are meant for SQL/SQLPlus and certain other things meant for PL/SQL. Is'nt it much easier to write a sqlplus script with parameters to perform such core DBA activities ?
-Thiru
|
|
|