Professional Documents
Culture Documents
1. Use DB02 – Detail Analysis to check each partition size for ZOPIT
Owner Object Type Tablespace KBytes Blocks Extents MaxExtents Next (K)
SAPECP ZOPIT0180 TABLE PART PSAPZOPIT 14,501,568 1,812,696 3,299 1- 0
SAPECP ZOPIT0061 TABLE PART PSAPZOPIT 610,304 76,288 874 1- 0
Scale: Day Size (Kbyte) Free(Kbyte) Used (Kbyte) %-Used Tables/Indices Extents
Tablespace Total Chg/day Total Total Chg/day Total Chg Total Chg/day Total Chg/day
3. Ensure the free space in PSAPZOPIT is bigger than the ZOPIT partition you
want to reorg.
4. Use sqlplus to execute the reorg script for each station/partition. The reorg
scripts are in /home/ecpadm/reorg.
Example :-
% pg z0061.sql
set timing on;
spool z0061;
exit;
Login : ecpadm
%cd /home/ecpadm/reorg
%sqlplus sapecp/<password>@ECP @z<SSSS>.sql
5. Check if the reorg station is ok by comparing the record counts as per following
example :-
%sqlplus sapecp/<password>@ECP
AND
OR
6. If the count above are the same, then drop table z<SSSS> as follows :-
%sqlplus sapecp/<password>@ECP