Final answer:
To check the Oracle DB connection from the command prompt, you can use the 'tnsping' utility.
Step-by-step explanation:
To check the Oracle DB connection from the command prompt, you can use the 'tnsping' utility. Here are the steps:
- Open the command prompt.
- Type 'tnsping' followed by the name of the Oracle TNS service name or its alias.
- Press Enter to execute the command.
- If the connection is successful, you will see a 'OK (0 msec)' message.
- If the connection fails, you may see an error message indicating the reason for the failure.