Hi,
We are migrating a database from Oracle 8.1.7.0.0 to Oracle 9.2.0.1.0
on AIX.
Export as follows:
exp ${user}/${pwd} compress=n file=${file} log=${log} owner=${schema}
grants=y indexes=y rows=y constraints=y
Then import as follows:
imp ${user}/${pwd} file=${file} log=${log} full=y
On import we get errors because of the constraint names are renamed by
the target dbms:
IMP-00017: following statement failed with ORACLE error 2430:
"ALTER TABLE "xxx" ENABLE NOVALIDATE CONSTRAINT "SYS_C003875""
The DBMS has renamed the constraint from SYS_C003875 to SYS_C004600.
So the above statement fails.
How do we tell the DBMS to not rename the constraints?
Best regards
Raoul 7 16825
R.A. Joemman wrote: Hi,
We are migrating a database from Oracle 8.1.7.0.0 to Oracle 9.2.0.1.0 on AIX. Export as follows:
exp ${user}/${pwd} compress=n file=${file} log=${log} owner=${schema} grants=y indexes=y rows=y constraints=y
Then import as follows:
imp ${user}/${pwd} file=${file} log=${log} full=y
On import we get errors because of the constraint names are renamed by the target dbms:
IMP-00017: following statement failed with ORACLE error 2430: "ALTER TABLE "xxx" ENABLE NOVALIDATE CONSTRAINT "SYS_C003875""
The DBMS has renamed the constraint from SYS_C003875 to SYS_C004600. So the above statement fails. How do we tell the DBMS to not rename the constraints?
Best regards Raoul
This will teach you not to name your contraints!
No other way that to query afterwards (your unnamed constraints will
be there) and enable them
--
Regards,
Frank van Bortel
This problem is right at the beginning of the export file. if you move
from IBM to Unix you might have a char convertion problem from ebcdc
to ascii right on the OS. Usually when we migrate DBs across OSs we
do the export and the import within the same server. You can load your
data from the IBM box to the Unix box if you set up Net8 in your
tnsname.ora file. Export your staff on the IBM then try to load from
the IBM box the data to the Unix box.
Another thing: I wouldn't use record_length parameter in this case.
Good luck. an*******@yahoo.com (Andras Kovacs) wrote in message news:<41**************************@posting.google. com>... This problem is right at the beginning of the export file. if you move from IBM to Unix you might have a char convertion problem from ebcdc to ascii right on the OS. Usually when we migrate DBs across OSs we do the export and the import within the same server. You can load your data from the IBM box to the Unix box if you set up Net8 in your tnsname.ora file. Export your staff on the IBM then try to load from the IBM box the data to the Unix box.
Another thing: I wouldn't use record_length parameter in this case.
Good luck.
Hi Andreas,
Per accident you have answered a old question from 1994 of Fredrik
Nyman.
For some reason Google has implemented my question into his, I think
because of the subject of the question that is the same.
Can you please look at my question #2? Maybe you have a answer on it
for me?
Regards
Raoul ra***********@wanadoo.nl (R.A. Joemman) wrote in message news:<e4**************************@posting.google. com>... an*******@yahoo.com (Andras Kovacs) wrote in message news:<41**************************@posting.google. com>... This problem is right at the beginning of the export file. if you move from IBM to Unix you might have a char convertion problem from ebcdc to ascii right on the OS. Usually when we migrate DBs across OSs we do the export and the import within the same server. You can load your data from the IBM box to the Unix box if you set up Net8 in your tnsname.ora file. Export your staff on the IBM then try to load from the IBM box the data to the Unix box.
Another thing: I wouldn't use record_length parameter in this case.
Good luck.
Hi Andreas,
Per accident you have answered a old question from 1994 of Fredrik Nyman. For some reason Google has implemented my question into his, I think because of the subject of the question that is the same. Can you please look at my question #2? Maybe you have a answer on it for me?
Regards Raoul
The answer is you have all your constraints with system generated
names, and the only way to resolve it is to give your constraint
explicit names prior to export. You can't stop import from renaming
constraint. IIRC the manual contains explicit warnings against not
naming constraints.
Sybrand Bakker
Senior Oracle DBA
This problem is right at the beginning of the export file. if you move
from IBM to Unix you might have a char convertion problem from ebcdc
to ascii right on the OS. Usually when we migrate DBs across OSs we
do the export and the import within the same server. You can load your
data from the IBM box to the Unix box if you set up Net8 in your
tnsname.ora file. Export your staff on the IBM then try to load from
the IBM box the data to the Unix box.
Another thing: I wouldn't use record_length parameter in this case.
Good luck. an*******@yahoo.com (Andras Kovacs) wrote in message news:<41**************************@posting.google. com>...
This problem is right at the beginning of the export file. if you move
from IBM to Unix you might have a char convertion problem from ebcdc
to ascii right on the OS. Usually when we migrate DBs across OSs we
do the export and the import within the same server. You can load your
data from the IBM box to the Unix box if you set up Net8 in your
tnsname.ora file. Export your staff on the IBM then try to load from
the IBM box the data to the Unix box.
Another thing: I wouldn't use record_length parameter in this case.
Good luck.
Hi Andreas,
Per accident you have answered a old question from 1994 of Fredrik
Nyman.
For some reason Google has implemented my question into his, I think
because of the subject of the question that is the same.
Can you please look at my question #2? Maybe you have a answer on it
for me?
Regards
Raoul ra***********@wanadoo.nl (R.A. Joemman) wrote in message news:<e4**************************@posting.google. com>...
an*******@yahoo.com (Andras Kovacs) wrote in message news:<41**************************@posting.google. com>...
This problem is right at the beginning of the export file. if you move
from IBM to Unix you might have a char convertion problem from ebcdc
to ascii right on the OS. Usually when we migrate DBs across OSs we
do the export and the import within the same server. You can load your
data from the IBM box to the Unix box if you set up Net8 in your
tnsname.ora file. Export your staff on the IBM then try to load from
the IBM box the data to the Unix box.
Another thing: I wouldn't use record_length parameter in this case.
Good luck.
Hi Andreas,
Per accident you have answered a old question from 1994 of Fredrik
Nyman.
For some reason Google has implemented my question into his, I think
because of the subject of the question that is the same.
Can you please look at my question #2? Maybe you have a answer on it
for me?
Regards
Raoul
The answer is you have all your constraints with system generated
names, and the only way to resolve it is to give your constraint
explicit names prior to export. You can't stop import from renaming
constraint. IIRC the manual contains explicit warnings against not
naming constraints.
Sybrand Bakker
Senior Oracle DBA This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: BUSHII |
last post by:
I have big problem.
In database MyDB.mdb I have table for example: ORDERS with colums:
- Id int
- Name varchar(20)
Also I create same table in SQL Server 2k.
I can manualy export this data...
|
by: Ivan Zuzak |
last post by:
Hello. Sorry for crossposting, but i didn't have a better idea as to
where to post the question.
I'm using certificates to sign and encrypt SOAP messages, using WSE in .Net.
I want to do the...
|
by: Jeremy Siek |
last post by:
CALL FOR PAPERS/PARTICIPATION
C++, Boost, and the Future of C++ Libraries
Workshop at OOPSLA
October 24-28, 2004
Vancouver, British Columbia, Canada
http://tinyurl.com/4n5pf
Submissions
|
by: Siu |
last post by:
Hi,
I use the following code to export and import a file Excel from resp. into a
Web page with the following code:
//EXPORT
Response.Clear();
Response.Buffer = true;
Response.ContentType =...
|
by: Iavor Raytchev |
last post by:
Hello,
We a situation with a central database that contains the data that needs to be presented at N off-line terminals (N can be 5 000 can be 15 000). Each terminal presents unique data. The...
|
by: Taffman |
last post by:
I've searched this goup for an answer to this, there are many
discussions that come close but non that I can find that actually
addresses this particular problem.
I'm exporting queries to Excel....
|
by: mike_dba |
last post by:
I am attempting to move data between 2 DB2 Linux databases using a
pipe. I can't seem to get it working. Any assistance is appreciated.
I first issue:
mkfifo -m777 mypipe
db2 "connect to...
|
by: InvestorTrade |
last post by:
Hi,
I've been trying to export/import a table from a DB with
Chinese_PRC_CI_AS collation, and I can't seem to get it working at all
- the export seems rather simple, it is the import that is not...
|
by: SysProg |
last post by:
I need some help with a problem I've encountered. I am a zLinux, WAS, and DB2 noob so please bear with me.
I am helping to support two WebSphere applications which utilize DB2 under zLinux. One...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |