我是靠谱客的博主 花痴鼠标,最近开发中收集的这篇文章主要介绍ORA-20200,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.1.0.6 and later
Information in this document applies to any platform.

SYMPTOMS

  • Some SQL scripts from ORACLE_HOME/rdbms/admin, such as addmrpt.sql, ashrpt.sql, awrinfo.sql, awrrpti.sql, etc... generate errors similar to the following:  

    SQL>
    @?/rdbms/admin/awrrpt.sql
    Current Instance
    ~~~~~~~~~~~~~~~~
    ...
    Instances in this Workload Repository schema
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    DB Id
    Inst Num DB Name
    Instance Host
    ------------ -------- ------------ ------------ ------------
    * 126907423
    1 IDHPR9
    idhpr9 endecprtp1
    Using
    126,907,423 for database Id
    Using
    1 for instance number
    :dbid
    :=
    126,907,423;
    *
    ERROR at line 2:
    ORA-06550: line 2, column 26:
    PLS-00103: Encountered the symbol "," when expecting one of the following:
    * & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    declare
    *
    ERROR at line 1:
    ORA-20200: Database/Instance / does not exist in DBA_HIST_DATABASE_INSTANCE
    ORA-06512: at line 23
    

 

  

CHANGES

The numformat SQL*Plus Environment Variables has been updated to a non-standard format

CAUSE

The numformat SQL*Plus Environment Variables being set to an unexpected format caused the issue. For example:

SQL> show numformat
numformat "999,999,999,999"

AWR script inputs are influenced via SQL*Plus Environment Variables, since they are executed within the SQL*Plus environment.

Issue is reproducible for all *.SQL scripts from @$ORACLE_HOME/rdbms/admin like, addmrpt.sql, ashrpt.sql, awrinfo.sql, awrrpti.sql.

 

SOLUTION

Reset the numformat SQL*Plus environment to the default using the following:

To see the current value:

SQL> show numformat

To reset numformat back to the default and verify:

SQL> set numformat ""
SQL> show numformat

最后

以上就是花痴鼠标为你收集整理的ORA-20200的全部内容,希望文章能够帮你解决ORA-20200所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(70)

评论列表共有 0 条评论

立即
投稿
返回
顶部