How do you create a procedure in Oracle with a select from rdsadmin?
Environment: Oracle Database 11g 11.2.0.4.0 AWS RDS
SQL query
`SELECT * FROM TABLE(rdsadmin.rds_file_util.listdir(p_directory => 'DATA_PUMP_DIR'));`
Returns
Store Procedure:
create or replace PROCEDURE SP_LIST_DIR
IS
BEGIN
SELECT *
FROM TABLE(rdsadmin.rds_file_util.listdir(p_directory => 'DATA_PUMP_DIR'));
END SP_LIST_DIR;
How can I get the procedure to return the results from (fig.1)?
Results: