How to move Oracle data from one machine to another

本文介绍了一种Oracle数据库从旧服务器迁移到新服务器的方法。主要内容包括:停用新服务器上的Oracle服务;确保源目标服务器上Oracle服务的一致性;复制SPFILE及密码文件;迁移数据文件夹;重启新服务器上的Oracle服务并进行验证。

Step 1: Stop the Oracle service on the new server to make sure everything smooth. On Windows 2003 server, just go into the Service console of Administrative tools, and click Stop button for Oracle service.


Step 2: Make sure the oracle service on both machines are similar. Like the existing one called MYDATA then the new one should be better called MYDATA too. If not, then create an Oralce service with the same name on the new server. I am not sure whether this step is mandatory or not. But to have less trouble, why not we keep them identicial.

 

Step 3: Copy two files from the Oracle application folder to the same folder on the new server. These two files are SPFILE and Password files. In my case, they are C:/oracle/ora92/database/SPFILEMYDATA.ora and C:/oracle/ora92/database/PWDMYDATA.ora

 

Step 4: Copy data folder to new server. There are a lot of control files in this folder whose name same as the Oracle service name. And it should be under the folder of oradata. In my case I copied the whole folder of c:/oracle/oradata/MYDATA to the directory of c:/oracle/oradata/ on the new server.

 

Step 5: re-start the oracle service on the new server. Tested, and it was successful.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值