Pl sql packages getting invalid
Hi All,
I am working on a OLTP VLDB oracle 10g database. I have observed that many of pl sql packages get in invalid state. There are many cronjobs , dbms jobs running 24x7. How do I find out the root cause of this?
You can write Database DDL trigger and log DDL operation into your log table.
Then check which statement caused it:
CREATE OR REPLACE TRIGGER DDL_TRIG BEFORE
ON DATABASE
INSERT INTO YOUR_LOG_TABLE
SELECT ora_sysevent, ora_dict_obj_owner,
ora_dict_obj_name, NULL, USER, SYSDATE
FROM dual You should check if table which caused trigger to fire is dependency of your desired package like
where ora_dict_obj_name in (
select referenced_name from dba_dependencies where name IN(YOUR_INVALIDATED_PACK_LIST) and
referenced_type='TABLE';
)
Similar Messages
-
FND_PROFILE package gets invalid
Hi,
FND_PROFILE package gets invalid, so i did like as follows:
SQL> alter PACKAGE FND_PROFILE compile body;
Warning: Package Body altered with compilation errors.
SQL> show error
Errors for PACKAGE BODY FND_PROFILE:
LINE/COL ERROR
99/26 PL/SQL: Item ignored
99/50 PLS-00382: expression is of wrong type
118/2 PL/SQL: Statement ignored
118/6 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
190/2 PL/SQL: Statement ignored
190/6 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
339/2 PL/SQL: Statement ignored
LINE/COL ERROR
339/6 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
398/3 PL/SQL: Statement ignored
398/7 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
402/3 PL/SQL: Statement ignored
402/7 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
LINE/COL ERROR
1835/2 PL/SQL: Statement ignored
1835/6 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
2009/2 PL/SQL: Statement ignored
2009/6 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
2375/2 PL/SQL: Statement ignored
2375/6 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
LINE/COL ERROR
2402/2 PL/SQL: Statement ignored
2402/6 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
SQL>
So, could anybody suggest, what to do now and how to proceed to make this package valid ?Nitesh,
So, could you help me to know the source where i can find the valuable information related to this.To find the pls for package creation, you can also do the following in your appl_top.
-> Go to the product top/patch/115/sql
-> grep -i fnd_securit * | grep -i create
You'll get an output something like this
AFSCGRPB.pls:create or replace package body FND_SECURITY_GROUPS_PKG as
AFSCGRPS.pls:create or replace package FND_SECURITY_GROUPS_PKG as
AFSCUSV8.pls:CREATE OR REPLACE PACKAGE BODY fnd_security_pkg wrapped
AFSCUSVS.pls:CREATE OR REPLACE PACKAGE fnd_security_pkg AUTHID DEFINER AS
afpub.sql:CREATE SYNONYM FND_SECURITY_PKG FOR &1..FND_SECURITY_PKG;
afsecctx.sql:REM | Creates the fnd_security context and invalidates any obsolete
afsecctx.sql: execute immediate 'create context fnd_security using fnd_security_pkg';
In these you would need the pls related to FND_SECURITY which are AFSCUSV8.pls and AFSCUSVS.pls
-> sqlplus apps/apps @AFSCUSVS.pls (Spec)
-> sqlplus apps/apps @AFSCUSV8.pls (Body) -
Dear all,
In our environment, one package is getting invalid automatically ..
we are getting the error :
ORA-06508: PL/SQL: could not find program unit being called
This is happening regularly..no structural changes made to the package.. but the package is going into invalid state daily.. how to troubleshoot this ?
this question might sound silly.. but in case any of you might have experienced this kinda issue?
KaiAre you saying that if we call the time that a procedure in the package was last executed successfully Time 1 and the time that a procedure in the package was executed and generated the error Time 2 that there are no rows in DBA_OBJECTS with a LAST_DDL_TIME between Time 1 and Time 2?
Does the package rely on remote objects?
Justin -
Package gets invalidated seemingly at random
Hi, I am experiencing a problem whereby a PL/SQL package is valid for same time (and runs succesfully a few times) and then suddenly becomes invalid in DB. If I recompile package it works for some time and then again gets invalid.
Do you know what might cause such strange behavior.
Also, does anyone know a way of obtaining error information from DB that reports why a package was flagged as invalid?
Also, does anyone know how to obtain dependencies (both direct and indirect) for a package?
Thanks for your help, regards,
-JavierThanks a lot Gio for your help. I was asking how to onbtain dependencies just because of the reason you mention.
However if I run your query I get a dependency from the package body on the package. If I run the query on the package body (which is the one that gets flagged as invalid every once in a while) it does not return any dependency.
In fact there are quite a few tables accessed inside the package but the query does not return a dependency on them. Nevertheless those tables are not supposed to be altered, and this problem repeats every day which makes me think that is not the problem.
Thanks a lot,
Javier -
How to get changes of a custom PL/SQL package updated in ISG?
Hi All,
I need some help on how to change a custom PL/SQL package in ISG integration repository:
I already uploaded my custom PL/SQL package to the integration repositoy some time ago. Now I have made some changes to PL/SQL record/table types defined in the package (added some fields and removed some others). These changed record/table types are used by a procedure I already uploaded to the integration repository. When regenerating the WSDL for my PL/SQL package in integration repository I get an error that the wrapper for respective procedure can't be found. When checking up the SQL types that were automatically generated (by JPublisher) for corresponding PL/SQL types, these generated SQL types are invalid...
So it seems that in one case JPublisher generated an empty SQL type (with no attributes). In another case JPublisher generated the SQL type with old attribute list, so it didn't adopt the changes of corresponding PL/SQL type in the package...
Can anybody tell me how to get the changes of a cusotm PL/SQL package updated in ISG? Or is there any possibility to first remove a whole PL/SQL package from the ISG integration repository (and getting rid of all old automatically generated SQL types), so that I can newly upload my PL/SQL package afterwards?
Thanks
Konrad
Edited by: Konrad on 24.10.2011 10:51Thanks Daniel, for your reply...
(-> for info: I'm a colleague of Konrad...)
Yes, we used a higher version number - and the upload of iLDT file works fine...
But, the problem occured when generating the WSDL...
However, I think we have found an approach of how to get the changes of a custom PL/SQL package updated correctly in ISG:
1. Save a copy of PL/SQL package and then delete it in the database
2. Regenerate the WSDL for PL/SQL package in ISG (seems that all atutomatically generated JPub wrappers and SQL types are also deleted)
3. Restart all processes
4. Create the changed version of PL/SQL package in the database again
5. upload of iLDT
6. Regenerate the WSDL for PL/SQL package in ISG
Best Regards
Carolin -
Getting invalid packages when installing support for stored java objects
I am getting invalid packages notices when installing support for stored java objects in Forms 9i that can with the Oracle 9iDS Suite. In the post installation notes it says to locate a few SQL files, PLB files and a JAR file and run them. On executing the SQL package that will install the rest , I am logged in as SYSTEM as the instructions stated, I get an error when it tries to load the PLB files ( which are encrypted from Oracle). Any one else have this problem or know of a solution?
If you need more information please let me know and I will try to respond promptly.
Thanks
Chad LeathThe PLB package is called ORA_DE_REFLECTION. I forgot to mention this in the previous post.
-
How can i get the date of the last update of one PL/SQL package ?
Hello,
How can i get the date of the last update of a PL/SQL package
named MYPACKAGE ?
Thanks in advance ! ;-)to get the timestamp,last ddl time of object
select timestamp,last_ddl_time from user_objects
where object_name='<package name>';
this will give you last transaction time ,date of object -
Cannot install Photoshop Touch, get invalid package file
I have purchased the Photoshop Touch for phone on my Galaxy Note2 and haven't been able to install it since. It goes thru the install process, but at the end I get: ERROR PACKAGE FILE INVALID. I've gone thru this several times and it's very frustrating. Additionally, I have tried to search the forums and Google solutions, nothing is working. I've even chatted with and spoken with a couple of Adobe representatives...no success. I just keep getting referred bk to this site. Can anyone help me either get it downloaded or tell me how I can get a refund. #paidforanappIhaveyettobeabletouse
Please try the steps explained here:
http://www.android-advice.com/2012/fix-android-market-package-file-is-invalid/?utm_source= feedburner&utm_medium=feed&utm_campaign=Feed%3AAndroidAdviceTutorials%28AndroidAdvice%26+Tutorials%29
HTH -
Getting Invalid Descriptor Index (SQL ERROR) ERROR
Hi,
When i am running this java class then i am fetiching all the values from database table to the CSV file then i am getting the following database error.
import java.io.FileWriter; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import com.fidelity.ftg.ereviewg2.migration.connection.DatabaseConnection; import com.fidelity.ftg.ereviewg2.migration.vo.object.DmUserVO; import com.fidelity.ftg.ereviewg2.migration.vo.table.Iereview.ITMigFilenetAttachErrorVO; /** * @Organization: Fidelity Investments/FTG * @Project: eReview_DataConversion * @File: DatabseFetching.java * @Description: * @date: Oct 28, 2008 * @author: 197881 **/ /** * @author 197881 * */ public class DatabseFetching { /** * @param args */ public static void main(String[] args) throws SQLException, Exception { // TODO Auto-generated method stub DatabaseConnection con = new DatabaseConnection(); Connection connection = con.getConnection(); String AttachId=null; StringBuffer buffer = new StringBuffer(); String tMigFilenetAttachErrorColumnName[] = { ITMigFilenetAttachErrorVO.PIECE_ID, ITMigFilenetAttachErrorVO.PIECE_NUM, ITMigFilenetAttachErrorVO.PIECE_VER, ITMigFilenetAttachErrorVO.PIECE_INSTANCE, ITMigFilenetAttachErrorVO.ATTACH_ID, ITMigFilenetAttachErrorVO.ERROR_CD, ITMigFilenetAttachErrorVO.ERROR_REASON }; FileWriter createCsvFileObj = new FileWriter("D:/TCS/1.csv"); String SQL = "select * from t_mig_filenet_attach_error"; Statement stmt = connection.createStatement(); ResultSet resultObj = stmt.executeQuery(SQL); while (resultObj.next()) { AttachId=resultObj.getString("attach_id"); if(AttachId.equals("attacha")) { System.out.println("attach id is"+AttachId); for (int i = 0; i < tMigFilenetAttachErrorColumnName.length; i++) { buffer.append(resultObj.getString(tMigFilenetAttachErrorColumnName));
buffer.append(",");
buffer.append("falure");
buffer.append("\n");
createCsvFileObj.write(buffer.toString());
createCsvFileObj.close();
*{color:#ff0000}********************ERROR*************************{color}* *{color:#ff0000}{color:#000000}# Connected to Database: sun.jdbc.odbc.JdbcOdbcConnection@a62fc3* *attach id isattacha* *{color}Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index* * at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)* * at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)* * at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(Unknown Source)* * at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(Unknown Source)* * at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)* * at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)* * at DatabseFetching.main(DatabseFetching.java:58){color}*The columns from the ResultSet must be retrieved in the order in which they appear in the table. Say your table has columns Name, Address, City. Then you should retrieve them as:
ResultSet.getString("Name");
ResultSet.getString("Address");
ResultSet.getString("City");
Otherwise you will get an Invalid Descriptor Index.
Like this:
ResultSet.getString("Address");
ResultSet.getString("Name");
ResultSet.getString("City");
Invalid Descriptor Index -
Getting java.sql package.
Hi, I need to download the java.sql package in order to connect to an Oracle database. Pl. suggest me a url where I could the above. (Searching sun's website yeilded only the doc files, ".html", which are for reference purpose. I am working on Apache with Oracle 8i as my database installed on Oracle 9i Applciation Server)
Any suggestions or advise or clues would be a great source of help. Thankyou!
Amit.the java.sql package has been part of java since 1.1 at least. so it is fairly safe to assume that if you have the jdk you have java.sql
any decent zip/archive program can look in and extract the files in a a jar file.
you do not need to touch this however. what you need is to get the JDBC driver for Oracle.
you can get that here...
http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html -
PL/SQL packages containing DB Links suddenly becomes invalid
Hi all --
I was wondering in anyone has come accross the issue my data warehouse team has been experiencing with PL/SQL packages utilizing DB Links. We currently use db links to load some of the data from our transactional databases into the data warehouse tables. The packages once compiled remain valid for a short period of time and then suddenly become invalid. When attempting to recompile the package we receive ORA-00904 errors even though running the statement through SQL Plus works fine. We've tried dropping the database link and re-creating it, but the package still will not recompile. The only way to correct the issue is to shutdown and restart the database. The db links in question are from a 10G Release 2 database to a 8.1.7.4 database. Any insight would be helpful.We often had similar issues over dblinks between two 8.1.7.2 databases. The result was ORA 600 errors which could only be corrected by shutdown/re-start. Our DBAs eventually came up with flushing the shared pool, instead of the shutdown/re-start.
ALTER SYSTEM FLUSH SHARED_POOL; -
SQL Package not getting created
Hi,
We are in process of migrating out application from wl5.1/solaris/jdk1.2.2 to wl6.1/solaris/jdk1.3.
We are using SQL package due to performance reasons. The package definition was done
in the weblogic.properties file for 5.1 and we tried to do the same in 6.1 config.xml
file. We use AS400 as our DB. SQL packages are not created if I use wl6.1. Below
is the definition we used in xml file
WL5.1
weblogic.jdbc.connectionPool.eracDS=\
url=jdbc:as400:RARMS,\
driver=com.ibm.as400.access.AS400JDBCDriver,\
initialCapacity=30,\
maxCapacity=50,\
capacityIncrement=5,\
allowShrinking=true,\
shrinkPeriodMins=15,\
testTable=A4TEST,\
props=libraries=A4LIB;user=INTERNETDB;password=DBFIRST;lob threshold=1048578;extended
dynamic=true;package=WEBL51;package library=A4LIB
weblogic.allow.reserve.weblogic.jdbc.connectionPool.eracDS=everyone
weblogic.jdbc.TXDataSource.eracDS=eracDS
WL6.1
<JDBCConnectionPool CapacityIncrement="5"
DriverName="com.ibm.as400.access.AS400JDBCDriver"
InitialCapacity="5" MaxCapacity="30" Name="eracDS"
PreparedStatementCacheSize="0"
Properties="libraries=ELARMS8;lobthreshold=1048578;user=INTERNETDB;password=DBFIRST;package
library=ELARMS8;extended package=WEBL61" ShrinkingEnabled="false" Targets="server1dev"
URL="jdbc:as400:DEV"/>
<JDBCTxDataSource JNDIName="eracDS" Name="eracDS" PoolName="eracDS" Targets="server1dev"/>
Please let me know if I am missing anything.
Thanks
Krish.Krish wrote:
Hi,
We are in process of migrating out application from wl5.1/solaris/jdk1.2.2 to wl6.1/solaris/jdk1.3.
We are using SQL package due to performance reasons. The package definition was done
in the weblogic.properties file for 5.1 and we tried to do the same in 6.1 config.xml
file. We use AS400 as our DB. SQL packages are not created if I use wl6.1. Below
is the definition we used in xml file
WL5.1
weblogic.jdbc.connectionPool.eracDS=\
url=jdbc:as400:RARMS,\
driver=com.ibm.as400.access.AS400JDBCDriver,\
initialCapacity=30,\
maxCapacity=50,\
capacityIncrement=5,\
allowShrinking=true,\
shrinkPeriodMins=15,\
testTable=A4TEST,\
props=libraries=A4LIB;user=INTERNETDB;password=DBFIRST;lob threshold=1048578;extended
dynamic=true;package=WEBL51;package library=A4LIB
weblogic.allow.reserve.weblogic.jdbc.connectionPool.eracDS=everyone
weblogic.jdbc.TXDataSource.eracDS=eracDS
WL6.1
<JDBCConnectionPool CapacityIncrement="5"
DriverName="com.ibm.as400.access.AS400JDBCDriver"
InitialCapacity="5" MaxCapacity="30" Name="eracDS"
PreparedStatementCacheSize="0"
Properties="libraries=ELARMS8;lobthreshold=1048578;user=INTERNETDB;password=DBFIRST;package
library=ELARMS8;extended package=WEBL61" ShrinkingEnabled="false" Targets="server1dev"
URL="jdbc:as400:DEV"/>
<JDBCTxDataSource JNDIName="eracDS" Name="eracDS" PoolName="eracDS" Targets="server1dev"/>
Please let me know if I am missing anything.
Thanks
Krish.Well, the URL is different, and the properties aren't the same (missing some blanks in 'lob threshold'
etc.
and there's no test table...
Joe -
Starting Rman getting error PL/SQL package not current
I come across a problem. My server is windows 2003 and Oracle is 10g Release 2.
My previous DBA install Oracle 10g R1, 10gR2 and Oracle Data Warehouse Builder 10g on the same server at different Oracle_Home. When I came to this work. I tried to use Rman for backup. When i went to server command line, type Rman, Rman target /. the error message was:
PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.02 in TARGET database is not current and PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.02 in TARGET database is not current.
I found the solution from oracle_metalink ( Note:429499.1). I followed note to use Oracle Universal Installer to move the 10.2.0.2 home. Then I can start Rman. Then I fixed some other small errors. I came back to loginto Rman. The system told me the same errors. I used Oracle Installer to check the Oracle_Home. Only two home exist. One is 10gR2 10.2.0.2. Another one is data warehouse builder with version 10.2.0.3. So it seems that 10gR2 Home is not current. How can I remove this Oracle_Home? If I remove it off, database will be dead. So if I remove oracle data warehouse builder, will it make two PL/SQL package for Rman current? or I have to remove DW builder first, then patch 10gR2 Home to 10.2.0.3? Please help. Thanks.damorgan:
No. it is not related to oracle_home and oracle_sid. It is related to PATH setting. I have solved the problem. Thanks for your comment. -
Can't register a database in RMAN catalog (PL/SQL package not current)
Hi RMAN experts. I'm trying to register a 10.2.0.1.0 database into a 10.2.0.5.0 RMAN catalog but I get the following error (Note: following was done on the rman server machine, ORACLE_SID=rman, target database is remote)
$ rman catalog rman/rman target sys@MPOWER
Recovery Manager: Release 10.2.0.5.0 - Production on Sat Apr 30 12:54:16 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.00 in TARGET database is not current
PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.00 in TARGET database is not current
connected to target database: MPOWER (DBID=**********)
connected to recovery catalog database
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
RMAN-00571: ===============
RMAN-00569: =========ERROR MESSAGE STACK FOLLOWS
RMAN-00571: =================
RMAN-03008: error while performing automatic resync of recovery catalog
ORA-00904: : invalid identifier
Basically the error says that there are two packages in the TARGET database (SYS.DBMS_BACKUP_RESTORE and SYS.DBMS_RCVMAN) which are not compatible with the RMAN catalog.
I cannot register the target database into the RMAN catalog.
I highly appretiate if you give me an advice on this.
Regardsuser13064912 wrote:
Hi RMAN experts. I'm trying to register a 10.2.0.1.0 database into a 10.2.0.5.0 RMAN catalog but I get the following error (Note: following was done on the rman server machine, ORACLE_SID=rman, target database is remote)
$ rman catalog rman/rman target sys@MPOWER
Recovery Manager: Release 10.2.0.5.0 - Production on Sat Apr 30 12:54:16 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.00 in TARGET database is not current
PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.00 in TARGET database is not current
connected to target database: MPOWER (DBID=**********)
connected to recovery catalog database
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
RMAN-00571: ===============
RMAN-00569: =========ERROR MESSAGE STACK FOLLOWS
RMAN-00571: =================
RMAN-03008: error while performing automatic resync of recovery catalog
ORA-00904: : invalid identifier
Basically the error says that there are two packages in the TARGET database (SYS.DBMS_BACKUP_RESTORE and SYS.DBMS_RCVMAN) which are not compatible with the RMAN catalog.
I cannot register the target database into the RMAN catalog.
I highly appretiate if you give me an advice on this.
RegardsCould you try to run the rman at the target database server (MPOWER), instead of rman catalog server ant try to register your database?
Your rman client is higher than your target server. That could be the problem.
Best Regards,
Gokhan
If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks -
Calling pl/sql package on different database in process flow
Hi there
Have a process flow which calls procedure on different database. This procedure truncates a table on the remote database.
Please could somebody confirm we would need to set up dblinks from the owf_mgr schema to the remote database.
New to wokflow - am i Correct in assuming the process flows run on the owf_mgr
rather than the control center owbrt.
Many ThanksHi there,
Thanks for the reply.
If my understanding is correct I could have a procedure as follows.
hkeeping.trunc_table@dblinkname('TABLE_NAME');
Is this the case?
Another alternative was to call directly the transformation in the process flow
e.g. we have pl/sql package on remote database whioch truncates the remote table.
When we try this with same procedure on same databas as owb user exists on then works fine.
However on remote database get message below. Does this mean anything to you? How could we sort this?
RPE-01003: An infrastructure condition prevented the request from completing.
TEMP_PLOW:TRUNC_TABLE
Error
RPE-01038: Failed to evaluate expression null. Please modify the expression, redeploy and retry again.
TEMP_PLOW:TRUNC_TABLE
Error
RPE-01003: An infrastructure condition prevented the request from completing.
TEMP_PLOW:TRUNC_TABLE
Error
RPE-02226: Cannot test Control Center user REMOTEUSERNAME. This user must match the login credentials of the deployment location.
TEMP_PLOW:TRUNC_TABLE
Error
ORA-01937: missing or invalid role name
Many Thanks
Maybe you are looking for
-
AP Credit memo UDF on check stub
Hi, Having a real issue - I am trying to get a UDF from AP credit memos to print on the check stub. When I add a field I cannot select the ORPC table from the database where the UDF is populated. Credit memos appear on the check stub but is there a w
-
Hi , I am using Basic type ORDERS05 , Message Type ORDERS and for processing FM IDOC_INPUT_ORDERS. I expect the sales orders to give the same data when the IDOC's are the same and the customer master data is the same, but we have a concern with some
-
I forgot the answers for the security questions, so i'm not able to purchase any thing from apple store. What can i do?
-
Does anyone know where the Adobe Updater app moved to in SL?
I updated to Snow Leopard after cleaning up my 10.5.8 installation. I did not install CS4 in SL, it was already installed. Today I noticed that the updater app that is usually in my applications>Utilities folder is gone. There are still folders in th
-
New shuffle will not work usb mode in car
new shuffle has USB plug as does my Sony car stereo but does not work. Stereo comes up with not supported. Works with auxillary cable.