We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
set lines 165 pages 2000;
col host_name for a25;
alter session set nls_date_format='DD-MM-YYYY HH24:MI:SS'; select INSTANCE_NAME,HOST_NAME,VERSION,STARTUP_TIME,STATUS from gv$instance; select NAME,OPEN_MODE,DATABASE_ROLE,PROTECTION_MODE,PROTECTION_LEVEL,FORCE_LOGGING,CREATED ,SWITCHOVER_STATUS from v$database;
select max(sequence#),thread# from v$archived_log where applied='YES' and
REGISTRAR='RFS' group by thread#;
PASS="dbmon#123" PASS1="dbmon123#"
select 'alter system kill session '''||sid||','||serial#||''' immediate;' as script
from v$session where username='ODS_OBIEE_USER' and blocking_session is not null;
select sid,serial# from gv$session where username='APPS' and blocking_session is
not null and status='INACTIVE';
select 'alter system kill session '''||sid||','||serial#||''' immediate;' as script
from v$session where username='IIMS_SEC' and blocking_session is not null and status='INACTIVE';
select 'alter system kill session '''||sid||','||serial#||''' immediate;' as script
from v$session where username='IIMS_SEC' and blocking_session is not null;
set pages 200 lines 200
col COMP_NAME for a30 col COMP_ID for a30 select count(1) from dba_objects where status='INVALID'; select owner,object_type,count(1) from dba_objects where status='INVALID' group by owner,object_type order by 3; select substr(comp_name,1,30) comp_name, substr(comp_id,1,10) comp_id,substr(version,1,12) version,status from dba_registry;