.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Invoker rights procedure

Invoker rights procedure

2005-09-12       - By manoj.gurnani@(protected)
Reply:     1     2  


Hi,

  I've invoker rights procedure which is compiled in schema A.

The procedure runs from schema B which has execute privilege on B.

The schema A has table A and schema B has a view with same name as table
A and with all columns of table A

Except last column of table A(say ctry_cd).



The procedure executes with an error in schema B at the following cursor
:



Cursor(ip_param A.col_name%type)

Is

Select * from <table> A

Where col_name = ip_param;



Error

ORA-01007 (See ORA-01007.ora-code.com): variable not in select list



Note : all col_name in cursor are present in view including i/p param
type name .

Also column ctry_cd is not used in the procedure.



How can I change this procedure to resolve this error w/o including col
names in select stmt of cursor.



Regards

Manoj









This e-Mail may contain proprietary and confidential information and is sent
for the intended recipient(s) only.
If by an addressing or transmission error this mail has been misdirected to you
, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in
<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
  {margin:0in;
  margin-bottom:.0001pt;
  font-size:12.0pt;
  font-family:"Times New Roman";}
a:link, span.MsoHyperlink
  {color:blue;
  text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
  {color:purple;
  text-decoration:underline;}
span.EmailStyle17
  {font-family:Arial;
  color:windowtext;}
@(protected) Section1
  {size:8.5in 11.0in;
  margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
  {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Hi,</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp; I&#8217;ve
invoker rights procedure which is compiled in schema A.</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>The procedure runs from
schema B which has execute privilege on B.</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>The schema A has table A and
schema B has a view with same name as table A and with all columns of table A<
/span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Except last column of table
A(say
ctry_cd).</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>The procedure executes with
an error in schema B at the following cursor :</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Cursor(ip_param A.col_name
%type)</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Is</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Select * from &lt;table&gt;
A</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Where col_name = ip_param;<
/span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Error</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>ORA-01007 (See ORA-01007.ora-code.com): variable not in
select list</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Note : all col_name in
cursor are present in view including i/p param type name .</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Also column ctry_cd is not
used in the procedure.</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>How can I change this
procedure to resolve this error w/o including col names in select stmt of
cursor.</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Regards</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>Manoj</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

</div>

</body>

</html>

<table><tr><td bgcolor=#ffffff><font color=#000000>This e-Mail may contain
proprietary and confidential information and is sent for the intended recipient
(s) only. <br>
If by an addressing or transmission error this mail has been misdirected to you
, you are requested to delete this mail immediately.<br>
You are also hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification,<br>
distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.<br>
<br>
Visit Us at http://www.polaris.co.in<br>
</font></td></tr></table>