Home » RDBMS Server » Server Utilities » ORA-31684 and ORA-39082 while exp/imp
ORA-31684 and ORA-39082 while exp/imp [message #569538] |
Mon, 29 October 2012 05:59  |
 |
neetesh87
Messages: 280 Registered: September 2011 Location: bhopal
|
Senior Member |
|
|
hello experts,
i want to import scott schema in a already created TEST user but it gives 3 errors.
C:\Users\Neetesh>expdp system/Prodb@prodb schemas=scott dumpfile=scott.dmp grants=n
Export: Release 11.2.0.1.0 - Production on Mon Oct 29 16:03:36 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Legacy Mode Active due to the following parameters:
Legacy Mode Parameter: "grants=FALSE" Location: Command Line, Replaced with: "ex
clude=grant"
Legacy Mode has set reuse_dumpfiles=true parameter.
Legacy Mode has set nologfile=true parameter.
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/********@prodb schemas=scott d
umpfile=scott.dmp exclude=grant reuse_dumpfiles=true nologfile=true
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
. . exported "SCOTT"."DEPT" 5.937 KB 4 rows
. . exported "SCOTT"."EMP" 8.570 KB 14 rows
. . exported "SCOTT"."SALGRADE" 5.867 KB 5 rows
. . exported "SCOTT"."BONUS" 0 KB 0 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
C:\ADMIN\PRODB\DPDUMP\SCOTT.DMP
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at 16:04:02
C:\Users\Neetesh>impdp system/testdb@testdb schemas=scott dumpfile=scott.dmp remap_schema=scott:test
Import: Release 11.2.0.1.0 - Production on Mon Oct 29 16:06:11 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_SCHEMA_02" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_SCHEMA_02": system/********@testdb schemas=scott d
umpfile=scott.dmp remap_schema=scott:test
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"TEST" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "TEST"."DEPT" 5.937 KB 4 rows
. . imported "TEST"."EMP" 8.570 KB 14 rows
. . imported "TEST"."SALGRADE" 5.867 KB 5 rows
. . imported "TEST"."BONUS" 0 KB 0 rows
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
ORA-39082: Object type ALTER_PROCEDURE:"TEST"."PROC_DEPT" created with compilati
on warnings
ORA-39082: Object type ALTER_PROCEDURE:"TEST"."PROC_EMP" created with compilatio
n warnings
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "SYSTEM"."SYS_IMPORT_SCHEMA_02" completed with 3 error(s) at 16:06:16
errors are- (1) one error is of that the TEST user is already exists,
then how to import a schema in already exists user?
(2) 2 errors are because of procedures are created with compilation error.
and i compiled them then i found that the these procedures throws errors because of public sysnonyms.
then how can we include public synonym in export file?
thanks in advance........
[Updated on: Mon, 29 October 2012 06:06] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: ORA-31684 and ORA-39082 while exp/imp [message #569874 is a reply to message #569872] |
Fri, 02 November 2012 12:18  |
 |
Michel Cadot
Messages: 68757 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
1. I would not rely on export/import to detect these errors. Compliance tools should be there to verify. Anyway, I wonder how a developer could create any object in SYS or SYSTEM schema or any schema as developers do NOT create objects, designers describe the object which should be created by DBA-like account NOT by developers.
2. Why should I create the user before importing? When I create the database objects of an application, why should I not use an import that also creates the important accounts for the application (those that are used to manage the application objects, including users)?
I don't understand you last paragraph. Post an example.
Regards
Michel
|
|
|
Goto Forum:
Current Time: Thu May 15 02:45:07 CDT 2025
|