Home » RDBMS Server » Server Utilities » IMP-00041: Warning: object created with compilation warnings
IMP-00041: Warning: object created with compilation warnings [message #461549] Fri, 18 June 2010 14:08 Go to next message
sus_dreamland
Messages: 2
Registered: June 2010
Junior Member
For the export and import I am doing teh following steps:

1.Export the tablse space from the test machine where the whole stack is created

exp system/password@orcl file="data/OracleDump/arsystem.dmp" OWNER="ARADMIN";

2.Following steps to import: These steps followed by installer before it imports the tablespace on the destination machine

• CREATE TEMPORARY TABLESPACE ARTMPSPC TEMPFILE '/data/ORACLE/DATABASES/ORCL/artmp' SIZE 250M REUSE AUTOEXTEND ON

• CREATE TABLESPACE ARSYSTEM DATAFILE '/data/ORACLE/DATABASES/ORCL/ARSys' SIZE 7000M REUSE AUTOEXTEND ON
• CREATE USER ARADMIN IDENTIFIED BY AR#Admin# DEFAULT TABLESPACE ARSYSTEM TEMPORARY TABLESPACE ARTMPSPC QUOTA UNLIMITED ON ARSYSTEM
• CREATE ROLE ARADMINROLE NOT IDENTIFIED
• GRANT ARADMINROLE TO ARADMIN

• GRANT ALTER SESSION, CREATE CLUSTER, CREATE DATABASE LINK, CREATE SEQUENCE, CREATE SESSION, CREATE SYNONYM, CREATE TABLE, CREATE VIEW, CREATE PROCEDURE, CREATE TRIGGER, QUERY REWRITE TO ARADMINROLE


3. Import the tablespace on a different box

imp system/password@orcl1 file="/dump/arsystem.dmp" buffer=1024000 fromuser=aradmin touser=aradmin feedback=1000000 log="dump/arsystem.log"


I could see in teh log lot of IMP-00041: Warning: object created with compilation warnings

example:

IMP-00041: Warning: object created with compilation warnings
"CREATE FORCE VIEW "ARADMIN"."BMC_CORE_BMC_IMPACT" ("
""REQUESTID","SUBMITTER","CREATEDATE","ASSIGNEDTO","LASTMODIFIEDBY","MODIFIE"
"DDATE","STATUS","SHORTDESCRIPTION","CMDBROWLEVELSECURITY","INSTANCEID","CMD"
"BWRITESECURITY","NAME","FAILEDAUTOMATICIDENTIFICATION","ACCOUNTID","CLASSID"
"","OPIDWEAKREFERENCE","DATASETID","SOURCE_DATASETID","DESTINATION_DATASETID"
"","MARKASDELETED","RECONCILIATIONIDENTITY","SOURCE_RECONCILIATIONIDENTITY","
""DESTINATION_RECONCILIATIONIDEN","RELLEADINSTANCEID","RELLEADCLASSID","LAST"
"REJOBRUNID","SOURCE_INSTANCEID","SOURCE_CLASSID","DESTINATION_INSTANCEID",""
"DESTINATION_CLASSID","ATTRIBUTEDATASOURCELIST","ZCMDBENGTIMESTAMPSTUB","NOR"
"MALIZATIONSTATUS","IMPACTWEIGHT","IMPACTDIRECTION","HASIMPACT","IMPACTPROPA"
"GATIONMODEL","IMPACTSOURCEID","IMPACTDESTINATIONID") AS "
"SELECT T484.C1,T484.C2,T484.C3,T484.C4,T484.C5,T484.C6,T484.C7,T484.C8,T484"
".C112,T484.C179,T484.C60513,T484.C200000020,T484.C301118000,T484.C301186800"
",T484.C400079600,T484.C400124500,T484.C400127400,T484.C400128800,T484.C4001"
"28900,T484.C400129100,T484.C400129200,T484.C400130900,T484.C400131000,T484."
"C400131200,T484.C400131300,T484.C490001289,T484.C490008000,T484.C490008100,"
"T484.C490009000,T484.C490009100,T484.C530019500,T484.C530032500,T484.C53004"
"1601,T484.C530047901,T484.C530048000,T484.C530048100,T484.C530048200,T484.C"
"530060400,T484.C530060500 FROM T484"


