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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值