La requête
SELECT SYS.UTL_INADDR.get_host_address IP_ADDR , SYS.UTL_INADDR.get_host_name HOSTNAME , SYS.DBMS_UTILITY.CURRENT_INSTANCE INST# , SYS.DBMS_UTILITY.port_string OS , platform_id , platform_name , name , DB_UNIQUE_NAME , DBID , current_scn , decode ( parallel, 'YES', 'RAC', 'NOT RAC') IS_RAC from v$database natural join v$instance;
Le résultat (splitté pour une meilleure lecture)
IP_ADDR HOSTNAME INST# OS ---------------------------- ------------ ----- -------------------- fe80::4b5:7ff9:2cca:6ca8%3 ALPHAORIOJO 1 IBMPC/WIN_NT64-9.1.0 PLATFORM_ID PLATFORM_NAME NAME DB_UNIQUE_NAME ----------- ------------------------------ ---------- -------------- 12 Microsoft Windows x86 64-bit OJOTST ojotst DBID CURRENT_SCN IS_RAC ------------ ----------- -------- 2831882428 8207733 NOT RAC
C’était pourtant pas si compliqué !