Backup & Import Database | Problems with user-rules [message #265050] |
Wed, 05 September 2007 05:46 |
nic.
Messages: 6 Registered: September 2007
|
Junior Member |
|
|
Hello together,
i have a "little" problem:
I want to create a backup from my Oracle DB. I use the following script with a DOS command:
exp userid=system/manager file=c:\full_exp.dmp log=c:\full_exp.log compress=no full=yes statistics=none consistent=yes
The main problem is the new DB. We want to import the backup but the problem is, that we use the system-user to create the backup. We want to import them on another user (fe. "XYZ").
On the old DB, the user "XYZ" is created and is a DBA.
When i want to start an export with the user "XYZ" i cant login with username / password.
Where is the problem? Do i have to change the properties / rules from user "XYZ"?
Thank for your help & with best regards
Nic.
|
|
|
|
|
|
|
Re: Backup & Import Database | Problems with user-rules [message #265216 is a reply to message #265145] |
Wed, 05 September 2007 15:20 |
mson77
Messages: 208 Registered: August 2007 Location: Brazil
|
Senior Member |
|
|
Hello nic,
1) Regarding user/password:
You have 2 DB. Let's say DB1 and DB2.
DB1 you have data in it;
DB2 is an empty database (for instance);
To access DB1 you have to have "user/passwd" of DB1. Use this credentials to make EXP (export);
To populate DB2 using IMP (import)... you have to have credential to access DB2... I mean: "user/passwd" of DB2. At this time... forget the "user/passwd" of DB1 because you are interacting with DB2 to import data in it.
2) Regarding your error...:
Did you do export successfully? What was the message after running the EXP command? Did you see the log file? Did you see content in the file DMP that has been created?
Are you able to connect via SQLPLUS on DB2 using "system" user?
Use this system/passwd to make the IMP.
And always... when you post your doubt... consider that the readers have first to understand your doubt/question to help you. As clear/full is the information you write... chances are bigger to get help.
Regards,
mson77
|
|
|