Mailing List
Home
Forum Home
Oracle List - by freelists.org
Oracle on SUSE Linux - Runing Oracle on SUSE Linux
Oracle database error code ...
www.freelists.org
Subjects
ORA 12540: TNS:internal limit restriction exceeded
ORA 12838 please : Is possible to append two times to the same table befo
ORA 12838 please : Is possible to append two times to the same table before
ora 04031
ora 12500 on windows
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 01925: maximum of 30 enabled roles exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ora 12500 on windows
ORA 01650, one idea
ORA 01650
ORA 4030
ORA 12838 please : Is possible to append two times to thesametable before do
ORA 12838 please : Is possible to append two times to thesame table before d
ORA 01536
ORA 03113 end of file on communication channel
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 00600:
ORA 00020: maximum number of processes (%s) exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ORA 3113 while creating a cluster database 9201 RAC on Linux with OCFS
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 01650, one idea
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 2000 Error Using DBMS STATS GATHER SCHEMA STATS
ORA 01650, one idea
ORA 01650, one idea
ORA 01650, one idea
ORA 01650
ORA 01650
ORA 01031
ORA 4030
ORA 4030
ORA 06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind
ORA 01722 invalid number
 
-none-

-none-

2007-10-02       - By Koppelaars, Toon

 Back
V$sqlarea holds a PARSING_SCHEMA_ID column.
This holds the user-id under which the SQL was parsed.
If from stored procedure, it holds the user-id from the owner of the stored
procedure (assuming auth_id current user was not used for the procedure).
If from somebody else (not using procedure), it holds somebody-elses user-id.

Hope this helps

Toon

-- --Oorspronkelijk bericht-- --
Van: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]Namens
Thotangare, Ajay (GTI)
Verzonden: dinsdag 2 oktober 2007 21:35
Aan: oracle-l@(protected)
Onderwerp: Link procedure to sql statement in v$sqlarea



Hi,

I have a question about v$sqlarea. Appreciate your help/inputs on this.
Background
-- ---- ---- ----
I have a procedure named 'XYZ' and inside this procedure I have select
statement. When I execute this procedure I can see a entry for procedure 'XYZ'
and also a entry for select statement (which is actually inside procedure). How
do I know if this select statement has come from this procedure or somebody
else fired this statement as standalone (not using procedure)

e.g.
create or replace procedure PQR as
begin    
execute immediate 'select object_name AS INSIDE_PQR_PRC from user_objects';    
end;
/
Procedure created.

SQL> exec PQR;
 
PL/SQL procedure successfully completed.

SQL> select rownum,sql_text,executions from v$sqlarea where sql_text like '%PQR
%';
 
ROWNUM SQL_TEXT                                                        
EXECUTIONS
-- --- -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- -- ---
----
    1 select rownum,sql_text,executions from v$sqlarea where sql_text l      
  3
      ike '%PQR%'
 
    2 BEGIN PQR; END;                                                        
  1
    3 select object_name AS INSIDE_PQR_PRC from user_objects                  
  1
 
3 rows selected.


How do I know that statement "select object_name AS INSIDE_PQR_PRC from user
_objects" is actually fired from procedure and not from outside.

Appreciate your help.

regards,
Ajay Thotangare
212-647-4312

 __ __  

This message w/attachments (message) may be privileged, confidential or
proprietary, and if you are not an intended recipient, please notify the sender
, do not use or share it and delete it. Unless specifically indicated, this
message is not an offer to sell or a solicitation of any investment products or
other financial product or service, an official confirmation of any transaction
, or an official statement of Merrill Lynch. Subject to applicable law, Merrill
Lynch may monitor, review and retain e-communications (EC) traveling through
its networks/systems. The laws of the country of each sender/recipient may
impact the handling of EC, and EC may be archived, supervised and produced in
countries other than the country in which you are located. This message cannot
be guaranteed to be secure or error-free. This message is subject to terms
available at the following link: http://www.ml.com/e-communications_terms/. By
messaging with Merrill Lynch you consent to the foregoing.
 __ __  




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:eXclaimer = "http://www.exclaimer.co.uk" xmlns:msxsl =
"urn:schemas-microsoft-com:xslt" xmlns:exc =
"http://www.exclaimer.co.uk/rtf"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<TITLE>Link procedure to sql statement in v$sqlarea</TITLE>

<META content="MSHTML 6.00.3790.2440" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=164410920-02102007><FONT face=Arial color=#0000ff
size=2>V$sqlarea holds a PARSING_SCHEMA_ID column.</FONT></SPAN></DIV>
<DIV><SPAN class=164410920-02102007><FONT face=Arial color=#0000ff size=2>This
holds the user-id under which the SQL was parsed.</FONT></SPAN></DIV>
<DIV><SPAN class=164410920-02102007><FONT face=Arial color=#0000ff size=2>If
from stored procedure, it holds the user-id from the owner of the stored
procedure (assuming auth_id current user was not used for the
procedure).</FONT></SPAN></DIV>
<DIV><SPAN class=164410920-02102007><FONT face=Arial color=#0000ff size=2>If
from somebody else (not using procedure), it holds somebody-elses
user-id.</FONT></SPAN></DIV>
<DIV><SPAN class=164410920-02102007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164410920-02102007><FONT face=Arial color=#0000ff size=2>Hope
this helps</FONT></SPAN></DIV>
<DIV><SPAN class=164410920-02102007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164410920-02102007><FONT face=Arial color=#0000ff
size=2>Toon</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
 <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
 size=2>-- --Oorspronkelijk bericht-- --<BR><B>Van:</B>
 oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]<B>Namens
 </B>Thotangare, Ajay (GTI)<BR><B>Verzonden:</B> dinsdag 2 oktober 2007
 21:35<BR><B>Aan:</B> oracle-l@(protected)<BR><B>Onderwerp:</B> Link
 procedure to sql statement in v$sqlarea<BR><BR></FONT></DIV>
 <DIV><!-- Converted from text/rtf format -->
 <P><FONT face=Arial size=2>Hi,</FONT> </P>
 <P><FONT face=Arial size=2>I have a question about v$sqlarea. Appreciate your
 help/inputs on this.</FONT> <BR><FONT face=Arial size=2>Background</FONT>
 <BR><FONT face=Arial size=2>-- ---- ---- ----</FONT> <BR><FONT face=Arial
 size=2>I have a procedure named 'XYZ' and inside this procedure I have select
 statement. When I execute this procedure I can see a entry for procedure 'XYZ
'
 and also a entry for select statement (which is actually inside procedure).
 How do I know if this select statement has come from this procedure or
 somebody else fired this statement as standalone (not using
 procedure)</FONT></P>
 <P><FONT face=Arial size=2>&nbsp;e.g.</FONT> <BR><FONT face=Arial
 size=2>create or replace procedure PQR as</FONT> <BR><FONT face=Arial
 size=2>begin&nbsp;&nbsp;&nbsp; </FONT><BR><FONT face=Arial size=2>execute
 immediate 'select object_name AS INSIDE_PQR_PRC from
 user_objects';&nbsp;&nbsp;&nbsp; </FONT><BR><FONT face=Arial
 size=2>end;</FONT> <BR><FONT face=Arial size=2>/</FONT> <BR><FONT face=Arial
 size=2>Procedure created.</FONT> </P>
 <P><FONT face=Arial size=2>SQL&gt; exec PQR;</FONT> <BR><FONT face=Arial
 size=2>&nbsp;</FONT> <BR><FONT face=Arial size=2>PL/SQL procedure
successfully
 completed.</FONT> </P>
 <P><FONT face=Arial size=2>SQL&gt; select rownum,sql_text,executions from
 v$sqlarea where sql_text like '%PQR%';</FONT> <BR><FONT face=Arial
 size=2>&nbsp;</FONT> <BR><FONT face=Arial size=2>ROWNUM
 SQL_TEXT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 EXECUTIONS</FONT> <BR><FONT face=Arial size=2>-- ---
 -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
 -- ---- --</FONT> <BR><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp; 1
 select rownum,sql_text,executions from v$sqlarea where sql_text
 l&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3</FONT> <BR><FONT
 face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ike '%PQR%'</FONT>
 <BR><FONT face=Arial size=2>&nbsp;</FONT> <BR><FONT face=Arial
 size=2>&nbsp;&nbsp;&nbsp;&nbsp; 2 BEGIN PQR;
 END;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 1</FONT> <BR><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp; 3 select
 object_name AS INSIDE_PQR_PRC from
 user_objects&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 1</FONT> <BR><FONT face=Arial size=2>&nbsp;</FONT> <BR><FONT face=Arial
 size=2>3 rows selected.</FONT> </P><BR>
 <P><FONT face=Arial size=2>How do I know that statement "select object_name
AS
 INSIDE_PQR_PRC from user_objects" is actually fired from procedure and not
 from outside.</FONT></P>
 <P><FONT face=Arial size=2>Appreciate your help.</FONT> </P>
 <P><FONT face=Arial size=2>regards,</FONT> <BR><FONT face=Arial size=2>Ajay
 Thotangare</FONT> <BR><FONT face=Arial size=1>212-647-4312</FONT> </P></DIV>
 <DIV>
 <HR color=gray>
 </DIV>
 <DIV>This message w/attachments (message) may be privileged, confidential or
 proprietary, and if you are not an intended recipient, please notify the
 sender, do not use or share it and delete it. Unless specifically indicated,
 this message is not an offer to sell or a solicitation of any investment
 products or other financial product or service, an official confirmation of
 any transaction, or an official statement of Merrill Lynch. Subject to
 applicable law, Merrill Lynch may monitor, review and retain e-communications
 (EC) traveling through its networks/systems. The laws of the country of each
 sender/recipient may impact the handling of EC, and EC may be archived,
 supervised and produced in countries other than the country in which you are
 located. This message cannot be guaranteed to be secure or error-free. This
 message is subject to terms available at the following link: <A
 href="http://www.ml.com/e-communications_terms/">http://www.ml.com/e
-communications_terms/</A>.
 By messaging with Merrill Lynch you consent to the foregoing.</DIV>
 <DIV>
 <HR color=gray>
 </DIV>
 <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>