DB2 to Oracle: DEFAULT value for BLOB attribute
The DEFAULT constraint in DB2 is converted by Oracle Migration Workbench (OMWB) as follows:
ALTER TABLE ADMIN.REQ MODIFY (BAAGE DEFAULT "SYSIBM"."BLOB"(''));
This fails with the following message:
Failed to create default for Table :ADMIN.REQ; ORA-02262: ORA-4044 occurs while type-checking column default value expression
Using the following works, but fails when DEFAULT is inserted into the table:
ALTER TABLE ADMIN.REQ MODIFY (BAAGE DEFAULT TO_BLOB(''));
ORA2: REPUSER4> INSERT INTO ADMIN.REQ VALUES(1, 1, 1, 1, 1, SYSDATE, 1, DEFAULT, DEFAULT, DEFAULT, DEFAULT);
INSERT INTO ADMIN.REQ VALUES(1, 1, 1, 1, 1, SYSDATE, 1, DEFAULT, DEFAULT, DEFAULT, DEFAULT)
*
ERROR at line 1:
ORA-01400: cannot insert NULL into ("ESPADMIN"."REQ"."BAAGE")
ORA2: REPUSER4>
I want to make the default for the column as 'blank space'. So, I need to have the hex number for the same set as default for the column definition. I tried '0x255', however, it fails with invalid hex number. How can I resolve this?
Thanks in advance.