1.查看oracle数据库名DB_NAME:
su – oracle
sqlplus / as sysdba
select name from v$database;
2.查看oracle实例名SID:
su – oracle
sqlplus / as sysdba
select instance_name from v$instance;
3.查看oracle数据库版本:
su – oracle
sqlplus / as sysdba
select * from v$version;
4.查看oracle数据库ORACLE_HOME位置(产品目录):
若配置了环境变量~ su – oracle
echo $ORACLE_HOME
若未配置环境变量~ su – oracle
more /etc/oratab
5.查看oracle数据库ORACLE_BASE位置(根目录):
su – oracle
cat /home/oracle/.bash_profile
6.查看oracle数据库字符集:
SELECT * FROM Nls_Database_Parameters;
SELECT Userenv('language') FROM dual;
7.查看oracle数据库时区:
su – oracle
sqlplus / as sysdba
select dbtimezone from dual; --------查询数据库时区
select sessiontimezone from dual; --------查询session时区
8.查看oracle数据库MEMORY_TARGET:
su – oracle
sqlplus / as sysdba
show parameter memory_target;
9.查看oracle数据库SGA_TARGET:
su – oracle
sqlplus / as sysdba
show parameter sga;
10.查看oracle数据库PGA_TARGET:
su – oracle
sqlplus / as sysdba
show parameter pga;
11.查看oracle数据库最大连接数:
su – oracle
sqlplus / as sysdba
select count(*) from v$process; ---------当前的数据库连接数
select value from v$parameter where name = ‘processes’; ------------数据库允许的最大连接数