DBMS_METADATA Package Body won't compile
I get a PLS-00103 error when attempting to complile the package body for SYS.DBMS_METADATA. The body hasn't been modified so I'm not sure where to look.
Or,
Does anyone know where in a script I can find the line that created this package and body in the first place?
Similar Messages
-
Package body does not compile in Object Browser
Hi there,
I am trying to compile a package body using the Apex Object Browser. However, when I click the "Compile" button no message is displayed in the box above the package body code. I reduced the amount of code by removing comments and extra carriage returns and it then compiled ie the message "PL/SQL code successfully compiled (18:35:55) " was displayed. After trial and error I found that by adding just one character to the end of a comment line would cause this problem and by removing it the problem would dis-appear.
I raised this issue back on 19th June, and sspadafo responded by suggesting that I upgrade from Apex 2.1 to Apex 3.2. (Thanks by the way). This I have now done but the problem is still occurring. Is there some parameter that I have to increase in order to compile packages greater than a couple of kilobytes in size?
Database is 10.2 XE running on Windows Vista Home Premium.
Thanks.
John.What would you say is a large package that sometimes causes the compilation to fail? For example, in excess of 10000 lines of code.
I've just tried a package with the minimal amount of code, with as many comments as required to demonstrate the problem as follows:
Note: The last comment is on line number 108!
create or replace package body "TEST_PACKAGE" is
--Comments comments comments comments comments
--Comments comments comments comments comments
--Comments comments comments comments comments
--Comments comments comments comments comments
--Comments comm...
... comments comments comments
--Comments comments comments comments comments
--Comments comments comments comments commen
procedure TEST_PROC
as
begin
null; /* insert procedure code */
end TEST_PROC;
end "TEST_PACKAGE";
{end code}
You will notice that the last comment line is truncated. The above compiles everytime, but by adding one more character to the last comment line will cause it not to compile everytime. Downloading the above to disk gives a size of 5134 bytes, which is twice the size of the other package, which has a little more code, that I was trying to compile. When I say a "a little more code", I mean two procedures and one function of approximately 20 lines each!
Oh well! Looks like I'll have to give SQLDeveloper a try as I don't fancy going through the "edit file/action file" loop in SQL*Plus or the "submit script/wait for results/examine results" loop in SQL Scripts.
(For info, I am using Internet Explorer 7)
Thanks. -
WB_RT_PROFILE_SERVICE package body does not compile
Hi,
When recompiling the WB_RT_PROFILE_SERVICE package body I get following messages:
Compilation errors for PACKAGE BODY REP_OWNER.WB_RT_PROFILE_SERVICE
#13#10Error: PLS-00201: identifier 'WB_RT_DP_FK' must be declared
Line: 1062
#13#10Error: PL/SQL: Statement ignored
Line: 1062
#13#10Error: PL/SQL: ORA-00904: "CONSTRAINT_ID": invalid identifier
Line: 2004
#13#10Error: PL/SQL: SQL Statement ignored
Line: 2004
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2009
#13#10Error: PL/SQL: Statement ignored
Line: 2009
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2032
#13#10Error: PL/SQL: Statement ignored
Line: 2032
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2033
#13#10Error: PL/SQL: Statement ignored
Line: 2033
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2034
#13#10Error: PL/SQL: Statement ignored
Line: 2034
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2035
#13#10Error: PL/SQL: Statement ignored
Line: 2035
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2036
#13#10Error: PL/SQL: Statement ignored
Line: 2036
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2037
#13#10Error: PL/SQL: Statement ignored
Line: 2037
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2038
#13#10Error: PL/SQL: Statement ignored
Line: 2038
As far as I am aware of, no one touched any code.
Does anyone know how to correct this?
Does this prevent deploying objects.
Thanks in advance,
Regards,
ReneFixed this way:
Altered the script:
• Based on Wb_rt_profile_se.sql, created a drop_wb_rt_profile_se_fixed.sql to drop everything created by wb_rt_profile_se.sql.
• Based on Wb_rt_profile.sql, create wb_rt_profile_fixed.sql to remove partitioning.
What happened seemed to be:
• Wb_rt_profile_se.sql was run during the installation.
• Then wb_rt_profile_service.sql referenced objects created by wb_rt_profile.sql, or there was no wb_rt_prifile_service_se.sql.
Run drop_wb_rt_profile_se_fixed.sql.
Then run Wb_rt_profile_fixed.sql
Recompile all objects.
OK. -
Help required in compilation of package body.....
Hi ..
While taking the export i encounter the error message..
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
EXP-00056: ORACLE error 6550 encountered
ORA-06550: line 1, column 26:
PLS-00201: identifier 'XDB.DBMS_XDBUTIL_INT' must be declared
ORA-06550: line 1, column 14:
PL/SQL: Statement ignored
EXP-00056: ORACLE error 6550 encountered
ORA-06550: line 1, column 26:
PLS-00201: identifier 'XDB.DBMS_XDBUTIL_INT' must be declared
ORA-06550: line 1, column 14:
PL/SQL: Statement ignored
EXP-00000: Export terminated unsuccessfully..
SELECT status,object_id,object_type,owner,object_name
FROM dba_objects
WHERE object_name = 'DBMS_XDBUTIL_INT';
gives the output as...
status object type owner object_name
valid synonym public DBMS_XDBUTIL_INT
valid package xdb DBMS_XDBUTIL_INT
invalid package body xdb DBMS_XDBUTIL_INT
when i try to compile the invalid object...
SQL> alter package XDB.DBMS_XDBUTIL_INT COMPILE BODY;
Warning: Package Body altered with compilation errors.
SQL> sho err
Errors for PACKAGE BODY XDB.DBMS_XDBUTIL_INT:
LINE/COL ERROR
61/7 PL/SQL: Statement ignored
61/17 PLS-00306: wrong number or types of arguments in call to
'IS_HIERARCHY_ENABLED_INTERNAL'
74/7 PL/SQL: Statement ignored
74/29 PLS-00302: component 'GENERATE_TRGNM' must be declared
108/9 PL/SQL: Statement ignored
108/37 PLS-00302: component 'TRUNCATE_NAME' must be declared
123/7 PLS-00201: identifier 'SYS.DBMS_SYS_SQL' must be declared
123/7 PL/SQL: Statement ignored
135/9 PL/SQL: Statement ignored
LINE/COL ERROR
135/37 PLS-00302: component 'TRUNCATE_NAME' must be declared
153/9 PL/SQL: Statement ignored
153/33 PLS-00302: component 'TRUNCATE_NAME' must be declared
168/7 PLS-00201: identifier 'SYS.DBMS_SYS_SQL' must be declared
168/7 PL/SQL: Statement ignored
181/9 PL/SQL: Statement ignored
181/33 PLS-00302: component 'TRUNCATE_NAME' must be declared
Since the code is wrapped .. i cant do anything.. needs ur help.
sorry for explaining in such a detail...
Message was edited by:
437022Hi,
In side the Package Body,
a) invalid arguments for IS_HIERARCHY_ENABLED_INTERNAL
b) invalid components GENERATE_TRGNM, etc.
First, you need to correct the above errors and then
try to compile the Package Body
Regards,
Sailaja -
SQL*Developer 3EA1 - Not Compiling package Body
Don't know if this is best place to post this, if not tell me where.
In some packages i'm getting: Error: ORA-06550: linha 1, coluna 64:PLS-00172: literal de cadeia de caracteres demasiado extenso; Sorry about the portuguese error message but it's cpopy paste from compiler log.
The strange about this is that the package is compiling with no errors on Version 2.1.1.64 and also on others editors. In both packages i had this was after formatting the code.
So far is the only bug i got, keep on the good work.
António CunhaJust tried from pl/sql node. The package body does not compile from there either. The issue seems to be the size of the package. The package size is 35,000 characters and spaces. I can remove any combination of source lines to get it down to 32,000 characters and spaces and it will compile.
Edited by: dagtech on Oct 21, 2010 9:34 AM -
hello. i ran in to little issue today. After patch 13839550 was applied to one of our test enviroments, we get one invalid package body. but when i try to compile it shows warrning!
SQL> alter package APPS.AP_ACCTG_DATA_FIX_PKG compile body;
Warning: Package Body altered with compilation errors.
SQL>
SQL> show err
Errors for PACKAGE BODY APPS.AP_ACCTG_DATA_FIX_PKG:
LINE/COL ERROR
3899/3 PL/SQL: SQL Statement ignored
3899/3 PLS-00394: wrong number of values in the INTO list of a FETCH
statement
Could you please explain what should i do?
Database - 11.2.0
eBS - 12.1
Linux x86
Thxi dont understand how can ichange something here?In this case, you can't.
If this is one of the standard packages built into an Oracle Apps database, you need to log a tar/sr with Oracle support. (which will probably result in more patches) -
How to compile HTMLDB_SITE_ADMIN_PRIVS invalid package body?
Hi,
I am trying to grant HTMLDB Administrator privilege to assign the other Oracle default schemas to workspaces by executing the following procedure.
SQL> EXEC HTMLDB_SITE_ADMIN_PRIVS.UNRESTRICT_SCHEMA(p_schema => 'SYSTEM');
However, the package body is corrupted. As the package body is wrapped, I cannot compile it manually.
FLOWS_020000@PROD> ALTER PACKAGE HTMLDB_SITE_ADMIN_PRIVS COMPILE BODY;
Warning: Package Body altered with compilation errors.
FLOWS_020000@pPROD> SHOW ERRORS;
Errors for PACKAGE BODY HTMLDB_SITE_ADMIN_PRIVS:
LINE/COL ERROR
0/0 PLS-00753: malformed or corrupted wrapped unit
I'd greatly appreciate if you can provide any suggestion or advice for me to compile or reload this wrapped package body.
Thanks,
DeborahHi,
I am trying to grant HTMLDB Administrator privilege to assign the other Oracle default schemas to workspaces by executing the following procedure.
SQL> EXEC HTMLDB_SITE_ADMIN_PRIVS.UNRESTRICT_SCHEMA(p_schema => 'SYSTEM');
However, the package body is corrupted. As the package body is wrapped, I cannot compile it manually.
FLOWS_020000@PROD> ALTER PACKAGE HTMLDB_SITE_ADMIN_PRIVS COMPILE BODY;
Warning: Package Body altered with compilation errors.
FLOWS_020000@pPROD> SHOW ERRORS;
Errors for PACKAGE BODY HTMLDB_SITE_ADMIN_PRIVS:
LINE/COL ERROR
0/0 PLS-00753: malformed or corrupted wrapped unit
I'd greatly appreciate if you can provide any suggestion or advice for me to compile or reload this wrapped package body.
Thanks,
Deborah -
Apex new installation - HTP package body has errors
I installed apex on 10G. When i try to access the apex page, i get the following errors in log:
[Sat Oct 28 08:39:25 2006] [error] [client 192.168.1.90] [ecid: 1162049964:156.153.112.151:9580:0:9,0] mod_plsql: /pls/apex/apex HTTP-404 ORA-04063: package body "SYS.HTP" has errors\nORA-06508: PL/SQL: could not find program unit being called: "SYS.HTP"\nORA-06512: at line 7\n
When i recompile HTP package body, i get errors:
SQL> alter package htp compile body;
Warning: Package Body altered with compilation errors.
SQL> sho errors
Errors for PACKAGE BODY HTP:
LINE/COL ERROR
14/11 PLS-00323: subprogram or cursor 'TITLE' is declared in a package
specification and must be defined in the package body
15/11 PLS-00323: subprogram or cursor 'HTITLE' is declared in a package
specification and must be defined in the package body
1691/7 PL/SQL: Statement ignored
1691/7 PLS-00307: too many declarations of 'PRINT' match this call
1694/7 PL/SQL: Statement ignored
1694/7 PLS-00307: too many declarations of 'PRINT' match this call
1697/7 PL/SQL: Statement ignored
1697/7 PLS-00307: too many declarations of 'PRN' match this call
1700/7 PL/SQL: Statement ignored
1700/7 PLS-00307: too many declarations of 'PRN' match this call
1703/7 PL/SQL: Statement ignored
1703/7 PLS-00307: too many declarations of 'PRINT' match this call
1706/7 PL/SQL: Statement ignored
1706/7 PLS-00307: too many declarations of 'PRINT' match this call
1709/7 PL/SQL: Statement ignored
1709/7 PLS-00307: too many declarations of 'P' match this call
1712/7 PL/SQL: Statement ignored
1712/7 PLS-00307: too many declarations of 'P' match this call
1715/7 PL/SQL: Statement ignored
1715/7 PLS-00307: too many declarations of 'P' match this call
Any ideas...Please tell us your first name and update your forum profile with it to help us. Also, change your handle to something more reader-friendly. Thanks.
If your imported applications are set up to use some kind of SSO authenticaiton and you haven't provided for that in your environment then you'll need to change those applications' authentication scheme to something you can deal with.
Scott -
Errors for PACKAGE BODY WWV_FLOW_CUSTOM_AUTH_SSO
Hi All,
Running the below package so I can configure SSO...running into the below error.
Any help is appreciated
SQL> @custom_auth_sso_902.plb;
...wwv_flow_custom_auth_sso
Warning: Package Body created with compilation errors.
Errors for PACKAGE BODY WWV_FLOW_CUSTOM_AUTH_SSO:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
1/14 PLS-00304: cannot compile body of 'WWV_FLOW_CUSTOM_AUTH_SSO'
without its specificationYou need to ask Apex related questions in the Apex forum.
Include the 4 digit Oracle and Apex versions you are using when you post your problem.
I assume that you have read how to implement SSO for Apex applications to be partner applications for Oracle App Server single sign-on authentication? If not, I suggest that you search http://tahiti.oracle.com for the relevant instructions. (cannot recall the exact manual reference - I did this 3 or 4 years ago myself) -
Error! Package Body Creating
hi, i am trying to setup DBMS_PROFILER package with sqlplus by typing :
"@E:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\profload.sql"
after, i've typed, this results is displayed :
SQL> @E:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\profload.sql
Package created
Grant succeeded
Synonym created
Library created
Warning: Package body created with compilation errors
Testing for correct installation
PACKAGE BODY sys.DBMS_PROFILER - missing or invalid
PL/SQL procedure successfully completed
So, as expected, when i trying to invoke start_profiler method, this errors would be appeared :
SQL> exec dbms_profiler.start_profiler('Hello');
begin dbms_profiler.start_profiler('Hello'); end;
ORA-04063: package body "SYS.DBMS_PROFILER" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_PROFILER"
ORA-06512: at line 2
SQL>
so, how can i fix this problem?
thanx for responsesim using oracle xe 10.0.2.0, and i've logined as SYSDBA.
i think that there is another problem. may be my profload.sql is broken. Is it possible?
SQL> @E:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\profload.sql
Package created
Grant succeeded
Synonym created
Library created
Warning: Package body created with compilation errors
Testing for correct installation
PACKAGE BODY sys.DBMS_PROFILER - missing or invalid
PL/SQL procedure successfully completed
i couldnt find any solution yet. -
Invalid package body for flows_010500 schema
The following package body will not compile, I ran the utlprp.sql script to recompile as sysdba and they still compile with errors. Is this the schema for version 1.5 and no loner needed if we are using 1.6 htmldb? if so can the flows_010500 be dropped?
wwv_execute_immediate
wwv_flow_audit
wwv_flow_builder
wwv_flow_collection
wwv_flow_disp_page_plugs
wwv_flow_imp_item
wwv_flow_item
wwv_flow_load_data
wwv_flow_query
wwv_flow_svg
wwv_flow_svg
wwv_flow_sw_api
wwv_flow_util
wwv_flow_temp
wwv_flow_utilities
wwv_flow_upgrade
wwv_flow_wizard_api
wwv_render_calendar2
wwv_render_chart2
wwv_render_report3Janice,
If you have installed 1.6 and upgraded your 1.5 applications, you technically no longer need the FLOWS_010500 schema, and you can drop it.
To be super conservative, you can take an export of it before dropping it, should you find the extremely unlike scenario where you would need to revert back to 1.5.
Thanks,
- Scott - -
ORA-04063: package body "SYS.INITJVMAUX" has errors
Hi,
I am upgrading the database from 9.2.0.1 to 9.2.0.6 on microsoft windows xp version 2002
Following the readme of the patch 3948480 Oracle9i Patch Set Notes Release 2 (9.2.0.6.0) Patch Set 5 for Windows (32-Bit)
When doing the Postinstallation Tasks step 8.2.2 Upgrade the Database step 6 running the catpatch.sql script getting the following error in the log file
=====================================================
Warning: Package Body created with compilation errors.
Errors for PACKAGE BODY INITJVMAUX:
LINE/COL ERROR
23/1 PL/SQL: Statement ignored
23/19 PLS-00201: identifier 'DBMS_ASSERT.NOOP' must be declared
84/4 PL/SQL: Statement ignored
84/22 PLS-00201: identifier 'DBMS_ASSERT.NOOP' must be declared
call initjvmaux.drp('drop table java$rmjvm$aux')
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04063: package body "SYS.INITJVMAUX" has errors
==========================================================
Regards,Check out status of components from dba_registry. In case you are not using JVM in your database and only java component is invalid, then you can ignore the error. Else you will be required to load java manually. Check metalink for same,
-Amit
http://askoracledba.wordpress.com -
Loosing Package Body after Save As to file
Hi,
loosing File and Package Body in
after Compiling a package body, I've tried to save this body to file via Save As.
(I've changed the directory and accepted the default filename). The file already exits in this directory, so I've accepted the overwrite dialog box.
Then the Package Body was removed from Database (not shown in the list of packages - also after several refreshs and filter changes) and the saved file contains only
CREATE OR REPLACE PACKAGE BODY
NULL
What I've done wrong?
MatthiasWe need a few more details to replicate. Are you using 1.0.0.14.67 and which db version are you running against.
Then, was this an existing package body or one you were just creating. If just creating, did you already have a package spec and were creating the body? Did you do a right-click 'New Package Body'? If you compiled code, it would go into the database. I can't imagine that a Save As could possible drop that code.
-- Sharon -
Hi All,
I am getting the following errors when I am trying to connect with datapump.My db is 10g and os is linux.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-31626: job does not exist
ORA-04063: package body "SYS.DBMS_INTERNAL_LOGSTDBY" has errors
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at "SYS.DBMS_LOGSTDBY", line 24
ORA-06512: at "SYS.KUPV$FT", line 676
ORA-04063: package body "SYS.DBMS_INTERNAL_LOGSTDBY" has errors
ORA-06508: PL/SQL: could not find program unit being called
When I tried to compile this package I am getting the following error
SQL> alter package DBMS_INTERNAL_LOGSTDBY compile body;
Warning: Package Body altered with compilation errors.
SQL> show error
Errors for PACKAGE BODY DBMS_INTERNAL_LOGSTDBY:
LINE/COL ERROR
1405/4 PL/SQL: SQL Statement ignored
1412/38 PL/SQL: ORA-00904: "SQLTEXT": invalid identifier
1486/4 PL/SQL: SQL Statement ignored
1564/7 PL/SQL: ORA-00904: "DBID": invalid identifier
1751/2 PL/SQL: SQL Statement ignored
1870/7 PL/SQL: ORA-00904: "DBID": invalid identifier
Can anyony suggest/guide me how to resolve the issue.
Thanks in advanceSQL> SELECT OBJECT_TYPE,OBJECT_NAME FROM DBA_OBJECTS
2 WHERE OWNER='SYS' AND STATUS<>'VALID';
OBJECT_TYPE OBJECT_NAME
VIEW DBA_COMMON_AUDIT_TRAIL
PACKAGE BODY DBMS_INTERNAL_LOGSTDBY
PACKAGE BODY DBMS_REGISTRY_SYS
Thanks -
Package specification and must be defined in the package body
Hi All
While creating bellow Package, following error occured. Plese guide me.
SQL> ;
1 create or replace PACKAGE Fresh_Movement IS
2 Procedure Opening_cx (P_Yeay Number,p_Week NUmber);
3* END Fresh_Movement;
SQL> /
Package created.
CREATE OR REPLACE PACKAGE BODY Fresh_Movement IS
Procedure Opening_Cx (pYear Number, pWeek in number) Is
Cursor Cx_nCou Is Select C.LOCATION_KEY,NVL(C.CUSTOMER_CATEGORY_FRESH,'X') Category,Count(C.CUSTOMER_CATEGORY_FRESH)nCou
From Customers C
Where Trunc(C.Start_date) <= ( Select Trunc(max(END_DATE)) From CUSTOMER_CALENDAR
where ALMARAI_YEAR = pYear and ALMARAI_WEEK= pWeek - 1 )
AND Active = 'Y'
Group by C.LOCATION_KEY,C.CUSTOMER_CATEGORY_FRESH
Order by 1,2;
Begin
For Tmp_rec1 In Cx_nCou Loop
Insert Into Trading_fresh_Movement (YEAR,WEEK,LOCATION_KEY,CX_CATEGORY,COUNT,COLUMN_TYPE,SEQ )
Values (pYear,pWeek,Tmp_rec1.LOCATION_KEY,Tmp_rec1.Category,Tmp_Rec1.nCou,'OPN',1);
End Loop;
Commit;
End Opening_Cx;
END;
Warning: Package Body created with compilation errors.
SQL> show error
Errors for PACKAGE BODY FRESH_MOVEMENT:
LINE/COL ERROR
2/12 PLS-00323: subprogram or cursor 'OPENING_CX' is declared in a
package specification and must be defined in the package body
SQL>The signature of the procedure in the specification and in the body must be the same. This includes the name of the parameters.
Change the specification to
create or replace PACKAGE Fresh_Movement IS
Procedure Opening_Cx (pYear Number, pWeek in number);
END Fresh_Movement;
/
Maybe you are looking for
-
Hi, the last few times i have tried to sync my iPhone 4 to my itunes it won't work. I plug my phone into my computer, to sync any new pictures i have taken or add my new music i have bought on my phone, and hit sync. It appears to start syncing then
-
CD burner does not accept iPhone3S generated video, though exported/compressed into MP4 file. Wrong burner program? Or other export file?
-
This question was posted in response to the following article: http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128fc240122-7ff2.html
-
Hello All - Excited about the new zoom tool. Im having a particualr issue it seems though, I want to be able to highlight areas and use the point to captions on top of the zoom window. The zoom window even after adjust the layer/object order seems to
-
MBP shuts down suddenly on battery
I have a 17" MBP 2.4 GHz Intel Core 2 Duo. In the last week or two, I have had the laptop shut down, bang, no warning, gone, while on battery. The battery is around 40% charged when this happens. Under Power in About this Mac I have Model Information