Listing of Files in an AWS RDS Oracle Database Directory
==========================================================
Query:-
==========
select * from table(RDSADMIN.RDS_FILE_UTIL.LISTDIR('DATA_PUMP_DIR'))
order by mtime;
Query :-
==========
select * from table(rdsadmin.rds_file_util.listdir(p_directory => '&MyOracleDatabaseDirectoryName'));
SQL> select * from table(RDSADMIN.RDS_FILE_UTIL.LISTDIR('DATA_PUMP_DIR'))
order by mtime; 2
FILENAME TYPE FILESIZE MTIME
------------------------------------------------------------ ---------- ---------- ---------
oracl_rds_full_db.dmp file 2248704 17-MAR-20
oracl_rds_full_db.log file 7082 17-MAR-20
test1_full_db.dmp file 167448576 17-MAR-20
test1_anurag_db.log file 2217 17-MAR-20
test1_anurag_db1.log file 1474 17-MAR-20
datapump/ directory 4096 17-MAR-20
test1_anurag_db2.log file 993408 17-MAR-20
7 rows selected.
SQL>
==========================================================
Query:-
==========
select * from table(RDSADMIN.RDS_FILE_UTIL.LISTDIR('DATA_PUMP_DIR'))
order by mtime;
Query :-
==========
select * from table(rdsadmin.rds_file_util.listdir(p_directory => '&MyOracleDatabaseDirectoryName'));
SQL> select * from table(RDSADMIN.RDS_FILE_UTIL.LISTDIR('DATA_PUMP_DIR'))
order by mtime; 2
FILENAME TYPE FILESIZE MTIME
------------------------------------------------------------ ---------- ---------- ---------
oracl_rds_full_db.dmp file 2248704 17-MAR-20
oracl_rds_full_db.log file 7082 17-MAR-20
test1_full_db.dmp file 167448576 17-MAR-20
test1_anurag_db.log file 2217 17-MAR-20
test1_anurag_db1.log file 1474 17-MAR-20
datapump/ directory 4096 17-MAR-20
test1_anurag_db2.log file 993408 17-MAR-20
7 rows selected.
SQL>
FILESIZE - do you know if it is bytes or kb or mb
ReplyDeletebytes
ReplyDelete