Quantcast
Channel: SCN : Discussion List - SAP on Oracle
Viewing all articles
Browse latest Browse all 1892

Best procedure for online reorg + ACO + change to new TS layout on Oracle 11.2.0.2

$
0
0

Dear all,

 

I have some questions about the best procedure for an onlinereorg including compression and a change to the new TS layout.

 

I´ve done it on some dev and sandbox systems and it works fine. First of all I will describe the procedure how I ´ve done the reorg including compression and a change to the new TS layout.

 

 

Helpful SAP-Notes:

355771 - Oracle: Erläuterung zum neuen Tablespace-Layout

1289494 - FAQ: Oracle Komprimierung

1436352 - Oracle 11g: Advanced Compression für SAP-Systeme

1847870 - Oracle 11g: Advanced Compression - Bek. Probleme und Lösung

1431296 - LOB-Umsetzung und Tabellenkomprimierung mit BRSPACE 7.20

 

Current state:

- Oracle 11.2.0.2

- SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 3

- EHP6 FOR SAP ERP 6.0

- Old tablespace layout with locally managed TS and no ASSM

 

1. First attempt for LONG2LOB migration

- brspace -u / -f tbreorg -a long2lob -t "*"

 

an error occur because we do´nt have TS with ASSM

 

BR1185W Table SAPR3./SAPDMC/LSODOC located in a non-ASSM tablespace PSAPPOOLD

This error message helps to identify which tablespaces contain LONG fields.

 

2. Create new TS PSAPSR3

 

- brspace -u / -f tscreate -t PSAPR3 -d both

(create tablespace PSAPSR3 extent management local autoallocate segment space management auto default compress for oltp datafile '/oracle/M06/sapdata1/sr3_1/sr3.data1' size 30720M autoextend on next 1000M maxsize 32767M )

 

3. Second attempt for LON2LOB migration

brspace -u / -f tbreorg -a long2lob -o sapr3 -s PSAPDOCUD -t allsel -n PSAPSR3 -c ctablob -lc medium -SCT -p 2

brspace -u / -f tbreorg -a long2lob -o sapr3 -s PSAPDOCUD -t allsel -n PSAPSR3 -p 2

 

4. LOB2LOB migration

brspace -u / -f tbreorg -a lob2lob -o sapr3 -s PSAPDOCUD -t allsel -n PSAPSR3 -c ctablob -lc medium -SCT -p 2

brspace -u / -f tbreorg -a lob2lob -o sapr3 -s PSAPDOCUD -t allsel -n PSAPSR3 -p 2

 

5. Reorg and  compress tables without LONGs and old LOBs

brspace -u / -p reorgEXCL.tab -f tbreorg -a reorg -o sapr3 -s PSAPDOCUD -t allsel -n PSAPSR3 -c ctablob -SCT -p 2

 

6. Reorg from the rest of the tables

brspace -u / -f tbreorg -a reorg -o sapr3 -s PSAPDOCUD -t allsel -n PSAPSR3 -p 2

 

7. Delete empty source TS

brspace -u / -f tsdrop -t PSAPDOCUD

 

8. Create new statistics

brconnect -u / -c -f stats -t PSAPSR3 -f collect -p 2

 

9. Index rebuild with comression cind_only

brspace -u / -c force -f idrebuild -o sapr3 -s PSAPDOCUI -i allsel -n PSAPSR3 -c cind_only -ic ora_proc -p 2

 

10. Index rebuild without compression

brspace -u / -f idrebuild -s PSAPDOCUI -i "*" -n PSAPSR3 -p 2

 

11. Delete empty source TS

brspace -u / -f tsdrop -t PSAPDOCUI

 

12. Create new statistics

brconnect -u / -c -f stats -t PSAPSR3 -f collect -p 2

 

After I´ve dropped the empty TS I have to change the entries in the TAORA and IAORA manually to the new TS.

Normally the brspace programm do it automatically, but only if you create the new TS and tell him from which reorg TS he should take the tabart.

In this case it is not possible because we have many TS to reorganize and you can only assign one reorg TS to the new TS.

 

Now the questions.

When should I change the IAORA and TAORA ? Directly after I ´ve dropped the empty TS ? Could it happen that during the online reorganization errors occuring because the IAORA and TAORA are not on current state ? Should I do the reorganization + compression + change to new TS layout in the afternoon or the weekend ?

 

Thanks and best regards

 

Carsten


Viewing all articles
Browse latest Browse all 1892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>