Data import [message #219620] |
Thu, 15 February 2007 03:34 |
moinuddin_sh
Messages: 3 Registered: February 2007
|
Junior Member |
|
|
Hi everyone,
I am new to Oracle database. I tried frollowing command to import data from an existing backup dmp file but it fails with error
imp sys/manager@TAL file=d:\moin\daily.dmp fromuser=fais touser=fais ignore=y log=d:\moin\daily.log
The error is given below
IMP-00019: row rejected due to ORACLE error 1
IMP-00003: ORACLE error 1 encountered
ORA-00001: unique constraint (TAL.BE_SEED_PK) violated
How can I restore the backup normally?
Regards
|
|
|
|
Re: Data import [message #219685 is a reply to message #219635] |
Thu, 15 February 2007 09:27 |
moinuddin_sh
Messages: 3 Registered: February 2007
|
Junior Member |
|
|
Thanks for your reply, when I added in my statement constraints=n then a different error received, as given below:
Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
Export file created by EXPORT:V09.02.00 via conventional path
import done in UTF8 character set and UTF8 NCHAR character set
. importing SYSTEM's objects into SYSTEM
. importing PERFSTAT's objects into PERFSTAT
. importing TAL's objects into TAL
. importing FAS's objects into FAS
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "ACTIVE_INTERFACE_LIST" FOR "TAL"."ACTIVE_INTERFACE_LIST""
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "ACTIVE_INTERFACE_LIST_TABLE" FOR "TAL"."ACTIVE_INTERFACE_"
"LIST_TABLE""
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "ADVGENTYPE" FOR "TAL"."ADVGENTYPE""
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "ADVGENTYPETABLE" FOR "TAL"."ADVGENTYPETABLE""
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "BLOCKGRIDTYPE" FOR "TAL"."BLOCKGRIDTYPE""
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "BUSINESS_EVENT" FOR "TAL"."BUSINESS_EVENT""
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "CHARTYPE" FOR "TAL"."CHARTYPE""
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "CODE_DESCRIPTION" FOR "TAL"."CODE_DESCRIPTION""
IMP-00015: following statement failed because the object already exists:
IMP-00061: Warning: Object type "FAS"."HX_PHONE" already exists with a different identifier
"CREATE TYPE "HX_PHONE" TIMESTAMP '2004-09-29:09:22:49' OID '6B4C03D0E690400"
"E8C928F82B6CF9C1A' wrapped"
|
|
|
|
|
Re: Data import [message #219842 is a reply to message #219750] |
Fri, 16 February 2007 05:52 |
moinuddin_sh
Messages: 3 Registered: February 2007
|
Junior Member |
|
|
Hi Taj,
I take daily backup through Veritas of my Oracle database running on a Windows 2003 server. I also have a standby (backup) server that I keep as plan B. I feel to restore through Veritas is time taking procedure, so I took a backup through "exp" command from my live server and I want to restore/update this data on my existing backup server. On this backup server I already have the same database but it is not with the recent data. Meaning both the servers have identical database but live server have latest and standby have the old data.
For data export from the live server I used following statement:
exp sys/manager@TAL file=d:\moin\daily.dmp full=y compress=y log=d:\moin\daily.log
and for import following command
imp sys/manager@TAL file=d:\moin\daily.dmp fromuser=fais touser=fais constraints=n ignore=y log=d:\moin\daily.log
Hope it is clear to u.
best regards
Moin
|
|
|
|
Re: Data import [message #223525 is a reply to message #219846] |
Fri, 09 March 2007 06:16 |
rojo72
Messages: 7 Registered: March 2007
|
Junior Member |
|
|
What is the process for dropping all objects in the existing database so the IMP will go through successful? I am having trouble finding the commands for dropping the schema prior to using the IMP command.
Thanks,
Rojo
|
|
|
|
|
Re: Data import [message #223533 is a reply to message #223529] |
Fri, 09 March 2007 06:38 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
You can drop the whole schema
or
generate an sql do drop all objects in your schema
or
use dynamic sql.
Search the forum. There are many examples.
|
|
|