實驗2:offline Redo Log File 故障(內容錯誤)
select * from v$log;
select * from v$logfile;
利用O.S.指令來修改redo log file的內容
SQL> alter system switch logfile;
alter system switch logfile
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
或者
alter system switch logfile;
*
ERROR at line 1:
ORA-01034: ORACLE not available
select * from v$log
*
ERROR at line 1:
ORA-01034: ORACLE not available
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 319886536 bytes
Fixed Size 451784 bytes
Variable Size 150994944 bytes
Database Buffers 167772160 bytes
Redo Buffers 667648 bytes
Database mounted.
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/oradata/sent/redo/redo01.log'
shutdown abort;
因為每個群組只有一個Redo Log File,假設有兩個,資料庫運作不會有問題,
只要把好的複製到壞的就可以了。
方法一:清空內容
alter database clear logfile '/oradata/sent/redo/redo01.log';
alter database open;
方法二:
shutdown abort;
startup mount;
alter database drop logfile group 1;
利用O.S.刪除group 1 的檔案
alter database add logfile group 1 ('/oradata/sent/redo/redo01.log') size 50M;
alter database open;

-
在電腦版的Line輸入文字時,遇到需要換行的情形時,我都是用記事本先寫好再複製上去,這樣就可以有換行的效果,可是這樣的做法好像失去Line的便利性。 於是查了一下,原來有一個設定可以指定Enter換行,而不是發訊息出去。 完成設定之後,要發送訊息就改用Al...
-
Windows7 / Windows8 kill process Linux下要刪除某個程序通常會使用 ps 配合 kill 來刪除程序。 例如:ps -ef |grep [PROCESS NAME] kill -9 [PID] 在Windows下,通常是...
-
Excel有許多實用的公式,善用這些公式可以達成大部份的功能,但是萬一公式無法滿足需求時,可以自訂公式來解決。 自訂公式其實就是自訂函數,先開啟Visual Basic(VBA) 新增一個「模組」 ...