EXP-00097: Object type "string"."string" is not in a valid
state, type will not be exported

Answers were Sorted based on User's Feedback



EXP-00097: Object type "string"."string" is not in a valid state, type will not..

Answer / guest

Cause: The object type's status is invalid which may be
caused by a dependant type's modification (or removal)
without cascading the change.

Action: The type must be recompiled using ALTER TYPE COMPILE.

Please add more information about this Error

Is This Answer Correct ?    3 Yes 0 No

EXP-00097: Object type "string"."string" is not in a valid state, type will not..

Answer / mayur vora

1. Run following query:

select
'ALTER ' || OBJECT_TYPE || ' ' ||
OWNER || '.' || OBJECT_NAME || ' COMPILE;'
from
dba_objects
where
status = 'INVALID'
and
object_type in ('PACKAGE','FUNCTION','PROCEDURE','TABLE')



2. Now follow below block.

declare
cursor myCursor is select object_type, object_name
from SYS.USER_OBJECTS where status = 'INVALID'
order by 1, 2;
sqlString varchar2(100);
begin
for r1 in myCursor loop
begin
if r1.object_type = 'PACKAGE BODY' then
sqlString := 'alter PACKAGE '||r1.object_name||'
compile BODY';
elsif r1.object_type = 'TYPE BODY' then
sqlString := 'alter TYPE '||r1.object_name||'
compile BODY';
else
sqlString := 'alter '||r1.object_type||'
'||r1.object_name||' compile';
end if;
execute immediate sqlString;
dbms_output.put_line(r1.object_type||'
'||r1.object_name||' compiled successfully');
exception
when OTHERS then
dbms_output.put_line(SQLERRM||' on '||sqlString);
end;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle Errors Interview Questions

NNL-00003: memory exhausted

1 Answers  


DRG-13312: user CTXSYS does not own USER_LEXER stored procedure string

1 Answers  


ORA-31525: could not find column string in CDC change table string.string

1 Answers  


RMAN-08123: keep attributes for the datafile/controlfile copy are deleted

1 Answers  


ORA-23318: a ddl failure has occurred

1 Answers  


ORA-22053: overflow error

1 Answers  


ORA-37130: (XSCCOMP05) Cannot aggregate VARIABLE workspace object using AGGMAP workspace object because there is a PRECOMPUTE clause on a RELATION over the base of a COMPRESSED COMPOSITE.

1 Answers  


NID-00422: Change of database ID failed during validation - database is intact.

1 Answers  


SQL*Loader-00285: %s may be used only in conventional path.

1 Answers  


NNO-00808: Error connecting to region database

1 Answers  


ORA-04001: sequence parameter string must be an integer

1 Answers  


CLSR-00505: Empty event type is specified

1 Answers  


Categories