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

Home -> Community -> Usenet -> c.d.o.server -> Re: DBMS_UTILITY.EXEC_DDL_STATEMENT

Re: DBMS_UTILITY.EXEC_DDL_STATEMENT

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: 2000/05/02
Message-ID: <390ED3A9.454C@yahoo.com>#1/1

Yamuna Vallipuram wrote:
>
> Hi...
>
> Jeg am having problems executing DBMS_UTILITY.EXEC_DDL_STATEMENT ('Alter
> session set global_names=false') on the fly.
>
> I have a pocedure which accesses a table which is situated on a remote
> database. The database link which connects to the remote database does not
> have the same name as the database. So I need to set the global_names=false
> in order to access the table.
> When I give a static sql statement 'Alter session set global_names=false '
> and execute the procedure It works fine.
>
> But when I try to execute Alter session set global_names=false in PL/SQL (on
> runtime) I get the following error message ORA 02085.
>
> The dynamic DBMS_UTILITY.EXEC_DDL_STATEMENT ('Alter session set
> global_names=false') does not seem to work.
>
> Any idea what I am doing wrong.
>
> Regards Yamuna

Do other 'alter session' commands work - I know 'alter system' is not officially DDL, possibly 'alter session' is the same.

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Tue May 02 2000 - 00:00:00 CDT

Original text of this message

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