PLS-00201 error after moving a package to a new scheme
hi
I've moved a package to a new schema and all the packages in the original schema that reference the moved package now fail to compile. The moved package has had a public synonym created and the execute privileges assigned to the original schema by role. what am i missing? Using 11gR2 version 11.2.0.3.0
Privileges granted through roles do not apply to stored procedures and packages that are compiled with definer rights (the default). You need to grant the original schema execute privileges on the new schema's package directly.
John
Similar Messages
-
PLS-00201 error calling function in package member
Hello,
I'm trying to call a function defined in a PL/SQL package, but receiving a PLS-00201 error.Sorry, a finger-controller error caused me to submit before I was ready. I'm having the module replaced today. :)
After rethinking my decision to post here, I decided not to. I've never received a helpful answer, probably because the issues are not simple... Too bad. -
ORA-06550/PLS-00201 error while configuring data source
Hi,
My development platform is Visual Studio 2005, ODAC11g Release 1 (11.1.0.6.20), and Oracle 10g Release 2 database.
I tried to setup a sqlDatasource in my web page using drag and drop features
When I configure the sqlDatasource to use a stored procedure inside a package,
I notice that odp.net uses #0# as separator (instead of .) between package name and procedure name in Configure Data Source dialog box. Then when I clcik the Test Query button, I got following error.
There was an error executing the query. Please check the syntax of the command and if present, the types and values of the parameters and ensure they are correct.
ORA-06550: line 1, column 7:
PLS-00201: identifier 'PK_LOOKUP_TABLE#0#P_LIST' must be declared
ORA-06550: line 1, column 7
PL/SQL: Statement ignored
It looks like odp.net cannot locate PK_LOOKUP_TABLE#0#P_LIST.
Is there any workaround ?
Below is the stored procedure code. It compiles and runs without problem.
PACKAGE BODY pk_lookup_table
AS
/* Get a list of lookup table name */
PROCEDURE P_LIST (
O_CURSOR OUT sys_refcursor )
IS
l_cur sys_refcursor;
BEGIN -- executable part starts here
OPEN l_cur FOR
SELECT table_name
FROM all_tab_comments u
WHERE u.comments LIKE '%Lookup Table%'
ORDER BY 1;
o_cursor := l_cur;
END P_LIST;
END "PK_LOOKUP_TABLE";
On the sqlDataSource property sheet, if I click the Select Query property, the Command and Parameter Editor will open, then I can change the select command name to PK_LOOKUP_TABLE.P_LIST. Then if I run the application, I get another error.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Oracle.DataAccess.Client.OracleException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'P_LIST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Seems that it can locate the procedure.
In the Command and Parameter Editor dialog, I can add output parameter, but data type is restricted. There is no REF CURSOR datatype in the dropdown list.
How can I add output parameter with REF CURSOR type via IDE ?
Thanks for the time looking into this issue.
MansionHi
Even I faced this problem while connecting to RMAN . But I feel your problem is different .
My issue was like this
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_BACKUP_RESTORE.SET_CHARSET' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
RMAN-04015: error setting target database character set to WE8MSWIN1252
Solution :
execute catproc.sql; -
PLS-00201 error when trying to pass an OUT parameter
Hi,
Please help me to resolve the below error:
I am trying to pass an OUT parameter in a package.
I have declared it in package specs as
ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2)
In package body
I have created the procedure as
Create or Replace procedure ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2) AS
v_LogDir varchar2(40);
v_message varchar2(200);
BEGIN
SELECT directory_path into v_LogDir FROM ALL_DIRECTORIES WHERE directory_name = 'ABC';
v_message := v_LogDir ;
some sql statements..
p_val3 := v_message;
Return p_val3;
End procABC;
SQL> exec pkg_A.procABC('Stage2', NULL, p_val3);
Package compiles successfully but while execution it returns error as:
ORA-06550: line 1, column 74:
PLS-00201: identifier 'p_val3 ' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Please advise.Hi Suresh,
Thanks for the information and help. I was able to run the package with this usage.
Now, the issue is
I need to return a v long string by the OUT parameter so I defined the datatype of OUT parameter as CLOB.
But, when I declare local variable to run the package with this OUT paramater I get the error :
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
When I pass a shorter string it works.
Kindly advise me how to resolve this issue while using CLOB as datatype of OUT parameter. -
PLS-00201 error occurs when batching a stored procedure in SQL*Plus
I have a batch file to run a stored procedure and spool the results to file. When I enter the commands manually in sql*plus the output works fine and my results are spooled to the output file. But when I run the same commands in the batched script I get an error.
Any ideas?
Stored Procedure:
create or replace procedure MMP( p_cursor in out SYS_REFCURSOR)
as
begin
open p_cursorfor select name, id from table;
end;
batch file 1:
sqlplus -S user/pw@REPORTDV @sp_output_spooled.sql
script file sp_output_spooled.sql
Pasting these commands directly to the SQL*Plus command prompt spools the result set to file as expected.
set colsep '|'
set echo off
set feedback off
set termout off
set heading off
set linesize 9000
set pagesize 0
set trimspool on
set headsep off
spool output.TXT
var rc refcursor
execute MMP(:rc)
print rc
spool off
exit
The errors printed to output.TXT file after the batch is run and error occurs:
BEGIN MMP(:rc); END;
ERROR at line 1:
ORA-06550: line 1, column 8:
PLS-00201: identifier 'MMP' must be declared
ORA-06550: line 1, column 8:
PL/SQL: Statement ignored
ERROR:
ORA-24338: statement handle not executed
SP2-0625: Error printing variable "rc"Hi,
Your code worked fine for me.
Is MMP procedure owned by the same user that is running the batch file or does it have proper privileges and synonym?
vr,
Sudhakar -
PLS-00201 ERROR - XML. and XPATH. Calls
I'm getting the below errors. I've loaded javavm and inixml.
Does anyone have any suggestion on compiling the vendor code.
Thanks. Corey
SQL> show errors
Errors for PACKAGE BODY INTR_ITIN_PKG:
LINE/COL ERROR
334/3 PL/SQL: Statement ignored
334/13 PLS-00201: identifier 'XML.PARSE' must be declared
341/3 PL/SQL: Statement ignored
341/21 PLS-00201: identifier 'XPATH.SELECTNODES' must be declared
353/5 PL/SQL: Statement ignored
353/22 PLS-00201: identifier 'XPATH.SELECTNODES' must be declared
363/5 PL/SQL: Statement ignored
363/21 PLS-00201: identifier 'XPATH.SELECTNODES' must be declared
480/3 PLS-00201: identifier 'XML.FREEDOCUMENT' must be declared
480/3 PL/SQL: Statement ignored
498/11 PL/SQL: Statement ignored
LINE/COL ERROR
498/29 PLS-00201: identifier 'XPATH.SELECTNODES' must be declared
509/11 PLS-00201: identifier 'XML.FREEDOCUMENT' must be declared
509/11 PL/SQL: Statement ignored
685/3 PL/SQL: Statement ignored
685/17 PLS-00201: identifier 'XPATH.SELECTNODES' must be declared
707/3 PL/SQL: Statement ignored
707/17 PLS-00201: identifier 'XPATH.SELECTNODES' must be declared
753/3 PL/SQL: Statement ignored
753/17 PLS-00201: identifier 'XPATH.SELECTNODES' must be declared
SQL>I had a package which worked under 8i, part of the package body like
Create or Replace Package Body AbleTool as
Function Transform(xml Clob,xsl Clob) Return Clob is
p xmlparser.Parser;
xmldoc xmldom.DOMDocument;
xsldoc xmldom.DOMDocument;
proc xslprocessor.Processor;
ss xslprocessor.Stylesheet;
cl Clob;
begin
p := xmlparser.newParser;
xmlparser.setValidationMode(p, FALSE);
xmlparser.setPreserveWhiteSpace(p, TRUE);
xmlparser.parseClob(p, xml); -- parse xml
xmldoc := xmlparser.getDocument(p);
xmlparser.parseClob(p, xsl); -- parse xsl
xsldoc := xmlparser.getDocument(p);
proc := xslprocessor.newProcessor;
ss := xslprocessor.newStylesheet(xsldoc, '');
dbms_lob.createtemporary(cl, TRUE);
xslprocessor.processXSL(proc, ss, xmldoc,cl);
xslprocessor.freeStyleSheet(ss);
xslprocessor.freeProcessor(proc);
return cl;
when I installed 9i db, and run the package on it. I get errors
like
PLS-00201: identifier 'XMLPARSER' must be declared
PL/SQL: Item ignored
PLS-00201: identifier 'XMLDOM' must be declared
PL/SQL: Item ignored
PLS-00201: identifier 'XMLDOM' must be declared
PL/SQL: Item ignored
PLS-00201: identifier 'XSLPROCESSOR.PROCESSOR' must be declared
PL/SQL: Item ignored
PLS-00201: identifier 'XSLPROCESSOR.STYLESHEET' must be declared
PL/SQL: Item ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
I searched on the Forum, someone suggests that the following privileges should grant to the user.
execute of xmldom
execute of xmlparser
execute of xslprocessor
so I did as he said, the first two errors about xmldoc and xmlparser gone, the third error is still there, the error message is
PLS-00201: identifier 'XSLPROCESSOR.PROCESSOR' must be declared
PL/SQL: Item ignored
PLS-00201: identifier 'XSLPROCESSOR.STYLESHEET' must be declared
PL/SQL: Item ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
PLS-00320: the declaration of the type of this expression is incomplete or malformed
PL/SQL: Statement ignored
What else there I should do?
Please help. -
Hi to all,
I have tried to create this procedure:
CREATE OR REPLACE PROCEDURE VERIFY_CREDENTIALS
pUSERNAME IN VARCHAR2,
pPASSWORD in VARCHAR2
IS
lCounter number;
lPassword varchar(255) DEFAULT GET_HASHED_PW( pPASSWORD);
BEGIN
SELECT COUNT(*) INTO lCounter
FROM WEBUSERS
WHERE USERNAME = pUSERNAME
AND ENCRYPTEDPWD = lPassword;
IF ( lCounter = 0 ) THEN
RAISE_APPLICATION_ERROR( -20001, 'invalid USERNAME/password' );
END IF;
END;When I compile, the error
PLS-00201 - The identifier GET_HASHED_PW must be declared
is displayed.
How can resolve this problem ? Can You help me ?
The DB Version is 10.2.0.1.0 under Windows 2003 Server
Thank You and Best Regards
GaetanoSolved,
The GET_HASHED_PW is declared in a Package.
I have added the name of package to the function and all work.
Thank You.
Gaetano -
PLS-00201 error when declaring ROWTYPE variable
Hi,
I want to declare the rec_ variable like this:
PROCEDURE Insert___ (
objid_ OUT VARCHAR2,
objversion_ OUT VARCHAR2,
new_ IN OUT VARCHAR2,
attr_ IN OUT VARCHAR2 )
IS
rec_ OBUS.ORDER_TAB%ROWTYPE;
where ORDER_TAB belongs to the OBUS schema, a different schema from where the present procedure is being created.
When compiling, I get the following error:
"PLS-00201: identifier 'OBUS.ORDER_TAB' must be declared"
Why do I get this? Can't I refer to a different schema in the declaration area of the procedure?
Thanks.
Leandro.Thank you both. It compiled ok after granting the select privilege.
However, I was able to execute a "select * from obus.order_tab" from a SQLPlus session, no matter if I had granted or not the SELECT privilege for that table.
It seems the behaviour is different in a SQL session from a declaration in a procedure. Am I right? What could be the reason for this?
Thanks.
Leandro. -
1487 error after moving ws object
Hello,
I'm recieving the 1487 error when trying to remote control a WS after
moving the WS object to a different container.
I've search through many posts with the same problem but nobody seems to
post a solution. Here is what I'm doing...
1. login and the WS is succesfully imported, I can then remote control it
succesfully.
2. Move the WS object to a new container.
3. Reboot the WS, now I get the 1487 error.
At this point I can see that the registry is not updated on the workstion
with it's new location.
HKLM>SOFTWARE>NOVELL>Workstation Manager>Identification>Workstation Object.
4. The workstation then re-imports itself to it's original container
defined in the import policy.
5. Now I'm unable to RC either the moved or the new WS object.
6. If I delete both the moved and new objects, reboot. It will then
re-import and can now be remote controlled again.
I'm suspecting a possible problem with the search policy. I have tried
different variations of the search policy placement and configuration but
none seem to get me any better results (mostly worse). I'm not exactly
sure how the search policy should be configured if it even is the problem.
Any help would be apreciated, thank you.
I'm running Zen7 sp1 w/ hotpatch 6.
I have nwclient 4.91sp3
I have reinstalled the zfdagent.
I have removed nmas.
I tried 4.91sp4 client, same issue.
I have enabled debug logging on the WS and Server, can't seem to find any
errors.Jason wrote:
> Hello,
>
> I'm recieving the 1487 error when trying to remote control a WS after
> moving the WS object to a different container.
>
> I've search through many posts with the same problem but nobody seems to
> post a solution. Here is what I'm doing...
>
> 1. login and the WS is succesfully imported, I can then remote control
> it succesfully.
> 2. Move the WS object to a new container.
> 3. Reboot the WS, now I get the 1487 error.
>
> At this point I can see that the registry is not updated on the
> workstion with it's new location.
> HKLM>SOFTWARE>NOVELL>Workstation Manager>Identification>Workstation Object.
>
> 4. The workstation then re-imports itself to it's original container
> defined in the import policy.
> 5. Now I'm unable to RC either the moved or the new WS object.
> 6. If I delete both the moved and new objects, reboot. It will then
> re-import and can now be remote controlled again.
>
> I'm suspecting a possible problem with the search policy. I have tried
> different variations of the search policy placement and configuration
> but none seem to get me any better results (mostly worse). I'm not
> exactly sure how the search policy should be configured if it even is
> the problem.
>
> Any help would be apreciated, thank you.
>
> I'm running Zen7 sp1 w/ hotpatch 6.
> I have nwclient 4.91sp3 I have reinstalled the zfdagent.
> I have removed nmas.
> I tried 4.91sp4 client, same issue.
> I have enabled debug logging on the WS and Server, can't seem to find
> any errors.
>
>
What version of ZDM 7 are you running? This is usually a snapin issue
with consoleone. Where are you running ConsoleOne from?
---Kurt -
Error After Execute Info Package
Experts,
I got the below errors after i executed the info package.
I tried RSA3 on the Data Source in ECC, it got extracted successfully.
Do you have any idea why this happens?
Thanks.
Tee
Error message from the source system
Diagnosis
An error occurred in the source system.
System Response
Caller 09 contains an error message.
Further analysis:
The error occurred in Service API .
Refer to the error message.
Procedure
How you remove the error depends on the error message.
Note
If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.hi,
your message has got answers for your question.
1.what source sytem you are getting data from?
if it is flat file --->please make sure you have specified file in specified format at specified location and make sure the file is not open at the time of loading.
2.If it is another source system make sure...the interface is proper to extract data from.
if everything looks fine..just logoff from the system once and login again and try to repeat the load which will be successful in majority of the cases.
Regards
Ramsunder. -
Sync issues after moving entire iTunes library to new iMac
I have a question regarding moving an itunes library to a new computer and what happens to the devices that were synced with it.
I moved a clients entire iTunes folder from the user-music folder on one iMac to another iMac, replacing it's itunes folder.
I then opened iTunes and it read the library just fine, all content intact.
The issue was with syncing the ipods that were originally connected to the previous computer.
I thought that I could just hook up their iPod to the new iMac, since it is essentially the same iTunes folder/content/data and all should continue syncing just fine. Nope.
The ipod (touch) would show 'syncing' yet no data would move between it and the new iMac.
Same thing with their Apple TV - it was originally being synced with the older iMac.
I had hoped, once moving the entire itunes folder to the new imac, that itunes would just go on talking with the Apple TV. Not the case.
So far, the only thing I can do is to do a 'restore' on the ipod touch, then treat it like a new ipod and sync it with the new computer.
I haven't dealt with the Apple TV issue yet - it would not be fun to erase the entire contents of the apple tv, then resync with the new imac. Lots of data to move around - but perhaps this is the only way?
Kind of a bummer. Is this correct?
It never gave me the 'this ipod is being synced with another computer/library' message either. It 'seemed' like it was going to work as I had hoped.
I looked all over the computer, preferences folders, etc. to see if I could find something that associated the ipod with a particular library. I did locate the ipod backups folder in the application support folder and moved it over to the new computer too.
I've always moved client's itunes library from their old computer to new computer without issues - I don't remember their being an issue with previously synced devices like iPods/iphones/Apple TV's.You didn't mention whether or not you authorized the new computer in iTunes. If not, do that and then sync the iPod. The iPod will recognize that this is a new computer and will ask you if you want to proceed - in this case, you want to do exactly that.
-
RSM2052 error after import Support Package SAPKW70022 in MSSQL Data Load
Hi;
I imported Support Package SAPKW70022 but after import data load from MSSQL gives error RSM2052.
How can I solve my problem.
Best Regards.Hi,
I think I have to stop extraction process in LBWE or R/3. Can anybody tell me how to stop extraction process.
Thx & Regds,
SGK -
Error after updating NuGet package installer
I am getting an error on my OdatService app after downloading the new nugget package in visual studio 2012
Nu Get Packages are missing form this solution Click Restore to restore form your online package sources.
When I click Restore
I get the error "An error occurred while trying to restore packages, Unable to find version 5.0.0 of package Microsoft.Data.Edm
How do correct this in VS 2012?
If I remove the Microsoft.Data.Edm from the references list in the project and add back the the Microsoft.Data.Edm 5.0 from reference manage list the reference is added but even after I add the ref it still shows the error in Vs2012. The Microsoft.Data.Edm
5.0.0 and the 5.2.0 are both available in the reference manage list.
Thanks for any help
Jon
Thank You Jon StrohHello,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Because the issue is related to NuGet, please consult your issue on this page:
http://nuget.codeplex.com/ through clicking ‘DISCUSSIONS’ or ‘ISSUES’ and starting a thread for better response.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Help with C03 error after moving!
I need some advice and help in what to do with my BT Vision.
I moved home about 1 week and a half ago and moved all my BT services to the new address. The new phone number is working fine and the broadband is now also working well, with no problems. However my BT Vision box doesn't work at all. When turned on it shows a C03 Error and says I need to wait for the activation date? Not sure what this means as I thought that as soon as broadband was working Vision would work.
At the weekend I called the helpline and the operator told me (after periods of long waits and apologies) that vision had been transfered to new line and he had to "escalate" the query as he was unable to resolve. Someone was supposed to call me in 24hr but no one did. I rebooted the hub and the box countless time already and same message appears.
I've been with BT for some years now and always have good service when things are set so keen to resolve this so I can keep on enjoying it. My partner is talking about getting Sky but I'm not so sure.
I have a old grey BT Vision Box and the black Hub, if that info helps!! Thank you for any help and advice you can give. Not sure what I can do more.Hello,
Your account hasnt been activated and QoS wont have been applied to your line.
Only thing you can do is send the mods and email:- http://bt.custhelp.com/app/contact_email/c/4951
Make sure you include your account number, name, address and details of the problem. They'll get it sorted in around 1 week and credit you for lost service. -
Error after moved jxl.jar library
Dear All,
I've a requirement to import data to db table from excel file. I followed the below link
https://blogs.oracle.com/prajkumar/entry/importing_data_from_excel_sheet
I moved all the class and xml files and registered in apss (OAFramework version 12.1.1).
My page is working fine in local but after deployed to the server i got the following error if i click the go button.
Error
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.classloader.util.AnnotatedNoClassDefFoundError, msg= Missing class: jxl.Workbook Dependent class: xxerp.oracle.apps.xxerp.uploadso.server.SaleOrderUploadAMImpl Loader: oacore.root:0.0.0 Code-Source: /d02/oracle/VIS/apps/apps_st/comn/java/classes/ Configuration: <library> in /d02/oracle/VIS/apps/apps_st/comn/webapps/oacore/ The missing class is not available from any code-source or loader in the system.;
I added the below in orion-applications.xml
<library path="/d02/oracle/VIS/apps/apps_st/comn/java/classes/xxerp/libraries/library_so_upload/jxl.jar" />
Thanks in advance,
SANHi all,
After lot of googling, I found a metalink having solution for this.
Metalink ID 433241.1
After followed this doc my prob has been resolved.
Thanks,
SAN
Maybe you are looking for
-
Change in Assignment Category gives error
FRM-40735 POST- UPDATE trigger raised unhandled exception ORA- 01403 I am getting the above error when i am trying to change the Assignment Category field of an employee from Junior Staff to Senior Staff. Navigation People> Enter & Maintain> (B)Assig
-
How to find out the serial number of a connected AP
Hi. We are using Cisco Prime Infrastructure Manager 2.0 My question is: Is there a possibility to find out the serial number of a connected AP? Regards Markus
-
I accidentally reformatted my mini including where the recovery drive is..so my option is clean install.when im trying to reformat my hd using win7 ultimate it is detected but i cannot install the os!!!! Primary check disk and memory test all passed.
-
1102w gives print error msg, but prints
I had an hp p1102w for quite some time and it perfectly fits our needs on our home wifi network. One of the features I use on a regular basis is printing double sided. About two months ago I started to get an error message "HP P1102 could not print
-
HT5467 Can you turn on location services remotely to find a missing phone?
Can you turn on location services remotely to find a missing phone?