day10_控制文件
生活随笔
收集整理的這篇文章主要介紹了
day10_控制文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
---------------------驗證互為鏡像功能---------------------
窗口1cd /oracle/app/oradata/ecomrm control03.ctl?
窗口2SQL> startup force;ORACLE instance started.
Total System Global Area ?285212672 bytesFixed Size ? ? ? ? ? ? ? ? ?1218992 bytesVariable Size ? ? ? ? ? ? ?92276304 bytesDatabase Buffers ? ? ? ? ?188743680 bytesRedo Buffers ? ? ? ? ? ? ? ?2973696 bytesORA-00205: error in identifying control file, check alert log for more info
【加載到Nomount狀態時,讀取參數文件,在參數文件中,指向控制文件,有3個控制文件。】
窗口1cp control01.ctl control03.ctl?
窗口2alter database mount;alter database open;
控制文件復制回來,正常了,驗證了鏡像功能
---------------------------多路復用------------------------------------窗口1SQL> alter system set control_files ='/oracle/app/oradata/ecom/control01.ctl','/home/oracle/ctrl02.ctl' scope=spfile;
窗口2cp /oracle/app/oradata/ecom/control01.ctl /home/oracle/ctrl02.ctl
窗口1SQL> shutdown immediate;
窗口2rm control02.ctl control03.ctl
窗口1SQL> startupSQL> show parameter control_files;
來自為知筆記(Wiz)
窗口1cd /oracle/app/oradata/ecomrm control03.ctl?
窗口2SQL> startup force;ORACLE instance started.
Total System Global Area ?285212672 bytesFixed Size ? ? ? ? ? ? ? ? ?1218992 bytesVariable Size ? ? ? ? ? ? ?92276304 bytesDatabase Buffers ? ? ? ? ?188743680 bytesRedo Buffers ? ? ? ? ? ? ? ?2973696 bytesORA-00205: error in identifying control file, check alert log for more info
【加載到Nomount狀態時,讀取參數文件,在參數文件中,指向控制文件,有3個控制文件。】
窗口1cp control01.ctl control03.ctl?
窗口2alter database mount;alter database open;
控制文件復制回來,正常了,驗證了鏡像功能
---------------------------多路復用------------------------------------窗口1SQL> alter system set control_files ='/oracle/app/oradata/ecom/control01.ctl','/home/oracle/ctrl02.ctl' scope=spfile;
窗口2cp /oracle/app/oradata/ecom/control01.ctl /home/oracle/ctrl02.ctl
窗口1SQL> shutdown immediate;
窗口2rm control02.ctl control03.ctl
窗口1SQL> startupSQL> show parameter control_files;
來自為知筆記(Wiz)
轉載于:https://www.cnblogs.com/xiaoxiao5ya/p/7c1144e20f8df6e86f1021ab83fb3407.html
總結
以上是生活随笔為你收集整理的day10_控制文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 工作记录四-etcd与flanneld
- 下一篇: day09_读写分离_Atlas小记