ORACLE常见错误代码的分析与解决三
程序员文章站
2022-07-17 13:48:16
正在看的oracle教程是:oracle常见错误代码的分析与解决三。 ---------------------------------------------...
正在看的oracle教程是:oracle常见错误代码的分析与解决三。
--------------------------------------------------------------------------------
p align="justify">ora-00600:internal error code,arguments:[num],[?],[?],[?],[?]
产生原因:这种错误通常为oracle的内部错误,只对oss和oracle开发有用。ora-600的错误经常伴随跟踪文件的状态转储(系统状态和进程状态),系统状态存储将包括oracle rdbms持有的当前对象的信息,进程状态转储则将显示特殊进程持有的对象,当进程符合了某错误条件时,经常是由于一些信息取自它持有的一个块,如果我们知道这些错误进程持有的块,就容易跟踪问题的来源。
解决方法:一般来说出现这个错误我们本身是无法解决的,只有从提高系统本身各方面来解决这个内部问题,如增加硬件设备,调整系统性能,使用ops(当然ops从某种意义上说并不是一种好的解决方式)等。ora-600错误的第一个变量用于标记代码中错误的位置(代码中的每个部分的第一变量都不一样),从第二个到第五个变量显示附加信息,告诉oss代码在哪里出现了错误。
一个报错例子如下:
ora-00600: internal error code, arguments: [1237], [], [], [], [], [], [], []
相应的英文如下:
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(超时)
file corruption(文件太老)
failed data checks in memory(内存检索失败)
hardware,memory,or i/o errors(硬件、内存或者磁盘错误)
incorrectly restored files(错误的重建文件)
ora-03113:end-of-file on communication channel
产生原因:通讯不正常结束,从而导致通讯通道终止
解决方法:1$#@62;.检查是否有服进程不正常死机,可从alert.log得知
2$#@62;.检查sql*net driver是否连接到oracle可执行程序
3$#@62;.检查服务器网络是否正常,如网络不通或不稳定等
4$#@62;.检查同一个网上是 辛礁鐾值慕诘?
5$#@62;.检查同一个网上是否有重复的ip地址
相应的英文如下:
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
产生原因:这是由于装载的表或视图不存在,多半是catexp.sql还没有运行,无法执行export视图,如果catexp.sql已经运行,则可能是版本错误。
解决方法:因为import和export共享的一些视图是通过运行catexp.sql来装载的(它们具有相同的视图),并不生成单独的catexp.sql,因而造成视图与export代码不同步,较难保持彼此之间的兼容,用户就必须建立自己的export应用,从而避免ora-00942的错误。
相应的英文如下:
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 retur 正在看的oracle教程是:oracle常见错误代码的分析与解决三。ned 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.
上述错误均为我们在使用回滚段时比较常见的问题,ora-01598指明当前使用的回滚段的状态为“not online”,不能使用,将它改为“online”状态即可使用;ora-01636指明当前回滚段已经为“online”状态,可以直接使用,不用再集合它。
ora-1636 signalled during: alter rollback segment rb00 online
我们在做统计时还可能遇到下述问题:一个rollback segment的状态为”needs recovery”的现象,这是由于oracle回退一个事物表中的没有提交的事物时失败所造成的。通常原因为一个datafile或者tablespace是在offline的状态或者一个undo的目标被破坏或者rollback segment被破坏。解决的办法是将所有的tablespace和datafile都置为online状态,如果不能解决则做下面的工作:1$#@62;.在initsid.ora中加入event=”10015 trace name context forever lever 10”;2$#@62;.shutdown数据库然后重启;3$#@62;.在$oracle_home/rdbms/log下,找到startup时生成的trace file;4$#@62;.在trace文件中,找到下列信息“error recovery tx(#,#) object #”;5$#@62;.根据object#(与sys.dba_objects表中的object_id相同)在sys.dba_objects表中查出该object的名字;6$#@62;.将该object drop掉;7$#@62;.在init.ora文件中将该rollback segment放回rollback_segments参数中,删除event;8$#@62;.shutdown数据库然后重启。此时”needs recovery”的问题应该是完全解决了,否则就是rollback segment被破坏了。
ora-01688:unable to extend table name.name partition name by num in tablespace name
产生原因:指定的tablespace空间已经被占用满,无法扩展。
解决方法:使用“alter tablespace add datafile”命令增加文件系统文件和原始分区,或者增加initial的大小(如:alter tablespace cdrs101 de正在看的oracle教程是:oracle常见错误代码的分析与解决三。fault storage(next 500m pctincrease 1))应该能够解决,否则就是有人使用你的表空间上创建了一个比较大的数据文件导致你的表空间不够用。
一个报错例子如下:
ora-1688: unable to extend table rmmcdr.local_cdr partition local_cdr101 by 460800 in tablespace cdrs101
相应的英文如下:
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
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
p align="justify">ora-00600:internal error code,arguments:[num],[?],[?],[?],[?]
产生原因:这种错误通常为oracle的内部错误,只对oss和oracle开发有用。ora-600的错误经常伴随跟踪文件的状态转储(系统状态和进程状态),系统状态存储将包括oracle rdbms持有的当前对象的信息,进程状态转储则将显示特殊进程持有的对象,当进程符合了某错误条件时,经常是由于一些信息取自它持有的一个块,如果我们知道这些错误进程持有的块,就容易跟踪问题的来源。
解决方法:一般来说出现这个错误我们本身是无法解决的,只有从提高系统本身各方面来解决这个内部问题,如增加硬件设备,调整系统性能,使用ops(当然ops从某种意义上说并不是一种好的解决方式)等。ora-600错误的第一个变量用于标记代码中错误的位置(代码中的每个部分的第一变量都不一样),从第二个到第五个变量显示附加信息,告诉oss代码在哪里出现了错误。
一个报错例子如下:
ora-00600: internal error code, arguments: [1237], [], [], [], [], [], [], []
相应的英文如下:
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(超时)
file corruption(文件太老)
failed data checks in memory(内存检索失败)
hardware,memory,or i/o errors(硬件、内存或者磁盘错误)
incorrectly restored files(错误的重建文件)
ora-03113:end-of-file on communication channel
产生原因:通讯不正常结束,从而导致通讯通道终止
解决方法:1$#@62;.检查是否有服进程不正常死机,可从alert.log得知
2$#@62;.检查sql*net driver是否连接到oracle可执行程序
3$#@62;.检查服务器网络是否正常,如网络不通或不稳定等
4$#@62;.检查同一个网上是 辛礁鐾值慕诘?
5$#@62;.检查同一个网上是否有重复的ip地址
相应的英文如下:
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
产生原因:这是由于装载的表或视图不存在,多半是catexp.sql还没有运行,无法执行export视图,如果catexp.sql已经运行,则可能是版本错误。
解决方法:因为import和export共享的一些视图是通过运行catexp.sql来装载的(它们具有相同的视图),并不生成单独的catexp.sql,因而造成视图与export代码不同步,较难保持彼此之间的兼容,用户就必须建立自己的export应用,从而避免ora-00942的错误。
相应的英文如下:
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 retur 正在看的oracle教程是:oracle常见错误代码的分析与解决三。ned 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.
上述错误均为我们在使用回滚段时比较常见的问题,ora-01598指明当前使用的回滚段的状态为“not online”,不能使用,将它改为“online”状态即可使用;ora-01636指明当前回滚段已经为“online”状态,可以直接使用,不用再集合它。
ora-1636 signalled during: alter rollback segment rb00 online
我们在做统计时还可能遇到下述问题:一个rollback segment的状态为”needs recovery”的现象,这是由于oracle回退一个事物表中的没有提交的事物时失败所造成的。通常原因为一个datafile或者tablespace是在offline的状态或者一个undo的目标被破坏或者rollback segment被破坏。解决的办法是将所有的tablespace和datafile都置为online状态,如果不能解决则做下面的工作:1$#@62;.在initsid.ora中加入event=”10015 trace name context forever lever 10”;2$#@62;.shutdown数据库然后重启;3$#@62;.在$oracle_home/rdbms/log下,找到startup时生成的trace file;4$#@62;.在trace文件中,找到下列信息“error recovery tx(#,#) object #”;5$#@62;.根据object#(与sys.dba_objects表中的object_id相同)在sys.dba_objects表中查出该object的名字;6$#@62;.将该object drop掉;7$#@62;.在init.ora文件中将该rollback segment放回rollback_segments参数中,删除event;8$#@62;.shutdown数据库然后重启。此时”needs recovery”的问题应该是完全解决了,否则就是rollback segment被破坏了。
ora-01688:unable to extend table name.name partition name by num in tablespace name
产生原因:指定的tablespace空间已经被占用满,无法扩展。
解决方法:使用“alter tablespace add datafile”命令增加文件系统文件和原始分区,或者增加initial的大小(如:alter tablespace cdrs101 de正在看的oracle教程是:oracle常见错误代码的分析与解决三。fault storage(next 500m pctincrease 1))应该能够解决,否则就是有人使用你的表空间上创建了一个比较大的数据文件导致你的表空间不够用。
一个报错例子如下:
ora-1688: unable to extend table rmmcdr.local_cdr partition local_cdr101 by 460800 in tablespace cdrs101
相应的英文如下:
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
--------------------------------------------------------------------------------
上一篇: 在Oracle 8x实现自动断开后再连接
下一篇: ORACLE常见错误代码的分析与解决二