Sei sulla pagina 1di 9

APPLICATION SETUP DOCUMENT

HeiTek Software Development GmbH


Add-Ons Oracle Application
Check Database Extents regular
Report
Ref

Prepared by HeiTek Software Development GmbH

Author: : Georg Heider


Creation Date: : July 31, 2007
Last Updated : October 21, 2008 11:10
Control Number : 1
Version : 1.1

Copyright (C)1998 HeiTek Software Development GmbH


All Rights Reserved

Approvals:

Client Project Manager

Services Representative

ORACLE Application Implementation Copy Number _____


Table of Content
Inhaltsverzeichnis
Assumptions ............................................................................................................................................................................ 3
Assumption: ......................................................................................................................................................................... 3
Vorgaben: ............................................................................................................................................................................ 3
Installation Instructions............................................................................................................................................................ 4
Pre-requisites ....................................................................................................................................................................... 4
Custom Application ......................................................................................................................................................... 4
Pre Requisite Patches....................................................................................................................................................... 4
Installation Steps.................................................................................................................................................................. 4
Involved Patch(es) ........................................................................................................................................................... 4
Involved SQL Scriptes..................................................................................................................................................... 4
Involved FNDLOAD Scriptes ......................................................................................................................................... 4
Involved UNIX Scriptes .................................................................................................................................................. 4
Verification Steps ................................................................................................................................................................ 5
Check 1: Existence of Objects ......................................................................................................................................... 5
Check 2: Existence of Concurrent Programs ................................................................................................................... 5
Post Installation Steps .......................................................................................................................................................... 5
Assign the Concurrent Programs to Request Group ........................................................................................................ 5
Installation Test Results....................................................................................................................................................... 5
Test Status........................................................................................................................................................................ 5
Test Comments ................................................................................................................................................................ 5
Process ................................................................................................................................................................................. 6
Included File ........................................................................................................................................................................ 7
Open Issues .............................................................................................................................................................................. 8
Closed Issues ........................................................................................................................................................................... 9
Assumptions
Description of the Assumptions.

Assumption: Vorgaben:

During production the database is growing constantly.


Depending on the modules installed and depending on the
processes used, different tables are growing.

The report will show all tables growing rapidly and coming
to the so called MAX Extents level.
Installation Instructions

Pre-requisites

Custom Application

• XXCUSTOM Schema must be installed as custom schema and must be registered


as custom application.

Pre Requisite Patches


The pre-requisite patches mentioned in the ‘PATCHES REQUIRED’ section of the
readme file should be applied.

Installation Steps

Involved Patch(es)
Apply the following patch(es) for this ADD-ON:

Patch File Name File Version Location

PATCH_CHECK_DB_EXTENTS_V11.5.1.rar 11.5.1 SOURCE\SYS\CH


ECK_DB_EXTENTS
\11.5.10.1

Involved SQL Scriptes


Apply the following Scripts:

• None required for this ADD-ON

Involved FNDLOAD Scriptes


Execute the following FNDLOAD commands on Unix:

• FNDLOAD apps/apps O Y UPLOAD


$FND_TOP/patch/115/import/afcpprog.lct
XXGAR_PICK_LIST_PROC_US.ldt
• FNDLOAD apps/apps O Y UPLOAD
$FND_TOP/patch/115/import/afcpprog.lct
XXGAR_PICK_LIST_PROC_D.ldt

Involved UNIX Scriptes


Copy the following Script on Unix to the $XXCUSTOM_TOP/bin directory:

• HT_DB_CHECK_EXT_PROC.sql
Verification Steps

Check 1: Existence of Objects


Check the existence of the following objects:

• Verify that the compiled custom sql file exists


o HT_DB_CHECK_EXT_PROC
in XXCUSTOM bin directory.

Check 2: Existence of Concurrent Programs


Check the existence of the following Concurrent Programs in the responsibility
Systemadministator:

• Verify that the Concurrent Program exists


o XXCUSTOM: Check Extents in the database
in Concurrent Request Form .

Post Installation Steps

Assign the Concurrent Programs to Request Group


Assign the Concurrent Programs to related Request Group

Installation Test Results

Test Status

Tester Name Georg Heider


Date Tested 15.09.2008
Installation n.a
Log File Name

Test Comments
none
Process
Description of content and process

