cancel
Showing results for 
Search instead for 
Did you mean: 

table partition for sale tables XYZ, in SAP with oracle DB.

dharmender
Discoverer
0 Kudos
200

Hi Guys,

I am looking table partition in oracle DB with SAP, I have followed the note 722188 but unable to proceed.

can I get some help toward syntax commands for table XYZ already exist inside the system.(Oracle +SAP)

View Entire Topic
umasaral
Active Participant
0 Kudos

Hi 

You can use the ALTER TABLE command to add partitions to the existing table without dropping it. Here’s a simplified approach:

Add Partitions Directly:
ALTER TABLE XYZ
ADD PARTITION p1 VALUES LESS THAN (TO_DATE('2023-01-01', 'YYYY-MM-DD'));

ALTER TABLE XYZ
ADD PARTITION p2 VALUES LESS THAN (TO_DATE('2024-01-01', 'YYYY-MM-DD'));

Rebuild Indexes (if necessary):
ALTER INDEX index_name REBUILD;
This approach modifies the existing table to include partitions without needing to drop and recreate it.