Hi,
Is there any system variable which returns the current database we are in?
This is my below query and works fine. As of now it inserts a blank in “Dbname” column.
I have to insert the current dbname in that
INSERT INTO SYSADM.PS_FZAP_AUDIT_SOX (oprid, oprdefndesc,lastsignondttm,
fzap_reason_cd,descr254,dbname,lastupdoprid,lastupddttm)
select distinct :new.oprid,:new.oprdefndesc,:new.lastsignondttm,’ ‘,’ ‘,’ ‘,’ ',sysdate
from sysadm.psroleuser b
where b.roleuser = :new.oprid
and (b.rolename = ‘FAS Change Admin’ or b.rolename=‘PeopleSoft Administrator’);
I know this will return
select value from v$parameter
where name = ‘db_name’ , but not sure how to include in the query. When i inserted it popped an error