Icon View Incident Report

Minor Minor
Reported By: Felix Gartsman
Reported On: 7/3/2007
For: Version 1.04 Build 4
# 2403 TEDBSession KeepTablesOpen Property Causes Error During DDL Statements

To create a database schema at run-time, I load a stored procedure sql (generated by EDB manager) and execute it. But if a table has more than 1 additional index I get error #300 for that table (failed exclusive locking). If I comment the last statement it works. After some playing I found that setting session's KeepTablesOpen to false fixes it, while true fails to lock.

  EXECUTE IMMEDIATE 'CREATE TABLE "Hazmats"
                    (
                    "HazmatName" VARCHAR(50) COLLATE "ANSI" NOT NULL,
                    "HazmatId" VARCHAR(50) COLLATE "ANSI",
                    "HazmatUNNumber" CHAR(4) COLLATE "ANSI",
                    "HazmatClass1" CHAR(6) COLLATE "ANSI",
                    "HazmatClass2" CHAR(6) COLLATE "ANSI",
                    "HazmatLastUpdate" TIMESTAMP,
                    "HazmatUser" BOOLEAN,
                    CONSTRAINT "PK_HazmatName" PRIMARY KEY ("HazmatName"),
                    CONSTRAINT "U_HazmatId" UNIQUE ("HazmatId")
                    )
                    VERSION 1
                    UNENCRYPTED
                    INDEX PAGE SIZE 4096
                    BLOB BLOCK SIZE 512
                    MAX ROW BUFFER SIZE 32768
                    MAX INDEX BUFFER SIZE 65536
                    MAX BLOB BUFFER SIZE 32768';

  EXECUTE IMMEDIATE 'CREATE INDEX "Ix_HazmatUNNumber" ON "Hazmats"
                    ("HazmatUNNumber" COLLATE "ANSI")';

  EXECUTE IMMEDIATE 'CREATE INDEX "Ix_HazmatUser" ON "Hazmats"
                    ("HazmatUser")';



Comments Comments and Workarounds
Exclusively-opened schema objects (tables, views, etc.) are no longer kept open regardless of the TEDBSession.KeepTablesOpen property.


Resolution Resolution
Fixed Problem on 7/6/2007 in version 1.04 build 5


Products Affected Products Affected
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image