查看数据库版本
SQL> col host_name for a30
select instance_name,host_name,version,status,logins,database_status from v$instance;
INSTANCE_NAME HOST_NAME VERSION STATUS LOGINS DATABASE_STATUS
---------------- ------------------------------ ----------------- ------------ ---------- -----------------
racdb1 node1 11.2.0.4.0 OPEN ALLOWED ACTIVE
在数据库服务器上查看客户端主机信息:
--查看单机:
set linesize 300
col machine for a24
col username for a24
select sid,serial#,username,machine,program from v$session where username not in('SYS','SYSTEM','SYSMAN');
SID SERIAL# USERNAME MACHINE PROGRAM
---------- ---------- ------------------------------ --------
SQL> col host_name for a30
select instance_name,host_name,version,status,logins,database_status from v$instance;
INSTANCE_NAME HOST_NAME VERSION STATUS LOGINS DATABASE_STATUS
---------------- ------------------------------ ----------------- ------------ ---------- -----------------
racdb1 node1 11.2.0.4.0 OPEN ALLOWED ACTIVE
在数据库服务器上查看客户端主机信息:
--查看单机:
set linesize 300
col machine for a24
col username for a24
select sid,serial#,username,machine,program from v$session where username not in('SYS','SYSTEM','SYSMAN');
SID SERIAL# USERNAME MACHINE PROGRAM
---------- ---------- ------------------------------ --------