   |  | | Invoker rights procedure | Invoker rights procedure 2005-09-12 - By manoj.gurnani@(protected)
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"'> I’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"'> </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"'> </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 <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"'>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"'> </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"'> </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"'> </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"'> </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"'> </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"'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </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>
|
|
 |