Firebird/interbase

I tried run my application with the Firebird (previously Interbase). I know, it's not supported, officially, but I found
the InterbaseDictionary.class in the kodo-jdo.jar (kodo-3.0.3). I used it as the DictionaryClass:
kodo.jdbc.DictionaryClass=kodo.jdbc.migration.kodo2.schema.dict.InterbaseDictionary
but I get an error, when the schema tool runs:
com.solarmetric.jdbc.ReportingSQLException: GDS Exception. 335544351. unsuccessful metadata update
Column: ID not defined as NOT NULL - cannot be used in PRIMARY KEY constraint definition
The same error I get, when I configure a different dictionary using the kodo.jdbc.DBDictionary property.
Have I made a mistake?
Is there a dictionary method to overwrite for adding the 'NOT NULL' clause?
Thanks in advance.
Regards
Achim

Thank you, Abe.
So, I guess there is no way to define a field as 'NOT NULL'.
Abe White wrote:
>
kodo.jdbc.DictionaryClass=kodo.jdbc.migration.kodo2.schema.dict.InterbaseDictionaryKodo3 doesn't recognize the above property, so setting it does nothing.
And as the name of the package for the above dictionay implies, it is a
legacy dictionary used only when converting a Kodo2 codebase to Kodo3;
it cannot be used in a Kodo3 runtime.

