Skip to content
Snippets Groups Projects
Commit 16093530 authored by Steven Murray's avatar Steven Murray
Browse files

cta/CTA#158 Give human readable names to not null constraints

Done.
parent 95f9943e
No related branches found
No related tags found
No related merge requests found
CREATE TABLE CTA_CATALOGUE(
SCHEMA_VERSION_MAJOR INTEGER NOT NULL,
SCHEMA_VERSION_MINOR INTEGER NOT NULL
SCHEMA_VERSION_MAJOR INTEGER CONSTRAINT CTA_CATALOGUE_SVM1_NN NOT NULL,
SCHEMA_VERSION_MINOR INTEGER CONSTRAINT CTA_CATALOGUE_SVM2_NN NOT NULL
);
CREATE TABLE ADMIN_USER(
ADMIN_USER_NAME VARCHAR2(100) NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
ADMIN_USER_NAME VARCHAR2(100) CONSTRAINT ADMIN_USER_AUN_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT ADMIN_USER_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT ADMIN_USER_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT ADMIN_USER_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT ADMIN_USER_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT ADMIN_USER_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT ADMIN_USER_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT ADMIN_USER_LUT_NN NOT NULL,
CONSTRAINT ADMIN_USER_PK PRIMARY KEY(ADMIN_USER_NAME)
);
CREATE TABLE ADMIN_HOST(
ADMIN_HOST_NAME VARCHAR2(100) NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
ADMIN_HOST_NAME VARCHAR2(100) CONSTRAINT ADMIN_HOST_AHN_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT ADMIN_HOST_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT ADMIN_HOST_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT ADMIN_HOST_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT ADMIN_HOST_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT ADMIN_HOST_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT ADMIN_HOST_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT ADMIN_HOST_LUT_NN NOT NULL,
CONSTRAINT ADMIN_HOST_PK PRIMARY KEY(ADMIN_HOST_NAME)
);
CREATE TABLE STORAGE_CLASS(
DISK_INSTANCE_NAME VARCHAR2(100) NOT NULL,
STORAGE_CLASS_NAME VARCHAR2(100) NOT NULL,
NB_COPIES INTEGER NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
DISK_INSTANCE_NAME VARCHAR2(100) CONSTRAINT STORAGE_CLASS_DIN_NN NOT NULL,
STORAGE_CLASS_NAME VARCHAR2(100) CONSTRAINT STORAGE_CLASS_SCN_NN NOT NULL,
NB_COPIES INTEGER CONSTRAINT STORAGE_CLASS_NC_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT STORAGE_CLASS_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT STORAGE_CLASS_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT STORAGE_CLASS_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT STORAGE_CLASS_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT STORAGE_CLASS_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT STORAGE_CLASS_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT STORAGE_CLASS_LUT_NN NOT NULL,
CONSTRAINT STORAGE_CLASS_PK PRIMARY KEY(DISK_INSTANCE_NAME, STORAGE_CLASS_NAME)
);
CREATE TABLE TAPE_POOL(
TAPE_POOL_NAME VARCHAR2(100) NOT NULL,
NB_PARTIAL_TAPES INTEGER NOT NULL,
IS_ENCRYPTED INTEGER NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
TAPE_POOL_NAME VARCHAR2(100) CONSTRAINT TAPE_POOL_TPN_NN NOT NULL,
NB_PARTIAL_TAPES INTEGER CONSTRAINT TAPE_POOL_NPT_NN NOT NULL,
IS_ENCRYPTED INTEGER CONSTRAINT TAPE_POOL_IE_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT TAPE_POOL_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT TAPE_POOL_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT TAPE_POOL_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT TAPE_POOL_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT TAPE_POOL_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT TAPE_POOL_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT TAPE_POOL_LUT_NN NOT NULL,
CONSTRAINT TAPE_POOL_PK PRIMARY KEY(TAPE_POOL_NAME),
CONSTRAINT TAPE_POOL_IS_ENCRYPTED_BOOL_CK CHECK(IS_ENCRYPTED IN (0, 1))
);
CREATE TABLE ARCHIVE_ROUTE(
DISK_INSTANCE_NAME VARCHAR2(100) NOT NULL,
STORAGE_CLASS_NAME VARCHAR2(100) NOT NULL,
COPY_NB INTEGER NOT NULL,
TAPE_POOL_NAME VARCHAR2(100) NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
DISK_INSTANCE_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_ROUTE_DIN_NN NOT NULL,
STORAGE_CLASS_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_ROUTE_SCN_NN NOT NULL,
COPY_NB INTEGER CONSTRAINT ARCHIVE_ROUTE_CN_NN NOT NULL,
TAPE_POOL_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_ROUTE_TPN_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT ARCHIVE_ROUTE_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_ROUTE_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_ROUTE_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT ARCHIVE_ROUTE_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_ROUTE_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_ROUTE_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT ARCHIVE_ROUTE_LUT_NN NOT NULL,
CONSTRAINT ARCHIVE_ROUTE_PK PRIMARY KEY(DISK_INSTANCE_NAME, STORAGE_CLASS_NAME, COPY_NB),
CONSTRAINT ARCHIVE_ROUTE_STORAGE_CLASS_FK FOREIGN KEY(DISK_INSTANCE_NAME, STORAGE_CLASS_NAME)
REFERENCES STORAGE_CLASS(DISK_INSTANCE_NAME, STORAGE_CLASS_NAME),
......@@ -70,26 +70,26 @@ CREATE TABLE ARCHIVE_ROUTE(
REFERENCES TAPE_POOL(TAPE_POOL_NAME)
);
CREATE TABLE LOGICAL_LIBRARY(
LOGICAL_LIBRARY_NAME VARCHAR2(100) NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
LOGICAL_LIBRARY_NAME VARCHAR2(100) CONSTRAINT LOGICAL_LIBRARY_LLL_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT LOGICAL_LIBRARY_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT LOGICAL_LIBRARY_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT LOGICAL_LIBRARY_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT LOGICAL_LIBRARY_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT LOGICAL_LIBRARY_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT LOGICAL_LIBRARY_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT LOGICAL_LIBRARY_LUT_NN NOT NULL,
CONSTRAINT LOGICAL_LIBRARY_PK PRIMARY KEY(LOGICAL_LIBRARY_NAME)
);
CREATE TABLE TAPE(
VID VARCHAR2(100) NOT NULL,
LOGICAL_LIBRARY_NAME VARCHAR2(100) NOT NULL,
TAPE_POOL_NAME VARCHAR2(100) NOT NULL,
VID VARCHAR2(100) CONSTRAINT TAPE_V_UN NOT NULL,
LOGICAL_LIBRARY_NAME VARCHAR2(100) CONSTRAINT TAPE_LLN_UN NOT NULL,
TAPE_POOL_NAME VARCHAR2(100) CONSTRAINT TAPE_TPN_UN NOT NULL,
ENCRYPTION_KEY VARCHAR2(100),
CAPACITY_IN_BYTES INTEGER NOT NULL,
DATA_IN_BYTES INTEGER NOT NULL,
LAST_FSEQ INTEGER NOT NULL,
IS_DISABLED INTEGER NOT NULL,
IS_FULL INTEGER NOT NULL,
CAPACITY_IN_BYTES INTEGER CONSTRAINT TAPE_CIB_UN NOT NULL,
DATA_IN_BYTES INTEGER CONSTRAINT TAPE_DIB_UN NOT NULL,
LAST_FSEQ INTEGER CONSTRAINT TAPE_LF_UN NOT NULL,
IS_DISABLED INTEGER CONSTRAINT TAPE_ID_UN NOT NULL,
IS_FULL INTEGER CONSTRAINT TAPE_IF_UN NOT NULL,
LBP_IS_ON INTEGER,
LABEL_DRIVE VARCHAR2(100),
LABEL_TIME INTEGER,
......@@ -97,13 +97,13 @@ CREATE TABLE TAPE(
LAST_READ_TIME INTEGER,
LAST_WRITE_DRIVE VARCHAR2(100),
LAST_WRITE_TIME INTEGER,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT TAPE_UC_UN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT TAPE_CLUN_UN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT TAPE_CLHN_UN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT TAPE_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT TAPE_LUUN_UN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT TAPE_LUHN_UN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT TAPE_LUT_UN NOT NULL,
CONSTRAINT TAPE_PK PRIMARY KEY(VID),
CONSTRAINT TAPE_LOGICAL_LIBRARY_FK FOREIGN KEY(LOGICAL_LIBRARY_NAME)
REFERENCES LOGICAL_LIBRARY(LOGICAL_LIBRARY_NAME),
......@@ -114,77 +114,77 @@ CREATE TABLE TAPE(
CONSTRAINT TAPE_LBP_IS_ON_BOOL_CK CHECK(LBP_IS_ON = 0 OR LBP_IS_ON = 1)
);
CREATE TABLE MOUNT_POLICY(
MOUNT_POLICY_NAME VARCHAR2(100) NOT NULL,
ARCHIVE_PRIORITY INTEGER NOT NULL,
ARCHIVE_MIN_REQUEST_AGE INTEGER NOT NULL,
RETRIEVE_PRIORITY INTEGER NOT NULL,
RETRIEVE_MIN_REQUEST_AGE INTEGER NOT NULL,
MAX_DRIVES_ALLOWED INTEGER NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
MOUNT_POLICY_NAME VARCHAR2(100) CONSTRAINT MOUNT_POLICY_MPN_NN NOT NULL,
ARCHIVE_PRIORITY INTEGER CONSTRAINT MOUNT_POLICY_AP_NN NOT NULL,
ARCHIVE_MIN_REQUEST_AGE INTEGER CONSTRAINT MOUNT_POLICY_AMRA_NN NOT NULL,
RETRIEVE_PRIORITY INTEGER CONSTRAINT MOUNT_POLICY_RP_NN NOT NULL,
RETRIEVE_MIN_REQUEST_AGE INTEGER CONSTRAINT MOUNT_POLICY_RMRA_NN NOT NULL,
MAX_DRIVES_ALLOWED INTEGER CONSTRAINT MOUNT_POLICY_MDA_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT MOUNT_POLICY_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT MOUNT_POLICY_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT MOUNT_POLICY_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT MOUNT_POLICY_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT MOUNT_POLICY_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT MOUNT_POLICY_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT MOUNT_POLICY_LUT_NN NOT NULL,
CONSTRAINT MOUNT_POLICY_PK PRIMARY KEY(MOUNT_POLICY_NAME)
);
CREATE TABLE REQUESTER_MOUNT_RULE(
DISK_INSTANCE_NAME VARCHAR2(100) NOT NULL,
REQUESTER_NAME VARCHAR2(100) NOT NULL,
MOUNT_POLICY_NAME VARCHAR2(100) NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
DISK_INSTANCE_NAME VARCHAR2(100) CONSTRAINT RQSTER_RULE_DIN_NN NOT NULL,
REQUESTER_NAME VARCHAR2(100) CONSTRAINT RQSTER_RULE_RN_NN NOT NULL,
MOUNT_POLICY_NAME VARCHAR2(100) CONSTRAINT RQSTER_RULE_MPN_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT RQSTER_RULE_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT RQSTER_RULE_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT RQSTER_RULE_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT RQSTER_RULE_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT RQSTER_RULE_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT RQSTER_RULE_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT RQSTER_RULE_LUT_NN NOT NULL,
CONSTRAINT RQSTER_RULE_PK PRIMARY KEY(DISK_INSTANCE_NAME, REQUESTER_NAME),
CONSTRAINT RQSTER_RULE_MNT_PLC_FK FOREIGN KEY(MOUNT_POLICY_NAME)
REFERENCES MOUNT_POLICY(MOUNT_POLICY_NAME)
);
CREATE TABLE REQUESTER_GROUP_MOUNT_RULE(
DISK_INSTANCE_NAME VARCHAR2(100) NOT NULL,
REQUESTER_GROUP_NAME VARCHAR2(100) NOT NULL,
MOUNT_POLICY_NAME VARCHAR2(100) NOT NULL,
USER_COMMENT VARCHAR2(1000) NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) NOT NULL,
CREATION_LOG_TIME INTEGER NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) NOT NULL,
LAST_UPDATE_TIME INTEGER NOT NULL,
DISK_INSTANCE_NAME VARCHAR2(100) CONSTRAINT RQSTER_GRP_RULE_DIN_NN NOT NULL,
REQUESTER_GROUP_NAME VARCHAR2(100) CONSTRAINT RQSTER_GRP_RULE_RGN_NN NOT NULL,
MOUNT_POLICY_NAME VARCHAR2(100) CONSTRAINT RQSTER_GRP_RULE_MPN_NN NOT NULL,
USER_COMMENT VARCHAR2(1000) CONSTRAINT RQSTER_GRP_RULE_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR2(100) CONSTRAINT RQSTER_GRP_RULE_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR2(100) CONSTRAINT RQSTER_GRP_RULE_CLHN_NN NOT NULL,
CREATION_LOG_TIME INTEGER CONSTRAINT RQSTER_GRP_RULE_CLT_NN NOT NULL,
LAST_UPDATE_USER_NAME VARCHAR2(100) CONSTRAINT RQSTER_GRP_RULE_LUUN_NN NOT NULL,
LAST_UPDATE_HOST_NAME VARCHAR2(100) CONSTRAINT RQSTER_GRP_RULE_LUHN_NN NOT NULL,
LAST_UPDATE_TIME INTEGER CONSTRAINT RQSTER_GRP_RULE_LUT_NN NOT NULL,
CONSTRAINT RQSTER_GRP_RULE_PK PRIMARY KEY(DISK_INSTANCE_NAME, REQUESTER_GROUP_NAME),
CONSTRAINT RQSTER_GRP_RULE_MNT_PLC_FK FOREIGN KEY(MOUNT_POLICY_NAME)
REFERENCES MOUNT_POLICY(MOUNT_POLICY_NAME)
);
CREATE TABLE ARCHIVE_FILE(
ARCHIVE_FILE_ID INTEGER NOT NULL,
DISK_INSTANCE_NAME VARCHAR2(100) NOT NULL,
DISK_FILE_ID VARCHAR2(100) NOT NULL,
DISK_FILE_PATH VARCHAR2(2000) NOT NULL,
DISK_FILE_USER VARCHAR2(100) NOT NULL,
DISK_FILE_GROUP VARCHAR2(100) NOT NULL,
DISK_FILE_RECOVERY_BLOB VARCHAR2(4000) NOT NULL,
SIZE_IN_BYTES INTEGER NOT NULL,
CHECKSUM_TYPE VARCHAR2(100) NOT NULL,
CHECKSUM_VALUE VARCHAR2(100) NOT NULL,
STORAGE_CLASS_NAME VARCHAR2(100) NOT NULL,
CREATION_TIME INTEGER NOT NULL,
RECONCILIATION_TIME INTEGER NOT NULL,
ARCHIVE_FILE_ID INTEGER CONSTRAINT ARCHIVE_FILE_AFI_NN NOT NULL,
DISK_INSTANCE_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_FILE_DIN_NN NOT NULL,
DISK_FILE_ID VARCHAR2(100) CONSTRAINT ARCHIVE_FILE_DFI_NN NOT NULL,
DISK_FILE_PATH VARCHAR2(2000) CONSTRAINT ARCHIVE_FILE_DFP_NN NOT NULL,
DISK_FILE_USER VARCHAR2(100) CONSTRAINT ARCHIVE_FILE_DFU_NN NOT NULL,
DISK_FILE_GROUP VARCHAR2(100) CONSTRAINT ARCHIVE_FILE_DFG_NN NOT NULL,
DISK_FILE_RECOVERY_BLOB VARCHAR2(4000) CONSTRAINT ARCHIVE_FILE_DFRB_NN NOT NULL,
SIZE_IN_BYTES INTEGER CONSTRAINT ARCHIVE_FILE_SIB_NN NOT NULL,
CHECKSUM_TYPE VARCHAR2(100) CONSTRAINT ARCHIVE_FILE_CT1_NN NOT NULL,
CHECKSUM_VALUE VARCHAR2(100) CONSTRAINT ARCHIVE_FILE_CV_NN NOT NULL,
STORAGE_CLASS_NAME VARCHAR2(100) CONSTRAINT ARCHIVE_FILE_SCN_NN NOT NULL,
CREATION_TIME INTEGER CONSTRAINT ARCHIVE_FILE_CT2_NN NOT NULL,
RECONCILIATION_TIME INTEGER CONSTRAINT ARCHIVE_FILE_RT_NN NOT NULL,
CONSTRAINT ARCHIVE_FILE_PK PRIMARY KEY(ARCHIVE_FILE_ID),
CONSTRAINT ARCHIVE_FILE_STORAGE_CLASS_FK FOREIGN KEY(DISK_INSTANCE_NAME, STORAGE_CLASS_NAME)
REFERENCES STORAGE_CLASS(DISK_INSTANCE_NAME, STORAGE_CLASS_NAME)
);
CREATE TABLE TAPE_FILE(
VID VARCHAR2(100) NOT NULL,
FSEQ INTEGER NOT NULL,
BLOCK_ID INTEGER NOT NULL,
COMPRESSED_SIZE_IN_BYTES INTEGER NOT NULL,
COPY_NB INTEGER NOT NULL,
CREATION_TIME INTEGER NOT NULL,
ARCHIVE_FILE_ID INTEGER NOT NULL,
VID VARCHAR2(100) CONSTRAINT TAPE_FILE_V_NN NOT NULL,
FSEQ INTEGER CONSTRAINT TAPE_FILE_F_NN NOT NULL,
BLOCK_ID INTEGER CONSTRAINT TAPE_FILE_BI_NN NOT NULL,
COMPRESSED_SIZE_IN_BYTES INTEGER CONSTRAINT TAPE_FILE_CSIB_NN NOT NULL,
COPY_NB INTEGER CONSTRAINT TAPE_FILE_CN_NN NOT NULL,
CREATION_TIME INTEGER CONSTRAINT TAPE_FILE_CT_NN NOT NULL,
ARCHIVE_FILE_ID INTEGER CONSTRAINT TAPE_FILE_AFI_NN NOT NULL,
CONSTRAINT TAPE_FILE_PK PRIMARY KEY(VID, FSEQ),
CONSTRAINT TAPE_FILE_TAPE_FK FOREIGN KEY(VID)
REFERENCES TAPE(VID),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment