CREATE TABLE "ASEDBUSR"."DOCBESTELLUNG" 
   (	"PKEY" NUMBER(12,0) CONSTRAINT "SYS_C0096276" NOT NULL ENABLE, 
	"BOID" VARCHAR2(40 CHAR) CONSTRAINT "SYS_C0096277" NOT NULL ENABLE, 
	"METABO" NUMBER(12,0) CONSTRAINT "SYS_C0096278" NOT NULL ENABLE, 
	"LASTUPDATE" TIMESTAMP (9) CONSTRAINT "SYS_C0096279" NOT NULL ENABLE, 
	"PROCESSID" VARCHAR2(40 CHAR) CONSTRAINT "SYS_C0096280" NOT NULL ENABLE, 
	"ROWCOMMENT" VARCHAR2(15 CHAR), 
	"CREATED" TIMESTAMP (9) CONSTRAINT "SYS_C0096281" NOT NULL ENABLE, 
	"CREATEDUSER" VARCHAR2(40 CHAR) CONSTRAINT "SYS_C0096283" NOT NULL ENABLE, 
	"REPLACED" TIMESTAMP (9) CONSTRAINT "SYS_C0096284" NOT NULL ENABLE, 
	"REPLACEDUSER" VARCHAR2(40 CHAR), 
	"ORIGINAL" VARCHAR2(40 CHAR) CONSTRAINT "SYS_C0096285" NOT NULL ENABLE, 
	"DRUCKWIEDERHOL" VARCHAR2(40 CHAR) CONSTRAINT "SYS_C0096286" NOT NULL ENABLE, 
	"ANZAHL" NUMBER(12,0) CONSTRAINT "SYS_C0096287" NOT NULL ENABLE, 
	"PERIODEVON" DATE, 
	"PERIODEBIS" DATE, 
	"STATUS" VARCHAR2(40 CHAR), 
	"BESTELLTAM" DATE, 
	"GEDRUCKTAM" DATE, 
	"ERSTELLTTYP" VARCHAR2(40 CHAR) CONSTRAINT "SYS_C0096289" NOT NULL ENABLE, 
	"ITSBESTPARTNER" VARCHAR2(40 CHAR), 
	"ITSBESTDOCTYPE" VARCHAR2(40 CHAR) CONSTRAINT "SYS_C0096290" NOT NULL ENABLE, 
	"ITSBESTMASTERBO" VARCHAR2(40 CHAR), 
	"ITSBESTDOCBO" VARCHAR2(40 CHAR), 
	"NAME1" VARCHAR2(35 CHAR), 
	"NAME2" VARCHAR2(35 CHAR), 
	"ADRESSZEILE1" VARCHAR2(35 CHAR), 
	"ADRESSZEILE2" VARCHAR2(35 CHAR), 
	"LAND" VARCHAR2(2 CHAR), 
	"PLZ" VARCHAR2(6 CHAR), 
	"PLZ_ZUSATZ" VARCHAR2(6 CHAR), 
	"ORT" VARCHAR2(35 CHAR), 
	"HOSTNAME" VARCHAR2(100 CHAR), 
	"LOCAL" VARCHAR2(40 CHAR) CONSTRAINT "SYS_C0096291" NOT NULL ENABLE, 
	"AUSFUEHRENAB" DATE, 
	"ITSAUSTRITTDOC" VARCHAR2(40 CHAR), 
	"ITSDOCGBEREICH" VARCHAR2(40 CHAR), 
	"MARKER" VARCHAR2(30 CHAR), 
	"ITSRUECKSENDEUSER" VARCHAR2(40 CHAR), 
	"ITSRUECKSENDEOE" VARCHAR2(40 CHAR), 
	"ITSKONTAKTPERSON" VARCHAR2(40 CHAR), 
	"ITSERSTUSCHRIFT" VARCHAR2(40 CHAR), 
	"ERSTUSCHRIFTOVR" NUMBER(12,0) CONSTRAINT "SYS_C0096292" NOT NULL ENABLE, 
	"ITSZWEITUSCHRIFT" VARCHAR2(40 CHAR), 
	"ZWEITUSCHRFTOVR" NUMBER(12,0) CONSTRAINT "SYS_C0096293" NOT NULL ENABLE, 
	"ITSABSENDERADR" VARCHAR2(40 CHAR), 
	"ABSENDERADROVR" NUMBER(12,0) CONSTRAINT "SYS_C0096294" NOT NULL ENABLE, 
	"RUECKSENDEOEOVR" NUMBER(12,0) CONSTRAINT "SYS_C0096297" NOT NULL ENABLE, 
	"ANTWORTFRIST" NUMBER(12,0), 
	"ERINNERUNGSTOPVORB" NUMBER(12,0) CONSTRAINT "SYS_C0096298" NOT NULL ENABLE, 
	"ITSFACHKONTEXT" VARCHAR2(40 CHAR), 
	"ERSTELLTAM" DATE NOT NULL ENABLE, 
	"CLSBESTDOCBO" NUMBER(12,0), 
	"CLSBESTMASTERBO" NUMBER(12,0), 
	"ITSACTIVITY" VARCHAR2(40 CHAR), 
	"ARCHIVETAG" VARCHAR2(40 CHAR), 
	"ERSTUSCHRIFTFNK" VARCHAR2(40 CHAR), 
	"ERSTUSCHRIFTFNKOVR" NUMBER(12,0) NOT NULL ENABLE, 
	"ZWEITUSCHRIFTFNK" VARCHAR2(40 CHAR), 
	"ZWEITUSCHRFTFNKOVR" NUMBER(12,0) NOT NULL ENABLE, 
	"ARCHDOCID" VARCHAR2(100 CHAR), 
	"URL" VARCHAR2(2000 CHAR), 
	"ITSARCHIVSYSKEY" VARCHAR2(40 CHAR), 
	"MDBID" VARCHAR2(255 CHAR), 
	"LANGUAGETAG" VARCHAR2(20 CHAR) NOT NULL ENABLE, 
	"FRISTBEGINN" DATE DEFAULT null NOT NULL ENABLE, 
	"WIEDERHOLUNG" NUMBER(12,0) DEFAULT null, 
	"ITSURSPRUNGDOCBEST" VARCHAR2(40 CHAR) DEFAULT null, 
	"NR" NUMBER(12,0) NOT NULL ENABLE, 
	"CUSTOMERCONTACTID" VARCHAR2(40 CHAR), 
	"BUSINESSEVENTID" VARCHAR2(40 CHAR), 
	"BUSPROCESSTYPEID" VARCHAR2(40 CHAR), 
	 SUPPLEMENTAL LOG DATA (ALL) COLUMNS
   ) PCTFREE 10 PCTUSED 40 INITRANS 40 MAXTRANS 255  LOGGING 
  STORAGE(
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "ASEDBUSR_DAT" 
  PARTITION BY LIST ("REPLACED") 
 (PARTITION "P_CURR"  VALUES (TIMESTAMP' 3000-01-01 00:00:00') SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 40 MAXTRANS 255 
 NOCOMPRESS LOGGING 
  STORAGE(INITIAL 8388608 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "ASEDBUSR_DAT" , 
 PARTITION "P_ARCH"  VALUES (DEFAULT) SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 40 MAXTRANS 255 
 NOCOMPRESS LOGGING 
  STORAGE(INITIAL 8388608 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "ASEDBUSR_DAT" )  ENABLE ROW MOVEMENT ;
  CREATE UNIQUE INDEX "ASEDBUSR"."PK229" ON "ASEDBUSR"."DOCBESTELLUNG" ("PKEY") 
  PCTFREE 10 INITRANS 80 MAXTRANS 255 COMPUTE STATISTICS 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "ASEDBUSR_DAT" ;
ALTER TABLE "ASEDBUSR"."DOCBESTELLUNG" ADD CONSTRAINT "PK229" PRIMARY KEY ("PKEY")
  USING INDEX "ASEDBUSR"."PK229"  ENABLE;