直播中
產(chǎn)生原因:這種錯(cuò)誤通常為ORACLE的內(nèi)部錯(cuò)誤,只對(duì)OSS和ORACLE開(kāi)發(fā)有用。ORA-600的錯(cuò)誤經(jīng)常伴隨跟蹤文件的狀態(tài)轉(zhuǎn)儲(chǔ)
(系統(tǒng)狀態(tài)和進(jìn)程狀態(tài)),系統(tǒng)狀態(tài)存儲(chǔ)將包括ORACLE RDBMS持有的當(dāng)前對(duì)象的信息,進(jìn)程狀態(tài)轉(zhuǎn)儲(chǔ)則將顯示特殊進(jìn)程持
有的對(duì)象,當(dāng)進(jìn)程符合了某錯(cuò)誤條件時(shí),經(jīng)常是由于一些信息取自它持有的一個(gè)塊,如果我們知道這些錯(cuò)誤進(jìn)程持有的
塊,就容易跟蹤問(wèn)題的來(lái)源。
解決方法:一般來(lái)說(shuō)出現(xiàn)這個(gè)錯(cuò)誤我們本身是無(wú)法解決的,只有從提高系統(tǒng)本身各方面來(lái)解決這個(gè)內(nèi)部問(wèn)題,如增加硬件
設(shè)備,調(diào)整系統(tǒng)性能,使用OPS(當(dāng)然OPS從某種意義上說(shuō)并不是一種好的解決方式)等。ORA-600錯(cuò)誤的第一個(gè)變量用于標(biāo)
記代碼中錯(cuò)誤的位置(代碼中的每個(gè)部分的第一變量都不一樣),從第二個(gè)到第五個(gè)變量顯示附加信息,告訴OSS代碼在哪
里出現(xiàn)了錯(cuò)誤。
一個(gè)報(bào)錯(cuò)例子如下:
ORA-00600: internal error code, arguments: [1237], [], [], [], [], [], [], []
相應(yīng)的英文如下:
Cause:This is a catchall internal error message for Oracle program exceptions.It indicates that a process
has met a low-level,unexpected condition.Various causes of this message include:
Time-outs(超時(shí))
File corruption(文件太老)
Failed data checks in memory(內(nèi)存檢索失敗)
Hardware,memory,or I/O errors(硬件、內(nèi)存或者磁盤(pán)錯(cuò)誤)
Incorrectly restored files(錯(cuò)誤的重建文件)
ORA-03113:end-of-file on communication channel
產(chǎn)生原因:通訊不正常結(jié)束,從而導(dǎo)致通訊通道終止
解決方法:1>.檢查是否有服進(jìn)程不正常死機(jī),可從alert.log得知
2>.檢查sql*Net Driver是否連接到ORACLE可執(zhí)行程序
3>.檢查服務(wù)器網(wǎng)絡(luò)是否正常,如網(wǎng)絡(luò)不通或不穩(wěn)定等
4>.檢查同一個(gè)網(wǎng)上是否有兩個(gè)同樣名字的節(jié)點(diǎn)
5>.檢查同一個(gè)網(wǎng)上是否有重復(fù)的IP地址
相應(yīng)的英文如下:
Cause:An unexpected end-of-file was processed on the communication channel.The problem could not be
handled by the Net8,two task,software.This message could occur if the shadow two-task process associated
with a Net8 connect has terminated abnormally,or if there is a physical failure of the interprocess
communication vehicle,that is,the network or server machine went down.
Action:If this message occurs during a commection attempt,check the setup files for the appropriate Net8
driver and confirm Net8 software is correctly installed on the server.If the message occurs after a
connection is well established,and the error is not due to a physical failure,check if a trace file was
generated on the server at failure time.Existence of a trace file may suggest an Oracle internal error
that requires the assistance of customer support.
ORA-00942:table or view does not exist
產(chǎn)生原因:這是由于裝載的表或視圖不存在,多半是CATEXP.SQL還沒(méi)有運(yùn)行,無(wú)法執(zhí)行Export視圖,如果CATEXP.SQL已經(jīng)運(yùn)
行,則可能是版本錯(cuò)誤。
解決方法:因?yàn)镮mport和Export共享的一些視圖是通過(guò)運(yùn)行CATEXP.SQL來(lái)裝載的(它們具有相同的視圖),并不生成單獨(dú)
的CATEXP.SQL,因而造成視圖與Export代碼不同步,較難保持彼此之間的兼容,用戶就必須建立自己的Export應(yīng)用,從而
避免ORA-00942的錯(cuò)誤。
相應(yīng)的英文如下:
Cause:The table or view entered does not exist,a synonym that is jnot allowed here was used,or a view was
referenced where a table is required.Existing user tables and views can be listed by querying the data
dictionary.Certain privileges may required to access the table.If an application returned this message,the
table the application tried to access does not exist in the database,or the application does not have
access to it.
Action:Check each of the following:
The spelling of the table or view name.
That a view is not specified where a table is required
That an existing table or view name exists.
Contact the database administrator if the table needs to be created or if user or application priviledes
are required to access the table.
Also, if attempting to access a table or view in another schema,make certain thecorrect schema is
referenced and that access to the object is granted.
ORA-01598:rollback segment “name” is not online
Cause:The rollback segment was taken offline either manually or by SMON.
Action:Check the status of the rollback segment in DBA_ROLLBACK_SEGS.
ORA-1636: rollback segment “name” is already online
Cause:A rollback segment can only be used by one instance and an instance is trying to bring a rollback
segment online that is already in use.
Action:Check that the values set in the initialization parameter file for parameters
ROLLBACK_SEGMENTS,ROLLBACK_SEGMENT_INITIAL,and ROLLBACK_SEGMENT_COUNT are correctly set for the instance
whiththe problem,Also check that the instance is using the correct initialization parameter file.Make sure
you are not confused about the difference between private and public rollback segments.See the Oracle8
Server Administrator’s Guide for more information about using rollback segments in paraller mode.
上述錯(cuò)誤均為我們?cè)谑褂没貪L段時(shí)比較常見(jiàn)的問(wèn)題,ORA-01598指明當(dāng)前使用的回滾段的狀態(tài)為“not online”,不能使
用,將它改為“online”狀態(tài)即可使用;ORA-01636指明當(dāng)前回滾段已經(jīng)為“online”狀態(tài),可以直接使用,不用再集合
它。
ORA-1636 signalled during: alter rollback segment rb00 online
我們?cè)谧鼋y(tǒng)計(jì)時(shí)還可能遇到下述問(wèn)題:一個(gè)rollback segment的狀態(tài)為”Needs Recovery”的現(xiàn)象,這是由于ORACLE回退
一個(gè)事物表中的沒(méi)有提交的事物時(shí)失敗所造成的。通常原因?yàn)橐粋€(gè)datafile或者tablespace是在offline的狀態(tài)或者一個(gè)
undo的目標(biāo)被破壞或者rollback segment被破壞。解決的辦法是將所有的tablespace和datafile都置為online狀態(tài),如果
不能解決則做下面的工作:1>.在initsid.ora中加入event=”10015 trace name context forever lever
10”;2>.shutdown數(shù)據(jù)庫(kù)然后重啟;3>.在$ORACLE_HOME/rdbms/log下,找到startup時(shí)生成的trace file;4>.在trace文件
中,找到下列信息“error recovery tx(#,#) object #”;5>.根據(jù)object#(與sys.dba_objects表中的object_id相同)在
sys.dba_objects表中查出該object的名字;6>.將該object drop掉;7>.在init.ora文件中將該rollback segment放回
rollback_segments參數(shù)中,刪除event;8>.shutdown數(shù)據(jù)庫(kù)然后重啟。此時(shí)”Needs Recovery”的問(wèn)題應(yīng)該是完全解決
了,否則就是rollback segment被破壞了。
ORA-01688:unable to extend table name.name partition NAME by NUM in tablespace NAME
產(chǎn)生原因:指定的tablespace空間已經(jīng)被占用滿,無(wú)法擴(kuò)展。
解決方法:使用“ALTER TABLESPACE ADD DATAFILE”命令增加文件系統(tǒng)文件和原始分區(qū),或者增加INITIAL的大?。ㄈ纾?BR>alter tablespace CDRS101 default storage(next 500M pctincrease 1))應(yīng)該能夠解決,否則就是有人使用你的表空間
上創(chuàng)建了一個(gè)比較大的數(shù)據(jù)文件導(dǎo)致你的表空間不夠用。
一個(gè)報(bào)錯(cuò)例子如下:
ORA-1688: unable to extend table RMMCDR.LOCAL_CDR partition LOCAL_CDR101 by 460800 in tablespace CDRS101
相應(yīng)的英文如下:
Cause:An extent could not be allocated for a table segment in tablespace
Action:Use the ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the specified tablespace