Precondition: complete the work described in Oracle 12 创建新的数据库实例、用户

 

1. export data under user "dev1" from source db

exp dev1/password@sourcedb file=dev1.dmp owner=dev1

The dev1.dmp will be under /u01/app/oracle/admin/sourcedb/dpdump

2. copy dev1.dmp to target machine

scp dev1.dmp qa@<host>:/home/qa/data

3. login target machine as "root"

4. move dev1.dmp to Oracle folder

cd /home/qa/data
sudo mv dev1.dmp /u01/app/oracle/admin/mydb/dpdump

4. change owner of dev1.dmp

hown qa /u01/app/oracle/admin/mydb/dpdump/dev1.dmp

5. import dev1.dmp to Oracle 12c database

imp dev1 file=/u01/app/oracle/admin/mydb/dpdump/dev1.dmp log=import_dev1.log fromuser=dev1 touser=dev1

input "password" as password for dev1

posted on 2017-10-19 15:38  forwill  阅读(8689)  评论(0编辑  收藏  举报