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: doing two session-setting ops in one SQL submission...

Re: doing two session-setting ops in one SQL submission...

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Mon, 23 Feb 2004 08:51:52 +0100
Message-ID: <9nqd30dotpheiam1fm7793m2gm91k34uii@4ax.com>


On Thu, 19 Feb 2004 11:31:51 -0800, Joe Weinstein <joeNOSPAM_at_bea.com> wrote:

>I am naively trying:
>
>"BEGIN alter session set nls_date_format = 'MM/DD/YYYY'; set role xxxx_role identified by xxxx; END;".
>
>This fails*. Is there working syntax for what I want to do?
>Thanks in advance,
>
>Joe Weinstein at BEA

either use the dbms_session package (has procedures for both commands) or use execute immediate.
Note: Pl/sql is only capable of ordinary sql statements directly.

--
Sybrand Bakker, Senior Oracle DBA
Received on Mon Feb 23 2004 - 01:51:52 CST

Original text of this message

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