How do I copy or import Oracle schemas between two different databases on different servers?

后端 未结 3 545
耶瑟儿~
耶瑟儿~ 2020-12-30 13:47

What is the best way to copy schema from one user/instance/server:

jdbc:oracle:thin:@deeb02:1535:DH, user pov

to another user/instance/serv

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 14:39

    Use oracle exp utility to take a dump of the schema from the first database

    exp user1/pass1@db1 owner=user1 file=user1.dmp log=user1.log
    

    Then use imp utility to populate the other schema in the other datbase

    imp user2/pass2@db2 fromuser=user1 touser=user2 file=user1.dmp log=user2.log
    

提交回复
热议问题