简体   繁体   English

为什么在 SSB 模式中的表上运行 dbms_stats.gather_table_stats 时会出现 ORA-20000?

[英]Why do I get ORA-20000 when I run dbms_stats.gather_table_stats on a table in SSB Schema?

I wanted to generate some CPU load on my ADB-S database.我想在我的 ADB-S 数据库上产生一些 CPU 负载。 I tried to collect the optimizer statistics on a table from the sample schema SSB, but I got this error, even if I am connected as ADMIN user:我尝试从示例模式 SSB 收集表的优化器统计信息,但我收到此错误,即使我以 ADMIN 用户身份连接也是如此:

exec dbms_stats.gather_table_stats('SSB','CUSTOMER');
BEGIN dbms_stats.gather_table_stats('SSB','CUSTOMER'); END;
Error report -
ORA-20000: Unable to analyze TABLE "SSB"."CUSTOMER", insufficient privileges or does not exist
ORA-06512: at "SYS.DBMS_STATS", line 40921
ORA-06512: at "SYS.DBMS_STATS", line 40193
ORA-06512: at "SYS.DBMS_STATS", line 40352
ORA-06512: at "SYS.DBMS_STATS", line 40902
ORA-06512: at line 1
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information.

Not being able to change anything on SSB (or any sample schema for that matter) is intentional.无法更改 SSB 上的任何内容(或与此相关的任何示例模式)是有意的。 Those are purely read-only schemas and the stats on them are controlled by Oracle.这些是纯粹的只读模式,它们的统计信息由 Oracle 控制。

Oracle documentation mentions that sample schemas are read-only: Oracle 文档提到示例模式是只读的:

https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-sample-data.html#GUID-4BB2B49B-0C20-4E38-BCC7-A61D3F45390B https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-sample-data.html#GUID-4BB2B49B-0C20-4E38-BCC7-A61D3F45390B

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Postgresql与Oracle中的dbms_stats.gather_table_stats等效什么? - what is equivalent of Postgresql to dbms_stats.gather_table_stats in Oracle? 有关dbms_stats.gather_table_stats的问题 - Question regarding dbms_stats.gather_table_stats DBMS_STATS.GATHER_TABLE_STATS如何在Oracle中工作 - How DBMS_STATS.GATHER_TABLE_STATS works in oracle 如何解决存储过程在通过 EXECUTE IMMEDIATE 作为字符串执行时不执行 dbms_stats.gather_table_stats() 的问题 - How to resolve issue of stored proc not executing dbms_stats.gather_table_stats() when executing as it string via EXECUTE IMMEDIATE 在Oracle过程中交换分区后的Dbms_Stats.Gather_Table_Stats吗? - Dbms_Stats.Gather_Table_Stats after partition exchange in Oracle procedure? Oracle 19C dbms_stats.gather_table_stats 缓慢并返回无效标识符错误 - Oracle 19C dbms_stats.gather_table_stats Slowness and return invalid identifier error LAST_ANALYZE null 在 dbms_stats.gather_table_stats 之后 - LAST_ANALYZE null after dbms_stats.gather_table_stats 没有权限收集表格统计信息 - No privileges to gather table stats 收集分区表的统计信息 - Gather stats on partition table 如何提高dbms_stats.gather_schema_stats的性能 - How to improve performance of dbms_stats.gather_schema_stats
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM