I'm doing an oracle imp and in the dump there is a big table that I would like to only create but not to insert row into.
Is this possible ?
Exp was done on 10.2.0.4. I'm doing imp on XE (10.2.0.1).
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityWere you using the classic export and import utilities? Or the new DataPump versions? I assume from your references to "exp" and "imp," rather than "expdp" and "impdp," that you were using the classic versions rather than the DataPump versions. If so, that substantially decreases your options.
In the classic export and import utilities, the ROWS=N parameter applies to all tables. So there is no single command line for "import all the data into all the tables but one." You can, however, do a series of imports
<<list of all other tables>>
)Since you did the first import already, you can generate the list of tables for the second import just by querying the DBA_TABLES
(or ALL_TABLES
or USER_TABLES
) data dictionary view.
Of course it is.
"imp" has a "ROWS" parameter for this. If you set ROWS=N to your command line, import will skipped the data insert.
Edit: It will skip rows for all tables. If you want to skip rows for only one table, I think you will have to do the import in two distinct steps. One for importing only this specific table, one step for the others tables.