To verify if the standby database is in sync with the primary database in Oracle 19c, follow these steps:
1. Compare Sequence Numbers: Check the latest sequence number generated on the primary database and the latest sequence number applied on the standby database.
2. Check for Gaps: Ensure there are no missing sequence numbers on the standby database.
To verify the status of the primary and standby databases:
- On the primary server, log in and run the SQL query to check the status.
- On the standby server, log in and execute the same SQL query.
To verify the gap of the standby:
- Find the last primary sequence generated.
- Identify the last standby sequence received.
- Determine the last standby sequence applied.
To identify the hostname of the DR server from the primary database:
- Run the provided query to display the DR server's hostname.