更改"系统的密码"用户在Oracle12c数据库中使用sql developer

时间:2017-02-07 18:44:03

标签: sql oracle oracle-sqldeveloper ddl oracle12c

我要更改"系统的密码"用户使用sql developer但运行此命令时出现以下错误

我使用系统用户创建连接并运行以下命令

    alter user system identified by "myPass" replace "myPass" CONTAINER=ALL ;

这是我得到的错误

Error SQL: ORA-65050: Las DDL comunes solo se permiten en CDB$ROOT
65050. 00000 -  "Common DDLs only allowed in CDB$ROOT"
*Cause:    An attempt was made to issue a Common DDL in a pluggable database.
*Action:   Switch to CDB$ROOT and issue the Common DDL there.
Confirmación terminada.

它说我需要切换到CDB$ROOT,但我不知道那是什么以及如何使用sql developer切换到该模式

1 个答案:

答案 0 :(得分:1)

错误信息非常明确:Switch to CDB$ROOT - 没有什么可以混淆的。

你不知道怎么办?

alter session set container = cdb$root