SET PAGESIZE 0 LINESIZE 120 ECHO OFF FEEDBACK OFF HEADING OFF TERMOUT OFF
SPOOL $cmdpath/primary.lst
SELECT DECODE(CONTROLFILE_TYPE, 'CURRENT', 'PRIMARY', 'STANDBY') FROM SYS.V_$DATABASE;
SPOOL OFF
