cancel
Showing results for 
Search instead for 
Did you mean: 

How to List Tables with Reorganisation Type

0 Kudos

Hi All,

Please help with SQL query to list Tables (selected 'n' tables) with their reorg type (like Offline/Online) in SINGLE query.

Approach:

1.Take top 50 tables

2. If  table has data type LONG or LONG RAW, table should be considered for OFFLINE reorganization and remaining tables for ONLINE reorg.

Help is much appreciated !

As of now, getting it done using separate queries and excel sorting.

Thanks

Ram

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

View COL could give you a start.

It has a list of all tables with all columns and respective column types.

In sqlplus, as SAP schema owner, try something like this:

select table_name < your top 50 query here >

MINUS

select tname from col

where colype like 'LONG%';

0 Kudos

Thanks for reply,

Want to get the results as below and with single SQL query. Help !! 🙂

Eg::

Table  Reorg_Type

T1       OFFLINE

T2       ONLINE

T3        ONLINE

T4        OFFLINE

Rgds

Ram