Oracle18c,我在里面创建了一个CDB然后一个PDB。在我重新启动Windows之前,一切都很好。我不能再连接我的PDB了。
因此,我用我的系统帐户连接到我的CDB,并显示DB统计数据。
#show pdbs;
3 TCP18DB MOUNTED 我发现我需要打开PDB:
#ALTER PLUGGABLE DATABASE tcp18db open ;我得到以下错误消息
ALTER PLUGGABLE DATABASE tcp18db open
Error report -
ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to perform a database operation without
the necessary privileges.
*Action: Ask your database administrator or designated security
administrator to grant you the necessary privileges这使我感到困惑,因为我连接为系统帐户,这应该是DBA,并获得了我所理解的所有特权。
发布于 2019-04-16 09:17:02
您需要使用允许以SYSDBA形式连接的帐户--即SYS帐户,例如:
sqlplus sys/yourpassword as sysdba要使PDB挂载自动进行,您还应该运行
alter pluggable database tcp18db save state;一旦你开始了它。然后,它将在下一次重新启动时自动启动。
https://stackoverflow.com/questions/55704495
复制相似问题