Ufter the upgrade database Oracle 11g | Invalid Java Class Objects


Issue: Java Class/Classes became INVALID after the upgrade of the database
Solution: First Compile and then resolve the Java Classes by using the below command.
ALTER JAVA SOURCE "OWNER"."OBJECT_NAME" COMPILE;
ALTER JAVA CLASS "OWNER"."OBJECT_NAME" RESOLVE;
Example:
SQL> select owner , object_name, object_type from dba_objects where status='INVALID';
OWNER OBJECT_NAME OBJECT_TYPE
 ----------- ----------------------- -----------
 TEST TestStringTokenizer JAVA CLASS
 TEST TestStringTokenizer JAVA SOURCE
SQL> ALTER JAVA SOURCE "TEST"."TestStringTokenizer" COMPILE;
 Java altered.
SQL> ALTER JAVA CLASS "TEST"."TestStringTokenizer" RESOLVE;
 Java altered.
SQL> select owner , object_name, object_type from dba_objects where status='INVALID';
 no rows selected
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: