国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > Oracle > 正文

Oracle常見錯誤代碼的分析與解決五

2024-08-29 13:42:41
字體:
供稿:網(wǎng)友

  產(chǎn)生原因:這是由于裝載的表或視圖不存在,多半是CATEXP.SQL還沒有運行,無法執(zhí)行Export視圖,假如CATEXP.SQL已經(jīng)運行,則可能是版本錯誤。

解決方法:因為Import和Export共享的一些視圖是通過運行CATEXP.SQL來裝載的(它們具有相同的視圖),并不生成單獨的CATEXP.SQL,因而造成視圖與Export代碼不同步,較難保持彼此之間的兼容,用戶就必須建立自己的Export應(yīng)用,從而避免ORA-00942的錯誤。

相應(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.

上述錯誤均為我們在使用回滾段時比較常見的問題,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

我們在做統(tǒng)計時還可能碰到下述問題:一個rollback segment的狀態(tài)為”Needs Recovery”的現(xiàn)象,這是由于ORACLE回退一個事物表中的沒有提交的事物時失敗所造成的。通常原因為一個datafile或者 tablespace是在offline的狀態(tài)或者一個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ù)庫然后重啟;

3>.在$ORACLE_HOME/rdbms/log下,找到startup時生成的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ù)庫然后重啟。此時”Needs Recovery”的問題應(yīng)該是完全解決了,否則就是rollback segment被破壞了。

ORA-01688:unable to extend table name.name partition NAME by NUM in tablespace NAME

產(chǎn)生原因:指定的tablespace空間已經(jīng)被占用滿,無法擴展。

解決方法:使用“ALTER TABLESPACE ADD DATAFILE”命令增加文件系統(tǒng)文件和原始分區(qū),或者增加INITIAL的大小(如:alter tablespace CDRS101 default storage(next 500M pctincrease 1))應(yīng)該能夠解決,否則就是有人使用你的表空間上創(chuàng)建了一個比較大的數(shù)據(jù)文件導(dǎo)致你的表空間不夠用。

一個報錯例子如下: 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
[返回列表]

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 大邑县| 太谷县| 肥东县| 蓬安县| 磐石市| 达尔| 建水县| 四会市| 大石桥市| 宜黄县| 无极县| 玉环县| 怀远县| 海安县| 紫云| 大连市| 宁陕县| 天镇县| 黄陵县| 上林县| 孝义市| 临湘市| 江孜县| 齐齐哈尔市| 海盐县| 郑州市| 蓝山县| 工布江达县| 佛冈县| 铜梁县| 淅川县| 如皋市| 保亭| 九江县| 龙海市| 贵南县| 神池县| 钟祥市| 定南县| 万全县| 灵武市|