Ejecutar:
SELECT to_char(sysdate,'YYYY-MON-DD HH24:MI:SS') FROM dual;
Resultado:
2019-SEP-26 15:24:40
Para obtener la hora:
SELECT TO_CHAR(SYSDATE,'HH24') AS CURRENT_HOUR FROM DUAL;
Ejecutar:
SELECT to_char(sysdate,'YYYY-MON-DD HH24:MI:SS') FROM dual;
Resultado:
2019-SEP-26 15:24:40
Para obtener la hora:
SELECT TO_CHAR(SYSDATE,'HH24') AS CURRENT_HOUR FROM DUAL;