Resolving Oracle Server Configuration Issues

While most applications function seamlessly on a Fresh Start machine prepared using DaDesktop (DD), the cloning process can occasionally cause specific applications to behave unexpectedly. To ensure these applications operate correctly, a few additional configuration steps may be required.

System Overview

  • Oracle Database 19c (Note: Other versions may exhibit similar behavior)

  • Provisioned using the Windows 10 template

Fresh Start Remediation Guidelines

  1. Please treat this as a general guide for resolving issues with this application within the Fresh Start environment. Specific steps may vary based on your unique configuration.

  2. In summary, the core issue on the Fresh Start machine is that it uses a specific hostname. However, once the machine is cloned, this hostname becomes invalid on the target device. To resolve this, we replace the original hostname with the loopback address 127.0.0.1 (localhost). Additionally, redundant database Listeners can complicate the configuration; these should be removed as detailed below.

Remediation Process

1. The image below illustrates the network connection failure encountered when using Oracle SQL Developer.

Failure Test

2. Open the Oracle Net Manager application.

This displays the service details, including the original host information (in this instance, alexei-uuae.vm).

Oracle Net Manager

3. Perform a connection test (entering userid=system and the corresponding password).

Connection test fails

4. Navigate to Oracle Net Manager > Listening Locations > Listener. Here, you will see the original hostname 'alexei-uue.vm' listed in the host details, which needs to be updated.

Incorrect host details

5. No databases are currently configured to work with LISTENER1. Check for any Listeners that do not have associated database services. If found, remove that specific Listener.

Listeners

6. Proceed to delete LISTENER1 and confirm the action. Note: This reflects a specific scenario from our setup; while not always required, it is included here as a practical example.

Delete Listener

7. Review the DEFAULT SERVER LISTENER. Check each Listener sequentially; in this case, no valid listening location is available.

Default Listener

8. Consequently, delete the DEFAULT SERVER LISTENER.

Delete Listener

9. With only LISTENER remaining, observe the existing VM hostname. This entry must be updated because it will change during the cloning process.

Fix Network

10. Modify the host from the value shown (e.g., 'alexi.uuae.vm') to 127.0.0.1, while keeping the port number unchanged.

Chnage Network

Next, configure the existing database.

11. Update the SID to XE and set the Global Database Name to xe.local.

Change details of SID and global db name

12. Save the network configuration and close the application.

13. Open a Command Prompt to restart the listener service.

Enter ‘lsnrctl status’, then run 'lsnrctl stop'.

Subsequently, run 'lsnrctl start'.

Cmd prompt

Relaunch Oracle Net Manager.

14. Remove 'alexei-vm' from the Service Naming > xe section.

15. Update the host address to 127.0.0.1.

change host to 127.0.0.1

16. Save the network connection settings.

17. Perform a Connection Test by clicking the button indicated in the image below.

Click to test

18. Adjust the login credentials: change the username to ‘system’ and verify the password.

Connection test succesful

Save the network connection if prompted.

19. Return to the main Oracle SQL Developer application and run the Connection Test again.

Oracle app

20. Assuming the connection is successful, navigate to the Connections panel on the left. Expand Oracle Connections to verify that the database tables are visible as expected.

21. Proceed with the remaining Fresh Start machine configuration and clone the Fresh Start image to the Trainer and Participant machines.

The Oracle Database server should now function correctly on all Trainers' and Participants' machines.

If you continue to encounter issues, please contact DaDesktop Support via the chat app, and we will be glad to assist.