Home » RDBMS Server » Server Utilities » full import
full import [message #169021] Mon, 24 April 2006 13:37 Go to next message
hzglc
Messages: 4
Registered: April 2006
Junior Member
Hi all,

I am using exp/imp to copy a small instance from unix to windows.

As instructed by the docuemnts, I did an exp dump, ftp the dump to local, created all tabelspaces with the same names, then I exe the imp full=y command. The log file says successfully without warnings. But none of the users,objects,roles are created, and all of the tables are skipped. Looks like the imp statment is just a dry run.

I am wondering: is the imp command supposed to execute all the DDLs? if so, where am i wrong?

OR how should I do this correctly?

Really confused. Thanks for any help

[Updated on: Mon, 24 April 2006 13:38]

Report message to a moderator

Re: full import [message #169022 is a reply to message #169021] Mon, 24 April 2006 13:40 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
post what you did (Exact command line options)
did you use SHOW=y or INDEXFILE during import?
Re: full import [message #169024 is a reply to message #169021] Mon, 24 April 2006 13:46 Go to previous messageGo to next message
hzglc
Messages: 4
Registered: April 2006
Junior Member
I tried
imp userid=system/**** file=fullemp20060422.dmp log=imp20060422.log full=y feedback=5000 show=y

also tried imp userid=system/**** file=fullemp20060422.dmp log=imp20060422.log full=y feedback=5000 indexes=n rows=n indexfile=test.sql show=y

seems no matter what i do, the imp command is just giving me a dry run, i.e. no objects are created.

[Updated on: Mon, 24 April 2006 13:46]

Report message to a moderator

Re: full import [message #169025 is a reply to message #169021] Mon, 24 April 2006 13:51 Go to previous messageGo to next message
hzglc
Messages: 4
Registered: April 2006
Junior Member
Thanks so muc, Mahesh Rajendran! I could not believe I used the show=y there. Once I removed it, it worked. Sorry, this is the first time I am doing this. Be forgiving, please.
Re: full import [message #169026 is a reply to message #169024] Mon, 24 April 2006 13:51 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Normal,expected and documented behaviour.
You need to understand what show=y does.
With SHOW=Y , import will NOT DO THE IMPORT. Instead it will list the object ddl (index/table) in the logfile.
Quoting Documentation
Quote:

SHOW

Default: n

When SHOW=y, the contents of the export file are listed to the display and not imported. The SQL statements contained in the export are displayed in the order in which Import will execute them.


http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch02.htm#1005585
Re: full import [message #169027 is a reply to message #169026] Mon, 24 April 2006 13:57 Go to previous message
hzglc
Messages: 4
Registered: April 2006
Junior Member
yes. I copied the command from somewhere and assumed "show" means print everything in screen. Another good lesson.
Previous Topic: Import error
Next Topic: SQL*Loader and .bat files
Goto Forum:
  


Current Time: Thu Jul 04 20:12:08 CDT 2024