解決Oracle 9.2.0.6版本資料庫由於ORA-07445當機問題

season0891發表於2008-09-25
IT168技術文章】
1 解決Oracle 9.2.0.6版本資料庫由於ORA-07445當機問題
故障現象:
XX網資料庫當機,檢視日誌發現以下內容:
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)


--&gtWed Jun  8 20:24:17 2005
Errors
in file /u02/app/oracle/admin/unicom/udump/unicom_ora_661.trc:
ORA
-07445: \263\366\317\326\322\354\263\243: \272\313\320\304\327\252\264\242 [0000000101C3089C] [SIGSEGV] [Address not mappe
d to object
] [0x000000000] [] []
Wed Jun  
8 20:24:22 2005
Errors
in file /u02/app/oracle/admin/unicom/bdump/unicom_pmon_11598.trc:
ORA
-07445: exception encountered: core dump [0000000101C399A0] [SIGSEGV] [Address not mapped to object] [0x000000000] [] []
Wed Jun  
8 20:24:23 2005
Errors
in file /u02/app/oracle/admin/unicom/bdump/unicom_pmon_11598.trc:
ORA
-07445: exception encountered: core dump [0000000101C399A0] [SIGSEGV] [Address not mapped to object] [0x000000000] [] []
ORA
-00602: internal programming exception
ORA
-07445: exception encountered: core dump [0000000101C399A0] [SIGSEGV] [Address not mapped to object] [0x000000000] [] []
Wed Jun  
8 20:24:33 2005
CKPT: terminating instance due
to error 472
Instance terminated
by CKPT, pid = 11604
Wed Jun  
8 21:04:47 2005
Starting ORACLE instance (normal)


解決辦法:
Oracle工程師建議安裝Oracle補丁p3949307_9206_SOLARIS64,經過測試,安裝步驟如下: (注意,首先shutdown資料庫)
1,解壓補丁檔案
unzip p3949307_9206_SOLARIS64.zip
解開後的目錄是:4060756
2,修改oraclehomeproperties.xml檔案,該檔案在$ORACLE_HOME/inventory/ContentsXML目錄下。
cp oraclehomeproperties.xml oraclehomeproperties.xmlb.bak
vi oraclehomeproperties.xml
更改數字453 ->23,存檔退出
3,修改PATH路徑為
PATH=$ORACLE_HOME/bin:/usr/ccs/bin:${PATH}
4,執行opatch apply命令
cd 4060756
$ORACLE_HOME/OPatch/opatch apply
5,安裝成功後會出現如下結果
Updating inventory...
/oracle92/app/oracle/product/9.2.0.1/OPatch/opatch.pl version: 1.0.0.0.51
Copyright (c) 2001-2004 Oracle Corporation. All Rights Reserved.
OPatch succeeded.
 

2 檢視Oracle表空間大小及利用率的SQL語句-非常實用的語句

<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)


--&gtset linesize 300
col 表空間名
for a30
SELECT UPPER(F.TABLESPACE_NAME) "表空間名",
D.TOT_GROOTTE_MB "表空間大小(M)",
D.TOT_GROOTTE_MB
- F.TOTAL_BYTES "已使用空間(M)",
TO_CHAR(
ROUND((D.TOT_GROOTTE_MB - F.TOTAL_BYTES) / D.TOT_GROOTTE_MB * 100,
2),
'990.99') "使用比",
F.TOTAL_BYTES "空閒空間(M)",
F.MAX_BYTES "最大塊(M)"
FROM (SELECT TABLESPACE_NAME,
ROUND(SUM(BYTES) / (1024 * 1024), 2) TOTAL_BYTES,
ROUND(MAX(BYTES) / (1024 * 1024), 2) MAX_BYTES
FROM SYS.DBA_FREE_SPACE
GROUP BY TABLESPACE_NAME) F,
(
SELECT DD.TABLESPACE_NAME,
ROUND(SUM(DD.BYTES) / (1024 * 1024), 2) TOT_GROOTTE_MB
FROM SYS.DBA_DATA_FILES DD
GROUP BY DD.TABLESPACE_NAME) D
WHERE D.TABLESPACE_NAME = F.TABLESPACE_NAME
ORDER BY 4 DESC;

 

 

轉自: http://tech.it168.com/a2008/0924/206/000000206251.shtml

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-464323/,如需轉載,請註明出處,否則將追究法律責任。

相關文章