Any suggestion on avoiding this.Do i need to export it with any other options so that i should not be seeing this error.

Please suggest me what should be the best way.

Thanks in Advance.

Re: IMP-00041: Warning: object created with compilation warnings [message #461552 is a reply to message #461549] Fri, 18 June 2010 14:25 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
Please suggest me what should be the best way.

Fix in a way that all dependent objects and privileges are present.

Regards
Michel
Re: IMP-00041: Warning: object created with compilation warnings [message #461555 is a reply to message #461552] Fri, 18 June 2010 14:37 Go to previous messageGo to next message
sus_dreamland
Messages: 2
Registered: June 2010
Junior Member
Thanks for the reply Michel.

I am using the export command:
exp system/password@orcl file="data/OracleDump/arsystem.dmp" OWNER="ARADMIN";

should i add any additional option in the command to ensure that i am not missing out any of the dependencies?

Or any options i should add in imp command to ensure the same:

imp system/password@orcl1 file="/dump/arsystem.dmp" buffer=1024000 fromuser=aradmin touser=aradmin feedback=1000000 log="dump/arsystem.log" .

And about the privileges before i start importing i create the user and grant the roles exactly the same what it had earlier on the database from where i exported.

any suggestions?

Thanks
Re: IMP-00041: Warning: object created with compilation warnings [message #461557 is a reply to message #461555] Fri, 18 June 2010 14:45 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
should i add any additional option in the command to ensure that i am not missing out any of the dependencies?

As I don't know what are the dependencies I can't answer this question.

Regards
Michel
Re: IMP-00041: Warning: object created with compilation warnings [message #461592 is a reply to message #461557] Sat, 19 June 2010 08:32 Go to previous messageGo to next message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member

Quote:
Fix in a way that all dependent objects and privileges are present.


As per Mr Michel check your dependent objects using DBA_DEPENDENCIES

Example:

SQL> create table test1 (a int);

Table created.

SQL> create table test2 (a int);

Table created.

SQL> drop table test2 purge;

Table dropped.

SQL> create table test2 (b int);

Table created.

SQL> create view test_v as select t1.a,t2.b from test1 t1,test2 t2;

View created.

SQL>

SQL> COL OWNER FORMAT A10
SQL> COL NAME FORMAT A10
SQL> L
  1* SELECT OWNER,NAME,TYPE,REFERENCED_OWNER,REFERENCED_NAME FROM DBA_DEPENDENCIES WHERE NAME='TEST_V'
SQL> /

OWNER      NAME       TYPE               REFERENCED_OWNER               REFERENCED_NAME
---------- ---------- ------------------ ------------------------------ ---------------------------
SYS        TEST_V     VIEW               SYS                            TEST2
SYS        TEST_V     VIEW               SYS                            TEST1

SQL>


-Babu

[Updated on: Sun, 20 June 2010 01:04] by Moderator

Report message to a moderator

Re: IMP-00041: Warning: object created with compilation warnings [message #461596 is a reply to message #461592] Sat, 19 June 2010 09:33 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Ouch! Using SYS to make your test!
Remember:
- Whatever you do with SYS/SYSDBA will neither validate nor invalidate the same thing with any other user.

Regards
Michel
Re: IMP-00041: Warning: object created with compilation warnings [message #461610 is a reply to message #461596] Sat, 19 June 2010 15:14 Go to previous messageGo to next message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member


Yes I remember Mr Michel; This is my local test database only..

Babu
Re: IMP-00041: Warning: object created with compilation warnings [message #461623 is a reply to message #461610] Sun, 20 June 2010 01:04 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Yes, but those that will read this might do the same thing on more crtitical databases and as I said, what you posted does not prove anything, to prove something you have to it with a normal user.

Regards
Michel
Re: IMP-00041: Warning: object created with compilation warnings [message #461647 is a reply to message #461623] Sun, 20 June 2010 05:35 Go to previous message
babuknb
Messages: 1736
Registered: December 2005
Location: NJ
Senior Member

Understand your concern. Thanks

Babu
Previous Topic: Import 9i dmp Into 10g
Next Topic: error in importing
Goto Forum:
  


Current Time: Sat Apr 20 02:00:52 CDT 2024