Database Tuning (MOSC)

MOSC Banner

Have a large number of indexes to build. And I am trying leverage parallel.

edited Aug 7, 2024 6:29PM in Database Tuning (MOSC) 2 commentsAnswered

My system has 8 cpus. It is on Oracle 19c Red Hat 9.4

This an example of the sql which I created with impdb include=constraints sqlfile=xxx

I am only show to partitions but there are hundreds more.

I have tried "alter session force parallel DDL; The table is set to parallel 8.

Any help would be appreciated as this is taking days.

ALTER TABLE "DWSUPWHSL"."TR_DTN_ALLOC" ADD CONSTRAINT "TR_DTN_ALLOC_PK" PRIMARY KEY ("EFFECTIVE_DT", "TERMINAL_KEY", "CONSIGNEE_KEY", "PRODUCT_KEY", "PRODUCT_ALLOC_KEY", "PRODUCT_ALLOC_ACTIVE")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
STORAGE(
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center