1

我想在我的 ADB-S 数据库上产生一些 CPU 负载。我试图从示例模式 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.
4

1 回答 1

2

无法更改 SSB(或与此相关的任何示例模式)上的任何内容是故意的。这些是纯粹的只读模式,它们的统计信息由 Oracle 控制。

Oracle 文档提到示例模式是只读的:

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

于 2021-09-24T23:18:50.577 回答