监听程序配制及数据备份
13.監聽程序
lsnrctl status?? --查看LINSTER 狀態
lsnrctl start
lsnrctl stop
lsnrctl start listener1
?
1。邏輯備份
>EXP scott/ILOVESMB@ora
EXP tt/tt11
2。邏輯恢復
IMP tt/tt11
3。物理備份
冷/熱備份
冷備份:脫機備份 --關閉數據庫服務,拷貝文件。
shutdown immediate
熱備份:聯機備份 -- archive log list 歸檔模式
alter system set log_archive_start=true scope=spfile
shutdown immediate
startup mount
alter database archivelog
alter database open;
archive log list;
alter tablespace tt begin backup;
alter tablespace tt end backup;
alter system archive log current;
alter system switch logfile;
alter system switch logfile;
shutdown immediate;
startup
select * from v$recover_file;
alter database datafile 6 offline drop;
alter database open;
--after copy file back to the file folder
recover datafile 6;
auto;
alter database datafile 6 online;
--備份控件文件
alter database backup controlfile to trace;
shutdowm immediate
@c:\create_ctl.txt
--日志文件丟失解決辦法
recover database until cancel
alter database open resetlogs
?
?
?
轉載于:https://www.cnblogs.com/s021368/archive/2009/05/20/1472798.html
總結
以上是生活随笔為你收集整理的监听程序配制及数据备份的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 定义系统消息 Specify syste
- 下一篇: struts——struts在升级,作为