實驗八 Oracle數據庫備份與恢復(孫風棟)

conn / as sysdba

 

4、shutdown immediate

startup mount;

alter database flashback off

alter database archivelog;

alter database open;

再次正常關閉數據庫,並備份所有的數據文件和控制文件。

archive log list;

5、select tablespace_name, file_name from dba_data_files order by tablespace_name;

alter tablespace users begin backup;

alter tablespace users end backup;

alter dataspace backup controlfile to 'D:\app\Administrator\oradata\orcl\control1.bkp';

alter database backup controlfile to trace;

alter system archive log current;

alter system switch logfile;

6、create table hot(id number primary key) tablespace users;

insert into hot values(93);

7、

 

https://wenku.baidu.com/view/ff2bd901f011f18583d049649b6648d7c1c70898.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章