How to set up a post-startup trigger on RDS Oracle 19c?

0

We have an instance running with Oracle Edition-Based Redefinition (EBR). Following an outage, say to apply the quarterly security patches, a post-startup trigger is required in order to execute a PLSQL package automatically. Our code is DROP TRIGGER RDSADMIN.RDS_DDL_TRIGGER2; CREATE OR REPLACE TRIGGER RDSADMIN.RDS_DDL_TRIGGER2 BEFORE DDL ON DATABASE BEGIN rdsadmin_trigger_util.secure_ddl; END; / SHOW ERRORS;

And we're raising the following error: [Error] Compilation (3: 7): ORA-04088: error during execution of trigger 'RDSADMIN.RDS_DDL_TRIGGER2' ORA-00604: error occurred at recursive SQL level 1 ORA-20900: RDS restricted DDL found: CREATE TRIGGER SYS.EDITION_SERV_START ORA-06512: at "RDSADMIN.RDSADMIN_TRIGGER_UTIL", line 756 ORA-06512: at line 2

Any insight would be appreciated.

已提問 2 年前檢視次數 274 次
1 個回答
0

You can try to solve this problem two different ways:

  1. Use an AWS CloudFormation custom resource to call an AWS Lambda function to run post-database creation steps on the Amazon RDS for Oracle DB instance right after creation or restoration from a snapshot
  2. Use Amazon Elastic Compute Cloud (Amazon EC2) as a temporary instance to connect with the RDS for Oracle database to run post-database creation steps on the RDS for Oracle DB instance right after creation or restoration from a snapshot

Reference : https://aws.amazon.com/blogs/database/automate-post-database-creation-scripts-or-steps-in-an-amazon-rds-for-oracle-database/

profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南