Sunday, February 27, 2011

View SQL Statement from OAF Page

Below are the detailed steps:

1) Update the following Profile Option Values to Yes at User level.
• FND: Diagnostics
• Personalize Self-Service Defn

2) Go to the Java OAF Page where the SQL Query executes

3) Click on the link About this Page in the bottom Left Hand Side of the page

4) Navigate to the Page Tab on the Top Left Hand Side of the page

5) In the Business Component References Details Section (You may need to expand this
section), Go to the View Objects Sub Section.

6) Find the Object that describes the piece of information that you want to find the query for

7) Click on the Link

8) The full Query used can be cut and pasted into a SQL Editor and the query run.
Note: You will have to find the Bind Variables passed to the query in order to do this!!

AIM- Application Implementation Methodology

AIM- Application Implementation Methodology

Business Process Architecture (BP)
BP.010 - Define Business and Process Strategy
BP.020 - Catalog and Analyze Potential Changes
BP.030 - Determine Data Gathering Requirements
BP.040 - Develop Current Process Model
BP.050 - Review Leading Practices
BP.060 - Develop High-Level Process Vision
BP.070 - Develop High-Level Process Design
BP.080 - Develop Future Process Model
BP.090 - Document Business Procedure

Business Requirements Definition (RD)
RD.010 - Identify Current Financial and Operating Structure
RD.020 - Conduct Current Business Baseline
RD.030 - Establish Process and Mapping Summary
RD.040 - Gather Business Volumes and Metrics
RD.050 - Gather Business Requirements
RD.060 - Determine Audit and Control Requirements
RD.070 - Identify Business Availability Requirements
RD.080 - Identify Reporting and Information Access Requirements

Business Requirements Mapping
BR.010 - Analyze High-Level Gaps
BR.020 - Prepare mapping environment
BR.030 - Map Business requirements
BR.040 - Map Business Data
BR.050 - Conduct Integration Fit Analysis
BR.060 - Create Information Model
BR.070 - Create Reporting Fit Analysis
BR.080 - Test Business Solutions
BR.090 - Confirm Integrated Business Solutions
BR.100 - Define Applications Setup
BR.110 - Define security Profiles

Application and Technical Architecture (TA)
TA.010 - Define Architecture Requirements and Strategy
TA.020 - Identify Current Technical Architecture
TA.030 - Develop Preliminary Conceptual Architecture
TA.040 - Define Application Architecture
TA.050 - Define System Availability Strategy
TA.060 - Define Reporting and Information Access Strategy
TA.070 - Revise Conceptual Architecture
TA.080 - Define Application Security Architecture
TA.090 - Define Application and Database Server Architecture
TA.100 - Define and Propose Architecture Subsystems
TA.110 - Define System Capacity Plan
TA.120 - Define Platform and Network Architecture
TA.130 - Define Application Deployment Plan
TA.140 - Assess Performance Risks
TA.150 - Define System Management Procedures

Module Design and Build (MD)
MD.010 - Define Application Extension Strategy
MD.020 - Define and estimate application extensions
MD.030 - Define design standards
MD.040 - Define Build Standards
MD.050 - Create Application extensions functional design
MD.060 - Design Database extensions
MD.070 - Create Application extensions technical design
MD.080 - Review functional and Technical designs
MD.090 - Prepare Development environment
MD.100 - Create Database extensions
MD.110 - Create Application extension modules
MD.120 - Create Installation routines

Data Conversion (CV)
CV.010 - Define data conversion requirements and strategy
CV.020 - Define Conversion standards
CV.030 - Prepare conversion environment
CV.040 - Perform conversion data mapping
CV.050 - Define manual conversion procedures
CV.060 - Design conversion programs
CV.070 - Prepare conversion test plans
CV.080 - Develop conversion programs
CV.090 - Perform conversion unit tests
CV.100 - Perform conversion business objects
CV.110 - Perform conversion validation tests
CV.120 - Install conversion programs
CV.130 - Convert and verify data

Documentation (DO)
DO.010 - Define documentation requirements and strategy
DO.020 - Define Documentation standards and procedures
DO.030 - Prepare glossary
DO.040 - Prepare documentation environment
DO.050 - Produce documentation prototypes and templates
DO.060 - Publish user reference manual
DO.070 - Publish user guide
DO.080 - Publish technical reference manual
DO.090 - Publish system management guide

Business System Testing (TE)
TE.010 - Define testing requirements and strategy
TE.020 - Develop unit test script
TE.030 - Develop link test script
TE.040 - Develop system test script
TE.050 - Develop systems integration test script
TE.060 - Prepare testing environments
TE.070 - Perform unit test
TE.080 - Perform link test
TE.090 - perform installation test
TE.100 - Prepare key users for testing
TE.110 - Perform system test
TE.120 - Perform systems integration test
TE.130 - Perform Acceptance test

