Skip to main content

Posts

Showing posts from 2014

Oracle Exalytics

1) What is Oracle Exalytics? Oracle Exalytics is a new "BI machine" designed specifically for Business Intelligence and Enterprise Performance Management. With a massive 1TB RAM and 40 CPU cores, this machine can and will take performance to a level never seen before. The reason why performance is to extreme is that the Exalytics architecture is designed to store your business intelligence data in main memory, this means response time is dramatically faster with no network latency or disk I/O. The term "speed of thought" has already been used a lot with Exalytics - this is referring to the fact that your reports run so quickly that they refresh with new data even whilst you are typing in the filter criteria. 2) What components come with Exalytics? Exalytics is a pre-installed / pre-configured machine running on Linux 64-bit. It comes with 3 main software components: - Oracle BI Foundation 11g (OBIEE release 11.1.1.6) - Oracle TimesTen (in-memor...

Concurrent Request History

col PROGRAM for a30 col REQUESTOR for a15 set linesize 400 set pagesize 400 set feedback on col Start_Time for a20 col End_Time for a20 col phase for a15 select request_id, fu.user_name requestor, ctl.user_concurrent_program_name program, to_char(actual_start_date,'DD-MON-RR HH24:MI') Start_Time, to_char(actual_completion_date,'DD-MON-RR HH24:MI') End_Time, ((nvl(actual_completion_date,sysdate)-actual_start_date)*1440) Total_Time, decode(a.phase_code,'R','Running','P','Inactive','C','Completed',               a.phase_code) phase, decode(a.status_code,'E','Error',   'C','Normal',    'X','Terminated',                             'Q','On Hold', 'D','Cancelled', 'G','Warning',                ...

DB GROWTH

Monthly: ---------- select to_char(creation_time, 'RRRR-MM'),sum(bytes)/1024/1024/1024 "Growth in GB" from sys.v_$datafile group by to_char(creation_time,'RRRR-MM') order by to_char(creation_time, 'RRRR-MM'); Yearly: -------- select to_char(creation_time, 'RRRR') "Yr",sum(bytes)/1024/1024/1024 "Growth in GB" from sys.v_$datafile group by to_char(creation_time,'RRRR') order by to_char(creation_time, 'RRRR'); DB_SIZE: ========== select (a.data_size+b.temp_size+c.redo_size)/1024/1024/1024 "DBSize GB" from ( select nvl(sum(bytes),0) data_size from dba_data_files ) a, ( select nvl(sum(bytes),0) temp_size from dba_temp_files ) b, ( select nvl(sum(bytes),0) redo_size from sys.v_$log ) c /

Recover Apps password in R12

SQL> create FUNCTION apps.decrypt_pin_func(in_chr_key IN VARCHAR2,in_chr_encrypted_pin IN VARCHAR2) RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt(java.lang.String,java.lang.String) return java.lang.String'; Function created. SQL> select ENCRYPTED_FOUNDATION_PASSWORD from apps.fnd_user where USER_NAME='GUEST'; ENCRYPTED_FOUNDATION_PASSWORD -------------------------------------------------------------------------------- ZG4E96AA5DB997605414A6ABB412DEEBDF57BC6378816D2DABF4D1940952E17A1A31BA69B4193AAA 575A5C852D03AABA7845 SQL> SQL> SQL> SELECT apps.decrypt_pin_func('GUEST/ORACLE','ZG4E96AA5DB997605414A6ABB412DEEBDF57BC6378816D2DABF4D1940952E17A1A31BA69B4193AAA575A5C852D03AABA7845') from dual; APPS.DECRYPT_PIN_FUNC('GUEST/ORACLE','ZG4E96AA5DB997605414A6ABB412DEEBDF57BC6378 -------------------------------------------------------------------------------- apps SQL> SQL> SQL> con...

Currently Long Running Concurrent requests

set pagesize 1000 lines 130 set space 1 column user_concurrent_program_name format a35 trunc column request format 9999999999 column total_time format 99,999.99 column start_time format a14 column node_name format a8 noprint column queue_name  format a23 trunc select r.request_id request,p.user_concurrent_program_name,        sum(sysdate-actual_start_date)*24*60 total_time,        to_char(actual_start_date, 'MM/DD/YY HH24:MI') start_time,        q.user_concurrent_queue_name queue_name from applsys.fnd_concurrent_queues_tl q,applsys.fnd_concurrent_processes cp, applsys.fnd_concurrent_programs_tl p, applsys.fnd_concurrent_requests r where status_code = 'R' and p.application_id = r.program_application_id and r.concurrent_program_id = p.concurrent_program_id and cp.CONCURRENT_PROCESS_ID = r.controlling_manager and cp.QUEUE_APPLICATION_ID = q.application_id and cp.CONCURRENT_QUEUE_ID = q.CONCURREN...

Avg REDO Generation

Put these in one file.sql and run. ------------------------------------- set linesize 200 verify off pages 100 accept days char prompt 'How many days(Default - 1 day) :' select to_char(bit,'DD-MON-YYYY') DAY,round(sum(avgredoinmb)/1024,2) "Avg Redo in GB" from ( select         /*+parallel(a,8) parallel(b,8)*/         b.begin_interval_time bit,         b.instance_number inst,         (AVERAGE*60*(ROUND( TO_NUMBER ( CAST(b.end_interval_time as DATE) - CAST(b.begin_interval_time as DATE)) * 24 * 60 )))/1024/1024 AvgRedoInMB from         DBA_HIST_SYSMETRIC_SUMMARY a,         dba_hist_snapshot b where         a.snap_id=b.snap_id         and         b.instance_number=a.instance_n...

Finding / Sourcing the FILE_EDITION in FMW:

-bash-3.2$ echo $FILE_EDITION run OR -bash-3.2$ grep -i file_edition $CONTEXT_FILE          <file_edition_type oa_var="s_file_edition_type">run</file_edition_type>          <file_edition_name oa_var="s_file_edition_name">fs1</file_edition_name> -bash-3.2$ OR $cd /$TWO_TASK/applmgr . ./EBSapps.env run     ====> Enables RUN filesystem . ./EBSapps.env patch   ====> Enables PATCH filesystem

Starting & Stopping Admin and Managed server in FMW

cd $ADMIN_SCRIPTS_HOME ./adadminsrvctl.sh start                 ====> Starts Admin Server ./admanagedsrvctl.sh start oafm_server1         ====> Starts OAFM Managed Server ./admanagedsrvctl.sh start forms_server1         ====> Starts FORMS Managed Server ./admanagedsrvctl.sh start forms-c4ws_server1        ====> Starts FORMS C4WS Managed Server ./admanagedsrvctl.sh start oacore_server1        ====> Starts OACORE Managed Server ./admanagedsrvctl.sh status oafm_server1        ====> Status OAFM Managed Server ./admanagedsrvctl.sh status forms_server1        ====> Status FORMS Managed Server ./admanagedsrvctl.sh status forms-c4ws_server1        ====> Status FORMS C4WS Managed Server ./admanagedsrvctl.s...