unable to access or list DATA_PUMP_DIR in RDS (Oracle-SE2)

1

unable to access or list DATA_PUMP_DIR in RDS (Oracle-SE2): DATA_PUMP_DIR is default oracle DIR and generally we use this to copy /move dumps of the DB, while list DATA_PUMP_DIR today I got this error which is completely new for me:

SQL> select * from table(RDSADMIN.RDS_FILE_UTIL.LISTDIR('DATA_PUMP_DIR')) order by mtime; select * from table(RDSADMIN.RDS_FILE_UTIL.LISTDIR('DATA_PUMP_DIR')) order by mtime

ORA-20199: Error in rdsadmin.rds_file_util. ORA-06512: at "RDSADMIN.RDS_FILE_UTIL", line 47 ORA-27369: job of type EXECUTABLE failed with exit code: 1 /usr/bin/rm: cannot remove '/rdsdbdata/tmp/.rds-file-list_90266': No such fil ORA-06512: at "SYS.DBMS_ISCHED", line 242 ORA-06512: at "SYS.DBMS_SCHEDULER", line 566 ORA-06512: at "SYS.RDS_SYS_UTIL", line 1142 ORA-06512: at "SYS.RDS_SYS_UTIL", line 2009 ORA-27369: job of type EXECUTABLE failed with exit code: 1 /usr/bin/find: '/rdsdbdata/tmp/.rds-file-list_90266': No such file or directo ORA-06512: at "SYS.DBMS_ISCHED", line 242 ORA-06512: at "SYS.DBMS_SCHEDULER", line 566 ORA-06512: at "SYS.RDS_SYS_UTIL", line 330 ORA-06512: at "SYS.RDS_SYS_UTIL", line 1969 ORA-06512: at "RDSADMIN.RDS_FILE_UTIL", line 38 ORA-06512: at "RDSADMIN.RDS_FILE_UTIL", line 3

已提问 1 年前974 查看次数
1 回答
0
已接受的回答

I had the exact same issue. Through testing, I determined that this error is now thrown from RDSADMIN.RDS_FILE_UTIL.LISTDIR when you create an Oracle RDS instance and do not enable automated backups. It appears some necessary directories on the filesystem are not created if this option is not enabled, which causes the errors you are seeing. As a workaround, you can modify your instance and set automated backup retention to 1 day. Apply the changes immediately. When they are applied calls to RDSADMIN.RDS_FILE_UTIL.LISTDIR will now work. You can then modify the instance again and set backup retention to 0 days and the calls will continue to work. I agree that this is new behavior that I have not seen before, even when not enabling automated backups. Seems like a bug.

已回答 1 年前
  • Thank you, its working for me.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容