[英]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.