Home > Database > Oracle > body text

How to query the database name in oracle

WBOY
Release: 2022-01-21 15:41:49
Original
15387 people have browsed it

In Oracle, you can use the SELECT statement to query the database name. The function of this statement is to extract the specified data. The syntax is "SELECT name FROM v$database;".

How to query the database name in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to query the database name in oracle

First, we double-click to open the SQL PLUS software

Then enter the user name: system, enter the password and press the Enter key to log in, as shown in the figure :

How to query the database name in oracle

How to query the database name in oracle

Then enter the following query code:

SELECT name FROM v$database;

How to query the database name in oracle

Finally you can view the name of the database, as shown in the figure:

How to query the database name in oracle

Recommended tutorial: "Oracle Tutorial

The above is the detailed content of How to query the database name in oracle. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template