码迷,mamicode.com
首页 > 数据库 > 详细

[Oracle][Standby][PDB]在PDB中修改参数,设置范围为 SPFILE,报 ORA-65099错误

时间:2017-10-05 13:31:48      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:target   参数   line   oracle   sga   执行   bug   tar   alt   

[Oracle][Standby][PDB]在PDB中修改参数,设置范围为 SPFILE,报 ORA-65099错误


在Data Gaurd 的 Standby (或 CDB 是 Read Only )中,在PDB下,执行如下SQL 出错:

SQL> ALTER SYSTEM SET SGA_TARGET = 800 M SCOPE = SPFILE;
ALTER SYSTEM SET SGA_TARGET = 800 M SCOPE = SPFILE
*
An error occurred on line 1. :
ORA-65099: Can not perform operation if CDB is not open

Also, even if CDB was opened with read only, the same error occurred and could not be changed.

经过调查,发现:

当我在PDB 中修改参数,指定了  SCOPE= SPFILE 的时候,
其实是要写入到  pdb_spfile$ 这张表的 ,但是这个内部表 是在 CDB中。

而CDB 是 Read Only 状态,实际上写不成,所以报错。 这是一个正常的行为,不算Bug。

当然,这表明PDB 对 CDB 的依赖还是有点大。

[Oracle][Standby][PDB]在PDB中修改参数,设置范围为 SPFILE,报 ORA-65099错误

标签:target   参数   line   oracle   sga   执行   bug   tar   alt   

原文地址:http://www.cnblogs.com/gaojian/p/3_15494158961.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!