oracle怎么查询数据库名称

如题所述

第1个回答  推荐于2016-07-12
[oracle@rhel1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on 星期五 2月 27 14:38:40 2015

Copyright (c) 1982, 2013, Oracle. All rights reserved.

连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> show parameter db_name

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name string prodsvr
SQL> select database_name from v$database;

DATABASE_NAME
--------------------------------------------------------------------------------
PRODSVR

SQL>本回答被提问者和网友采纳
第2个回答  2015-02-27
show parameter db_name
相似回答