Skip to content

Why did my Amazon RDS for Oracle DB instance restart, recover, or fail over?

4 minute read
0

My Amazon Relational Database Service (Amazon RDS) for Oracle DB instance automatically restarted, recovered, or failed over.

Short description

Amazon RDS for Oracle DB instances can automatically restart, recover, or fail over for the following reasons:

Resolution

Expected behavior and benign alert log entries

Amazon RDS for Oracle runs a managed startup sequence whenever an instance restarts, fails over, reboots, is paused and started, is restored from a snapshot, or completes a minor version upgrade. During this managed sequence, if the managed RDS operating system doesn't permit Oracle to set real-time process priority for the VKTM (Virtual Keeper of Time) background process, then you receive the following entry in the Oracle alert log:

"ORA-00800: soft external error, arguments: [Set Priority Failed], [VKTM]"

Or you might see alter database end backup and related recovery messages as part of the managed backup and startup orchestration that RDS runs on your behalf.

These are expected, benign artifacts of the managed RDS environment and don't indicate a problem. The instance opens and operates normally. No action is required for these messages. If your instance doesn't reach the Available state, or you see other errors alongside a failed startup, then review the full RDS event log and alert log for the specific failure rather than these expected entries.

Best practices

To minimize issues with automatic restarts, recoveries, or failovers on your DB instance, use the following best practices:

  • Review the complete log of Amazon RDS events from the past 24 hours. To keep event data for an extended time period, it's a best practice to forward Amazon RDS events to CloudWatch Events. Use the logs to help you identify the underlying reason for the instance restart.
  • Activate Multi-AZ deployment on your DB instance to reduce downtime during an outage.
  • Create an event subscription to Amazon RDS event notifications to notify you when your DB instance restarts.
  • Configure CloudWatch alarms for key CloudWatch metrics that show instance availability. Use metrics such as, CPUUtilization, FreeableMemory, ReadIOPS, WriteIOPS, SwapUsage, and FreeStorageSpace.
  • Make sure that your queries are correctly tuned to optimize database performance. Otherwise, you might experience performance issues and extended wait times. Use the Performance Insights dashboard to analyze Oracle Execution plans and wait events.

Related information

How do I handle low free memory or high swap usage issues in my Amazon RDS for Oracle database instance?

Why is my Amazon RDS DB instance using swap memory when I have sufficient memory?

AWS OFFICIALUpdated a month ago