How can I import a particular schema from full dump in Oracle?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How can I import a particular schema from full dump in Oracle?
# 1  
Old 05-16-2014
Oracle How can I import a particular schema from full dump in Oracle?

Hi All,

I have a full oracle dump file that I have exported from a production server. I want to import a specific schema out of the full dump.


Is that possible in oracle. What will be the command for that?
# 2  
Old 05-16-2014
In your import deck, you need to specify a FROMUSER & TOUSER. What do you have so far?
# 3  
Old 05-16-2014
Code:
imp rdsuser@oracledb FILE=fulldb.dmp TOUSER=rdsuser FROMUSER=SYSTEM FULL=Y buffer=100000

So far I have tried this but it imports entire database. I need to import a particular schema
# 4  
Old 05-16-2014
Try removing the FULL=Y
# 5  
Old 05-16-2014
Quote:
Originally Posted by Palak Sharma
Code:
imp rdsuser@oracledb FILE=fulldb.dmp TOUSER=rdsuser FROMUSER=SYSTEM FULL=Y buffer=100000

So far I have tried this but it imports entire database. I need to import a particular schema
In addition to removing FULL=Y, why are you importing into system? System is a special account. You should create a different user and import into that user.

Also imp dates back to 7.3.4 and probably before that. You should start using impdp or data pump. With data pump and enterprise edition you can compress the export, use multiple channels and change table space names and user names on import. data pump has a lot more functionality than the old exp/imp. Of course you need to run at least 9i to use data pump.
# 6  
Old 05-19-2014
But I do not want the full dump to import, the fulldb.dmp command contains full databse dump, I just want to import a single schema can u help me with this?
# 7  
Old 05-19-2014
Just go with
Code:
imp rdsuser@oracledb FILE=fulldb.dmp FROMUSER=SYSTEM TOUSER=rdsuser

.... and see if that is what you want. This should (I think) only give you the objects owned by SYSTEM. That is, of course a very unusual thing to want and there may be errors given that some of them are for managing the instance and there might be conflict. A careful tidy up after the import will be needed to removed stuff you really don't want rdsuser to have, such as those containing encrypted passwords, database links, synonyms, functions/stored procedures etc.



Robin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Oracle dump file (del format) import into db2

1. The problem statement, all variables and given/known data: are the oracle dump files compatible to direct import into db2? I already tried many times but it always truncated results. anyone can help/ advice or suggest? 2. Relevant commands, code, scripts, algorithms: exp... (3 Replies)
Discussion started by: Sonny_103024
3 Replies

2. UNIX and Linux Applications

Problem in import & expdp Dump file

Hi all, i face a problem on (oracle database) installed on server Linux i need to export back as dump file, when i try to export give me the below error. # expdp system/oracle directory=test dumpfile=Prodfb20150311.dmp logfile=Prodfb20150311.log FULL=y Export: Release 11.2.0.1.0 -... (2 Replies)
Discussion started by: clerck
2 Replies

3. UNIX and Linux Applications

How to import and dump file to remote Oracle server?

Hi All, I have a linux centos instance which has a dump file. I need to import the dump file to the oracle server which is located at some remote location. I have installed the oracle client on my machine and I am able to connect to the remote oracle server. Now how to import the dump to the... (3 Replies)
Discussion started by: Palak Sharma
3 Replies

4. UNIX for Dummies Questions & Answers

How to Import dump file with default value for single column?

Hi, I need to import more than 250K of records to another Database(Oracle).But I want particular column value to be changed in the destination table. Is it possible to do this during export or import process with out modifying data from original table.I do not want to run Update manually. ... (6 Replies)
Discussion started by: GOVINDARAJ.M
6 Replies

5. Shell Programming and Scripting

Parallel export of all oracle DB schema.

In my Oracle db there are 4 schemas. All the username & passwords are stored in a text file. I am using a while loop to export all the schemas. It read the first line and doing the export. For all users it export one by one. But I need all the schemas will exported simultaneously. i.e. all the... (1 Reply)
Discussion started by: priya001
1 Replies

6. Emergency UNIX and Linux Support

Toad for Oracle 11G Schema browser

Need a help ..Schema browser in Toad not listing the tables when i connected to Oracle 11g schema did any body faced the issue... ? How to resolve the issue.. I need it asap thats y posted here Thanks (5 Replies)
Discussion started by: girija
5 Replies

7. UNIX for Dummies Questions & Answers

Import dump to database

Hi... I have dump in unix machine...How can I this import dump to Oracle database? Many thanks in advance. (2 Replies)
Discussion started by: agarwal
2 Replies

8. UNIX and Linux Applications

Toad for Oracle 11G - schema browser not working

Need a help Schema browser in Toad not listing the tables when i connected to Oracle 11g schema did any body faced the issue... ? How to resolve the issue (0 Replies)
Discussion started by: girija
0 Replies

9. Shell Programming and Scripting

Script for checking schema satistics in Oracle

I have a script which gives the output of schemas in Oracle DB : #!/bin/ksh ps -ef | grep -v grep | grep ora_pmon_$1 | wc -l | while read CONTROL do if ; then ORACLE_HOME=/u01/app/oracle/product/9.2.0 export ORACLE_HOME PATH=$ORACLE_HOME/bin:$PATH:/bin:/usr/bin:usr/local/bin:. ... (0 Replies)
Discussion started by: run_time_error
0 Replies
Login or Register to Ask a Question