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 Yasin Baskan

Reply:     1     2  



Why are you trying not to put column names in the select statement? The
code will be open to errors this way (what will happen if somebody adds
a column?) and may perform slower (consider the chained rows, if you
select a column you do not need which is on the chained part of a row
you are doing extra unnecessary reads).



I did not try how to correct the issue without putting the column names
but using column names is the first thing to do i think.



__ ____ ____ ____ ____ ____ ____

From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)] On Behalf Of
manoj.gurnani@(protected)
Sent: Monday, September 12, 2005 3:17 PM
To: Oracle-L@(protected)
Subject: Invoker rights procedure



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





Bu mesaj ve onunla iletilen tum ekler gonderildigi kisi ya da kuruma ozel ve
Bankalar Kanunu geregince, gizlilik yukumlulugu tasiyor olabilir. Bu mesaj,
hicbir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para
karsiligi satilamaz; mesajin yetkili alicisi veya alicisina iletmekten sorumlu
kisi degilseniz, mesaj icerigini ya da eklerini kopyalamayiniz, yayinlamayiniz,
baska kisilere yonlendirmeyiniz ve mesaji gonderen kisiyi derhal uyararak bu
mesaji siliniz. Bu mesajin iceriginde ya da eklerinde yer alan bilgilerin
dogrulugu, butunlugu ve guncelligi Bankamiz tarafindan garanti edilmemektedir
ve bilinen viruslere karsi kontrolleri yapilmis olarak yollanan mesajin
sisteminizde yaratabilecegi zararlardan Bankamiz sorumlu tutulamaz.

This message and the files attached to it are under the privacy liability in
accordance with the Banking Law and confidential to the use of the individual
or entity to whom they are addressed. This message cannot be copied, disclosed
or sold monetary consideration for any purpose. If you are not the intended
recipient of this message, you should not copy, distribute, disclose or forward
the information that exists in the content and in the attachments of this
message; please notify the sender immediately and delete all copies of this
message. Our Bank does not warrant the accuracy, integrity and currency of the
information transmitted with this message. This message has been detected for
all known computer viruses thence our Bank is not liable for the occurrence of
any system corruption caused by this message
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft
-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http:
//www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@(protected)
  {font-family:Tahoma;
  panose-1:2 11 6 4 3 5 4 4 2 4;}
/* 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;}
span.EmailStyle18
  {mso-style-type:personal-reply;
  font-family:Arial;
  color:blue;
  font-weight:normal;
  font-style:normal;
  text-decoration:none none;}
@(protected) Section1
  {size:8.5in 11.0in;
  margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
  {page:Section1;}
-->
</style>

</head>

<body lang=TR link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>Why are you trying not to put column names
in the select statement? The code will be open to errors this way (what will
happen if somebody adds a column?) and may perform slower (consider the chained
rows, if you select a column you do not need which is on the chained part of a
row you are doing extra unnecessary reads).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>I did not try how to correct the issue
without putting the column names but using column names is the first thing to
do i think.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font
></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] <b><span
style='font-weight:bold'>On Behalf Of </span></b>manoj.gurnani@(protected)<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, September 12, 2005
3:17 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Oracle-L@(protected)<br>
<b><span style='font-weight:bold'>Subject:</span></b> Invoker rights procedure<
/span></font><span
lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

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

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
lang=EN-US 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
><span
lang=EN-US><o:p></o:p></span></p>

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

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
lang=EN-US 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><span lang=EN-US><o:p></o:p></span></p>

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

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

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

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

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

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

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

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

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

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

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

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

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
lang=EN-US 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><span
lang=EN-US><o:p></o:p></span></p>

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

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

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New">
<span
lang=EN-US 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><span lang=EN-US><o:p></o:p></span></p>

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

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

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

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

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

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>&nbsp;</span></font><span lang=EN-US><o:p></o:p><
/span></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>
<table><tr><td bgcolor=#ffffff><font color=#000000><br>
<br>
Bu mesaj ve onunla iletilen tum ekler gonderildigi kisi ya da kuruma ozel ve
Bankalar Kanunu geregince, gizlilik yukumlulugu tasiyor olabilir. Bu mesaj,
hicbir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para
karsiligi satilamaz; mesajin yetkili alicisi veya alicisina iletmekten sorumlu
kisi degilseniz, mesaj icerigini ya da eklerini kopyalamayiniz, yayinlamayiniz,
baska kisilere yonlendirmeyiniz ve mesaji gonderen kisiyi derhal uyararak bu
mesaji siliniz. Bu mesajin iceriginde ya da eklerinde yer alan bilgilerin
dogrulugu, butunlugu ve guncelligi Bankamiz tarafindan garanti edilmemektedir
ve bilinen viruslere karsi kontrolleri yapilmis olarak yollanan mesajin
sisteminizde yaratabilecegi zararlardan Bankamiz sorumlu tutulamaz.<br>
</font></td></tr></table>
<table><tr><td bgcolor=#ffffff><font color=#000000>This message and the files
attached to it are under the privacy liability in accordance with the Banking
Law and confidential to the use of the individual or entity to whom they are
addressed. This message cannot be copied, disclosed or sold monetary
consideration for any purpose. If you are not the intended recipient of this
message, you should not copy, distribute, disclose or forward the information
that exists in the content and in the attachments of this message; please
notify the sender immediately and delete all copies of this message. Our Bank
does not warrant the accuracy, integrity and currency of the information
transmitted with this message. This message has been detected for all known
computer viruses thence our Bank is not liable for the occurrence of any system
corruption caused by this message<br>
</font></td></tr></table>