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,
Deborah
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,
Deborah
Similar Messages
-
I have a working instance of a commercial product based on an Oracle database. I exported the main schema of the database. I then created a new database with identical tablespaces and users as the original. After importing the .dmp file I found that everything works fine with the exception of a single package body that will not compile due to errors. Unfortunately the code is wrapped so I am unable to view the errors. Considering I have identical tablespace and user characteristics between the two databases, and that I imported the entire main schema owner, would it be correct to assume that the errors in that package must therefore be due to missing objects of other schemas (that were not imported)?
Could be anything really.
- Rights and roles (are all users truely identical)
- Missing/invalid Objects
- Code inside the package (Maybe they check the patchlevel of your database? Or the server name) => Unlikly but possible.
Best thing would be to get support help from the vendor of the commercial product. -
Compile all invalid packages together + connect as sysdba only
Hi
I've installed a Ora 10.2, and imported a dump. This dump contained some users, a lot of tables and stored procs.
My first question: There is an imported user with I can connect as sysdba only. I can't connect as normal... it is problem because there is an application upper the db and I can't tell the applicataion that connect as sysdba. (it is only a sandbox for me...) What should I modify on this user to connect as normal user?
The second question: The schema (upper) contains lot of invalid packages. I have only the free Toad and I can't compile all of them only step by step... (I don't want do this step by step because there are about 300 packages...). How could I complile all of them e.g. from Sqlplus? Any other solution?
Thanks in advance!
Alexok, there is a user e.g. "xxxx"
I can connect with this user as sysdba only. "CONNECT xxxx/yyyy@db as sysdba". Without "as sysdba" I got "ORA-01017: invalid username/password; logon denied" So I can connect only as sysdba... but this is a simple user so I don't want to connect as sysdba... -
How to compile and run package programs in Java
Hi,
I want to know how to compile and run the package programs in Java using -d. instead of creating the package folder manually.
eg:
package Test;
class test1
public void disp()
//Any code;
I want to compile this without creating the folder ' Test ' manually. that is if we use -d with javac the Test folder will be created automatically. I need the format of -d
could anyone please help me.
Thanks in Advance ,
AmbikaMy program Test.java in F:\Tomcat5\webapps\Ambika\WEB-INF\Classes. I compiled in the format below. I got like this. What should I do for this? But yesterday I compiled like this only, It compiled and the folder com\cert\Test.class is created. Today again I compiled the pgm after deleting the already created folder 'com\cert', I got the error like this.
I've given my pgm and the thing I've got when I compiled it.
Test.java
package com.cert;
public class Test
public void display()
System.out.println("Hai");
F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>javac -d F:\Tomcat5\webapps\Ambika\WEB-INF\Classes\Test.java
javac: no source files
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
sed
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>
Plz help me.
thanks in advance
Ambika -
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 - -
How to compile class and package
I am trying to compile the following 3 files.
http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/ElGamal.java
http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/BinaryHeap.java
http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/DLP.java
I tried compiling them with a variety of ways but still cannot figure out the correct way of doing it.I finally figured out how to compile them. I had to change files so that I don't have to compile with a package.
Message was edited by:
webweaver -
How to Compile Sys invalid objects
Dear,
We have found one invalid object in our database which owner is SYS.
How i compile this objects it's OBJECT_TYPE is package_body.
Please suggest me if any..
Wting
Rajhello.
I run this script, but sys's objects again to be with erros:
OWNER OBJECT_NAME
SYS ALL_WORKSPACES
SYS DBA_OUTLINES
SYS DBA_OUTLINE_HINTS
SYS DBA_WORKSPACES
SYS DBA_WORKSPACE_SESSIONS
SYS KU$_OUTLINE_VIEW
SYS LOGOFF_PROC
SYS LT
SYS LTADM
SYS LTDDL
SYS LTDTRG
SYS LTPRIV
SYS LTRIC
SYS LTUTIL
SYS LT_CTX_PKG
SYS NO_VM_CREATE
SYS NO_VM_CREATE_PROC
SYS NO_VM_DROP
SYS NO_VM_DROP_PROC
SYS OUTLN_PKG
SYS OWM_DDL_PKG
SYS OWM_MIG_PKG
SYS OWM_REPUTIL
SYS SYS_LOGOFF
SYS UD_TRIGS
SYS USER_OUTLINES
SYS USER_OUTLINE_HINTS
SYS USER_WORKSPACES
SYS WM$WORKSPACE_SESSIONS_VIEW
SYS WM_DDL_UTIL
SYS WM_INSTALLATION
MDSYS ALL_GEOMETRY_COLUMNS
MDSYS ALL_SDO_GEOM_METADATA
MDSYS ALL_SDO_INDEX_INFO
MDSYS ALL_SDO_INDEX_METADATA
MDSYS ALL_SDO_LRS_METADATA
MDSYS ALL_SDO_MAPS
MDSYS ALL_SDO_STYLES
MDSYS ALL_SDO_THEMES
MDSYS DBA_GEOMETRY_COLUMNS
MDSYS DBA_SDO_GEOM_METADATA
MDSYS DBA_SDO_INDEX_INFO
MDSYS DBA_SDO_INDEX_METADATA
MDSYS DBA_SDO_LRS_METADATA
MDSYS DBA_SDO_MAPS
MDSYS DBA_SDO_STYLES
MDSYS DBA_SDO_THEMES
MDSYS GEODETIC_SRIDS
MDSYS MD2
MDSYS SDO_CATALOG
MDSYS SDO_GEOM_TRIG_DEL1
MDSYS SDO_GEOM_TRIG_INS1
MDSYS SDO_GEOM_TRIG_UPD1
MDSYS SDO_LRS_TRIG_DEL
MDSYS SDO_LRS_TRIG_INS
MDSYS SDO_LRS_TRIG_UPD
MDSYS SDO_META
MDSYS SDO_MIGRATE
MDSYS SDO_RELATEMASK_TABLE
MDSYS SDO_RELATE_MASK
MDSYS TRANSFORM_MAP
MDSYS USER_GEOMETRY_COLUMNS
MDSYS USER_SDO_GEOM_METADATA
MDSYS USER_SDO_INDEX_INFO
MDSYS USER_SDO_INDEX_METADATA
MDSYS USER_SDO_LRS_METADATA
MDSYS USER_SDO_MAPS
MDSYS USER_SDO_STYLES
MDSYS USER_SDO_THEMES
Can I help you? thanks.
Oracle9i Enterprise Edition Release 9.2.0.2.0 - Production -
How can i see the package body?
Hello.
what is the table name that sotres the package body?The table is user_source or dba_source. Make sure you order by
line when you select from it. -
How to compile all invalid objects in SQL Developer
Hi
I am used to PL\SQL Developer and currently I am testing SQL Developer (version 2.1). I have question where can I find in SQL Developer functionality (or how to invoke those functions) like:
1 ) To list all invalid objects and then compile them.
2) Invoke window similar to “Command window” in PL\Sql Developer
Thanks for help
GroxyCould I please revive this and ask how do I use UTL_RECOMP?
Also, I could not find a description of the icons in SQL Developer. Some procedures are shown with a green plus sign (I am guessing here since I can't make out what it is) on them and the ones that I right-click and compile have this green go away. Can you explain?
Thanks a lot. -
How to compile files in Packages
Hi ,
What is the command to compile the files in the package with the following structure.
/com/client/compute/*.java
/com/client/compute/DAO/*.java
/com/client/compute/DTO/*.java
Since there are sub directories the following command will give errors when files are referencing the classes in other directories.
javac /com/client/Compute/*.javaIf your code is split up into the following directories like so...
C:/myapp/source/com/client/compute/*.java
C:/myapp/source/com/client/compute/DAO/*.java
C:/myapp/source/com/client/compute/DTO/*.javathen you can open a command prompt to C:/myapp/source and run the following.
javac -classpath ./ com/client/compute/*.java com/client/compute/DAO/*.java com/client/compute/DTO/*.javaJust sepparate your packages with spaces.
If your classes need access to other libraries in Jar files you can add the libraries to the -classpath directive. For example say your classes require access to other classis in a jar file called C:/myapp/MyLib.jar
javac -classpath "./";"C:/myapp/MyLib.jar" com/client/compute/*.java com/client/compute/DAO/*.java com/client/compute/DTO/*.javaYou can sepparate multiple resource with a semi-colon.
-S- -
How to compile files in package and its subpackages at one time
I have package A , under A there are files and subpackages B,C,D, How can I complie files in A,B,C D packages with javac at one time besides using make. Thank you very much!
QiTry something like:javac -d <destination directory> directory1/*.java directory2/*.java directory3/*.java
-
Long compiled and vaild package body executes but shows errors
hello all,
First of all sorry that i am posting such a big post with all the code here...
I am new to debugging packegs,proc,fun..etc or as a matter of fact writing pl/sql...but here is the thing...the below package when execute it runs fine stating "PL/SQL procedure successfully completed" ...which says it has been compeleted fine....but the guy who executes its from the java side...said he is having problem...its give him some errors....see below
here is the thing which i get when i execute the package.
Edited by: S2K on Aug 8, 2009 11:27 AMThe error: ORA-01422: exact fetch returns more than requested number of rows
means that you have a implicit cursor in your code that is fetching more than one row, eg:
declare
num number;
begin
select 1 col1
into num
from (select * from dual
union all
select * from dual);
end;
Error at line 1
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at line 4You need to find out what parameters the Java developer was passing through and work out which one of your implicit cursors is returning more than one row.
It could be a data issue, or it could be that more than one row is expected for certain values and that this is ok. If it's the latter, then the code needs to be amended to cater for that situation. If it's the former, then the data needs correcting. -
How to compile all package body using sqlplus ?
hi all,
How to compile all package body using sqlplus ?
Please help.
Amydbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
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) -
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.
Maybe you are looking for
-
I compiled and booted into 2.6.28 and switched xorg.conf back to EXA. Ok, it worked a little bit better but it did not WOW me. So, I compiled by hand the latest intel driver and DAMN! very smooth in Compiz... "lightening fast" I don't have any 3d g
-
i dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me
-
Error when create a BP Contact
When user attempt to enter a contact person in CRM 7.0. After the account identification and user click on "Related" which took him to the "Create Contact Person" screen. A user entered contact person's information, clicked save. The user think misse
-
I'm making a script that adds "&fmt=22" (The YouTube high quality &addon), and I need to know what to do in applescript to relay the edited url (Example: www.youtube.com/watch?v=hLE0DpKnJsA&fmt=22) back to safari. Here's what I have already: Get curr
-
What is the correct icc profile for jpegs extracted from DNGs?
Are they always sRGB, or always something else? do they need an icc-profile assigned for colors to be interpreted properly? is the correct profile available as metadata that could be read using exiftool or such?