Process: Prozeß

Go to the run request form, where you registered the report Gehen Sie in die Starte Reports Maske, für die der Report
freigegeben wurde.

Start a Single Request Starten Sie eine Einzel Anforderung

Select the report (name see above) and submit. Selektieren Sie den oben genannten Report und Starten Sie
die Verarbeitung.

Output Ausgabe

This report will list all tables with the following criteria: Dieser Report wird alle Tabllen auflisten, die folgende
Kriterien erfüllen:

The number of extents is close to the max extents Die Anzahl der Gegenwärtigen Extents ist Nahe der
Maximalen Anzahl der Extents.

The number of extents is bigger than 100. Die Number ist größer als 100
Included File
Set line 120
Set serveroutput on size 1000000
DECLARE
ls NUMBER := 50; --line size
i NUMBER;
f_used_extents NUMBER;
v_check_ext NUMBER := 100;
BEGIN
FOR rec in ( SELECT owner , table_name , MAX_EXTENTS FROM all_tables
-- WHERE table_name like 'MTL_SYSTEM%'
WHERE owner NOT IN ('SYS','SYSTEM','APPS')
) LOOP
select MAX(EXTENT_ID)
INTO f_used_extents
FROM dba_extents
WHERE segment_name = rec.table_name
AND owner = rec.owner
;
IF rec.MAX_EXTENTS = f_used_extents THEN
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
DBMS_OUTPUT.PUT_LINE(rpad('#### ' || rec.owner || '.' || rec.table_name , ls-5 ,' ') || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Max Extents :'||rpad(rec.MAX_EXTENTS,12,' '), ls-5 ,' ') || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### current Extents:'||rpad(f_used_extents ,12,' '), ls-5 ,' ') || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Limit reached, urgent action necessary ' , ls-5 ,' ') || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
ELSIF rec.MAX_EXTENTS = f_used_extents + 1 THEN
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
DBMS_OUTPUT.PUT_LINE(rpad('#### ' || rec.owner || '.' || rec.table_name , ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Max Extents :'||rpad(rec.MAX_EXTENTS,12,' '), ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### current Extents:'||rpad(f_used_extents ,12,' '), ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Limit reached closed (1)' , ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
ELSIF rec.MAX_EXTENTS = f_used_extents + 2 THEN
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
DBMS_OUTPUT.PUT_LINE(rpad('#### ' || rec.owner || '.' || rec.table_name , ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Max Extents :'||rpad(rec.MAX_EXTENTS,12,' '), ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### current Extents:'||rpad(f_used_extents ,12,' '), ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Limit reached closed (2)' , ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
ELSIF rec.MAX_EXTENTS <= f_used_extents + 10 THEN
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
DBMS_OUTPUT.PUT_LINE(rpad('#### ' || rec.owner || '.' || rec.table_name , ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Max Extents :'||rpad(rec.MAX_EXTENTS,12,' '), ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### current Extents:'||rpad(f_used_extents ,12,' '), ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Limit 10 under' , ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
ELSIF f_used_extents > v_check_ext THEN
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
DBMS_OUTPUT.PUT_LINE(rpad('#### ' || rec.owner || '.' || rec.table_name , ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### Max Extents :'||rpad(rec.MAX_EXTENTS,12,' '), ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### current Extents:'||rpad(f_used_extents ,12,' '), ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#### more than '||v_check_ext||' extents, check performance' , ls-5 ,' ' ) || ' ####');
DBMS_OUTPUT.PUT_LINE(rpad('#' , ls , '#' ));
END IF;
END LOOP;
END;
/
Open Issues

Issues already decided, but not yet implemented or Dinge die bereits entschieden sind, aber noch nicht
documented in any capture. umgesetzt, bzw dokumentiert sind.
Issues, not yet decided, but requested and tested will NOT Dinge die noch nicht entschieden sind, aber bereits
be marked in here. umgesetzt sind, werden dort vermerkt und NICHT hier.

1. Enhancement request: define flexible Number for current constant 100


2. Show the number of extents created through a given time period. (e.g. see all tables growing the last 2 weeks)
Closed Issues

Issues, being open in former versions of this document Dinge die in einer der Vorgänger Versionen offen waren.

1. issue

Potrebbero piacerti anche