Performance Testing(PT)
PT.010 - Define Performance Testing Strategy
PT.020 - Identify Performance Test Scenarios
PT.030 - Identify Performance Test Transaction
PT.040 - Create Performance Test Scripts
PT.050 - Design Performance Test Transaction Programs
PT.060 - Design Performance Test Data
PT.070 - Design Test Database Load Programs
PT.080 - Create Performance Test TransactionPrograms
PT.090 - Create Test Database Load Programs
PT.100 - Construct Performance Test Database
PT.110 - Prepare Performance Test Environment
PT.120 - Execute Performance Test

Adoption and Learning (AP)
AP.010 - Define Executive Project Strategy
AP.020 - Conduct Initial Project Team Orientation
AP.030 - Develop Project Team Learning Plan
AP.040 - Prepare Project Team Learning Environment
AP.050 - Conduct Project Team Learning Events
AP.060 - Develop Business Unit Managers’Readiness Plan
AP.070 - Develop Project Readiness Roadmap
AP.080 - Develop and Execute CommunicationCampaign
AP.090 - Develop Managers’ Readiness Plan
AP.100 - Identify Business Process Impact onOrganization
AP.110 - Align Human Performance SupportSystems
AP.120 - Align Information Technology Groups
AP.130 - Conduct User Learning Needs Analysis
AP.140 - Develop User Learning Plan
AP.150 - Develop User
AP.160 - Prepare User Learning Environment
AP.170 - Conduct User Learning Events
AP.180 - Conduct Effectiveness Assessment

Production Migration (PM)
PM.010 - Define Transition Strategy
PM.020 - Design Production Support Infrastructure
PM.030 - Develop Transition and Contingency Plan
PM.040 - Prepare Production Environment
PM.050 - Set Up Applications
PM.060 - Implement Production Support Infrastructure
PM.070 - Verify Production Readiness
PM.080 - Begin Production
PM.090 - Measure System Performance
PM.100 - Maintain System
PM.110 - Refine Production System
PM.120 - Decommission Former Systems
PM.130 - Propose Future Business Direction
PM.140 - Propose Future Technical Direction

Friday, February 11, 2011

Capacity planning: Automate the table growth statistics

Note: In this scenario we are considering tables with row count greater than 10000

Step 1:
Create a table for storing table growth statistics
create table db_table_growth_all
as select *
from (
select    DB_TIME,
          OWNER,
          SEGMENT_NAME,
          SEGMENT_TYPE,
          Total_Space,
          Rows_Count
  from (select sysdate DB_TIME,
          a.OWNER,
          a.SEGMENT_NAME,
          a.SEGMENT_TYPE,
          round((a.BYTES / 1048576), 2) Total_Space,
          nvl(b.num_rows, 1) Rows_Count
     from (select * from dba_segments) a, (select * from dba_tables) b
    where a.segment_name = b.table_name
      and a.segment_type = 'TABLE'
      and nvl(b.num_rows, 1) > 10000
      and round((a.BYTES / 1048576), 2) > 0))
     
Step 2:
Insert all records that meets criteria into the growth table
insert into db_table_growth_all
select *
from (
select sysdate DB_TIME,
          a.OWNER,
          a.SEGMENT_NAME,
          a.SEGMENT_TYPE,
          round((a.BYTES / 1048576), 2) Total_Space,
          nvl(b.num_rows, 1) Rows_Count
     from (select * from dba_segments) a, (select * from dba_tables) b
    where a.segment_name = b.table_name
      and a.segment_type = 'TABLE'
      and nvl(b.num_rows, 1) > 10000
      and round((a.BYTES / 1048576), 2) > 0
);
COMMIT;
Step 3:
Create a view for gathering subsequent details
create view v_db_table_growth_all
as select *
from
(
select sysdate DB_TIME,
          a.OWNER,
          a.SEGMENT_NAME,
          a.SEGMENT_TYPE,
          round((a.BYTES / 1048576), 2) Total_Space,
          nvl(b.num_rows, 1) Rows_Count
     from (select * from dba_segments) a, (select * from dba_tables) b
    where a.segment_name = b.table_name
      and a.segment_type = 'TABLE'
      and nvl(b.num_rows, 1) > 10000
      and round((a.BYTES / 1048576), 2) > 0
)
Step 4:
Insert the ongoing growth into the statistics table
insert into db_table_growth_all
select *
from v_db_table_growth_all;
COMMIT;
Step 5: Alter the nls_date_format in order to setup the job

alter session set nls_date_format ='dd-mon-yyyy hh24:mi:ss';

Step 6:
Setup a Job to run once
declare
  jobno number;
begin
  dbms_job.submit(jobno,
                  'begin insert into db_table_growth_all select * from v_db_table_growth_all;commit;end;',
                  sysdate,
                  'SYSDATE+1',
                  TRUE);
  commit;
end;
Step 7:
Execute the job setup in step 6
execute dbms_job.run(4518)

