-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB2 zOS reverse engineered table not right #84
Comments
We tested today using a DB2 database (not ZOS), and for us the reverse engineer and generate script are working fine. |
We tried installing DB2ZOS as here. We got the container running. |
Sorry I don't know. I have not used that method - my DB2 is running on an IBM mainframe - using credentials from the DBAs. |
We are searching a solution for the container issue. Can you please run this query and send me the results? Please replace the ? with the schema name, in quotes. |
We wrote to IBM, they answer they will give us details, so we are waiting. Then we can test using the docker container. |
There are over 33k rows, so I am providing the rows specific to our sample table REM_ACTN_RSN_CTGRY: TBNAME NAME COLTYPE LENGTH SCALE DEFAULT NULLS |
Please excuse the delays. |
Could you please check if the latest DbSchema 9.4.2 is working fine? |
Using version 9.1.3 build 221114. I pointed DbSchema at my DB2 on zOS database to reverse engineer a schema. All of the tables and columns were retrieved, but when I do a "Build SQL..Create Statement" command, the resulting DDL is not right/valid - below is an example. Does the product support DB2 on zOS?
DB2zOS table on MainFrame DDL from DbSchema:
CREATE TABLE "DBA$DB1P".REM_ACTN_RSN_CTGRY (
ACTN_RSN_CTGRY_CD CHAR NOT NULL DEFAULT N ,
ACTN_RSN_DESC VARCHAR DEFAULT Y ,
ACTN_RSN_EFCTV_TS TIMESTMP DEFAULT Y ,
ACTN_RSN_TRMNTN_TS TIMESTMP DEFAULT 1 ,
DEACTVTN_OPRTR_ID CHAR DEFAULT Y ,
DEACTVTN_TS TIMESTMP DEFAULT 1 ,
PSTG_OPRTR_ID CHAR DEFAULT Y ,
PSTG_TS TIMESTMP DEFAULT Y ,
CONSTRAINT "DBA$DB1P".PK_REM_ACTN_RSN_CTGRY PRIMARY KEY ( ACTN_RSN_CTGRY_CD )
);
Using a different tool, I get the correct DDL for this table:
DB2zOS table on MainFrame DDL From DBeaver
CREATE TABLE "DBA$DB1P".REM_ACTN_RSN_CTGRY (
ACTN_RSN_CTGRY_CD CHAR(2) NOT NULL,
ACTN_RSN_DESC VARCHAR(160),
ACTN_RSN_EFCTV_TS TIMESTAMP,
ACTN_RSN_TRMNTN_TS TIMESTAMP DEFAULT '4000-12-31-00.00.00.000000',
PSTG_TS TIMESTAMP,
DEACTVTN_TS TIMESTAMP DEFAULT '4000-12-31-00.00.00.000000',
PSTG_OPRTR_ID CHAR(8),
DEACTVTN_OPRTR_ID CHAR(8),
CONSTRAINT REM_ACTN_RSN_CTGRY_PK PRIMARY KEY (ACTN_RSN_CTGRY_CD)
);
The text was updated successfully, but these errors were encountered: