Check the Oracle instance name through the following steps: 1. Use SQL*Plus to connect to Oracle; 2. Run the query: SELECT INSTANCE_NAME FROM V$INSTANCE; 3. The query results will display the name of the current instance.
How to check the Oracle instance name
Step 1: Open the command prompt
Step 2: Connect to Oracle using SQL*Plus
<code>sqlplus username/password</code>
Where:
username
is your Oracle username. password
is your Oracle password. Step 3: Run the query
<code>SELECT INSTANCE_NAME FROM V$INSTANCE;</code>
Steps 4: View the results
Example:
<code>SQL> SELECT INSTANCE_NAME FROM V$INSTANCE; INSTANCE_NAME --------------- orcl</code>
In this example, the instance name is "orcl".
The above is the detailed content of How to read oracle instance name. For more information, please follow other related articles on the PHP Chinese website!