Useful Apps DBA Queries - Install, Patch and Maintain Applications

How to determine the duration of applying a patch

SELECT AAP.PATCH_NAME "Patch Name",
       NVL(DECODE(MERGED_DRIVER_FLAG,
                  'Y',
                  AD_PA_VALIDATE_CRITERIASET.GET_CONCAT_MERGEPATCHES(APD.PATCH_DRIVER_ID),
                  ''),
           'Single Patch') "Merged Patches",
       APR.START_DATE "Start Date",
       APR.END_DATE "End Date",
       APD.DRIVER_FILE_NAME "Driver File",
       APR.PATCH_ACTION_OPTIONS "Patch Options",
       DECODE(APR.SERVER_TYPE_ADMIN_FLAG, 'Y', 'Admin,', NULL) ||
       DECODE(APR.SERVER_TYPE_FORMS_FLAG, 'Y', 'Forms,', NULL) ||
       DECODE(APR.SERVER_TYPE_NODE_FLAG, 'Y', 'Node,', NULL) ||
       DECODE(APR.SERVER_TYPE_WEB_FLAG, 'Y', 'Web,', NULL) "Server Type",
       APD.PLATFORM "Platform",
       SUBSTR(APR.PATCH_TOP, 1, 2000) "Patch Top",
       AD_CORE.GET_FORMATTED_ELAPSED_TIME((APR.END_DATE - APR.START_DATE),
                                          2) "Elapsed Time"
  FROM AD_PATCH_RUNS         APR,
       AD_PATCH_DRIVER_LANGS APDL,
       AD_PATCH_DRIVERS      APD,
       AD_APPLIED_PATCHES    AAP
 WHERE APD.PATCH_DRIVER_ID = APR.PATCH_DRIVER_ID
   AND APD.PATCH_DRIVER_ID = APDL.PATCH_DRIVER_ID
   AND APD.APPLIED_PATCH_ID = AAP.APPLIED_PATCH_ID
   AND AAP.PATCH_NAME = &PATCH_NAME
 ORDER BY END_DATE DESC;

How to determine affected objects by a patch

SELECT PROGRAM "Program",
       AAP.PATCH_NAME "Patch Name",
       APRT.JOB_NAME "Job Name",
       APRT.PHASE_NAME "Phase",
       APRT.START_TIME "Job Start Time",
       APRT.END_TIME "Job End Time",
       ROUND((NVL(APRT.END_TIME, SYSDATE) - APRT.START_TIME) * 60 * 24, 2) "Elapsed Time"
  FROM AD_PROGRAM_RUN_TASK_JOBS APRT,
       AD_PATCH_RUNS            APR,
       AD_PATCH_DRIVERS         APD,
       AD_APPLIED_PATCHES       AAP
 WHERE APRT.SESSION_ID = APR.SESSION_ID
   AND APR.PATCH_DRIVER_ID = APD.PATCH_DRIVER_ID
   AND APD.APPLIED_PATCH_ID = AAP.APPLIED_PATCH_ID
   AND AAP.PATCH_NAME = &PATCH_NAME
 ORDER BY "Elapsed Time" DESC

How to turn on debug mode on a user profile

Turning on Debug in the proflie option 

1. Search for the profile option - "Initialization SQL Statement - Custom"
2. Copy the entry below and add it to the option value at User level, ensure this is done for the user you are interested in debuging:

 "begin fnd_ctl.fnd_sess_ctl('','','TRUE','TRUE','LOG','ALTER SESSION SET EVENTS=''10046 TRACE NAME CONTEXT FOREVER, LEVEL 12'' tracefile_identifier=''WAPPSDBA'' max_dump_file_size=''unlimited'''); end;"

3. The generated output will be found in the user dump location e.g %WAPPSDBA.trc
4. Remove the entries from "Initialization SQL Statement - Custom" at user level when you are done debugging the user activity.

Oracle DBA

How to export or import a table and also export a schema in Oracle Database 10.2.0.x


FROM THE SOURCE SERVER  (labserver1):
=============================================================================
STEP 1:
=============================================================================
Create an export dump directory using the oracle user name e.g oraprod (physical location):
=============================================================================
labserver1:oraprod$ mkdir -R /oradata1/exportloc

STEP 2:
Create a Dump Directory:
=============================================================================
$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 23 14:20:19 2010
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> create directory expdp_dir as '/oradata1/exportloc';
Directory created.
SQL> grant read,write on directory expdp_dir to system, apps, xxis;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
$

STEP 3:
Run the export command: e.g How to export a table from the Database
=============================================================================
Syntax:
expdp <db_user>/<password> tables=<table_name> directory=<database_directory_name> dumpfile=<dump_name> LOGFILE=<dump_log_name>
Example
expdp XXIS/password tables=XXIS_CASH_RECEIPTS directory=expdp_dir dumpfile=XXIS_CASH_RECEIPTS_new.dmp LOGFILE=XXIS_expfull_new.log