Similar Messages

  • DG4ODBC on Linux-64 to Firebird connection fail (on Linux-32 ok!)

    Hi.
    I have a 2 servers on Ubuntu 9.04 with Oracle11r2 with save configuration. One of them with 32, and other with 64 bit architecture. For connection to firebird I use IBPhoenix ODBC driver - implementation for 32 and 64 bit. From Linux32 everything ok, but from 64 I got error ORA-28511: connection HS Agent lost. First few queries were almost succesful (error something about charcterset conversion), but now only ORA-28511:( Connection by unixODBC isql to DSN-source is OK.
    ########### odbc.inst
    [Firebird]
    Driver=/usr/lib/libOdbcFb.so
    Setup=/usr/lib/libOdbcFb.so
    Threading=1
    FileUsage=1
    CPTimeout=
    CPReuse=
    ########### odbc.ini
    [clientPR]
    Driver=Firebird
    Dbname=10.1.216.3:clientPR
    User=SYSDBA
    ########## listener.ora
    # listener.ora Network Configuration File: /oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = cruorsrv.ccru)(PORT = 1521))
    ADR_BASE_LISTENER = /oracle
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/oracle/product/11.2.0/dbhome_1)
    (PROGRAM=dg4sybs)
    (SID_DESC=
    (SID_NAME=pr)
    (ORACLE_HOME=/oracle/product/11.2.0/dbhome_1)
    (PROGRAM=dg4odbc)
    ############# tnsnames
    # tnsnames.ora Network Configuration File: /oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = cruorsrv.ccru)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.cru)
    dg4sybs =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))
    (CONNECT_DATA=(SID=dg4sybs))
    (HS=OK)
    PR=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))
    (CONNECT_DATA=(SID=PR))
    (HS=OK)
    ###### initpr.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = clientPR
    HS_FDS_SHAREABLE_NAME=/usr/lib/libiodbc.so.2
    HS_FDS_TRACE_LEVEL=DEBUG
    # ODBC specific environment variables
    set ODBCINI=/etc/odbc.ini
    set ODBCINSTINI=/etc/odbcinst.ini
    set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/odbc:/usr/lib:$ORACLE_HOME/lib
    ######### TRACEFILE
    Oracle Corporation --- FRIDAY MAR 26 2010 12:18:47.971
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- FRIDAY MAR 26 2010 12:18:47.971
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "pr"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:pr
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=171
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=171
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2010/03/26-12:18:47
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib/libiodbc.so.2"
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142e980
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214261e0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214227b0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2141d2f0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214144b0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2140f220
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21427de0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21415920
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21416ed0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142de90
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2141e400
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21416830
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142db00
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21421870
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214162b0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21425660
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21414e40
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21414a90
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214257b0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142dce0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214298e0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21429520
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2140ba80
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214123c0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21425400
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214140b0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x214157b0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2140b240
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142b820
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142aec0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142a140
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2141ad50
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2141bb70
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2141fda0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142d930
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2140ddf0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21423a90
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2140a9a0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2140a2e0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x21409bc0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142bfa0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142d410
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2142a9a0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2140d0f0
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Entered hgolofns at 2010/03/26-12:18:47
    symbol_peflctx=0x2140c980
    hoaerr:0
    Exiting hgolofns at 2010/03/26-12:18:47
    Exiting hgolofn, rc=0 at 2010/03/26-12:18:47
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2010/03/26-12:18:47
    Entered hgolgon at 2010/03/26-12:18:47
    reco:0, name:SYSDBA, tflag:0
    Entered hgosuec at 2010/03/26-12:18:47
    Exiting hgosuec, rc=0 at 2010/03/26-12:18:47
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using SYSDBA as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/03/26-12:18:47
    HS_FDS_CONNECT_INFO = "clientPR"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/03/26-12:18:47
    dsn:clientPR, name:SYSDBA
    optn:
    Entered hgocip at 2010/03/26-12:18:47
    dsn:clientPR
    Exiting hgocip, rc=0 at 2010/03/26-12:18:47
    Exiting hgogenconstr, rc=0 at 2010/03/26-12:18:47
    Entered hgolosf at 2010/03/26-12:18:48
    Exiting hgolosf, rc=0 at 2010/03/26-12:18:48
    DriverName:Odb, DriverVer:02.00
    DBMS Name:Fire, DBMS Version:06.03.17910 WI-V Firebird 2.1
    Exiting hgocont, rc=0 at 2010/03/26-12:18:48
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 0 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2010/03/26-12:18:48
    Entered hgoulcp at 2010/03/26-12:18:48
    Entered hgowlst at 2010/03/26-12:18:48
    Exiting hgowlst, rc=0 at 2010/03/26-12:18:48
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xf
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 31 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 31 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    Any ideas?
    Thanks!

    After correction listener.ora and restarting changed nothing:(
    ##################### ODBC TRACE on "select * from dual@pr"
    ** iODBC Trace file
    ** Trace started on Fri Mar 26 13:53:38 2010
    ** Driver Manager: 03.52.0607.1008
    [000000.000129]
    dg4odbcpr 7F410A1D76F0 ENTER SQLAllocHandle
              SQLSMALLINT 1 (SQL_HANDLE_ENV)
              SQLHANDLE 0x0 (SQL_NULL_HANDLE)
              SQLHANDLE * 0x21d3038
    [000000.000187]
    dg4odbcpr 7F410A1D76F0 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 1 (SQL_HANDLE_ENV)
              SQLHANDLE 0x0 (SQL_NULL_HANDLE)
              SQLHANDLE * 0x21d3038 (0x21d0a50)
    [000000.000251]
    dg4odbcpr 7F410A1D76F0 ENTER SQLSetEnvAttr
              SQLHENV 0x21d0a50
              SQLINTEGER 200 (SQL_ATTR_ODBC_VERSION)
              SQLPOINTER 0x3
              SQLINTEGER * 4294967290 (SQL_IS_INTEGER)
    [000000.000320]
    dg4odbcpr 7F410A1D76F0 EXIT SQLSetEnvAttr with return code 0 (SQL_SUCCESS)
              SQLHENV 0x21d0a50
              SQLINTEGER 200 (SQL_ATTR_ODBC_VERSION)
              SQLPOINTER 0x3
              SQLINTEGER * 4294967290 (SQL_IS_INTEGER)
    [000000.000808]
    dg4odbcpr 7F410A1D76F0 ENTER SQLAllocHandle
              SQLSMALLINT 2 (SQL_HANDLE_DBC)
              SQLHANDLE 0x21d0a50
              SQLHANDLE * 0x21d3040
    [000000.000862]
    dg4odbcpr 7F410A1D76F0 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 2 (SQL_HANDLE_DBC)
              SQLHANDLE 0x21d0a50
              SQLHANDLE * 0x21d3040 (0x21ced40)
    [000000.000919]
    dg4odbcpr 7F410A1D76F0 ENTER SQLSetConnectAttr
              SQLHDBC 0x21ced40
              SQLINTEGER 102 (SQL_ATTR_AUTOCOMMIT)
              SQLPOINTER 0x0
              SQLINTEGER * 4294967291 (SQL_IS_UINTEGER)
    [000000.001002]
    dg4odbcpr 7F410A1D76F0 EXIT SQLSetConnectAttr with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLINTEGER 102 (SQL_ATTR_AUTOCOMMIT)
              SQLPOINTER 0x0
              SQLINTEGER * 4294967291 (SQL_IS_UINTEGER)
    [000000.001527]
    dg4odbcpr 7F410A1D76F0 ENTER SQLDriverConnect
              SQLHDBC 0x21ced40
              SQLPOINTER 0x0
              SQLCHAR * 0x21e6aa0
                        | DSN=clientPR;UID=SYSDBA;PWD=********* |
              SQLSMALLINT 37
              SQLCHAR * 0x21e75d8
              SQLSMALLINT 1024
              SQLSMALLINT * 0x7fff6f2f2c50
              SQLUSMALLINT 0 (SQL_DRIVER_NOPROMPT)
    [000000.283588]
    dg4odbcpr 7F410A1D76F0 EXIT SQLDriverConnect with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLPOINTER 0x0
              SQLCHAR * 0x21e6aa0
              SQLSMALLINT 37
              SQLCHAR * 0x21e75d8
                        | DSN=clientPR;Driver=Firebird/InterBase(r |
                        | ) driver;Dbname=10.1.216.3:clientPR;PWD= |
                        | *************** |
              SQLSMALLINT 1024
              SQLSMALLINT * 0x7fff6f2f2c50 (95)
              SQLUSMALLINT 0 (SQL_DRIVER_NOPROMPT)
    [000000.283840]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetFunctions
              SQLHDBC 0x21ced40
              SQLUSMALLINT 999 (SQL_API_ODBC3_ALL_FUNCTIONS)
    [000000.283908]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetFunctions with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 999 (SQL_API_ODBC3_ALL_FUNCTIONS)
              SQLUSMALLINT * 0x21d2db8
                        | SQL_API_SQLALLOCCONNECT |
                        | SQL_API_SQLALLOCENV |
                        | SQL_API_SQLALLOCSTMT |
                        | SQL_API_SQLBINDCOL |
                        | SQL_API_SQLCANCEL |
                        | SQL_API_SQLCOLATTRIBUTE |
                        | SQL_API_SQLCONNECT |
                        | SQL_API_SQLDESCRIBECOL |
                        | SQL_API_SQLDISCONNECT |
                        | SQL_API_SQLERROR |
                        | SQL_API_SQLEXECDIRECT |
                        | SQL_API_SQLEXECUTE |
                        | SQL_API_SQLFETCH |
                        | SQL_API_SQLFREECONNECT |
                        | SQL_API_SQLFREEENV |
                        | SQL_API_SQLFREESTMT |
                        | SQL_API_SQLGETCURSORNAME |
                        | SQL_API_SQLNUMRESULTCOLS |
                        | SQL_API_SQLPREPARE |
                        | SQL_API_SQLROWCOUNT |
                        | SQL_API_SQLSETCURSORNAME |
                        | SQL_API_SQLSETPARAM |
                        | SQL_API_SQLTRANSACT |
                        | SQL_API_SQLBULKOPERATIONS |
                        | SQL_API_SQLCOLUMNS |
                        | SQL_API_SQLDRIVERCONNECT |
                        | SQL_API_SQLGETCONNECTOPTION |
                        | SQL_API_SQLGETDATA |
                        | SQL_API_SQLGETFUNCTIONS |
                        | SQL_API_SQLGETINFO |
                        | SQL_API_SQLGETTYPEINFO |
                        | SQL_API_SQLPARAMDATA |
                        | SQL_API_SQLPUTDATA |
                        | SQL_API_SQLSETCONNECTOPTION |
                        | SQL_API_SQLSPECIALCOLUMNS |
                        | SQL_API_SQLSTATISTICS |
                        | SQL_API_SQLTABLES |
                        | SQL_API_SQLBROWSECONNECT |
                        | SQL_API_SQLCOLUMNPRIVILEGES |
                        | SQL_API_SQLDATASOURCES |
                        | SQL_API_SQLDESCRIBEPARAM |
                        | SQL_API_SQLEXTENDEDFETCH |
                        | SQL_API_SQLFOREIGNKEYS |
                        | SQL_API_SQLMORERESULTS |
                        | SQL_API_SQLNATIVESQL |
                        | SQL_API_SQLNUMPARAMS |
                        | SQL_API_SQLPRIMARYKEYS |
                        | SQL_API_SQLPROCEDURECOLUMNS |
                        | SQL_API_SQLPROCEDURES |
                        | SQL_API_SQLSETPOS |
                        | SQL_API_SQLSETSCROLLOPTIONS |
                        | SQL_API_SQLTABLEPRIVILEGES |
                        | SQL_API_SQLDRIVERS |
                        | SQL_API_SQLBINDPARAMETER |
    [000000.284594]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 6 (SQL_DRIVER_NAME)
              SQLPOINTER 0x7fff6f2f2950
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2c54
    [000000.284676]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 6 (SQL_DRIVER_NAME)
              SQLPOINTER 0x7fff6f2f2950
                        | Odb |
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2c54 (3)
    [000000.284759]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 7 (SQL_DRIVER_VER)
              SQLPOINTER 0x7fff6f2f2950
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2c54
    [000000.284827]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 7 (SQL_DRIVER_VER)
              SQLPOINTER 0x7fff6f2f2950
                        | 02.00 |
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2c54 (5)
    [000000.284916]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 17 (SQL_DBMS_NAME)
              SQLPOINTER 0x7fff6f2f2950
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2c54
    [000000.284985]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 17 (SQL_DBMS_NAME)
              SQLPOINTER 0x7fff6f2f2950
                        | Fire |
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2c54 (4)
    [000000.285063]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 18 (SQL_DBMS_VER)
              SQLPOINTER 0x7fff6f2f2950
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2c54
    [000000.285131]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 18 (SQL_DBMS_VER)
              SQLPOINTER 0x7fff6f2f2950
                        | 06.03.17910 WI-V Firebird 2.1 |
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2c54 (29)
    [000000.285264]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 10003 (SQL_CATALOG_NAME)
              SQLPOINTER 0x7fff6f2f2cb0
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2f40
    [000000.285338]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 10003 (SQL_CATALOG_NAME)
              SQLPOINTER 0x7fff6f2f2cb0
                        | Y |
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f2f40 (1)
    [000000.285455]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 34 (SQL_MAX_CATALOG_NAME_LEN)
              SQLPOINTER 0x7fff6f2f2f3c
              SQLSMALLINT 2
              SQLSMALLINT * 0x0
    [000000.285521]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 34 (SQL_MAX_CATALOG_NAME_LEN)
              SQLPOINTER 0x7fff6f2f2f3c (0)
              SQLSMALLINT 2
              SQLSMALLINT * 0x0
    [000000.285609]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetConnectAttr
              SQLHDBC 0x21ced40
              SQLINTEGER 109 (SQL_ATTR_CURRENT_CATALOG)
              SQLPOINTER 0x21ed0b0
              SQLINTEGER * 4096
              SQLINTEGER * 0x21d3128
    [000000.285688]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetConnectAttr with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLINTEGER 109 (SQL_ATTR_CURRENT_CATALOG)
              SQLPOINTER 0x21ed0b0
              SQLINTEGER * 4096
              SQLINTEGER * 0x21d3128 (19)
    [000000.287915]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 91 (SQL_SCHEMA_USAGE)
              SQLPOINTER 0x7fff6f2f3024
              SQLSMALLINT 4
              SQLSMALLINT * 0x7fff6f2f3038
    [000000.288012]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 91 (SQL_SCHEMA_USAGE)
              SQLPOINTER 0x7fff6f2f3024 (0x0)
                        | SQL_SU_UNKNOWN |
              SQLSMALLINT 4
              SQLSMALLINT * 0x7fff6f2f3038 (4)
    [000000.288118]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 46 (SQL_TXN_CAPABLE)
              SQLPOINTER 0x21d369c
              SQLSMALLINT 2
              SQLSMALLINT * 0x7fff6f2f3040
    [000000.288196]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 46 (SQL_TXN_CAPABLE)
              SQLPOINTER 0x21d369c (2)
                        | SQL_TC_ALL |
              SQLSMALLINT 2
              SQLSMALLINT * 0x7fff6f2f3040 (2)
    [000000.288285]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 72 (SQL_TXN_ISOLATION_OPTION)
              SQLPOINTER 0x21d36a0
              SQLSMALLINT 4
              SQLSMALLINT * 0x7fff6f2f3040
    [000000.288362]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 72 (SQL_TXN_ISOLATION_OPTION)
              SQLPOINTER 0x21d36a0 (0xF)
                        | SQL_TXN_READ_UNCOMMITTED |
                        | SQL_TXN_READ_COMMITTED |
                        | SQL_TXN_REPEATABLE_READ |
                        | SQL_TXN_SERIALIZABLE |
              SQLSMALLINT 4
              SQLSMALLINT * 0x7fff6f2f3040 (4)
    [000000.288487]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 32 (SQL_MAX_SCHEMA_NAME_LEN)
              SQLPOINTER 0x7fff6f2f303c
              SQLSMALLINT 2
              SQLSMALLINT * 0x7fff6f2f3038
    [000000.288564]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 32 (SQL_MAX_SCHEMA_NAME_LEN)
              SQLPOINTER 0x7fff6f2f303c (0)
              SQLSMALLINT 2
              SQLSMALLINT * 0x7fff6f2f3038 (2)
    [000000.288654]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 35 (SQL_MAX_TABLE_NAME_LEN)
              SQLPOINTER 0x7fff6f2f303c
              SQLSMALLINT 2
              SQLSMALLINT * 0x7fff6f2f3038
    [000000.288729]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 35 (SQL_MAX_TABLE_NAME_LEN)
              SQLPOINTER 0x7fff6f2f303c (31)
              SQLSMALLINT 2
              SQLSMALLINT * 0x7fff6f2f3038 (2)
    [000000.288846]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 33 (SQL_MAX_PROCEDURE_NAME_LEN)
              SQLPOINTER 0x7fff6f2f303c
              SQLSMALLINT 2
              SQLSMALLINT * 0x7fff6f2f3038
    [000000.288924]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 33 (SQL_MAX_PROCEDURE_NAME_LEN)
              SQLPOINTER 0x7fff6f2f303c (31)
              SQLSMALLINT 2
              SQLSMALLINT * 0x7fff6f2f3038 (2)
    [000000.289031]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 29 (SQL_IDENTIFIER_QUOTE_CHAR)
              SQLPOINTER 0x7fff6f2f2d70
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f3038
    [000000.289133]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 29 (SQL_IDENTIFIER_QUOTE_CHAR)
              SQLPOINTER 0x7fff6f2f2d70
                        | " |
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f3038 (1)
    [000000.289243]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetInfo
              SQLHDBC 0x21ced40
              SQLUSMALLINT 87 (SQL_COLUMN_ALIAS)
              SQLPOINTER 0x7fff6f2f2d70
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f3038
    [000000.289326]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetInfo with return code 0 (SQL_SUCCESS)
              SQLHDBC 0x21ced40
              SQLUSMALLINT 87 (SQL_COLUMN_ALIAS)
              SQLPOINTER 0x7fff6f2f2d70
                        | Y |
              SQLSMALLINT 512
              SQLSMALLINT * 0x7fff6f2f3038 (1)
    [000000.289439]
    dg4odbcpr 7F410A1D76F0 ENTER SQLAllocHandle
              SQLSMALLINT 3 (SQL_HANDLE_STMT)
              SQLHANDLE 0x21ced40
              SQLHANDLE * 0x21d3050
    [000000.289564]
    dg4odbcpr 7F410A1D76F0 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 3 (SQL_HANDLE_STMT)
              SQLHANDLE 0x21ced40
              SQLHANDLE * 0x21d3050 (0x21ee140)
    [000000.289624]
    dg4odbcpr 7F410A1D76F0 ENTER SQLBindCol
              SQLHSTMT 0x21ee140
              SQLUSMALLINT 1
              SQLSMALLINT 1 (SQL_C_CHAR)
              SQLPOINTER 0x7fff6f2f2ce0
              SQLLEN 120
              SQLLEN * 0x7fff6f2f2fc8
    [000000.289725]
    dg4odbcpr 7F410A1D76F0 EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
              SQLHSTMT 0x21ee140
              SQLUSMALLINT 1
              SQLSMALLINT 1 (SQL_C_CHAR)
              SQLPOINTER 0x7fff6f2f2ce0
              SQLLEN 120
              SQLLEN * 0x7fff6f2f2fc8 (0)
    [000000.289812]
    dg4odbcpr 7F410A1D76F0 ENTER SQLBindCol
              SQLHSTMT 0x21ee140
              SQLUSMALLINT 3
              SQLSMALLINT -16 (SQL_C_SLONG)
              SQLPOINTER 0x7fff6f2f3020
              SQLLEN 0
              SQLLEN * 0x7fff6f2f2fb8
    [000000.289897]
    dg4odbcpr 7F410A1D76F0 EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
              SQLHSTMT 0x21ee140
              SQLUSMALLINT 3
              SQLSMALLINT -16 (SQL_C_SLONG)
              SQLPOINTER 0x7fff6f2f3020
              SQLLEN 0
              SQLLEN * 0x7fff6f2f2fb8 (0)
    [000000.289982]
    dg4odbcpr 7F410A1D76F0 ENTER SQLBindCol
              SQLHSTMT 0x21ee140
              SQLUSMALLINT 10
              SQLSMALLINT -15 (SQL_C_SSHORT)
              SQLPOINTER 0x7fff6f2f3034
              SQLLEN 0
              SQLLEN * 0x7fff6f2f2fc0
    [000000.290067]
    dg4odbcpr 7F410A1D76F0 EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
              SQLHSTMT 0x21ee140
              SQLUSMALLINT 10
              SQLSMALLINT -15 (SQL_C_SSHORT)
              SQLPOINTER 0x7fff6f2f3034
              SQLLEN 0
              SQLLEN * 0x7fff6f2f2fc0 (0)
    [000000.290179]
    dg4odbcpr 7F410A1D76F0 ENTER SQLGetTypeInfo
              SQLHSTMT 0x21ee140
              SQLSMALLINT 12 (SQL_VARCHAR)
    [000000.290353]
    dg4odbcpr 7F410A1D76F0 EXIT SQLGetTypeInfo with return code 0 (SQL_SUCCESS)
              SQLHSTMT 0x21ee140
              SQLSMALLINT 12 (SQL_VARCHAR)
    [000000.290406]
    dg4odbcpr 7F410A1D76F0 ENTER SQLFetch
              SQLHSTMT 0x21ee140

  • PHP reads decimals with commas instead dots

    I have a script that copies Oracle table to Firebird/Interbase.
    Oracle database is set to:
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_LANGUAGE POLISH
    NLS_TERRITORY POLAND
    NLS_CURRENCY zl
    NLS_ISO_CURRENCY POLAND
    NLS_NUMERIC_CHARACTERS ,
    I have a problem with decimals returned by Oracle. Query result has decimals with "," what causes conversion error on insert to Firebird.
    Is there a way to configure conection parameters to receive numbers formated with "."
    I could go through each row value to check if it's decimal and substitute "," to ".", whitch will add extra processing to the script
    At the moment I supply INSERT statement values as shown bellow
    For each
    $row = oci_fetch_assoc($stmt)
    I create array with parameters strings
    $params[$k] = '$row[\''.$k.'\']';
    and finally evaluate:
    eval('ibase_execute($prep_query,'.join(',',$params).');');

    Isn't your NLS_NUMERIC_CHARACTERS asking for a comma to be used as the decimal separator? See page 240 of The Underground PHP and Oracle Manual

  • OutOfMemoryError when persisting a lot of objects

    Hi,
    I tried to fill up a firebird and hsql database
    to test their behaviour like this:
    TestObject tobj;
    Random rnd = new Random();
    int cnt=1;
    while(cnt<2500000) {
    if(cnt%100==1) tx.begin();
    tobj = new TestObject();
    tobj.setSomeValue(rnd.nextInt());
    pm.makePersistent(tobj);
    if(cnt%100==0) {
    tx.commit();
    System.out.println(cnt);
    cnt++;
    This results in
    1368300
    1368400
    1368500
    1368600
    Exception in thread "main" java.lang.OutOfMemoryError
    or similar.
    Does this mean, that there might be a problem in long running apps?
    Any hints or remarks?
    Regards,
    Thomas

    Hi Abe,
    thank you for your answer.
    We'll investigate this, but unless configured to do so, Kodo does not
    typically use any unbounded hard caches.I have to admit, that I do not know how to configure Kodo in respect
    to its hard cache behaviour.
    Because you are testing against in-memory databases,
    you might be running into database limitations.
    Have you tried running your test against a "real" database?I did not use hsql as in-memory database. I verified that
    the database file was growing while running the test.
    Firebird (Interbase) could perhaps be called "real" at least
    in so far, that it is running as a (non-java) server, independent
    from the VM running Kodo and the JDBC.
    Please let me know, if you want me to install mysql or postgres
    and repeat the test.
    Perhaps this could be regarded as a hint, that the problem may be
    related to Kodo:
    If I close the PM every 1000 persisted Objects and request it again
    from the PMF the error does not occur anymore.
    (Of course without having modified the database or kodo setup.)
    TestObject tobj;
    Random rnd = new Random();
    int cnt=1;
    while(cnt<2500000) {
    if(cnt%1000==1) {
    pm = pmf.getPersistenceManager();
    tx = pm.currentTransation();
    if(cnt%100==1) tx.begin();
    tobj = new TestObject();
    tobj.setSomeValue(rnd.nextInt());
    pm.makePersistent(tobj);
    if(cnt%100==0) {
    tx.commit();
    System.out.println(cnt);
    if(cnt%1000==0) pm.close();
    cnt++;
    Please excuse some newbe questions related to this workaraound:
    Is the cache released with the PM or is it associated with the PMF?
    Do several PMs share a common cache?
    Best regards,
    Thomas

  • Return to delphi changes database

    hello, is there any way to return to the application delphi if there was any change in the database?

    >
    hello, is there any way to return to the application delphi if there
    was any change in the database?You appear to be asking the same (or similar) question in two
    different threads
    {thread:id=892427}
    I think that your best bet would be to go to the Firebird groups on
    groups.yahoo.com and ask in the Firebird general group as to
    how one can implement Firebird/Interbase Events in Oracle (or
    simulate it, if possible).
    HTH,
    p.s. see my .sig - you don't mention database version or OS &c.
    Paul...
    When asking database related questions, please give other posters
    some clues, like OS (with version), version of Oracle being used and DDL.
    Other trivia such as CPU, RAM + Disk configuration might also be useful.
    The exact text and/or number of error messages is useful (!= "it didn't work!"). Thanks.
    Furthermore, as a courtesy to those who spend time analysing and attempting to help,
    please do not top post and do try to trim your replies!

  • Convert SQL script from one dialect to another.

    Hi all,
    I am trying to convert an SQL script in MySQL dialect to one for
    Firebird (Interbase Open Source fork).
    I will show you the original MySQL script, (one table of 70), what I want it to
    become and then the Java program that I have written which has gone some of
    the way - but I'm not very experienced in Java and I think my approach
    needs to be fundamentally overhauled, it's just that I don't know
    exactly how to go about it - maybe treat the table as a unit and pass my
    file table by table to a/some processing function(s)?
    Here is the original script
    CREATE TABLE `analysis` (
      `analysis_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
      `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
      `logic_name` varchar(128) NOT NULL,
      `db` varchar(120) DEFAULT NULL,
      `db_version` varchar(40) DEFAULT NULL,
      `db_file` varchar(120) DEFAULT NULL,
      `type` enum('constitutive_exon','exon','flanking_exon') DEFAULT NULL,
      `program` varchar(80) DEFAULT NULL,
      `program_version` varchar(40) DEFAULT NULL,
      `parameters` text,
      `gff_feature` varchar(40) DEFAULT NULL,
       PRIMARY KEY (`analysis_id`),
       UNIQUE KEY `logic_name_idx` (`logic_name`)
    ) ENGINE=MyISAM AUTO_INCREMENT=261 DEFAULT CHARSET=latin1;I want this to become
    CREATE TABLE analysis
    (  -- ( on a separate line - have done this. Note also - got rid of funny quotes `
      analysis_id smallint(5),  -- see below for what happens to auto_increment
      created TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00', -- datetime now TIMESTAMP -- trivial
      logic_name varchar(128) NOT NULL,
      db varchar(120) DEFAULT NULL,
      db_version varchar(40) DEFAULT NULL,
      db_file varchar(120) DEFAULT NULL,
      type (CHECK TYPE IN ('constitutive_exon','exon','flanking_exon')) DEFAULT NULL,  -- emum becomes a CHECK constraint - parse the string in a function?
      program varchar(80) DEFAULT NULL,
      program_version varchar(40) DEFAULT NULL,
      parameters BLOB SUB_TYPE TEXT,  -- text becomes BLOB SUB_TYPE TEXT - trivial
      gff_feature varchar(40) DEFAULT NULL,
      -- PRIMARY KEY (analysis_id),  -- here's where the fun starts - see below.
      -- UNIQUE KEY logic_name_idx (logic_name) -- more fun here
    )  -- ) on new line
    -- ENGINE=MyISAM AUTO_INCREMENT=261 DEFAULT CHARSET=latin1; - this line gets obliterated - see below.
    -- only data of interest on this line is the AUTO_INCREMENT VALUE - 261
    ALTER TABLE ADD CONSTRAINT analysis_id_PK PRIMARY KEY(analysis_id) USING INDEX analysis_id_PK_IX
    ALTER SEQUENCE analysis_id_seq RESTART WITH 261 -- note auto_increment=261 at end
    -- note, take field name of AutoIncrement - add PK and PK_IX
    -- as required. I will also have to write something similar for the UNIQUE KEY - but
    -- if I can do it for PRIMARY KEY, then it should be easy...I have written a program which has started to do some of the easier stuff
    below - however, I now think that I should be treating a TABLE as a unit rather
    than the line by line processing which I have been doing so far. I would
    like some pointers as to how I could do this - the .sql file has about 70
    tables and I want to be able to process the file in one pass. Any hints,
    recommendations, URLs, tips or other help greatly appreciated - rgs,
    Paul...
    ============= Java listing so far (I have been trying 8-) ) ===========
    import java.io.*;
    import java.util.*;
    class FileProcess
      public static void main(String args[])
        try
          // Open the file that is the first
          // command line parameter
          FileInputStream fistream = new FileInputStream("analysis.sql");
          FileWriter fwstream = new FileWriter("nanalysis.sql");
          // Get the object of DataInputStream
          DataInputStream in = new DataInputStream(fistream);
          BufferedReader br = new BufferedReader(new InputStreamReader(in));
          BufferedWriter out = new BufferedWriter(fwstream);
          String strLine;
          String newLine = System.getProperty("line.separator");
          String newSQLText = "";
          String tblName = "";
          String recordDelims = "[ ]";
          Boolean inTable = false;
          String tableBegin = "(" + newLine;
          System.out.println("\nAnd tableBegin is *_" + tableBegin + "_*");
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      
            // if strLine.contains(
            // Print the content on the console
            System.out.println ("StrLine = " + strLine);
            newSQLText = getRidOfWierdQuotes(strLine);
            if(strLine.contains("CREATE TABLE"))
              StringTokenizer st = new StringTokenizer(newSQLText, "` ");
              st.nextToken();
              st.nextToken();
              tblName = st.nextToken();
              System.out.println("\nAnd the table name is *_" + tblName + "_*");
            if(strLine.contains(" (") && strLine.contains("CREATE TABLE"))
              System.out.println("\nAnd here's the start of a table!");
              newSQLText = newSQLText.replace(" (", newLine + "(");
             // br.readLine();
              //br.readLine();
            if(strLine.contains(" text,") || strLine.contains(" text "))
              newSQLText = newSQLText.replace(" text", " BLOB SUB_TYPE TEXT");
    //        String sqlTokens[] = newSQLText.split("\\s+");
    //       StringTokenizer stRecord = new StringTokenizer(newSQLText)
            System.out.println("\nNew strLine = " + newSQLText);
            out.write(newSQLText + "\n");
          //Close the input stream
          in.close();
          out.close();
        catch (Exception e)
          //Catch exception if any
          System.err.println("Error: " + e.getMessage());
      public static String getRidOfWierdQuotes(String iString)
        return iString.replace("`", "");
    } // End of class FileProcess

    >
    Your technique looks OK but I would avoid all the cosmetic changes. It doesn't make any
    difference to the script where the newline comes, and the back-quotes are legal SQL too.
    I would confine your activities to what is actually required. Otherwise you are just adding
    implementation difficulties and also running the risk of an ever-expanding scope of what
    the cosmetic improvements should include.Thanks for your reply - however, I would just make two points.
    1) The cosmetic changes are the easiest - and I've essentially implemented them already, and
    for myself, I find that when working on a system with many tables, the way they are presented
    by whatever tool one is using to modify/update/change/run various scripts is very important as
    an aid to organisation and ultimately understanding.
    2) Having essentially completed the cosmetic stuff, I now find myself turning to the group here
    for help with the real "meat" of the project - getting the PRIMARY KEYs and other INDEXES
    &c. into the mix - and this is tricky because of the significant differences between MySQL and
    Firebird SQL dialects - that and the fact that not all AUTO_INCREMENT fields are PRIMARY
    KEYs - so I am looking beyond the mere cosmetic.
    I think I said in my original post that I wanted to perform this task in "one pass". Perhaps what
    I should have said (and might have been clearer) is if I said that I just wanted to run one
    Java programme against the data.
    I now think that my Java programme will have to go through the data a couple of times - on
    the first pass - it will collect the names of those tables for which the AUTO_INCREMENT
    field is* the PRIMARY KEY - putting the name into a Vector (deprecated?) or similar
    and then go through my "cleaned up" sql file adding the KEYs/INDEXes &c. as I go.
    What do you think of this approach - or should I be looking at constructing "Table"
    objects (as arrays of String?) and manipulating those?
    This is my real question - what is the best approach to take - as a 36K guru level
    poster - you probably have an idea - I'm not asking for the work to be done for me,
    as you can see - I've made an effort myself, despite my Java not being to the highest
    pinnacle of coding perfection ;) - any snippets, help, anything appreciated (from
    anybody...) - TIA and rgs,
    Paul...

  • ODBC Auto Connection

    Hi ,
    I have a question about the ODBC Connection.
    As you know in order to use an Access data base you need to create a user DSN that will make the data base connection....
    When I'm making a CVI software and later build a distribution of my soft I want to do the connection automatically in the install any idea's how can I do that ?
    Kobi Kalif
    Software Engineer

    Hi,
    There is function SQLConfigDataSource , but i do not have any experience with this function.
    Instead i use SQLDriverConnect which do not use DSN name but connection string.
    Example for FireBird Conection string:
    "Driver={Firebird/InterBase(r) driver};Uid=UserName;Pwd=Password;DbName=c:\path\d​atabase.fdb";
    good list of connection string is on http://www.connectionstrings.com/
    i hope this help

  • Interbase/Firebird stored proc questions

    I have several questions about Interbase/Firebird and the use of stored procedures with JDBC. I am using the FirebirdSQL driver but answers using other drivers (as noted) might be useful as well.
    1. Is there any way to call a stored procedure which returns a result set using CallableStatement? If so what does the jdbc string look like and what does the return part of the stored proc look like (presumably do-suspend.)
    2. Is there any way to call a stored procedure which returns a value using using CallableStatement? This would be where registerOutParameter() would be used. If so what does the jdbc string look like and what does the stored proc look like?
    3. Is there an 'identity' keyword? This would return the value of the last GEN_ID() call.
    4. I need to return a unique sequence from a stored proc. I am using the following syntax.
      for select tid from Telephone_Type
      where tid = :new_tid
      into new_tid
      do SUSPEND;Is there a simpler way to do this? The value is obviously already in new_tid, I just need some way to return it.

    For firebird 1.x or Interbase,
    There is no need to use a CallableStatement to call a
    stored procedure for
    a resultset.(doing that , you will get just one row
    only!)I know how to do it with a statement. That however was not the point.
    The only reason CallableStatement exists is to call stored procedures. And yet the driver, at the time I wrote this, did not work with CallableStatement.
    And in all the other drivers I have used CallableStatement is not limited to returning a single row. Perhaps you are thinking of a function. A function returns a type of value, but there are other ways of returning values. And some drivers actually allow for return values, result sets and output parameters all to be returned.

  • Will adobe ColdFusion allow me to connect to Mozilla Firebird DB?

    I'm surprised that ColdFusion will connect to Access and MySQL but not to Firebird DB.
    http://www.firebirdsql.org/
    Firebird is an enterprize level DB, been around as long as Oracle (in the form of Interbase, then Firebird), has full SQL standards compliance, is high performance, has all the triggers and stored procedure and other stuff MySQL doesn't have, yet it is not listed in the supported DBs of Adobe ColdFusion.
    What gives?

    Ian, may I present Firebird and Jaybird:
    Firebird: The best DB in the world!
    http://www.firebirdsql.org/
    Jaybird: The JDBC 4 driver for the best DB in the world
    http://www.firebirdsql.org/index.php?op=devel&sub=jdbc&id=faq#27
    http://www.firebirdsql.org/index.php?op=devel&sub=jdbc
    http://www.firebirdsql.org/index.php?op=files&id=jaybird
    Thanks for cluing me into the correct acronym to look for "JDBC"  ... so now I can get started.

  • Question about connection to firebird database

    Hi I'm a new JDBC programmer. I picked firebird because the application I wanted to make needed a server-less database. The database was easy to set up (I'm using the classic version of firebird) with isql, and I am now trying to access it through the JDBC. Here is my code, I know the code may be crude looking (I am new to it).
            try
                Class.forName("org.firebirdsql.jdbc.FBDriver");
                Connection con = DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:C:/test.gdb", "sysdba", "masterkey");
            catch(ClassNotFoundException e)
                System.out.println(e.getMessage());
            catch(SQLException e)
                System.out.println(e.getMessage());
            }With this code, I recieved the following exception...:
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at DatabaseBoundary.hire(DatabaseBoundary.java:16)
         at DatabaseBoundary.<init>(DatabaseBoundary.java:9)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at bluej.runtime.ExecServer$3.run(ExecServer.java:808)I have the most updated version of the JDK, and I have the most updated version of firebird (as of March 24, 2008 9:48 PM EST). I don't know why I am getting the UnsupportedClassVersionError, all help would be greatly appreciated. :)

    well, apparently you do NOT have the correct version of the Java runtime set up as the one you're actually calling, as that's the only thing that can cause this error.
    Most likely there's fragments of an older installation left floating around the system in directories that are higher in the path than your JDK.
    Check for example your windows/system32 directory for java*.exe and if they're there, remove them.
    After that set up your system path correctly to point to your JAVA_HOME/bin (you should also define JAVA_HOME in your environment variables to point to the JDK installation directory).
    The Firebird driver I think is compiled against JDK 1.4, maybe 1.3, so the error is almost certainly caused by your own code being compiled against 1.6 and you're attempt to run it (unwittingly) against 1.5.

  • Firebird Won't Start

    I added mozilla-firebird tonight.
    Running
    MozillaFirebird
    either from a terminal in xfwm4 or from the xfwm4 menu after appropriate edits of ~/.xfce4/menu.xml I get
    -bash:MozillaFirebird: command not found
    What's wrong with this picture? :?
    jlowell

    use mozilla-firebird (the name of the executable is changed in the PKGBUILD)

  • Flash player won't work or download. It says it no longer supports power pcs. I am running 10.5.8 on my ibook G4. Seem to have tried everything. i.e. chrome, firebird, archived flash players, etc. All not supported. Any insight???

    Flash player won't work or download. It says it no longer supports power pcs. I am running 10.5.8 on my ibook G4. Seem to have tried everything. i.e. chrome, firebird, archived flash players, etc. All not supported. Any insight??? It started when I tried to upgrade current flash player and it said I needed to uninstall current version, which I did, and then it wouldn't download the current one giving me the not supported story! Please help!!!!!!

    Hi Andy, that is correct, they don't support PPC Macs anymore.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/865/cpsid_86551.html#prob1=uninst,os=m10.6,
    Download this if you haven't...
    http://fpdownload.macromedia.com/get/flashplayer/installers/archive/fp10.1.102.6 4_and_9.0.289.0archive.zip
    Once downloaded if it doesn't unzip automatically the double click on that file.
    Look for the fp10.1.102.64_and_9.0.289.0archive folder, open it, look for the Flash Player 10.1.102.64 folder & open and look for 101r10264 folder & open it, double click on the flashplayer101r102_64_ubmac.dmg file, choose the Install Adobe Flash Player file to install... they don't make it easy!
    Or smaller here...
    http://dl.dropbox.com/u/450421/flashplayer10_1r82_76_ub_mac%20copy.dmg.zip
    Stand alone player...
    http://dl.dropbox.com/u/450421/LastFlashPPC.zip
    Or free 3rd party...
    http://www.wimpyplayer.com/products/wimpy_standalone_flv_player.html

  • Re: Hibernate Dialect error against Firebird 2.1.2 DB via JDBC

    ColdFusion9 ColdFusionBuilder1 on XP Pro
    Ok, now I'm completely stuck.  After 2 days of configuring CFB9 (and it's Administrator) I was able to, in CFB connect to a Firebird DB in design time using JDBC instead of ODBC.  However, when I try to Run the project, I have exactly the same problem as when I configured to connect CF to FB via ODBC...and that problem is...
    Hibernate is complaining that it needs to know the Dialect of the Firebird database.  Well, it's 3.. but, how do I configure Hibernate so that it knows this value?  I know nothing about Hibernate, nor how to configure it.  I've done a search on my HD for files with the extension *.hbm.xml but no results come up.
    If this can be solved, then CF9 can be used on the many hundreds of thousands of Firebird databases that are in use today, and CF's market will grow substantially.
    Thanks in advance.

    The Hibernate dialect (ie: for this.ormsettings.dialect) for Firebird is org.hibernate.dialect.FirebirdDialect.  I found that out by googling "hibernate firebird dialect".
    I have installed FB, strummed up a datasource in CF and done some testing of CF's Hibernate integration at it all seems fine to me.  My testing was only as extensive as having it create some tables and persisting some object in 'em though.  But if it does that much, I have no reason to think it's doesn't fully work as one would expect.
    Not that it matters, but I think you are overestimating the importance of Firebird in the general RDBMS market.  One would never hear it mentioned in the same sentence as Oracle or SQL Server.  Or even MySQL, PostgreSQL etc.  Not that my own experience is authoritative, but in 15 years in the IT industry, I hadn't even heard of it until about a week ago.  But still... that's neither here nor there.  CF/Hibernate supports it already anyhow.
    Adam

  • Problem with firebird on visual studio

    hello
    im importing firebird on visual studio in the references and im making the import line code:
    imports firebirdsql.data.firebirdclient
    but when i compile appears one error that makes that line code with a green undelined
    someone knows what its happening?
    Thanks

    hello
    im importing firebird on visual studio in the references and im making the import line code:
    imports firebirdsql.data.firebirdclient
    but when i compile appears one error that makes that line code with a green undelined
    someone knows what its happening?
    Thanks
    This ones
    For the database ask from the supplier of that software
    http://www.firebirdsql.org/
    Success
    Cor

  • Import Export Imges in JAVA to binary code with firebirds

    I'm having problems with a java netbeans. I want a start a disccus about how we can import and export images from and to, binary code. We can play with Blob variables, but i dont know how can we insert to a Firebird database and how we can read this image.
    Any help or any comment is great.
    Thank you!!

    Hi,
    I'm not sure how much help you'll find here as firebird is not an oracle product. You might find someone who can provide sample code for doing the above into oracle/mysql here. I would suggest asking in the database general forum though rather than this one - you should be able to get a moderator to move it if you can;t do it yourself.
    Cheers,
    Rich

Maybe you are looking for

  • Leopard freezing

    I installed Leopard onto my Macbook (from Tiger) and now the Leopard system keeps freezing on me (i get a message saying Mac OS X has quit unexpectedly), forcing me to restart by holding down the power button. I never had this problem with Tiger. Any

  • A litle help please

    does anyone know if Verizon offers discounts to Wells Fargo employees?

  • Illustrator crashes when attempting to open recently installed CS6

    Before installing CS6 on my laptop I contacted Adobe through a chat to make sure I had enough memory to install. I was told that what matters is storage--not memory. After sharing my statistics I was told no problem--go ahead and install. So I did, b

  • Printing generates an error message E1 on Brother printer

    When I print a Firefox webpage on my Brother printer HL-3070 CW it does not work. The printer kicks in but after just one second of fan trust it posts an error message "Unable to print E1" (Kan ej skriva E1 in swedish). I then need to shut off the pr

  • Rollover state not working in tooltip

    I am having an issue getting a rollover to work correctly in a tooltip. The action is fine but the rollover just doesn't work. You can see an example of it here: http://grosteffon.site90.com/index.html The buttons in question are "Material Testing" a