Moving database : Transform schema by using toad (一)

     If you want to move a database from one server to another , there are some ways to go . The way I follow is to transform the users to another database . I use the utility wizard in toad to complete this mission.

 

     Now assume that I have a database named as "ODB".There is 1 user  "U1" ,which belongs to tablespace "U1" defaultly.

 

    1.Make sure the original database is running , start the toad ,go to database ==>export ==> Export utility wizard , select export users .Next select the user which you want to transform from all the users list in the left form ,go next .The account  you login in must be granted DBA role , otherwize you cannot continue.

    2.Specify the dmp file name ,like "E:/DMP/U1.dmp",then click the button to get the U1.dmp file.

    3.You need to set up a same database in the destination server.Including the tablespace "U1",the user "U1" which belongs to the tablespace "U1" defaultly.And you neet to grant the connect ,resource to user "U1".

    

   

   4.Login to the destination server.Do the above things.Start your toad to import the user "U1".Also go to Import utility wizard in the menu.Select the user "U1" in the dropdown list.If not there,you can write the "U1" in the from text , the to text is "U1",ofcourse. Then click the button to import the user schema. The login account also needs to be granted DBA role.

   5.If there is no error encountered ,it means you import the schema successfully. In the actural database , there may be many schema for many users.You can deal with them one by one.All the same,good luck~~.

 

 

    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值