oracle 9i热备份

热备份 只适用于 archive 模式所以 必须在我上一篇文章的基础上做

一般商业数据库比如银行的数据库都是 热备份的

热备份包括 联机备份和脱机备份

联机备份步骤:

1,确定表空间包含的数据文件

select  file_name from dba_data_files where tablespace_name=upper('test_data');

2,设置表空间为备份模式

设置为备份模式 后头文件就不会改变

alter tablespace users begin backup;

3,host copy c:\test\users.dbf e\bak\

4,alter tablespace users end backup; (注意这里 直接照我写的一模一样就可以了,我之前以为要用自己备份的表空间的名字,结果老是不行)

这样一来该表空间就备份好了

猜你喜欢

转载自skyfar666.iteye.com/blog/1757383