Escolar Documentos
Profissional Documentos
Cultura Documentos
$APPS_PASS
====
select text from dba_errors where name = 'XXR_TEMPER_PROGRAMM' and owner =
'ROAPPS';
====
select object_name,TO_CHAR(LAST_ANALYZED,'dd-mon-yyyy hh24:mi') LAST_ANALYZED from
all_objects where object_name like 'GL_JE_LINES';
====
select tablespace_name from dba_tablespaces where tablespace_name like 'XXP%';
====
set lines 200 pages 200
col object_name for a40
select TABLE_NAME,TO_CHAR(LAST_ANALYZED,'dd-mon-yyyy hh24:mi') LAST_ANALYZED,owner
from all_tables where owner like 'GL';
====
CREATE INDEX WIP.XX_WIP_TRX_ACC_1001377_N5 ON
WIP.WIP_TRANSACTION_ACCOUNTS(LAST_UPDATE_DATE);
====
exec fnd_stats.gather_schema_statistics('ALL',estimate_percent=>80);
=======
select REQUEST_ID,REQUEST_DATE from apps.fnd_concurrent_requests where
REQUESTED_START_DATE between to_date('&start','DD-MON-YYYY') and
to_date('&e_dte','DD-MON-YYYY');
select
NODE_NAME,SUPPORT_CP,SUPPORT_FORMS,SUPPORT_WEB,SUPPORT_ADMIN,STATUS,NODE_MODE,SUPPO
RT_DB from fnd_nodes;
=======
exec dbms_metadata.get_ddl('PACKAGE','XXECOMAPI','APPS');
set pagesize 0
set long 90000
SELECT DBMS_METADATA.GET_DDL('SYNONYM','DEBUG_CARTX','PUBLIC') from dual;
/
=========
========
Top 10 cpu usage: ps -e -o pcpu -o pid -o user -o args | sort -k 1 | tail -32r
========
tkprof eflxt03_ora_10465_SYSADMIN_CR94431337.trc
eflxt03_ora_10465_SYSADMIN_CR94431337.trc.txt sys=no explain=apps/fltx3 waits=yes
sort=prsela,exeela,fchela,fchrow,prsmis print=15
=====
Datafile resizing
DFORDERSETL
set pages 0
set lin 150
set verify off
column file_name format a60 word_wrapped
column smallest format 999,990 heading "Smallest|Size|Poss."
column currsize format 999,990 heading "Current|Size"
column savings format 999,990 heading "Poss.|Savings"
column sum format 999,999,999
break on report
compute sum of savings on report
select file_name,
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) smallest,
ceil( blocks*&&blksize/1024/1024) currsize,
ceil( blocks*&&blksize/1024/1024) -
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) savings
from dba_data_files a,
( select file_id, max(block_id+blocks-1) hwm
from dba_extents
group by file_id ) b
where a.file_id = b.file_id(+)
and a.tablespace_name='&tbs_name'
/
=======================================
Hidden parameters:
=================
DBA JOBS
execute dbms_job.remove(6532);
================
DUM
---
X
clear columns
set lines 180
set pages 50
col NODE_NAME for a15 WORD_WRAPPED
COL SUPPORT_DB for a12
COL SUPPORT_CP for a12
COL SUPPORT_ADMIN for a15
COL SUPPORT_FORMS for a15
COL SUPPORT_WEB for a12
COL HOST for a15 WORD_WRAPPED
Col STATUS for a10
col DOMAIN for a20 WORD_WRAPPED
select
NODE_NAME,SUPPORT_DB,SUPPORT_CP,SUPPORT_ADMIN,SUPPORT_WEB,SUPPORT_FORMS,STATUS,HOST
,DOMAIN
from apps.fnd_nodes;
SELECT
substr(pro1.user_profile_option_name,1,35) Profile,
decode(pov.level_id,
10001,'Site',
10002,'Application',
10003,'Resp',
10004,'User') Option_Level,
decode(pov.level_id,
10001,'Site',
10002,appl.application_short_name,
10003,resp.responsibility_name,
10004,u.user_name) Level_Value,
nvl(pov.profile_option_value,'Is Null') Profile_option_Value
FROM
fnd_profile_option_values pov,
fnd_responsibility_tl resp,
fnd_application appl,
fnd_user u,
fnd_profile_options pro,
fnd_profile_options_tl pro1
WHERE
pro.profile_option_name = pro1.profile_option_name
and pro.profile_option_id = pov.profile_option_id
and pov.profile_option_value like '%hydc.sbc.com%'
and pov.level_value = resp.responsibility_id (+)
and pov.level_value = appl.application_id (+)
and pov.level_value = u.user_id (+)
order by 1,2;
############################
Rac scripts
/var/opt/oracle/tools/bin
############################