SQL: Important SQLs
Helpful Queries --Alter Date format to display date + time alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS'; --Alter session for sysadm access alter session set current_schema=sysadm; --Any batch process (Finance) Select a.RUNSTATUS, a.* from psprcsrqst a where jobinstance = '4111574' order by prcsjobseq desc; Select a.RUNSTATUS, a.* from psprcsrqst a where PRCSNAME='VCH_EMAIL’; --PIA Operator details SELECT * FROM psoprdefn WHERE oprid = ' '; --LDAP directory setup Select * from ps_DIRECTORYATTRIB; Select * from ps_DIRECTORYSETUP; --To see the current accesses to database Select * from v$session where type <> 'BACKGROUND'; Select * from v$process; --To see the indexes and other characteristics of columns Select * FROM dba_ind_columns Where table_name='PS_PROJ_RESOURCE'; Select * from PSINDEXDEFN where recname = 'PROJ_RESOURCE'; --To see object modification details Select * from dba_objec