是否可以在AWS RDS中使用基于Oracle版本的重定义?

问题描述 投票:0回答:1

我在 AWS RDS 上有一个 Oracle 数据库。

我想使用基于 Oracle 版本的重定义:

我正在做类似的事情:

-- Create a function in the default edition of the database
CREATE OR REPLACE FUNCTION test RETURN NUMBER IS
BEGIN
  RETURN 1;
END;


-- Create a new edition
CREATE EDITION E2;
ALTER SESSION SET EDITION = e2;

-- Change the function in edition 2
CREATE OR REPLACE FUNCTION test RETURN NUMBER IS
BEGIN
  RETURN 2;
END;

-- Test the function in the context of the new edition 
select test from dual;    -- returns 2 as expected

-- Test the function in the context of the default edition
ALTER SESSION SET EDITION = ora$base;
select test from dual;    -- returns 1 as expected

现在假设我想迁移到新版本(例如所有数据库对象的发行版):

ALTER DATABASE DEFAULT EDITION = e2;

我收到错误 ORA-01031 - 权限不足。

我使用的是AWS RDS提供的数据库管理员用户,它不如sysdba用户强大。

所以我的问题是:AWS RDS 中是否可以进行基于 Oracle 版本的重新定义?

谢谢。

amazon-web-services oracle amazon-rds
1个回答
0
投票

嗯,答案是肯定的。这是可能的。答案就在这里

© www.soinside.com 2019 - 2024. All rights reserved.