Hi all,
I wrotten a DDL script to create my schema on DB2 10.1 for linux. This DDL is OK.
When I try to run this DDL on DB2 z/OS V9.1 without to create Database (whith défault database)
When I try to run this DDL on the database I created this line does not work :
Script creation of database :
Why my DDL work correctly on the default database and not on the database I created ?
Thanks.
Nassa.
I wrotten a DDL script to create my schema on DB2 10.1 for linux. This DDL is OK.
When I try to run this DDL on DB2 z/OS V9.1 without to create Database (whith défault database)
When I try to run this DDL on the database I created this line does not work :
Code:
ALTER TABLE MY_TABLE ADD CONSTRAINT MY_UNIQUECONSTRAINT UNIQUE (MY_UNIQUECODE);
Code:
TABLE MYDB.MY_TABLE DOES NOT HAVE AN INDEX TO ENFORCE THE UNIQUENESS OF THE PRIMARY OR UNIQUE KEY. SQLCODE=-625, SQLSTATE=55014, DRIVER=4.14.113
Code:
CREATE DATABASE MYDB
STOGROUP SYSDEFLT
BUFFERPOOL BP32K
INDEXBP BP8K0
CCSID UNICODE ;
CREATE TABLESPACE TSFORMYDB
IN MYDB
USING STOGROUP SYSDEFLT
PRIQTY 15000
SECQTY 9000
ERASE NO
LOCKSIZE ROW
LOCKMAX SYSTEM
BUFFERPOOL BP32K
CLOSE NO
CCSID UNICODE ;
COMMIT ;
Thanks.
Nassa.