patternMajor
Import a Oracle DMP file into a Fresh install of oracle
Viewed 0 times
fileinstallintofreshdmporacleimport
Problem
A client sent us an Oracle database we need to test against. We don't use Oracle or have any in-house Oracle expertise.
We need to setup the database so we can connect to it and debug a problem.
I did a fresh install of Oracle 9 (the version the client is running) and the management tools.
For the life of me, I cannot get it to import the data. It should not be this complicated. I must be getting something wrong.
I've tried:
and got:
But nothing shows up in the manager as far as tables in any schema and I'm at my wits end.
We need to setup the database so we can connect to it and debug a problem.
I did a fresh install of Oracle 9 (the version the client is running) and the management tools.
For the life of me, I cannot get it to import the data. It should not be this complicated. I must be getting something wrong.
I've tried:
imp 'sys/password AS SYSDBA' file=c:\database.dmp full=yes log=implog.txtand got:
Connected to: Personal Oracle9i Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Export file created by EXPORT:V09.02.00 via conventional path
Warning: the objects were exported by SYSTEM, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
. importing SYSTEM's objects into SYS
. importing ABCDE's objects into ABCDE
IMP-00003: ORACLE error 1435 encountered
ORA-01435: user does not exist
Import terminated successfully with warnings.But nothing shows up in the manager as far as tables in any schema and I'm at my wits end.
Solution
You'll need to create a user (or Schema) first
Then you can use the
Hope that helps!
C:\>sqlplus system/password
SQL> create user CLIENT_TEST identified by client_test_password;
SQL> grant connect, unlimited tablespace, resource to CLIENT_TEST;
SQL> exitThen you can use the
fromuser= and touser= IMP switches to import the data into the new user/schema:C:\>imp system/password FROMUSER=ABCDE TOUSER=client_test file=c:\database.dmp full=yesHope that helps!
Code Snippets
C:\>sqlplus system/password
SQL> create user CLIENT_TEST identified by client_test_password;
SQL> grant connect, unlimited tablespace, resource to CLIENT_TEST;
SQL> exitC:\>imp system/password FROMUSER=ABCDE TOUSER=client_test file=c:\database.dmp full=yesContext
StackExchange Database Administrators Q#23390, answer score: 32
Revisions (0)
No revisions yet.