"Sanjay Mishra" (Redacted sender "smishra_97" for DMARC)
2018-08-21 00:27:26 UTC
Can someone help as what I am missing in the following report.Â
Below SQL works and create report when there are some rows but comes out blank when there is no rows. I want to display the title atleast in blank as it is sent as email. Blank email confuse as what is the report
@htmlon
Â
spool myreport3.htm
COLUMN name NEW_VALUE _instname NOPRINT
select upper(name) name from v$database;
Column Title Entmap off
set heading on
TTITLEÂ CENTER '<h1>Daily Report : - Inactive User Session </h1>' -
RIGHT 'Page:' FORMAT 999 SQL.PNOÂ
Â
select username, sid,serial#,machine,program,logon_time
from v$session s
where username IS NOT NULL AND username NOT IN ('SYS','SYSTEM','DBSNMP')
and status = 'INACTIVE'
order by logon_time desc;
spool off
@htmloff
Sanjay
Below SQL works and create report when there are some rows but comes out blank when there is no rows. I want to display the title atleast in blank as it is sent as email. Blank email confuse as what is the report
@htmlon
Â
spool myreport3.htm
COLUMN name NEW_VALUE _instname NOPRINT
select upper(name) name from v$database;
Column Title Entmap off
set heading on
TTITLEÂ CENTER '<h1>Daily Report : - Inactive User Session </h1>' -
RIGHT 'Page:' FORMAT 999 SQL.PNOÂ
Â
select username, sid,serial#,machine,program,logon_time
from v$session s
where username IS NOT NULL AND username NOT IN ('SYS','SYSTEM','DBSNMP')
and status = 'INACTIVE'
order by logon_time desc;
spool off
@htmloff
Sanjay