on 2024 Aug 08 10:51 AM
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)
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.