Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Bug in Execute Immediate clause???
<FONT face="Courier New" color=#0000ff
size=2>Are we forgetting that your current schema is SCOTT
??
<FONT face="Courier New" color=#0000ff
size=2>
<FONT face="Courier New" color=#0000ff
size=2>comment that line, and then try running the procedure
...
<FONT face="Courier New" color=#0000ff
size=2>
<FONT face="Courier New" color=#0000ff
size=2>Raj
<FONT face="Courier New"
size=2>--------------------------------------------------------------------------------Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email
<FONT face=Tahoma
size=2>-----Original Message-----From: Ranganath K
[mailto:[EMAIL PROTECTED]Sent: Wednesday, July 02, 2003
11:31 AMTo: Multiple recipients of list ORACLE-LSubject:
Bug in Execute Immediate clause???
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi <SPAN
class=SpellE>Listers,
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The below procedure gets created
successfully in TEST Schema. But
when I execute the procedure by starting a fresh session connecting as TEST
schema I get the below error and when I execute the procedure for the second
time it executes successfully. I
have granted the dba privileges and explicit granted
select on TEMP1 to TEST Schema.
Inspite of that I am getting the below
errors. I tried this 8.1.7 and
9.2.1.0. Is it a bug in the code
or the database?
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">CREATE OR REPLACE procedure test
authid current_user
is
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">c<FONT
face=Arial size=2>
number;
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">n<FONT
face=Arial size=2>
number;
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">a<FONT
face=Arial size=2>
varchar2(1000);
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Begin
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Execute Immediate 'Alter Session
Set Current_Schema =
SCOTT';
<SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dbms_output.put_<SPAN
class=GramE>line<FONT face=Arial
size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">(<SPAN class=SpellE><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">sys_context<FONTface=Arial size=2>('<SPAN
********************************************************************This e-mailmessage is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank
you.*********************************************************************2Received on Wed Jul 02 2003 - 11:51:20 CDT
![]() |
![]() |