Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

TNS-00127: Missing Connection Manager name in TNSNET.ORA

1 Answers  


ORA-31629: unable to allocate additional memory

1 Answers  


ORA-28651: Primary index on IOTs can not be marked unusable

1 Answers  


ORA-23402: refresh was aborted because of conflicts caused by deferred txns

1 Answers  


ORA-29299: Invalid handle for piecewise compress or uncompress

1 Answers  


ORA-29359: invalid method name string specified for resource plan string

1 Answers  


ORA-38743: Time/SCN is in the future of the database.

1 Answers  


ORA-38426: attribute set assigned to an expression set may not be dropped

1 Answers  


ORA-12555: TNS:permission denied

1 Answers  


ORA-02095: specified initialization parameter cannot be modified

1 Answers  


DRG-12900: Operation:string for index: string has already been started

1 Answers  


PCC-02418: Array size mismatch between Object and REF host variables

1 Answers  


Categories