ON THE TARGET SERVER (labserver2):
STEP 4:
=============================================================================
Create an export dump directory using the oracle user name e.g orauat3 (physical location):
=============================================================================
labserver2:orauat3$ mkdir -R /oradata1/exportloc
STEP 5:
=============================================================================
Create a Dump Directory:
=============================================================================
labserver2:orauat3$
labserver2:orauat3$sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 23 14:35:54 2010
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> create directory expdp_dir as '/oradata2/exportloc';
Directory created.
SQL> grant read,write on directory expdp_dir to system, apps, xxis;
Grant succeeded.
SQL> exit

STEP 6:
=============================================================================
Transfer the dmp file from source server to target server:
=============================================================================
Either using ftp tool, copy the .dmp file created in the dump directory from source to target server. Ensure that the file is placed in the export dump directory created in step 4

STEP 7:
=============================================================================
Truncate the table that you need to import to:
=============================================================================
truncate table XXIS_CASH_RECEIPTS cascade;

STEP 8:
Run the import command: e.g How to import a table from the Database
=============================================================================
Syntax:
impdp <db_user>/<password> tables=<table_name> directory=<database_directory_name> dumpfile=<dump_name> LOGFILE=<dump_log_name>
impdp XXIS/xxis tables=XXIS_CASH_RECEIPTS directory=expdp_dir DUMPFILE=XXIS_CASH_RECEIPTS_new.dmp LOGFILE=XXIS_impfull_new.log

