Hi Stefan,
Thanks for the hint!
But I'm a bit confused about the how ..
You said I have to generate the DDL statement with brspace, I guess for the table TESPO.
After that, I have to modify the created ddl.sql file to change the LOB storage to the right tablespace, right?
If I generate the DDL for the table TESPO, I get the following ddl.sql output:
/* #TABL SAPSR3.TESPO */
CREATE TABLE "SAPSR3"."TESPO#$"
( "TABNAME" VARCHAR2(10) DEFAULT ' ' NOT NULL ENABLE,
"VARKEY" VARCHAR2(110) DEFAULT ' ' NOT NULL ENABLE,
"DATALN" NUMBER(5,0) DEFAULT 0 NOT NULL ENABLE,
"VARDATA" BLOB
)
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 16384 NEXT 655360 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "PSAPSR3"
LOB ("VARDATA") STORE AS SECUREFILE (
TABLESPACE "PSAPSR3" ENABLE STORAGE IN ROW CHUNK 8192
CACHE NOCOMPRESS KEEP_DUPLICATES ) ;
/* #STMT */
/* #INDX */
CREATE UNIQUE INDEX "SAPSR3"."TESPO~0#$" ON "SAPSR3"."TESPO#$" ("TABNAME", "VARKEY")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 163840 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0)
TABLESPACE "PSAPSR3" ;
/* #STMT */
/* #GRNT */
/* #CONS */
/* #RCON */
/* #TRIG */
/* #COMM */
/* #MLOG */
So if I start the reorg with that statement, it will create the table TESPO in PSAPSR3 and the LOB in PSAPSR3.
At this point I don't have to modify this statement, right? Because everything will be created in the PSAPSR3 tablespace.
Another question is, will this statement recreate the the existent table, or not. If yes, I have to export the table content, run the DDL statement and import the TESPO table back?
Thanks for your help!
Best regards,
Tobias