Importing only tables from the dump file [message #220306] |
Tue, 20 February 2007 03:13 |
prashas_d
Messages: 66 Registered: February 2007
|
Member |
|
|
Hello gurus,
Can anyone please let me know how to do the below task?
I have a dump file that contains the entire tables, procedures, sequences, etc of one instance of database.
I need to take only the tables from the dump file and import into another instance of database.
If I need to take one table, I will use the statement as:
imp scott/tiger file=expdat.dmp table=emp log=test.log
But for importing all the tables(only tables)from the dump file to another instance of database, what is the command that I need to run on UNIX?
Thanks in advance.
|
|
|
|
Re: Importing only tables from the dump file [message #220323 is a reply to message #220310] |
Tue, 20 February 2007 04:54 |
prashas_d
Messages: 66 Registered: February 2007
|
Member |
|
|
Taj,
Sorry, I could not able to get your point.
What value should I use in imp command for TABLES parameter?
imp scott/tiger file=expdat.dmp tables=<what value>
Also, How to create a .SQL file using that dump file?
Can you please tell me in detail about how to do it.
I am new to the database concepts so could not able to get your point.
|
|
|
|
Re: Importing only tables from the dump file [message #220337 is a reply to message #220323] |
Tue, 20 February 2007 05:51 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
oracle@mutation#imp scott/tiger fromuser=scott touser=scott tables=% file=scott.dmp
Import: Release 9.2.0.7.0 - Production on Tue Feb 20 06:51:22 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.7.0 - Production
Export file created by EXPORT:V09.02.00 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8ISO8859P1 character set (possible charset conversion)
. . importing table "DEPT" 4 rows imported
. . importing table "EMP" 14 rows imported
. . importing table "PLAN_TABLE" 0 rows imported
Import terminated successfully without warnings.
|
|
|