troubleshooting Question

My PL/SQL block chokes on Amazon Web Service procedure. Asking for a second pair of eyes?

Avatar of David VanZandt
David VanZandtFlag for United States of America asked on
AWSAWS RDSOracle Database
6 Comments1 Solution21 ViewsLast Modified:

Hi, I have learned in the past two hours a lot of approaches that don't work. I'm asking for a fresh pair of eyes, please. Using Oracle 19c on aws rds, the rdsadmin schema is what allows SYS level commands to execute in place of the usual ALTER statements. Also, rds uses log groups in lieu of the expected log group members. I have tried many, many variations on the syntax on code that seemingly passes the TOAD and SQL*Dev syntax checkers, but it all fails to run. 

loggroups NUMBER :=0 ;
stmt VARCHAR2(128); BEGIN     EXECUTE IMMEDIATE ('rdsadmin.rdsadmin_util.switch_logfile');     SELECT count(1) INTO loggroups FROM v$log;     IF loggroups < 9 THEN         EXECUTE IMMEDIATE ('rdsadmin.rdsadmin_util.add_logfile(128M)');     END IF; END; / /* this works outside of the block EXEC rdsadmin.rdsadmin_util.switch_logfile; */

Open in new window

Alex [***Alex140181***]
Software Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 6 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 6 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004