Home > Database > Oracle > body text

Where can I find the instance name of Oracle database?

下次还敢
Release: 2024-04-07 16:00:21
Original
460 people have browsed it

How to view the Oracle database instance name: SQL*Plus: execute the query "SELECT INSTANCE_NAME FROM V$INSTANCE;" Operating system command: Linux and macOS: "ps -ef | grep ora_pmon | grep -v grep | awk '{print $NF}'" Windows: No method to view the Oracle database instance name is provided yet

Where can I find the instance name of Oracle database?

# The method to obtain the Oracle database instance name is as follows:

1. Use SQL*Plus

<code class="sql">SELECT INSTANCE_NAME FROM V$INSTANCE;</code>
Copy after login

2. Use the operating system command

Linux and macOS:

<code class="bash">ps -ef | grep ora_pmon | grep -v grep | awk '{print $NF}'</code>
Copy after login

Windows:

The above is the detailed content of Where can I find the instance name of Oracle database?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template