Commit fb5e2563 authored by Holger Brand's avatar Holger Brand
Browse files

Remove Oracle tablespace info from Script.

parent 58991929
......@@ -35,8 +35,7 @@ CREATE SEQUENCE BRAND.S_ITEMVALUES
NOORDER;
-- ALTER TABLE BRAND.VIP2012_CLASSES
DROP PRIMARY KEY CASCADE;
-- ALTER TABLE BRAND.VIP2012_CLASSES DROP PRIMARY KEY CASCADE;
-- DROP TABLE BRAND.VIP2012_CLASSES CASCADE CONSTRAINTS;
CREATE TABLE BRAND.VIP2012_CLASSES
......@@ -45,28 +44,7 @@ CREATE TABLE BRAND.VIP2012_CLASSES
NAME VARCHAR2(255 CHAR) NOT NULL,
PATH VARCHAR2(1024 CHAR) NOT NULL,
ANCESTOR INTEGER
)
TABLESPACE USERS
RESULT_CACHE (MODE DEFAULT)
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
);
CREATE OR REPLACE TRIGGER BRAND.TR_CLASSES_ID
BEFORE INSERT OR UPDATE ON BRAND.VIP2012_CLASSES
......@@ -79,29 +57,12 @@ BEGIN
SELECT s_classes.NEXTVAL INTO tmpVar FROM dual;
:NEW.id := tmpVar;
END IF;
END IF;
END IF;
END tr_classes_ID;
ALTER TABLE BRAND.VIP2012_CLASSES ADD (
PRIMARY KEY
(ID)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
ENABLE VALIDATE);
ALTER TABLE BRAND.VIP2012_CLASSES ADD (
......@@ -109,9 +70,7 @@ ALTER TABLE BRAND.VIP2012_CLASSES ADD (
REFERENCES BRAND.VIP2012_CLASSES (ID)
ENABLE VALIDATE);
-- ALTER TABLE BRAND.VIP2012_SECTIONS
DROP PRIMARY KEY CASCADE;
-- ALTER TABLE BRAND.VIP2012_SECTIONS DROP PRIMARY KEY CASCADE;
-- DROP TABLE BRAND.VIP2012_SECTIONS CASCADE CONSTRAINTS;
CREATE TABLE BRAND.VIP2012_SECTIONS
......@@ -119,28 +78,7 @@ CREATE TABLE BRAND.VIP2012_SECTIONS
ID INTEGER NOT NULL,
NAME VARCHAR2(255 CHAR) NOT NULL,
FK_CLASSES INTEGER NOT NULL
)
TABLESPACE USERS
RESULT_CACHE (MODE DEFAULT)
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
);
CREATE OR REPLACE TRIGGER BRAND.TR_SECTIONS_ID
BEFORE INSERT OR UPDATE ON BRAND.VIP2012_SECTIONS
......@@ -153,29 +91,12 @@ BEGIN
SELECT s_sections.NEXTVAL INTO tmpVar FROM dual;
:NEW.id := tmpVar;
END IF;
END IF;
END tr_sections_ID;
ALTER TABLE BRAND.VIP2012_SECTIONS ADD (
PRIMARY KEY
(ID)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
ENABLE VALIDATE);
ALTER TABLE BRAND.VIP2012_SECTIONS ADD (
......@@ -183,9 +104,7 @@ ALTER TABLE BRAND.VIP2012_SECTIONS ADD (
REFERENCES BRAND.VIP2012_CLASSES (ID)
ENABLE VALIDATE);
-- ALTER TABLE BRAND.VIP2012_ITEMS
DROP PRIMARY KEY CASCADE;
-- ALTER TABLE BRAND.VIP2012_ITEMS DROP PRIMARY KEY CASCADE;
-- DROP TABLE BRAND.VIP2012_ITEMS CASCADE CONSTRAINTS;
CREATE TABLE BRAND.VIP2012_ITEMS
......@@ -194,28 +113,7 @@ CREATE TABLE BRAND.VIP2012_ITEMS
NAME VARCHAR2(255 CHAR) NOT NULL,
FK_CLASSES INTEGER NOT NULL,
FK_BASECLASS INTEGER NOT NULL
)
TABLESPACE USERS
RESULT_CACHE (MODE DEFAULT)
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
);
CREATE OR REPLACE TRIGGER BRAND.TR_ITEMS_ID
BEFORE INSERT OR UPDATE ON BRAND.VIP2012_ITEMS
......@@ -228,46 +126,14 @@ BEGIN
SELECT s_items.NEXTVAL INTO tmpVar FROM dual;
:NEW.id := tmpVar;
END IF;
END IF;
END tr_items_ID;
ALTER TABLE BRAND.VIP2012_ITEMS ADD (
PRIMARY KEY
(ID)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
ENABLE VALIDATE,
UNIQUE (FK_BASECLASS, NAME)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
ENABLE VALIDATE);
ALTER TABLE BRAND.VIP2012_ITEMS ADD (
......@@ -278,8 +144,7 @@ ALTER TABLE BRAND.VIP2012_ITEMS ADD (
REFERENCES BRAND.VIP2012_CLASSES (ID)
ENABLE VALIDATE);
-- ALTER TABLE BRAND.VIP2012_ITEMVALUES
DROP PRIMARY KEY CASCADE;
-- ALTER TABLE BRAND.VIP2012_ITEMVALUES DROP PRIMARY KEY CASCADE;
-- DROP TABLE BRAND.VIP2012_ITEMVALUES CASCADE CONSTRAINTS;
CREATE TABLE BRAND.VIP2012_ITEMVALUES
......@@ -288,28 +153,7 @@ CREATE TABLE BRAND.VIP2012_ITEMVALUES
FK_SECTIONS INTEGER NOT NULL,
FK_ITEMS INTEGER NOT NULL,
DATA VARCHAR2(1024 CHAR)
)
TABLESPACE USERS
RESULT_CACHE (MODE DEFAULT)
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
);
CREATE OR REPLACE TRIGGER BRAND.TR_ITEMVALUES_ID
BEFORE INSERT OR UPDATE ON BRAND.VIP2012_ITEMVALUES
......@@ -322,46 +166,14 @@ BEGIN
SELECT s_itemvalues.NEXTVAL INTO tmpVar FROM dual;
:NEW.id := tmpVar;
END IF;
END IF;
END IF;
END tr_itemvalues_ID;
ALTER TABLE BRAND.VIP2012_ITEMVALUES ADD (
PRIMARY KEY
(ID)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
ENABLE VALIDATE,
UNIQUE (FK_SECTIONS, FK_ITEMS)
USING INDEX
TABLESPACE USERS
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
)
ENABLE VALIDATE);
ALTER TABLE BRAND.VIP2012_ITEMVALUES ADD (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment