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
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 |
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 |
DRG-11726: phrase is not a preferred term
SQL*Loader-00913: Error fetching results of select statement (upi): [number]
ORA-27196: skgfpbk: sbtpcbackup returned error
ORA-12685: Native service required remotely but disabled locally
ORA-09872: TASDEF_CREATE: create failure in creating ?/dbs/tasdef@.dbf.
TNS-01407: Status: string Total handlers: string Relevant handlers: string
ORA-12031: cannot use primary key columns from materialized view log on "string"."string"
ORA-08207: ora_addr: cannot open address file
ORA-12214: TNS:missing local communities entry in TNSNAV.ORA
ORA-01339: logfile is too old
ORA-24775: cannot prepare or commit transaction with non-zero lock value
RMAN-06458: AS COPY option cannot be used with RECOVERY FILES, RECOVERY AREA or DB_RECOVERY_FILE_DEST