===============================================================================
How to Export a Schema:
===============================================================================
syntax:
labserver1:oraprod$ expdp <db_user>/<password> schemas=<schema_name> directory=<database_directory_name> dumpfile=<dump_name> LOGFILE=<dump_log_name>
Example:
labserver1:oraprod$ expdp XXIS/password schemas=XXIS directory=expdp_dir dumpfile=XXIS_SCHEMA_27082010.dmp LOGFILE=XXIS_SCHEMA_27082010.log
Export: Release 10.2.0.2.0 - 64bit Production on Friday, 27 August, 2010 12:01:45
Copyright (c) 2003, 2005, Oracle.  All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
Starting "XXIS"."SYS_EXPORT_SCHEMA_01":  XXIS/******** schemas=XXIS directory=expdp_dir dumpfile=XXIS_SCHEMA_27082010.dmp LOGFILE=XXIS_SCHEMA_27082010.log
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 847.1 MB
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
Processing object type SCHEMA_EXPORT/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC
Processing object type SCHEMA_EXPORT/VIEW/VIEW
Processing object type SCHEMA_EXPORT/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "XXIS"."XXIS_TRANSACTIONS"                  121.6 MB  491055 rows
. . exported "XXIS"."XXIS_DELIVERY_DETAILS"              69.29 MB  382769 rows
. . exported "XXIS"."XXIS_DELIVERY_HEADER"               51.46 MB  362883 rows
. . exported "XXIS"."XXIS_TRANSPORTER_CHARGES"           47.05 MB  290746 rows
. . exported "XXIS"."XXIS_FUND_TRANSACTIONS"             40.17 MB  305621 rows
. . exported "XXIS"."XXIS_INVOICE"                       35.73 MB  361193 rows
. . exported "XXIS"."XXIS_COST_OUTS"                     30.57 MB  249850 rows
. . exported "XXIS"."XXIS_COST_OUT_DETAILS"              26.74 MB  249850 rows
. . exported "XXIS"."XXIS_ORDER_HEADER"                  23.15 MB  181724 rows
. . exported "XXIS"."XXIS_DELIVERY_ULLAGE_DETAILS"       18.99 MB  285691 rows
. . exported "XXIS"."XXIS_ORDER_DETAILS"                 19.11 MB  190227 rows
. . exported "XXIS"."XXIS_CASH_RECEIPTS"                 16.10 MB  219466 rows
. . exported "XXIS"."XXIS_CUSTOMER_PRICES"               16.96 MB  213828 rows
. . exported "XXIS"."XXIS_CASH_RECEIPTS_COPY"            15.09 MB  205889 rows
. . exported "XXIS"."XXIS_CALIBRATION_DETAILS"           5.101 MB   98175 rows
. . exported "XXIS"."XXIS_COST_IN_DETAILS"               12.67 MB   87674 rows
. . exported "XXIS"."XXIS_TRANSACTIONS_22JAN08"          10.86 MB   47090 rows
. . exported "XXIS"."XXIS_CASH_RECEIPTS_WALE"            9.822 MB  134661 rows
. . exported "XXIS"."XXIS_DIP_MEMO"                      9.208 MB   91376 rows
. . exported "XXIS"."XXIS_CREDIT_VIOLATIONS"             8.637 MB   74941 rows
. . exported "XXIS"."XXIS_PRODUCT_MOVEMENT"              8.414 MB   30693 rows
. . exported "XXIS"."XXIS_APPROVAL_AUDITS"               7.658 MB  114212 rows
. . exported "XXIS"."XXIS_APPROVAL_REQUESTS"             5.557 MB   67428 rows
. . exported "XXIS"."XXIS_APPROVAL_REQUESTS_ARCHIVE"     7.917 MB  101098 rows
. . exported "XXIS"."XXIS_COSTING_JV"                    7.415 MB   82343 rows
. . exported "XXIS"."XXIS_QUOTATION_HEADER"              7.473 MB   57440 rows
. . exported "XXIS"."XXIS_ASTM_54B"                      5.104 MB  121254 rows
. . exported "XXIS"."XXIS_ASTM_54A"                      4.616 MB  109719 rows
. . exported "XXIS"."XXIS_QUOTATION_DETAILS"             4.869 MB   60484 rows
. . exported "XXIS"."XXIS_SUPPLIER_INVOICES"             4.036 MB   36209 rows
. . exported "XXIS"."XXIS_TANK_MOVEMENT"                 4.580 MB   30925 rows
. . exported "XXIS"."XXIS_COST_INS"                      3.715 MB   32740 rows
. . exported "XXIS"."XXIS_CUSTOMER_ZONES"                3.079 MB   50959 rows
. . exported "XXIS"."XXIS_SP_MOVEMENT"                   3.919 MB   30412 rows
. . exported "XXIS"."XXIS_TANK_DIP"                      3.241 MB   16790 rows
. . exported "XXIS"."XXIS_WACS"                          3.177 MB   27575 rows
. . exported "XXIS"."XXIS_DLY_ISSUE_RECEIPT"             3.267 MB   30377 rows
. . exported "XXIS"."XXIS_IMPORT_EXPORT"                 2.547 MB   29411 rows
. . exported "XXIS"."XXIS_MOVEMENT"                      3.121 MB   30574 rows
. . exported "XXIS"."XXIS_OWNER_MOVEMENT"                2.982 MB   30513 rows
. . exported "XXIS"."XXIS_TANK_OWNER_ALLOCATION"         2.675 MB   25747 rows
. . exported "XXIS"."XXIS_CALIBRATION_DETAILS_TEMP"      1.177 MB   67615 rows
. . exported "XXIS"."XXIS_COST_IN_DETAILS_22JAN2008"     1015. KB    7325 rows
. . exported "XXIS"."XXIS_OWNER_TANK_DIP"                966.8 KB   12849 rows
. . exported "XXIS"."XXLAB_TIMELOG_DETAILS"            1.163 MB   19164 rows
. . exported "XXIS"."XXIS_VEHICLES"                      884.5 KB    7164 rows
. . exported "XXIS"."XXIS_ACCPAC_ORDERS"                 837.2 KB    2309 rows
. . exported "XXIS"."XXIS_COST_OUTS_22JAN08"             571.2 KB    4782 rows
. . exported "XXIS"."XXIS_INVOICE_PROCESSING"            14.75 KB       4 rows
. . exported "XXIS"."XXIS_COST_OUT_DETAILS_22JAN08"      535.8 KB    4782 rows
. . exported "XXIS"."XXIS_RETURNED_GOODS"                517.9 KB    3200 rows
. . exported "XXIS"."XXIS_APPROVAL_REQUESTS_CRDVIO"      412.3 KB    5153 rows
. . exported "XXIS"."XXIS_BDGT_LEDGER"                   55.31 KB     817 rows
. . exported "XXIS"."XXIS_TABLE_5B"                      359.9 KB    9231 rows
. . exported "XXIS"."XXIS_COST_INS_22JAN2008"            350.5 KB    3097 rows
. . exported "XXIS"."XXIS_TAGGING_HEADER"                213.7 KB    3413 rows
. . exported "XXIS"."XXIS_TRANSPORTATION_RATES"          250.2 KB    3117 rows
. . exported "XXIS"."XXIS_APPROVERS"                     74.67 KB     804 rows
. . exported "XXIS"."XXIS_CATEGORY_PRICES"               134.7 KB    1624 rows
. . exported "XXIS"."XXIS_COST_ACCOUNTS"                 23.34 KB     110 rows
. . exported "XXIS"."XXIS_COST_BALANCES"                 94.72 KB     968 rows
. . exported "XXIS"."XXIS_COST_ELEMENTS"                 31.14 KB     136 rows
. . exported "XXIS"."XXIS_CUSTOMER_PRODUCTS"             147.4 KB    2723 rows
. . exported "XXIS"."XXIS_DRIVERS"                       112.2 KB    1565 rows
. . exported "XXIS"."XXIS_PARAMETERS"                    15.77 KB      88 rows
. . exported "XXIS"."XXIS_PRODUCT_PRICES"                12.19 KB      43 rows
. . exported "XXIS"."XXIS_SERVICE_TANKS"                 105.4 KB    1103 rows
. . exported "XXIS"."XXIS_STOP_DELIVERIES"               29.42 KB     320 rows
. . exported "XXIS"."XXIS_TAGGING_DETAILS"               188.8 KB    3459 rows
. . exported "XXIS"."XXIS_TRANSACTION_TYPE"              11.42 KB      40 rows
. . exported "XXIS"."XXIS_PIPELINE"                      10.42 KB       4 rows
. . exported "XXIS"."XXIS_STOCK_ACCESS"                  103.1 KB    2042 rows
. . exported "XXIS"."XXIS_WACS_22JAN08"                  141.9 KB    1148 rows
. . exported "XXIS"."XXIS_FORM_TRANSACTION"              14.07 KB     129 rows
. . exported "XXIS"."XXIS_PIPELINE_TRANSACTIONS"         19.14 KB       6 rows
. . exported "XXIS"."XXIS_PRODUCT"                       58.25 KB     509 rows
. . exported "XXIS"."XXIS_TABLE_24"                      95.70 KB    2319 rows
. . exported "XXIS"."XXIS_TABLE_34"                      64.34 KB    1331 rows
. . exported "XXIS"."XXIS_TANK"                          87.53 KB     788 rows
. . exported "XXIS"."XXIS_TANK_CHANGES"                  81.89 KB    1096 rows
. . exported "XXIS"."XXIS_TRAN_TAB_ACCESS"               78.92 KB    1208 rows
. . exported "XXIS"."XXIS_TRUCK_SCHEDULES"               10.97 KB       8 rows
. . exported "XXIS"."XXIS_BERTH_NO"                         11 KB      43 rows
. . exported "XXIS"."XXIS_BLEND_MOVEMENT"                16.71 KB      10 rows
. . exported "XXIS"."XXIS_CALIBRATION_HEADER"            21.21 KB     109 rows
. . exported "XXIS"."XXIS_DELIVERY_DETAILS_AUDIT"        15.98 KB       3 rows
. . exported "XXIS"."XXIS_DELIVERY_METHOD"               10.20 KB      48 rows
. . exported "XXIS"."XXIS_DEPOTS"                        6.640 KB      35 rows
. . exported "XXIS"."XXIS_FORM"                          8.328 KB      24 rows
. . exported "XXIS"."XXIS_FORM_DELIVERY"                 10.42 KB      48 rows
. . exported "XXIS"."XXIS_FORM_TABS"                     9.476 KB      45 rows
. . exported "XXIS"."XXIS_FUNDS"                         10.46 KB       1 rows
. . exported "XXIS"."XXIS_FUND_PRODUCT_TXN_TYPES"        10.70 KB      18 rows
. . exported "XXIS"."XXIS_IMPORT_BL"                     26.80 KB     168 rows
. . exported "XXIS"."XXIS_IMPORT_ROB"                    9.101 KB       1 rows
. . exported "XXIS"."XXIS_MEASUREMENT_UNIT"              9.828 KB      36 rows
. . exported "XXIS"."XXIS_OWNER"                         8.828 KB      20 rows
. . exported "XXIS"."XXIS_PRODUCT_CLASS"                 7.437 KB       3 rows
. . exported "XXIS"."XXIS_PRODUCT_GRADE"                 38.42 KB     497 rows
. . exported "XXIS"."XXIS_PRODUCT_GROUP"                 10.11 KB      24 rows
. . exported "XXIS"."XXIS_PRODUCT_TYPE"                  7.554 KB       6 rows
. . exported "XXIS"."XXIS_STOCK_POINT"                   19.21 KB     162 rows
. . exported "XXIS"."XXIS_TABLE_11"                      22.11 KB     361 rows
. . exported "XXIS"."XXIS_TABLE_29"                      28.71 KB     601 rows
. . exported "XXIS"."XXIS_TABLE_3"                       24.93 KB     451 rows
. . exported "XXIS"."XXIS_TABLE_51"                      29.76 KB     601 rows
. . exported "XXIS"."XXIS_TABLE_52"                      10.00 KB      41 rows
. . exported "XXIS"."XXIS_TANK_TYPE"                     7.484 KB       5 rows
. . exported "XXIS"."XXIS_VESSEL"                        41.28 KB     606 rows
. . exported "XXIS"."XXIS_ZONAL_RATES"                   11.12 KB      36 rows
. . exported "XXIS"."XXIS_ZONES"                         9.132 KB      10 rows
. . exported "XXIS"."XXIS_ADDITIVE"                          0 KB       0 rows
. . exported "XXIS"."XXIS_ADDITIVE_BLEND"                    0 KB       0 rows
. . exported "XXIS"."XXIS_ASTM_53D"                          0 KB       0 rows
. . exported "XXIS"."XXIS_ASTM_54D"                          0 KB       0 rows
. . exported "XXIS"."XXIS_BDGT_TEMP"                         0 KB       0 rows
. . exported "XXIS"."XXIS_BL_DOCUMENT"                       0 KB       0 rows
. . exported "XXIS"."XXIS_BL_SEED"                           0 KB       0 rows
. . exported "XXIS"."XXIS_CASH_RECEIPTS_COPY_DIFF"           0 KB       0 rows
. . exported "XXIS"."XXIS_CONVERSION_FACTORS"                0 KB       0 rows
. . exported "XXIS"."XXIS_CUSTOMER_SECURITIES"               0 KB       0 rows
. . exported "XXIS"."XXIS_DOCUMENT_RECEIPT"                  0 KB       0 rows
. . exported "XXIS"."XXIS_DOC_INSTRUCTION"                   0 KB       0 rows
. . exported "XXIS"."XXIS_EXPORT_BL"                         0 KB       0 rows
. . exported "XXIS"."XXIS_FUND_ACCOUNTS"                     0 KB       0 rows
. . exported "XXIS"."XXIS_GEN_DA_NO"                         0 KB       0 rows
. . exported "XXIS"."XXIS_MERGE_RECEIPTS"                    0 KB       0 rows
. . exported "XXIS"."XXIS_PRICE_HEADERS_ALL"                 0 KB       0 rows
. . exported "XXIS"."XXIS_PUMP_PRICES"                       0 KB       0 rows
. . exported "XXIS"."XXIS_ROOF_LEG_CHANGES"                  0 KB       0 rows
. . exported "XXIS"."XXIS_SAMPLE_RECEIPT"                    0 KB       0 rows
. . exported "XXIS"."XXIS_SHELL_CORRECTION"                  0 KB       0 rows
. . exported "XXIS"."XXIS_SITE_ACCOUNTS"                     0 KB       0 rows
. . exported "XXIS"."XXIS_SITE_TANK_DIPS"                    0 KB       0 rows
. . exported "XXIS"."XXIS_SITE_USERS"                        0 KB       0 rows
. . exported "XXIS"."XXIS_TABLE_6B"                          0 KB       0 rows
. . exported "XXIS"."XXIS_TRANSPORTER_CHARGES_AUDIT"         0 KB       0 rows
. . exported "XXIS"."XXIS_TRIP_OUTPUT"                       0 KB       0 rows
. . exported "XXIS"."XXIS_TRUCK_AVAILABILITY"                0 KB       0 rows
. . exported "XXIS"."XXLAB_OST_PRDLIFT_DETAILS"            0 KB       0 rows
. . exported "XXIS"."XXLAB_OST_PRDLIFT_HEADERS"            0 KB       0 rows
Master table "XXIS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for XXIS.SYS_EXPORT_SCHEMA_01 is:
  /oradata1/exportloc/XXIS_SCHEMA_27082010.dmp
Job "XXIS"."SYS_EXPORT_SCHEMA_01" successfully completed at 12:08:43

Oracle Apps DBA - Basic Setup

Step By Step Guide to Creating a Custom Application in Applications 11i

Custom Applications are required if you are creating new forms, reports, etc. This allows you to segregate your custom written files from the standard seeded functionality that Oracle Applications provide. Customizations can therefore be preserved when applying patches or upgrades to your environment.
1) Make the directory structure for your custom application files.
cd $APPL_TOP
mkdir xxlab
mkdir xxlab/11.5.0
mkdir xxlab/11.5.0/admin
mkdir xxlab/11.5.0/admin/sql
mkdir xxlab/11.5.0/admin/odf
mkdir xxlab/11.5.0/sql
mkdir xxlab/11.5.0/bin
mkdir xxlab/11.5.0/reports
mkdir xxlab/11.5.0/reports/US
mkdir xxlab/11.5.0/forms
mkdir xxlab/11.5.0/forms/US
mkdir xxlab/11.5.0/$APPLLIB
mkdir xxlab/11.5.0/$APPLOUT
mkdir xxlab/11.5.0/$APPLLOG
2) Add the custom module into the environment
Apply ADX.E.1 and add the entry to topfile.txt as a standard product top entry (follow the existing model in the file)
Customised environment variables can be added to AutoConfig by using the filename specificed by s_custom_file, which is then called from the APPSORA.env file.
If using Forms Listener Servlet, you may also need to add $CUSTOM_TOP to formsservlet.ini in $APACHE_TOP/Jserv/etc

3) Create new tablespace for database objects
create tablespace APPS_TS_TX_XXLAB datafile '/oradata4/uat3data/CLON2/a_txn_xxlab01.dbf' size 10M
default storage(initial 10k next 10k)

4)
CREATE USER xxlab IDENTIFIED BY xxlab DEFAULT TABLESPACE APPS_TS_TX_XXLAB TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK;
GRANT RESOURCE TO xxlab;
GRANT CONNECT TO xxlab;
GRANT ANALYZE ANY TO xxlab;
GRANT CREATE ROLE TO xxlab;
GRANT CREATE VIEW TO xxlab;
GRANT CREATE TABLE TO xxlab;
GRANT CREATE SESSION TO xxlab;
GRANT CREATE SEQUENCE TO xxlab;
GRANT CREATE PROCEDURE TO xxlab;
GRANT SELECT ANY TABLE TO xxlab;
GRANT ALTER ANY SNAPSHOT TO xxlab;
GRANT CREATE ANY SNAPSHOT TO xxlab;
GRANT GLOBAL QUERY REWRITE TO xxlab;
GRANT SELECT ANY TABLE TO xxlab;
GRANT EXECUTE ANY PROCEDURE TO xxlab;
GRANT SELECT ON DBA_JOBS_RUNNING TO xxlab;
GRANT ALTER ANY MATERIALIZED VIEW TO xxlab;
GRANT CREATE ANY MATERIALIZED VIEW TO xxlab;
GRANT DROP ANY MATERIALIZED VIEW TO xxlab;
ALTER USER xxlab QUOTA UNLIMITED ON APPS_TS_TX_xxlab;
5) Register your Oracle Schema.
Login to Applications with System Administrator responsibility
Navigate to Application-->Register
Application = xxlab Custom
Short Name = xxlab
Basepath = xxlab_TOP
Description = xxlab Custom Application
6) Register Oracle User
Naviate to Security-->Oracle-->Register
Database User Name = xxlab
Password = xxlab
Privilege = Enabled
Install Group = 0
Description = xxlab Custom Application User
7) Add Application to a Data Group
Navigate to Security-->Oracle-->DataGroup
Data Group = xxlabGroup
Description = xxlab Custom Data Group
Click on "Copy Applications from" and pick Standard data Group, then add the following entry.
Application = xxlab Custom
Oracle ID = APPS
Description = xxlab Custom Application
8) Create custom request group
This will act as a placeholder for any custom reports we wish to make available for the Custom Responsibility (which is defined at a later stage)
Navigate to Security-->responsbility-->Request
Group = xxlab Request Group
Application = xxlab Custom
Code = xxlab
Description = xxlab Custom Requests
We will not define any requests to add to the group at this stage, but you can add some now if required.
9) Create custom menu
This will act as a placeholder for any menu items we wish to make available for the Custom Responsibility (which is defined at a later stage) We will create two menus, one for Core Applications and one for Self Service.
Navigate to Application-->Menu
Menu = xxlab_CUSTOM_MENU
User Menu Name = xxlab Custom Application
Menu Type =
Description = xxlab Custom Application Menu
Seq = 100
Prompt = View Requests
Submenu =
Function = View All Concurrent Requests
Description = View Requests
Seq = 110
Prompt = Run Requests
Submenu =
Function = Requests: Submit
Description = Submit Requests
Menu = xxlab_CUSTOM_MENU_SSWA
User Menu Name = xxlab Custom Application SSWA
Menu Type =
Description = xxlab Custom Application Menu for SSWA

10) Create new responsibility. One for Core Applications and One for Self Service (SSWA)
Navigate to Security-->Responsibility-->Define
Responsibility Name = xxlab Custom
Application = xxlab Custom
Responsibility Key = xxlabCUSTOM
Description = xxlab Custom Responsibility
Available From = Oracle Applications
Data Group Name = xxlabGroup
Data Group Application = xxlab Custom
Menu = xxlab Custom Application
Request Group Name = xxlab Request Group
Responsibility Name = xxlab Custom SSWA
Application = xxlab Custom
Responsibility Key = xxlabCUSTOMSSWA
Description = xxlab Custom Responsibility SSWA
Available From = Oracle Self Service Web Applications
Data Group Name = xxlabGroup
Data Group Application = xxlab Custom
Menu = xxlab Custom Application SSWA
Request Group Name = xxlab Request Group
11) Add responsibility to user
Navigate to Security-->User-->Define
Add xxlab Custom responsibility to users as required.
12) Other considerations
You are now ready to create your database Objects, custom Reports, Forms, Packages, etc
Create the source code files in the xxlab_TOP directory appropriate for the type of object. For example forms would be located in $xxlab_TOP/forms/US or package source code in $xxlab_TOP/admin/sql for example.
Database Objects, such as tables, indexes and sequences should be created in the xxlab schema, then you need to
a) Grant all privilege from each custom data object to the APPS schema.
For example : logged in as xxlab user
grant all privileges on myTable to apps;
b) Create a synonym in APPS for each custom data object
For example : logged in as APPS user
create synonym myTable for xxlab.myTable;
Other database objects, such as views and packages should be created directly in the APPS schema.

RELATED DOCUMENTS
-----------------
Oracle Applications Release 11i Developers Guide.
Oracle Applications Release 11i System Administrators Guide.
Additional Search Words
-----------------------
11i custom customisation core apps