冷备份数据库

冷备份数据库

   非open的数据库

   优点:概念简单,执行简单,可靠性依存cp

   缺点:停止数据库,整体备份

   什么时候需要冷备份:重大事件(不完全恢复实验之前,上线之前,崩溃恢复之前之后,)

步骤

1.一致性停

2.拷贝

3.启动

查出物理文件位置

select name from v$datafile

union all

select name from v$controlfile

union all

select member from v$logfile



实验

1.存在冷备

2.删除原来的文件

3.将备份恢复到/db254/...

4.启动到open

__________________________________________________


SQL> conn /as sysdba

startu[

Connected to an idle instance.

SQL> SP2-0042: unknown command "startu[" - rest of line ignored.

SQL> startup

ORACLE instance started.


Total System Global Area  285212672 bytes

Fixed Size                  1218992 bytes

Variable Size             100664912 bytes

Database Buffers          180355072 bytes

Redo Buffers                2973696 bytes

Database mounted.

Database opened.

SQL>

select name from v$datafile

union all

select name from v$controlfile

union all

 5  select member from v$logfile

 6  /


NAME

--------------------------------------------------

/u01/oracle/oradata/ora10g/system01.dbf

/u01/oracle/oradata/ora10g/undotbs01.dbf

/u01/oracle/oradata/ora10g/sysaux01.dbf

/u01/oracle/oradata/ora10g/users01.dbf

/u01/oracle/oradata/ora10g/mytbs01.dbf

/u01/oracle/oradata/ora10g/mytbs02.dbf

/u01/oracle/oradata/ora10g/abc.dbf

/u01/oracle/oradata/ora10g/ceshi/db/ORA10G/datafil

e/o1_mf_mytbs1_9dndqzcf_.dbf


/u01/oracle/oradata/ora10g/ceshi/db/ORA10G/datafil

e/o1_mf_erikxue_9dndskhp_.dbf


/u01/oracle/oradata/ora10g/control01.ctl

/u01/oracle/oradata/ora10g/control02.ctl

/u01/oracle/oradata/ora10g/control03.ctl

/u01/oracle/oradata/ora10g/redo03.log

/u01/oracle/oradata/ora10g/redo02.log

/u01/oracle/oradata/ora10g/redo01.log

/u01/oracle/flash_recovery_area/ORA10G/onlinelog/o

1_mf_4_9dndl8dh_.log


/u01/oracle/oradata/ora10g/ceshi/log/ORA10G/online

log/o1_mf_5_9dndybf6_.log



17 rows selected.


你可能感兴趣的:(数据库,member,可靠性,erikxue)