在PL/SQL中,你可以使用以下语句来查看数据库连接信息:
SELECT USER FROM DUAL;
SELECT INSTANCE_NAME FROM V$INSTANCE;
SELECT VERSION FROM V$INSTANCE;
SELECT SYS_CONTEXT('USERENV', 'SID') FROM DUAL;
SELECT SYS_CONTEXT('USERENV', 'IP_ADDRESS') FROM DUAL;
SELECT SYS_CONTEXT('USERENV', 'HOST') FROM DUAL;
SELECT SYS_CONTEXT('USERENV', 'CLIENT_INFO') FROM DUAL;
请注意,这些语句需要在PL/SQL中执行,并且返回的结果取决于当前连接的会话。