ORA-20200
来源:互联网 发布:印度留学知乎 编辑:程序博客网 时间:2024/06/03 22:49
APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.1.0.6 and laterInformation 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.sqlCurrent Instance~~~~~~~~~~~~~~~~...Instances in this Workload Repository schema~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DB Id Inst Num DB Name Instance Host------------ -------- ------------ ------------ ------------* 126907423 1 IDHPR9 idhpr9 endecprtp1Using 126,907,423 for database IdUsing 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 like2like4 likec between || multiset member submultisetdeclare*ERROR at line 1:ORA-20200: Database/Instance / does not exist in DBA_HIST_DATABASE_INSTANCEORA-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"
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
- ORA-20200
- ORA
- ora
- ORA-01034 ORA-27101
- ORA-10567,ORA-00313
- ora-01128,ora-00275
- ORA-03113,ORA-07445
- ORA-32017 ORA-16179
- ORA-12012,ORA-12005
- ora-01034 ,ora-27101
- ora-603 ora-27504
- ora-01113 ora-01110
- ORA-24324 & ORA-01041
- tnsnames.ora & listener.ora
- ORA-09817&ORA-01031
- ORA-00604 & ORA-25153
- ORA-38029 & ORA-20005
- ORA-28002,ORA-01502
- As3 通过绘制多张位图合并成一个超大的位图
- Java7的try新功能
- ParticleEffect——canvas粒子效果组件
- 图像融合(二)-- 简单加权融合
- Javascript的with语句
- ORA-20200
- Linux目录的权限
- Memcached特性及优缺点
- eclipse上运行spark程序
- Android封装ShareSDK分享功能
- 图像融合(三)-- 拉普拉斯金字塔
- OpenCV3的kNN算法进行OCR识别-使用Python
- 从以前的 11.2.0.N 版本非原地手动升级到最新的 11.2.0.N 补丁集的完整核对清单
- 图像融合(四)-- 对比度金字塔