Cf + postgres + array

driver  of postgres included in coldfusion8 (postgresql-8.1-407.jdbc3.jar) has a bug in manager of array with pgsql 8.3
i upgrade driver with postgresql-8.3-604.jdbc3.jar and now i have a problem with array without elements...
look at the image. seems that array obkect is modified...
the code is :
<cfoutput query="q">
<cfloop from="1" to="#ArrayLen(PST_CATEGORIES_ID)#" index="i">
#q.PST_CATEGORIES_ID[currentrow][i]#<br>
</cfloop>
</cfoutput>
now, looping over this array, i've received this error:
Element 1 is undefined in a Java object of type class coldfusion.runtime.Cast$1.
how can skip the value if the element not exist? (undefined array element)
many thanks!
Rob

> Maybe I can manipulate cookies in the same way, tho I'm
thinking sandbox rules
> probably will prevent that.
Before the notion of AJAX was around, Jim Davis wrote an
essay on how to do
async comms with a GIF and a cookie.
http://www.depressedpress.com/Content/Development/JavaScript/Articles/GIFAsPipe/Index.cfm
This covers the cookie manipulation you mention.
> Obviously JS and CF can not communicate in real time but
assuming they can not
> communicate is incorrect.
Well I think the point is that they cannot communicate
*directly*: they
need to use HTTP. Just like you and I can't just talk to each
other
directly: we need a forum.
Really a lot of people on these forums seem to think "CF is a
computer
language which has something to do with making my web page do
stuff...
JavaScript is a computer language which has something to do
with making my
web page do stuff. That's pretty much the same: they must
just
intrinsically be able to play with each other's code". And
they don't seem
to "get" the whole client / server thing. I think from your
earlier posts
in this thread it would be fair enough for people to be
saying "well...
no... it doesn't work like that". I don't think anyone was
assuming it's
not possible, I think they might have been giving the
"Client/Server 101"
answer, before moving on to the "Client/Server 102: why that
is the answer"
spiel. Quite possibly they could have skipped to the latter,
in this case.
Adam

Similar Messages

  • Inserting into Postgres via ODBC Gateway

    Hi, I've made some tests, here are results and questions:
    Postgres:
    CREATE TABLE t_dump
      str character varying(100)
    )Oracle: [ORADB: db link to Postgrers]
    INSERT INTO "t_dump"@ORADB VALUES ('test'); Works fine, both from SQL as from PL/SQL
    However:
    Declare
    m_str Varchar2 (10) := 'test';
    Begin
    INSERT INTO "t_dump"@ORADB VALUES (m_str); 
    End;Gives me an error:
    Error report:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02067: transaction or savepoint rollback required
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DB)(PORT=1521))(CONNECT_DATA=(SID=pg)))
    ORA-02055: distributed update operation failed; rollback required
    ORA-02063: preceding lines from ORADB
    ORA-06512: at line 8
    00604. 00000 -  "error occurred at recursive SQL level %s"
    *Cause:    An error occurred while processing a recursive SQL statement
               (a statement applying to internal dictionary tables).
    *Action:   If the situation described in the next error on the stack
               can be corrected, do so; otherwise contact Oracle Support.Dynamic SQL gives exact same error:
    Declare
    m_str Varchar2 (10) := 'test';
    Begin
    EXECUTE IMMEDIATE
    'INSERT INTO "t_dump"@ORADB VALUES (:v0)'
      Using m_str;
    End;Is there any way I could use variables into queries?
    One more issiue:
    I have created partitioned table in Postgres, and simple INSERT statement works fine [SQL from Oracle]; however- the same statement, enclosed with begin/end [PL/SQL] needs about 60 seconds to finish. Is it normal behaviour? Is there any config/pragma/.. I could use to speed it up?
    Regards
    Bart Dabr

    Hi,
    Your sample also doesn't work in PL/SQL block..
    Here is my detailed config:
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    PostgreSQL 8.4.8 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.5.real (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2, 64-bit
    and latest ODBC version from Postgres webpage (09.00.0310)
    I will install the latest Postgres DB and try it then
    Here is the trace, with removed some 'libname=/usr/lib64/libodbc.so, funcname=SQLGetDescRec' parts from init
    Oracle Corporation --- WEDNESDAY OCT 05 2011 10:00:47.743
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- WEDNESDAY OCT 05 2011 10:00:47.743
        Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    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"
    HOSGIP returned value of "32" 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 "pg"
    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:pg
    Exiting hgogprd, rc=0
    hostmstr:          0:      HOA After hoagprd
    hostmstr:          0:      HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=870
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2011/10/05-10:00:47
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libodbc.so"
    Entered hgolofns at 2011/10/05-10:00:47
    libname=/usr/lib64/libodbc.so, funcname=SQLAllocHandle
    symbol_peflctx=0xe74082a0
    hoaerr:0
    Exiting hgolofns at 2011/10/05-10:00:47
    Entered hgolofns at 2011/10/05-10:00:47
    Exiting hgolofns at 2011/10/05-10:00:47
    Exiting hgolofn, rc=0 at 2011/10/05-10:00: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"
    treat_SQLLEN_as_compiled = 0
    Exiting hgoinit, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoainit
    hostmstr:          0:      HOA Before hoalgon
    Entered hgolgon at 2011/10/05-10:00:47
    reco:0, name:kg, tflag:0
    Entered hgosuec at 2011/10/05-10:00:47
    Exiting hgosuec, rc=0 at 2011/10/05-10:00: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 kg as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2011/10/05-10:00:47
    HS_FDS_CONNECT_INFO = "pg"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2011/10/05-10:00:47
    dsn:pg, name:kg
    optn:
    Entered hgocip at 2011/10/05-10:00:47
    dsn:pg
    Exiting hgocip, rc=0 at 2011/10/05-10:00:47
    ##>Connect Parameters (len=22)<##
    ## DSN=pg;
    #! UID=kg;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2011/10/05-10:00:47
    Entered hgolosf at 2011/10/05-10:00:47
    ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFA7F 0x03FF 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
                                  0x0000 0x0000 0xFE00 0x3B5D
    Exiting hgolosf, rc=0 at 2011/10/05-10:00:47
    DriverName:psqlodbcw.so, DriverVer:09.00.0310
    DBMS Name:PostgreSQL, DBMS Version:8.4.8
    Exiting hgocont, rc=0 at 2011/10/05-10:00:47
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 0 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr:          0: RPC Before Upload Caps
    hostmstr:          0:      HOA Before hoaulcp
    Entered hgoulcp at 2011/10/05-10:00:47
    Entered hgowlst at 2011/10/05-10:00:47
    Exiting hgowlst, rc=0 at 2011/10/05-10:00:47
    SQLGetInfo returns 0x1d for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xa
    SQLGetInfo returns 64 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 64 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    3 instance capabilities will be uploaded
      capno:1989, context:0x00000000, add-info:        0
      capno:1991, context:0x0001ffff, add-info:        0
      capno:1992, context:0x0001ffff, add-info:        0
    Exiting hgoulcp, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoaulcp
    hostmstr:          0: RPC After Upload Caps
    hostmstr:          0: RPC Before Upload DDTR
    hostmstr:          0:      HOA Before hoauldt
    Entered hgouldt at 2011/10/05-10:00:47
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoauldt
    hostmstr:          0: RPC After Upload DDTR
    hostmstr:          0: RPC Before Begin Trans
    hostmstr:          0:      HOA Before hoabegn
    Entered hgobegn at 2011/10/05-10:00:47
    tflag:0 , initial:1
    hoi:0x1c6766b8, ttid (len 22) is ...
      00: 53452E65 36323536 3636622E 322E3135  [SE.e625666b.2.15]
      10: 2E393235 3737                        [.92577]
                     tbid (len 19) is ...
      00: 53455B32 2E31352E 39323537 375D5B31  [SE[2.15.92577][1]
      10: 2E345D                               [.4]]
    Exiting hgobegn, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoabegn
    hostmstr:          0: RPC After Begin Trans
    hostmstr:          0: RPC Before Describe Procedure
    hostmstr:          0:      HOA Before hoapdsc
    Entered hgopdsc at 2011/10/05-10:00:47
    Describing procedure kg.test
    Output hoada
    hgopdsc, line 1406: NO hoada to print
    Exiting hgopdsc, rc=942 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoapdsc
    hostmstr:          0: RPC After Describe Procedure
    hostmstr:          0: RPC Before Describe Table
    hostmstr:          0:      HOA Before hoadtab
    Entered hgodtab at 2011/10/05-10:00:47
    count:1
      table: kg.test
    Allocate hoada[0] @ 0xdcaa10
    Entered hgopcda at 2011/10/05-10:00:47
    Column:1(col1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
    Entered hgopcda at 2011/10/05-10:00:47
    Column:2(col2): dtype:12 (VARCHAR), prc/scl:100/0, nullbl:1, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
    The hoada for table kg.test follows...
    hgodtab, line 876: Printing hoada @ 0xdcaa10
    MAX:2, ACTUAL:2, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY         NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
      4 INTEGER Y          4          4   0/  0    0   0   0 col1
    12 VARCHAR Y        255        255   0/  0    0   0  200 col2
    Exiting hgodtab, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoadtab
    hostmstr:          0:      HOA Before hoadafr
    Entered hgodafr, cursor id 0 at 2011/10/05-10:00:47
    Free hoada @ 0xdcaa10
    Exiting hgodafr, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoadafr
    hostmstr:          0: RPC After Describe Table
    hostmstr:          0: RPC Before SQL Bundling
    hostmstr:          0:      HOA Before hoxpars
    Entered hgopars, cursor id 1 at 2011/10/05-10:00:47
    type:0
    SQL text from hgopars, id=1, len=46 ...
         00: 53454C45 43542041 312E2263 6F6C3122  [SELECT A1."col1"]
         10: 2C41312E 22636F6C 32222046 524F4D20  [,A1."col2" FROM ]
         20: 226B6722 2E227465 73742220 4131      ["kg"."test" A1]
    Exiting hgopars, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoxpars
    hostmstr:          0:      HOA Before hoxopen
    Entered hgoopen, cursor id 1 at 2011/10/05-10:00:47
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoxopen
    hostmstr:          0:      HOA Before hoxdscr
    Entered hgodscr, cursor id 1 at 2011/10/05-10:00:47
    Allocate hoada @ 0xdca9d0
    Entered hgopcda at 2011/10/05-10:00:47
    Column:1(col1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
    Entered hgopcda at 2011/10/05-10:00:47
    Column:2(col2): dtype:12 (VARCHAR), prc/scl:100/0, nullbl:1, octet:255, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
    hgodscr, line 880: Printing hoada @ 0xdca9d0
    MAX:2, ACTUAL:2, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY         NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
      4 INTEGER Y          4          4   0/  0    0   0   0 col1
    12 VARCHAR Y        255        255   0/  0    0   0  200 col2
    Exiting hgodscr, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoxdscr
    hostmstr:          0: RPC After SQL Bundling
    hostmstr:          0: RPC Before Describe Table
    hostmstr:          0:      HOA Before hoadtab
    Entered hgodtab at 2011/10/05-10:00:47
    count:1
      table: test
    Allocate hoada[0] @ 0xdcdd88
    Entered hgopcda at 2011/10/05-10:00:47
    Column:1(col1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
    Entered hgopcda at 2011/10/05-10:00:47
    Column:2(col2): dtype:12 (VARCHAR), prc/scl:100/0, nullbl:1, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
    The hoada for table test follows...
    hgodtab, line 876: Printing hoada @ 0xdcdd88
    MAX:2, ACTUAL:2, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY         NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
      4 INTEGER Y          4          4   0/  0    0   0   0 col1
    12 VARCHAR Y        255        255   0/  0    0   0  200 col2
    Exiting hgodtab, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoadtab
    hostmstr:          0:      HOA Before hoadafr
    Entered hgodafr, cursor id 0 at 2011/10/05-10:00:47
    Free hoada @ 0xdcdd88
    Exiting hgodafr, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoadafr
    hostmstr:          0: RPC After Describe Table
    hostmstr:          0: RPC Before SQL Bundling
    hostmstr:          0:      HOA Before hoxclse
    Entered hgoclse, cursor id 1 at 2011/10/05-10:00:47
    Exiting hgoclse, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoxclse
    hostmstr:          0:      HOA Before hoadafr
    Entered hgodafr, cursor id 1 at 2011/10/05-10:00:47
    Free hoada @ 0xdca9d0
    Exiting hgodafr, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoadafr
    hostmstr:          0:      HOA Before hoxpars
    Entered hgopars, cursor id 1 at 2011/10/05-10:00:47
    type:0
    SQL text from hgopars, id=1, len=48 ...
         00: 494E5345 52542020 494E544F 20227465  [INSERT  INTO "te]
         10: 73742220 2822636F 6C31222C 22636F6C  [st" ("col1","col]
         20: 32222920 56414C55 45532028 3F2C3F29  [2") VALUES (?,?)]
    Exiting hgopars, rc=0 at 2011/10/05-10:00:47
    hostmstr:          0:      HOA After hoxpars
    hostmstr:          0:      HOA Before hoaexec
    Entered hgoexec, cursor id 1 at 2011/10/05-10:00:47
    octype=4 (INSERT)
    hgoexec, line 108: Printing hoada @ 0xdcaa50
    MAX:2, ACTUAL:2, BRC:1, WHT=3 (BIND_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY         NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
      3 DECIMAL N          1          0   0/  0    0   0   0 ?
    12 VARCHAR N          4          0   0/  0  870   0  200 ?
    Entered hgoprbv at 2011/10/05-10:00:47
    hgoprbv, line 145: Printing hoada @ 0xdcaa50
    MAX:2, ACTUAL:2, BRC:1, WHT=3 (BIND_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY         NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
      3 DECIMAL N          1          0   0/  0    0   0   0 ?
    12 VARCHAR N          4          0   0/  0  870   0  200 ?
    Exiting hgoprbv, rc=0 at 2011/10/05-10:00:47
    {code}
    End of the trace, session closed, nothing more in file
    Regards
    Bart Dabr                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

  • 10.8.5 supplemental & server 2.2 breaks postgres/caldavd?

    caldavd fails because postgres is failing to start.  Best I can tell is there are two startup scripts for postgres.  com.apple.postgress.plist has launchd start a postgres on the socket specified in:
    /Library/Server/PostgreSQL For Server Services/Socket
    whilst org.postgresql.postgres.plist has launchd start a postgres on the socket specified in:
    /private/var/pgsql_socket
    The latter is started but the former fails (postgres exists with code 1 and launchd throttles for a 10 second retry).
    I notice caldavd's error log:
    2013-10-08 09:09:18-0700 [-] Re-trying connection due to connection failure
              Traceback (most recent call last):
                File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext
                  return func(*args,**kw)
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/threadutils.py", line 48, in _run
                  while self._qpull():
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/threadutils.py", line 69, in _qpull
                  return True
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/threadutils.py", line 82, in _oneWorkUnit
                  self._reactor.callFromThread(deferred.callback, result)
              --- <exception caught here> ---
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/threadutils.py", line 74, in _oneWorkUnit
                  result = instruction()
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/enterprise/adbapi2.py", line 1025, in initCursor
                  connection = self.connectionFactory()
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/txda v/base/datastore/dbapiclient.py", line 196, in connect
                  connection = self.dbModule.connect(*self.connectArgs, **self.connectKw)
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/pgdb .py", line 482, in connect
                  dbtty, dbuser, dbpasswd)
              pg.InternalError: could not connect to server: No such file or directory
                        Is the server running locally and accepting
                        connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?
    which is failing because there is no active unix socket because postgres fails.  I tried downloading the 10.8.5 combo update and installing with no change of behavior.
    Anyone got any ideas?

    The following is in the logs but I note the date earlier than my 10.5.8 supplemental / Server 2.2.2 update.
    2013-10-07 07:29:08 PDT ERROR:  role "collab" already exists
    2013-10-07 07:29:08 PDT STATEMENT:  CREATE ROLE collab SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
    2013-10-07 07:29:08 PDT LOG:  connection received: host=[local]
    2013-10-07 07:29:08 PDT LOG:  connection authorized: user=collab database=postgres
    2013-10-07 07:29:08 PDT LOG:  statement: CREATE DATABASE collab;
    2013-10-07 07:29:08 PDT ERROR:  database "collab" already exists
    2013-10-07 07:29:08 PDT STATEMENT:  CREATE DATABASE collab;
    2013-10-07 07:29:08 PDT LOG:  connection received: host=[local]
    2013-10-07 07:29:08 PDT LOG:  connection authorized: user=_postgres database=postgres
    2013-10-07 07:29:08 PDT LOG:  statement: CREATE ROLE webauth SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
    2013-10-07 07:29:08 PDT ERROR:  role "webauth" already exists
    2013-10-07 07:29:08 PDT STATEMENT:  CREATE ROLE webauth SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
    2013-10-07 07:29:08 PDT LOG:  connection received: host=[local]
    2013-10-07 07:29:08 PDT LOG:  connection authorized: user=webauth database=webauth
    Here are the receipts from /Library/Receipts/InstallHistory.plist:
    <dict>
            <key>date</key>
            <date>2013-10-07T15:18:51Z</date>
            <key>displayName</key>
            <string>OS X v10.8.5 Supplemental Update</string>
            <key>displayVersion</key>
            <string>1.0</string>
            <key>packageIdentifiers</key>
            <array>
                <string>com.apple.pkg.update.os.10.8.5.supplemental</string>
            </array>
            <key>processName</key>
            <string>Software Update</string>
        </dict>
    <dict>
            <key>date</key>
            <date>2013-10-07T19:12:27Z</date>
            <key>displayName</key>
            <string>Server</string>
            <key>displayVersion</key>
            <string>10.8</string>
            <key>packageIdentifiers</key>
            <array>
                <string>com.apple.pkg.ServerAppStore</string>
            </array>
            <key>processName</key>
            <string>storeagent</string>
        </dict>
    <dict>
            <key>date</key>
            <date>2013-10-07T22:25:22Z</date>
            <key>displayName</key>
            <string>OS X Update Combined</string>
            <key>displayVersion</key>
            <string></string>
            <key>packageIdentifiers</key>
            <array>
                <string>com.apple.pkg.update.os.10.8.5.12F45.combo</string>
                <string>com.apple.pkg.RemoteDesktop</string>
            </array>
            <key>processName</key>
            <string>Installer</string>
        </dict>
    The PDT times should be 7 hours behind the Zulu timestamps so I think the postgres log errors occured before the first update -- perhaps they are innocuous.  There are no further entries past the 7:29:08 timestamp in the PostgreSQL_Server_Services.log file, which seems strange.

  • Oracle 11g dg4odbc OpenLink postgres odbc driver for Linux... Integer issue

    We were using scuccessfully the openlink driver for postgres odbc driver to connect oracle and postgres in solaris and oracle 10g hsodbc
    we are migrating to Linux Oracle 11g and installed linux psotgres odbc driver and configured oracle 11g dg4odbc gateway.
    We could connect from oracle and retrive the data from postgres.
    Issue we have is
    The integer data is not showing correctly…
    For example in the postgres the value is 1 and in oracle its shown as 4294967297.
    thanks,
    Sirisha

    this is the trace when its working for
    select * from "cognos_enrollmentdtl_s"@testag where "trial_id" = 39
    and for 39 its returning 167503724583 thsi value in the result set.
    Oracle Corporation --- THURSDAY SEP 30 2010 10:39:28.243
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY SEP 30 2010 10:39:28.243
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
    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 "testag"
    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:testag
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=31
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2010/09/30-10:39:28
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/OpenLink/lib/libodbc.so"
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLAllocHandle
    symbol_peflctx=0xaab20640
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLBindCol
    symbol_peflctx=0xaab18a10
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLBindParameter
    symbol_peflctx=0xaab153d0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLCancel
    symbol_peflctx=0xaab10200
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDescribeParam
    symbol_peflctx=0xaab080c0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDisconnect
    symbol_peflctx=0xaab05e00
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLEndTran
    symbol_peflctx=0xaab1a360
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLExecute
    symbol_peflctx=0xaab09440
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFetch
    symbol_peflctx=0xaab0a7a0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFreeHandle
    symbol_peflctx=0xaab1fbd0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFreeStmt
    symbol_peflctx=0xaab111d0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetData
    symbol_peflctx=0xaab0a210
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetEnvAttr
    symbol_peflctx=0xaab1f870
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetFunctions
    symbol_peflctx=0xaab11f70
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLMoreResults
    symbol_peflctx=0xaab09ce0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLNumResultCols
    symbol_peflctx=0xaab17f70
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLParamData
    symbol_peflctx=0xaab08a20
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPutData
    symbol_peflctx=0xaab08680
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLRowCount
    symbol_peflctx=0xaab180b0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetEnvAttr
    symbol_peflctx=0xaab1fa30
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetDescRec
    symbol_peflctx=0xaab1bc10
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLColAttribute
    symbol_peflctx=0xaab1b890
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLColumns
    symbol_peflctx=0xaab007b0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLConnect
    symbol_peflctx=0xaab05c50
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDescribeCol
    symbol_peflctx=0xaab17d50
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDriverConnect
    symbol_peflctx=0xaab07d30
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLExecDirect
    symbol_peflctx=0xaab092e0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLForeignKeys
    symbol_peflctx=0xaaaffc20
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetConnectAttr
    symbol_peflctx=0xaab1d8a0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDescField
    symbol_peflctx=0xaab1cfe0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDescRec
    symbol_peflctx=0xaab1c3b0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDiagField
    symbol_peflctx=0xaab0ed30
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDiagRec
    symbol_peflctx=0xaab0d5a0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetInfo
    symbol_peflctx=0xaab130a0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetStmtAttr
    symbol_peflctx=0xaab1f6e0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetTypeInfo
    symbol_peflctx=0xaaafd250
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPrepare
    symbol_peflctx=0xaab16560
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPrimaryKeys
    symbol_peflctx=0xaaafeed0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLProcedureColumns
    symbol_peflctx=0xaaafe550
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLProcedures
    symbol_peflctx=0xaaafdad0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetConnectAttr
    symbol_peflctx=0xaab1df70
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetStmtAttr
    symbol_peflctx=0xaab1f260
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetDescField
    symbol_peflctx=0xaab1cb30
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLStatistics
    symbol_peflctx=0xaaafb6f0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLTables
    symbol_peflctx=0xaab01d70
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Exiting hgolofn, rc=0 at 2010/09/30-10:39:28
    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/09/30-10:39:28
    Entered hgolgon at 2010/09/30-10:39:28
    reco:0, name:readonly, tflag:0
    Entered hgosuec at 2010/09/30-10:39:28
    Exiting hgosuec, rc=0 at 2010/09/30-10:39:28
    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 readonly as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/09/30-10:39:28
    HS_FDS_CONNECT_INFO = "testag"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/09/30-10:39:28
    dsn:testag, name:readonly
    optn:
    Entered hgocip at 2010/09/30-10:39:28
    dsn:testag
    Exiting hgocip, rc=0 at 2010/09/30-10:39:28
    ##>Connect Parameters (len=40)<##
    ## DSN=testag;
    #! UID=readonly;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2010/09/30-10:39:28
    Entered hgolosf at 2010/09/30-10:39:28
    ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFD7F 0x015F 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0xFA00 0x3F5F
    Exiting hgolosf, rc=0 at 2010/09/30-10:39:28
    DriverName:pgr7_mt_lt.so, DriverVer:06.01.0524 OpenLink PostgreSQL Lite Driver
    DBMS Name:PostgreSQL, DBMS Version:07.02.0000
    Exiting hgocont, rc=0 at 2010/09/30-10:39:28
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 32 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2010/09/30-10:39:28
    Entered hgoulcp at 2010/09/30-10:39:28
    Entered hgowlst at 2010/09/30-10:39:28
    Exiting hgowlst, rc=0 at 2010/09/30-10:39:28
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xa
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 32 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 32 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns N for SQL_COLUMN_ALIAS
    5 instance capabilities will be uploaded
    capno:1964, context:0x00000000, add-info: 0
    capno:1989, context:0x00000000, add-info: 0
    capno:1991, context:0x00000000, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 0
    capno:3007, context:0x00000000, add-info: -3, translation:"36"
    Exiting hgoulcp, rc=0 at 2010/09/30-10:39:28
    Entered hgouldt at 2010/09/30-10:39:28
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2010/09/30-10:39:28
    Entered hgobegn at 2010/09/30-10:39:28
    tflag:0 , initial:1
    hoi:0x2db07578, ttid (len 26) is ...
    00: 4D4D4D41 54524958 2E623835 34333234 [testac.b854324]
    10: 322E382E 31332E37 3936 [2.8.13.796]
    tbid (len 23) is ...
    00: 4D4D4D41 54524958 5B382E31 332E3739 [testac[8.13.79]
    10: 365D5B31 2E345D [6][1.4]]
    Exiting hgobegn, rc=0 at 2010/09/30-10:39:28
    Entered hgodtab at 2010/09/30-10:39:28
    count:1
    table: cognos_enrollmentdtl_s
    Allocate hoada[0] @ 0x5f38a60
    Entered hgopcda at 2010/09/30-10:39:28
    Column:1(trial_id): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:2(trial_name): dtype:12 (VARCHAR), prc/scl:64/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:3(subjcnt): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:4(total_expected_enrollment): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:5(site_name): dtype:12 (VARCHAR), prc/scl:256/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    The hoada for table cognos_enrollmentdtl_s follows...
    hgodtab, line 876: Printing hoada @ 0x5f38a60
    MAX:5, ACTUAL:5, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
    12 VARCHAR Y 0 0 0/ 0 0 0 200 trial_name
    4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
    4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
    12 VARCHAR Y 0 0 0/ 0 0 0 200 site_name
    Exiting hgodtab, rc=0 at 2010/09/30-10:39:28
    Entered hgodafr, cursor id 0 at 2010/09/30-10:39:28
    Free hoada @ 0x5f38a60
    Exiting hgodafr, rc=0 at 2010/09/30-10:39:28
    Entered hgopars, cursor id 1 at 2010/09/30-10:39:28
    type:0
    SQL text from hgopars, id=1, len=151 ...
    00: 53454C45 43542041 312E2274 7269616C [SELECT A1."trial]
    10: 5F696422 2C41312E 22747269 616C5F6E [_id",A1."trial_n]
    20: 616D6522 2C41312E 22737562 6A636E74 [ame",A1."subjcnt]
    30: 222C4131 2E22746F 74616C5F 65787065 [",A1."total_expe]
    40: 63746564 5F656E72 6F6C6C6D 656E7422 [cted_enrollment"]
    50: 2C41312E 22736974 655F6E61 6D652220 [,A1."site_name" ]
    60: 46524F4D 2022636F 676E6F73 5F656E72 [FROM "cognos_enr]
    70: 6F6C6C6D 656E7464 746C5F73 22204131 [ollmentdtl_s" A1]
    80: 20574845 52452041 312E2274 7269616C [ WHERE A1."trial]
    90: 5F696422 3D3339 [_id"=39]
    Exiting hgopars, rc=0 at 2010/09/30-10:39:28
    Entered hgoopen, cursor id 1 at 2010/09/30-10:39:28
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/30-10:39:28
    Entered hgodscr, cursor id 1 at 2010/09/30-10:39:28
    Allocate hoada @ 0x5f38a60
    Entered hgopcda at 2010/09/30-10:39:28
    Column:1(trial_id): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:2(trial_name): dtype:12 (VARCHAR), prc/scl:64/0, nullbl:2, octet:64, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:3(subjcnt): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:64, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:4(total_expected_enrollment): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:64, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:5(site_name): dtype:12 (VARCHAR), prc/scl:256/0, nullbl:2, octet:256, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    hgodscr, line 880: Printing hoada @ 0x5f38a60
    MAX:5, ACTUAL:5, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
    12 VARCHAR Y 64 64 0/ 0 0 0 200 trial_name
    4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
    4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
    12 VARCHAR Y 256 256 0/ 0 0 0 200 site_name
    Exiting hgodscr, rc=0 at 2010/09/30-10:39:28
    Entered hgoftch, cursor id 1 at 2010/09/30-10:39:28
    hgoftch, line 130: Printing hoada @ 0x5f38a60
    MAX:5, ACTUAL:5, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
    12 VARCHAR Y 64 64 0/ 0 0 0 200 trial_name
    4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
    4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
    12 VARCHAR Y 256 256 0/ 0 0 0 200 site_name
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -16, bflsz: 4
    SQLBindCol: column 2, cdatatype: 1, bflsz: 65
    SQLBindCol: column 3, cdatatype: -16, bflsz: 4
    SQLBindCol: column 4, cdatatype: -16, bflsz: 4
    SQLBindCol: column 5, cdatatype: 1, bflsz: 257
    SQLFetch: row: 1, column 1, bflsz: 4, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 1, column 2, bflsz: 65, bflar: 15
    SQLFetch: row: 1, column 2, bflsz: 65, bflar: 15, (bfl: 64, mbl: 64)
    SQLFetch: row: 1, column 3, bflsz: 4, bflar: 8
    SQLFetch: row: 1, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 1, column 4, bflsz: 4, bflar: 8
    SQLFetch: row: 1, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 1, column 5, bflsz: 257, bflar: 23
    SQLFetch: row: 1, column 5, bflsz: 257, bflar: 23, (bfl: 256, mbl: 256)
    SQLFetch: row: 2, column 1, bflsz: 4, bflar: 8
    SQLFetch: row: 2, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 2, column 2, bflsz: 65, bflar: 15
    SQLFetch: row: 2, column 2, bflsz: 65, bflar: 15, (bfl: 0, mbl: 64)
    SQLFetch: row: 2, column 3, bflsz: 4, bflar: 8
    SQLFetch: row: 2, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 2, column 4, bflsz: 4, bflar: 8
    SQLFetch: row: 2, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 2, column 5, bflsz: 257, bflar: 35
    SQLFetch: row: 2, column 5, bflsz: 257, bflar: 35, (bfl: 0, mbl: 256)
    SQLFetch: row: 3, column 1, bflsz: 4, bflar: 8
    SQLFetch: row: 3, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 3, column 2, bflsz: 65, bflar: 15
    SQLFetch: row: 3, column 2, bflsz: 65, bflar: 15, (bfl: 0, mbl: 64)
    SQLFetch: row: 3, column 3, bflsz: 4, bflar: 8
    SQLFetch: row: 3, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 3, column 4, bflsz: 4, bflar: 8
    SQLFetch: row: 3, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    i will paste the remaing trace in another reply..as the 30000 char exceeded
    Edited by: Kodali.S on Sep 30, 2010 8:22 AM
    Edited by: Kodali.S on Sep 30, 2010 8:25 AM

  • Accessing Postgres from Oracle using DG4ODBC and psqlodbc very slow

    I have set up DG4ODBC on a Windows 2003 32-bit 11g Oracle database to access a Windows 2008 64-bit 9.1 Postgres database, using the psqlodbc driver (32-bit).
    I am able to issue queries, but they are very slow. The reason is that the where clause of the query is being removed somewhere along the line (I have seen the actual queries run by Postgres using pgAdmin server status screen), and all the rows in the table are retrieved from Postgres. Naturally with tables bigger than a few rows that means doing a full table scan in Postgres, as well as transferring lots of bytes through the network.
    For instance, if I query from Oracle like this: select * from "dps_user"@pg where "id" = '2423', the sql run at Postgres is this: select * from dps_user, which retrieves all rows on the table! When I get the query result in Oracle, I only get the row with id 2423, so I assume that Oracle gets the whole table, and does the filtering at its end.
    In a 32-bit Windows XP separate machine I have set up the same psqlodbc driver, and I have run the same query using Microsoft Query. In this case, the query run in Postgres contains the where clause, and therefore it is much faster because a unique index scan is performed in Postgres, and only one row is transferred back to Microsoft Query.
    Could you help me, please?
    Thanks a lot,
    Carlos

    Hi Mike,
    Thanks a lot for your help. The gateway version must be 11.2.0.3 since the Oracle database has patchset 11.2.0.3 applied.
    This is the ini file once I changed the trace level:
    HS_FDS_CONNECT_INFO = pg
    HS_FDS_TRACE_LEVEL = 255
    I tried this query:
    select *
    from dps_user
    where id = 'W106606';
    Where dps_user is a view on the Oracle database which translates to this:
    CREATE OR REPLACE FORCE VIEW dps_user (ID,
    login,
    first_name,
    last_name,
    lastactivity_date,
    registration_date,
    email,
    email_status,
    receive_email
    AS
    SELECT "id", "login", "first_name", "last_name", "lastactivity_date",
    "registration_date", "email", "email_status", "receive_email"
    FROM "dynamo_web"."dps_user"@pg.es.lladro.com;
    The generated trace file is:
    Oracle Corporation --- JUEVES MAY 09 2013 18:13:35.968
    Heterogeneous Agent Release
    11.2.0.3.0
    Oracle Corporation --- JUEVES MAY 09 2013 18:13:35.968
    Version 11.2.0.3.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    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 "UCS2"
    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_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"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    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 32 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 "PG"
    Product-Info:
    Port Rls/Upd:3/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.3.0_0011, Instance:PG
    Exiting hgogprd, rc=0
    hostmstr: 2051219456:      HOA After hoagprd
    hostmstr: 2051219456:      HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=873
    HS_LANGUAGE not specified
    rc=1000 attempting to get LANG environment variable.
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2013/05/09-18:13:36
    Exiting hgolofn, rc=0 at 2013/05/09-18:13:36
    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 32 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2051219456:      HOA After hoainit
    hostmstr: 2051219456:      HOA Before hoalgon
    Entered hgolgon at 2013/05/09-18:13:36
    reco:0, name:dynamoselect, tflag:0
    Entered hgosuec at 2013/05/09-18:13:36
    Exiting hgosuec, rc=0 at 2013/05/09-18:13:36
    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_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 dynamoselect as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2013/05/09-18:13:36
    HS_FDS_CONNECT_INFO = "pg"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2013/05/09-18:13:36
    dsn:pg, name:dynamoselect
    optn:
    Entered hgocip at 2013/05/09-18:13:36
    dsn:pg
    Exiting hgocip, rc=0 at 2013/05/09-18:13:36
    ##>Connect Parameters (len=40)<##
    ## DSN=pg;
    #! UID=dynamoselect;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2013/05/09-18:13:36
    Entered hgolosf at 2013/05/09-18:13:36
    ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFA7F 0x03DF 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0xFE00 0x3B5C
    Exiting hgolosf, rc=0 at 2013/05/09-18:13:36
    DriverName:PSQLODBC35W.DLL, DriverVer:09.01.0100
    DBMS Name:PostgreSQL, DBMS Version:9.1.7
    Exiting hgocont, rc=0 at 2013/05/09-18:13:36
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 0 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2049228800:      HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 2049228800: RPC Before Upload Caps
    hostmstr: 2049228800:      HOA Before hoaulcp
    Entered hgoulcp at 2013/05/09-18:13:36
    Entered hgowlst at 2013/05/09-18:13:36
    Exiting hgowlst, rc=0 at 2013/05/09-18:13:36
    SQLGetInfo returns 0x1d for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xa
    SQLGetInfo returns 64 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 64 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
    HOSGIP returned value of "TRUE" for HS_FDS_QUOTE_IDENTIFIER
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    2 instance capabilities will be uploaded
    capno:1989, context:0x00000000, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 0
    Exiting hgoulcp, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2049228800:      HOA After hoaulcp
    hostmstr: 2049228800: RPC After Upload Caps
    hostmstr: 2049228800: RPC Before Upload DDTR
    hostmstr: 2049228800:      HOA Before hoauldt
    Entered hgouldt at 2013/05/09-18:13:36
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2049228800:      HOA After hoauldt
    hostmstr: 2049228800: RPC After Upload DDTR
    hostmstr: 2049228800: RPC Before Begin Trans
    hostmstr: 2049228800:      HOA Before hoabegn
    Entered hgobegn at 2013/05/09-18:13:36
    tflag:0 , initial:1
    hoi:0x12f090, ttid (len 39) is ...
    00: 44455341 322E4553 2E4C4C41 44524F2E [DESA2.ES.LLADRO.]
    10: 434F4D2E 65336530 30323865 2E31312E [COM.e3e0028e.11.]
    20: 332E3133 303836 [3.13086]
    tbid (len 36) is ...
    00: 44455341 322E4553 2E4C4C41 44524F2E [DESA2.ES.LLADRO.]
    10: 434F4D5B 31312E33 2E313330 38365D5B [COM[11.3.13086][]
    20: 312E345D [1.4]]
    Exiting hgobegn, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2049228800:      HOA After hoabegn
    hostmstr: 2049228800: RPC After Begin Trans
    hostmstr: 2049228800: RPC Before Describe Table
    hostmstr: 2049228800:      HOA Before hoadtab
    Entered hgodtab at 2013/05/09-18:13:36
    count:1
    table: dynamo_web.dps_user
    Allocate hoada[0] @ 033A88D4
    Entered hgopcda at 2013/05/09-18:13:36
    Column:1(id): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:0, octet:80, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:2(login): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:0, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:3(auto_login): dtype:12 (VARCHAR), prc/scl:5/0, nullbl:1, octet:-1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:4(password): dtype:-9 (WVARCHAR), prc/scl:35/0, nullbl:1, octet:70, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:5(member): dtype:12 (VARCHAR), prc/scl:5/0, nullbl:1, octet:-1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:6(first_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:7(middle_name): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:1, octet:80, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:8(last_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:9(user_type): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:10(locale): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:11(lastactivity_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:12(registration_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:13(email): dtype:-9 (WVARCHAR), prc/scl:100/6, nullbl:1, octet:200, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:14(email_status): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:15(receive_email): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:16(gender): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:17(date_of_birth): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    Entered hgopcda at 2013/05/09-18:13:36
    Column:18(securitystatus): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
    The hoada for table dynamo_web.dps_user follows...
    hgodtab, line 1092: Printing hoada @ 033A88D4
    MAX:18, ACTUAL:18, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 80 80 128/ 40 1000 0 440 id
    12 VARCHAR N 200 200 128/100 1000 0 440 login
    -1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 auto_login
    12 VARCHAR Y 70 70 128/ 35 1000 0 440 password
    -1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 member
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
    12 VARCHAR Y 80 80 128/ 40 1000 0 440 middle_name
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_type
    -5 BIGINT Y 8 8 0/ 0 0 0 20 locale
    91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
    91 DATE Y 16 16 0/ 0 0 0 0 registration_date
    12 VARCHAR Y 200 200 128/100 1000 0 440 email
    -5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
    -5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
    -5 BIGINT Y 8 8 0/ 0 0 0 20 gender
    91 DATE Y 16 16 0/ 0 0 0 0 date_of_birth
    -5 BIGINT Y 8 8 0/ 0 0 0 20 securitystatus
    Exiting hgodtab, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2048180224:      HOA After hoadtab
    hostmstr: 2048180224:      HOA Before hoadafr
    Entered hgodafr, cursor id 0 at 2013/05/09-18:13:36
    Free hoada @ 033A88D4
    Exiting hgodafr, rc=0 at 2013/05/09-18:13:36
    hostmstr: 2048180224:      HOA After hoadafr
    hostmstr: 2048180224: RPC After Describe Table
    hostmstr: 2048180224: RPC Before SQL Bundling
    hostmstr: 2048180224:      HOA Before hoxpars
    Entered hgopars, cursor id 1 at 2013/05/09-18:13:36
    type:0
    SQL text from hgopars, id=1, len=152 ...
    00: 53454C45 43542022 6964222C 226C6F67 [SELECT "id","log]
    10: 696E222C 22666972 73745F6E 616D6522 [in","first_name"]
    20: 2C226C61 73745F6E 616D6522 2C226C61 [,"last_name","la]
    30: 73746163 74697669 74795F64 61746522 [stactivity_date"]
    40: 2C227265 67697374 72617469 6F6E5F64 [,"registration_d]
    50: 61746522 2C22656D 61696C22 2C22656D [ate","email","em]
    60: 61696C5F 73746174 7573222C 22726563 [ail_status","rec]
    70: 65697665 5F656D61 696C2220 46524F4D [eive_email" FROM]
    80: 20226479 6E616D6F 5F776562 222E2264 [ "dynamo_web"."d]
    90: 70735F75 73657222 [ps_user"]
    Exiting hgopars, rc=0 at 2013/05/09-18:13:56
    hostmstr: 2001973248:      HOA After hoxpars
    hostmstr: 2001973248:      HOA Before hoxopen
    Entered hgoopen, cursor id 1 at 2013/05/09-18:13:56
    hgoopen, line 87: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2013/05/09-18:13:56
    hostmstr: 2001973248:      HOA After hoxopen
    hostmstr: 2001973248:      HOA Before hoxdscr
    Entered hgodscr, cursor id 1 at 2013/05/09-18:13:56
    Allocate hoada @ 033A88BC
    Entered hgodscr_process_sellist_description at 2013/05/09-18:13:56
    Entered hgopcda at 2013/05/09-18:13:56
    Column:1(id): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:0, octet:80, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:56
    Entered hgopcda at 2013/05/09-18:13:56
    Column:2(login): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:0, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:56
    Entered hgopcda at 2013/05/09-18:13:57
    Column:3(first_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:4(last_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:5(lastactivity_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:6(registration_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:120, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:7(email): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:1, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:8(email_status): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    Entered hgopcda at 2013/05/09-18:13:57
    Column:9(receive_email): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:200, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
    hgodscr, line 464: Printing hoada @ 033A88BC
    MAX:9, ACTUAL:9, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 80 80 128/ 40 1000 0 440 id
    12 VARCHAR N 200 200 128/100 1000 0 440 login
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
    91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
    91 DATE Y 16 16 0/ 0 0 0 0 registration_date
    12 VARCHAR Y 200 200 128/100 1000 0 440 email
    -5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
    -5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
    Exiting hgodscr, rc=0 at 2013/05/09-18:13:57
    hostmstr: 2001973248:      HOA After hoxdscr
    hostmstr: 2001973248: RPC After SQL Bundling
    hostmstr: 2001973248: RPC Before Fetch Row
    hostmstr: 2001973248:      HOA Before hoaftch
    Entered hgoftch, cursor id 1 at 2013/05/09-18:13:57
    hgoftch, line 133: Printing hoada @ 033A88BC
    MAX:9, ACTUAL:9, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 80 80 128/ 40 1000 0 440 id
    12 VARCHAR N 200 200 128/100 1000 0 440 login
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
    12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
    91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
    91 DATE Y 16 16 0/ 0 0 0 0 registration_date
    12 VARCHAR Y 200 200 128/100 1000 0 440 email
    -5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
    -5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -8, bflsz: 82
    SQLBindCol: column 2, cdatatype: -8, bflsz: 202
    SQLBindCol: column 3, cdatatype: -8, bflsz: 122
    SQLBindCol: column 4, cdatatype: -8, bflsz: 122
    SQLBindCol: column 5, cdatatype: 93, bflsz: 16
    SQLBindCol: column 6, cdatatype: 93, bflsz: 16
    SQLBindCol: column 7, cdatatype: -8, bflsz: 202
    SQLBindCol: column 8, cdatatype: -25, bflsz: 8
    SQLBindCol: column 9, cdatatype: -25, bflsz: 8
    SQLFetch: row: 1, column 1, bflsz: 82, bflar: 14
    SQLFetch: row: 1, column 1, bflsz: 82, bflar: 14, (bfl: 80, mbl: 80)
    SQLFetch: row: 1, column 2, bflsz: 202, bflar: 54
    SQLFetch: row: 1, column 2, bflsz: 202, bflar: 54, (bfl: 200, mbl: 200)
    SQLFetch: row: 1, column 3, bflsz: 122, bflar: 10
    SQLFetch: row: 1, column 3, bflsz: 122, bflar: 10, (bfl: 120, mbl: 120)
    SQLFetch: row: 1, column 4, bflsz: 122, bflar: 8
    SQLFetch: row: 1, column 4, bflsz: 122, bflar: 8, (bfl: 120, mbl: 120)
    SQLFetch: row: 1, column 5, bflsz: 16, bflar: -1
    SQLFetch: row: 1, column 5, bflsz: 16, bflar: SQL_NULL_DATA
    SQLFetch: row: 1, column 6, bflsz: 16, bflar: 16
    SQLFetch: row: 1, column 6, bflsz: 16, bflar: 16, (bfl: 16, mbl: 16)
    SQLFetch: row: 1, column 7, bflsz: 202, bflar: 44
    SQLFetch: row: 1, column 7, bflsz: 202, bflar: 44, (bfl: 200, mbl: 200)
    SQLFetch: row: 1, column 8, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 8, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    SQLFetch: row: 1, column 9, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 9, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    SQLFetch: row: 2, column 1, bflsz: 82, bflar: 14
    SQLFetch: row: 2, column 1, bflsz: 82, bflar: 14, (bfl: 0, mbl: 80)
    (I have clipped it because it is huge, since all rows from the table are brought into Oracle. In fact, the query did not finish yet because the process dg4odbc.exe is busy writing the trace file, I may have to kill it ).
    Thanks a lot,
    Carlos

  • Loops in arrays or structures

    Loops in arrays or structures
    I was given a project on html reports and
    They have advised me to use Loops in arrays or structures
    At this point I am a novice at this html reporting system. I
    would like to know how I can use loops in arrays or structures.
    How is it beneficial are
    1. Structures
    2. Arrays
    3. loops in for both
    for my reports.
    Countless thanks in advance

    Structures are great if you understand them, they are
    basically just arrays organized by keywords rather than index
    numbers.
    Arrays are very nice, as you can just run through loops to
    access each element, as they are all indexed by numbers 0-x.
    loops are great to navigate through both. All you have to do
    is set an loop to run through x amount of iterations of the array
    or structure (where x is the length of the array, or number of
    elements in the structure). Loops are great due to the small amount
    of code they require.

  • How Do I Load An Animated GIF Into PictureBox Control From Byte Array?

    I'm having a problem with loading an animated GIF int a picturebox control in a C# program after it has been converted to a base64 string, then converted to a byte array, then written to binary, then converted to a base64 string again, then converted to
    a byte array, then loaded into a memory stream and finally into a picturebox control.
    Here's the step-by-step code I've written:
    1. First I open an animated GIF from a file and load it directly into a picturebox control. It animates just fine.
    2. Next I convert the image in the picturebox control (pbTitlePageImage) to a base64 string as shown in the code below:
                    if (pbTitlePageImage.Image != null)
                        string Image2BConverted;
                        using (Bitmap bm = new Bitmap(pbTitlePageImage.Image))
                            using (MemoryStream ms = new MemoryStream())
                                bm.Save(ms, ImageFormat.Jpeg);
                                Image2BConverted = Convert.ToBase64String(ms.ToArray());
                                GameInfo.TitlePageImage = Image2BConverted;
                                ms.Close();
                                GameInfo.TitlePageImagePresent = true;
                                ProjectNeedsSaving = true;
    3. Then I write the base64 string to a binary file using FileStream and BinaryWriter.
    4. Next I get the image from the binary file using FileStream and BinaryReader and assign it to a string variable. It is now a base64 string again.
    5. Next I load the base64 string into a byte array, then I load it into StreamReader and finally into the picturebox control (pbGameImages) as shown in the code below:
    byte[] TitlePageImageBuffer = Convert.FromBase64String(GameInfo.TitlePageImage);
                            MemoryStream memTitlePageImageStream = new MemoryStream(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Write(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Position = 0;
                            pbGameImages.Image = Image.FromStream(memTitlePageImageStream, true);
                            memTitlePageImageStream.Close();
                            memTitlePageImageStream = null;
                            TitlePageImageBuffer = null;
    This step-by-step will work with all image file types except animated GIFs (standard GIFs work fine). It looks like it's just taking one frame from the animation and loading it into the picturebox. I need to be able to load the entire animation. Does any of
    the code above cause the animation to be lost? Any ideas?

    There is an ImageAnimator so you may not need to use byte array instead.
    ImageAnimator.Animate Method
    http://msdn.microsoft.com/en-us/library/system.drawing.imageanimator.animate(v=vs.110).aspx
    chanmm
    chanmm

  • Is there a way of determining what element in an array is being clicked on?

    Hi all.  I would like to setup an event to determine what element in an array is being clicked on/hovered over.  I think I tried this before and found it wasn't working due to limitations of LV 7.0.  If this code already exists, it would be great if I don't have to do a scavenger hunt for the solution.
    I think one possibility I nixed was to use the refnum of the elements to determine which one it is.  IIRC, this is not possible because the refnum of the element is for the edit box only.
    The second possiblity is to get the on click event, and somehow determine which element in the array it is.  This doesn't sound too difficult as it should be a simple calculation, but may get in to some hairryness based on if the indicies are visible or not, and if I am using a new or old array with new or old control (calc would change based on boarder size of the controls).  I might just simplify it by removing indicies and using older control set which has minimal boarder size.
    And just for fun, can I force a tool tip to show up?
    Thanks all,
    A
    Using LV7.0 on WinXP.

    blawson wrote:
    Been bitten by LabVIEW wrote:
    I think one possibility I nixed was to use the refnum of the elements to determine which one it is.  IIRC, this is not possible because the refnum of the element is for the edit box only.
    Using LV7.0 on WinXP.
    This is indeed possible, at least in the newer versions I use.
    Take the array refnum from the click event data terminal and get a reference to the array element.  This refers to the element that was clicked, but you do need to work out how to get the index.  My method is to use property nodes to get the screen position and size of the element and the screen position and size of the array, as well as the array's Visible Index property. For each direction, take the quotient of the relative position of the element (account for padding!) over the size of an element.
    I suspect that taking the mouse coords and comparing to the array's sizes in pixels is similar, although I trust my method for events that don't have mouseclicks (what coords does Array:shortcut menu selection(User) return if you used the keyboard?)
    Here's an old version I happened to have open.  I've posted about this before, I suspect I have a clearer version in my gallery.  I use this method in my example code contest entry to work out which square of the chessboard is clicked.
    Thank you for that one!
    I am currently "locked up behind a down-rev fence" (working an old app in an old version) so I had not heard of that.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • NetBeans MobilityPack 5 BUG?? how can I send a byte array?

    I�ve created a WebApp and a Simple servlet with one public method.
    public byte[] getStr(byte[] b) {       
    String s = "A string";
    return s.getBytes();
    Then I've used "Mobile To Web App" wizard to generate stubs to that getStr method. And when I�ve tried to call that getStr method:
    byte[] aByte = "st".getBytes();
    byte[] b = client.getStr(aByte);
    I've got an error at Server in Utility.java in generated ReadArray method.
    * Reads an array from the given data source and returns it.
    *@param source The source from which the data is extracted.
    *@return The array from the data source
    *@exception IOException If an error occured while reading the data.
    public static Object readArray(DataInput in) throws IOException {
    short type = in.readShort();
    int length = in.readInt();
    if (length == -1) {
    return null;
    } else {
    switch (type) {
    case BYTE_TYPE: {
    byte[] data = new byte[length];
    in.readFully(data);
    return data;
    default: {
    throw new IllegalArgumentException("Unsupported return type (" + type + ")");
    At this line "in.readFully(data);" I�ve got an EOFException.
    The the aByte = "st".getBytes(); was 2bytes long and at the server "int length = in.readInt();" it was 363273. Why?
    All code was generated by NetBeans Mobility pack 5 it's not mine so its a bug?
    How can I fix this?

    I found that bug. I've described it here
    http://www.netbeans.org/issues/show_bug.cgi?id=74109
    There's a solution how to fix the generated code.

  • Error while assigning values to Array using Copy operation

    Hi,
    I am using the following code to copy a string value 'Text' and 'UDFTypeTitle' to the 1st and 2nd position of an array:-
    <assign name="Assign1">
    <copy>
    <from expression="string('Text')"/>
    <to variable="Invoke1_ReadUDFValues_InputVariable" part="params"
    query="/ns1:ReadUDFValues/ns1:Field[position()=1]"/>
    </copy>
    <copy>
    <from expression="string('UDFTypeTitle')"/>
    <to variable="Invoke1_ReadUDFValues_InputVariable" part="params"
    query="/ns1:ReadUDFValues/ns1:Field[position()=2]"/>
    </copy>
    </assign>
    I am getting the following error for the 2nd copy:-
    XPath query string returns zero node.
    The assign activity of the to node query is returning zero node.
    Either the to node data or the xpath query in the to node was invalid.
    According to BPEL4WS spec 1.1 section 14.3, verify the to node value at line number 103 in the BPEL source
    If I am removing the 2nd copy I am not getting any error.
    The structure of ns1:*ReadUDFValues* is as follows:-
    - <xsd:complexType name="ReadUDFValues">
    - <xsd:sequence>
    <xsd:element maxOccurs="unbounded" name="Field" type="tns:UDFValueFieldType" />
    <xsd:element minOccurs="0" name="Filter" type="xsd:string" />
    <xsd:element minOccurs="0" name="OrderBy" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    The structure of ns1:ReadUDFValues/ns1:*Field* is as follows:-
    xsd:simpleType name="UDFValueFieldType">
    - <xsd:restriction base="xsd:string">
    <xsd:enumeration value="CodeValue" />
    <xsd:enumeration value="ConditionalIndicator" />
    <xsd:enumeration value="Cost" />
    <xsd:enumeration value="CreateDate" />
    <xsd:enumeration value="CreateUser" />
    <xsd:enumeration value="Description" />
    <xsd:enumeration value="Double" />
    <xsd:enumeration value="FinishDate" />
    <xsd:enumeration value="ForeignObjectId" />
    <xsd:enumeration value="Indicator" />
    <xsd:enumeration value="Integer" />
    <xsd:enumeration value="IsBaseline" />
    <xsd:enumeration value="IsTemplate" />
    <xsd:enumeration value="IsUDFTypeCalculated" />
    <xsd:enumeration value="IsUDFTypeConditional" />
    <xsd:enumeration value="LastUpdateDate" />
    <xsd:enumeration value="LastUpdateUser" />
    <xsd:enumeration value="ProjectObjectId" />
    <xsd:enumeration value="StartDate" />
    <xsd:enumeration value="Text"/>
    <xsd:enumeration value="UDFCodeObjectId" />
    <xsd:enumeration value="UDFTypeDataType" />
    <xsd:enumeration value="UDFTypeObjectId" />
    <xsd:enumeration value="UDFTypeSubjectArea" />
    <xsd:enumeration value="UDFTypeTitle"/>
    </xsd:restriction>
    </xsd:simpleType>
    Could you please suggest a solution?
    I also tried with position 0, 1 . still the same error.
    Regards,
    Sam

    Hi Naresh,
    The structure of ReadUDFValues is as follows:-
    - <xsd:complexType name="ReadUDFValues">
    - <xsd:sequence>
    <xsd:element maxOccurs="unbounded" name="Field" type="tns:UDFValueFieldType" />
    <xsd:element minOccurs="0" name="Filter" type="xsd:string" />
    <xsd:element minOccurs="0" name="OrderBy" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    The structure of ns1:ReadUDFValues/ns1:Field is as follows:-
    xsd:simpleType name="UDFValueFieldType">
    - <xsd:restriction base="xsd:string">
    <xsd:enumeration value="CodeValue" />
    <xsd:enumeration value="ConditionalIndicator" />
    <xsd:enumeration value="Cost" />
    <xsd:enumeration value="CreateDate" />
    <xsd:enumeration value="CreateUser" />
    <xsd:enumeration value="Description" />
    <xsd:enumeration value="Double" />
    <xsd:enumeration value="FinishDate" />
    <xsd:enumeration value="ForeignObjectId" />
    <xsd:enumeration value="Indicator" />
    <xsd:enumeration value="Integer" />
    <xsd:enumeration value="IsBaseline" />
    <xsd:enumeration value="IsTemplate" />
    <xsd:enumeration value="IsUDFTypeCalculated" />
    <xsd:enumeration value="IsUDFTypeConditional" />
    <xsd:enumeration value="LastUpdateDate" />
    <xsd:enumeration value="LastUpdateUser" />
    <xsd:enumeration value="ProjectObjectId" />
    <xsd:enumeration value="StartDate" />
    <xsd:enumeration value="Text"/>
    <xsd:enumeration value="UDFCodeObjectId" />
    <xsd:enumeration value="UDFTypeDataType" />
    <xsd:enumeration value="UDFTypeObjectId" />
    <xsd:enumeration value="UDFTypeSubjectArea" />
    <xsd:enumeration value="UDFTypeTitle"/>
    </xsd:restriction>
    </xsd:simpleType>

  • Assigning value to array type variable in a loop

    Hi
    I have a scenario in which i am assigning value from a array type variable(x) to the invoke variable of a database adapter. The variable x is exact replica of the invoke variable.
    My copy operation in assign activity looks like this-
    <copy>
    <from variable="Var" part="InputParameters"
    query="/ns7:InputParameters"/>
    <to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"
    part="InputParameters"
    query="/ns7:InputParameters *(* bpws:getVariableData('iterator') *)* "/>
    </copy>
    It is inside a while loop activity.
    PS *()* are square brackets
    But it is erroring out at run time.
    Does anybody has an alternate idea to assign value to an array type?.
    i have seen that while extracting value from an array type variable it works fine
    A similar kind of operation is shown below.
    <copy>
    <from variable="Var" part="InputParameters"
    query="/ns7:InputParameters *(* bpws:getVariableData('iterator') *)* "/>
    <to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"
    part="InputParameters"
    query="/ns7:InputParameters"/>
    </copy>
    Thanks
    Ayush
    Edited by: Ayush fujitsu on Aug 14, 2009 4:36 AM

    Hi Ayush
    I suppose you are getting some error like "source node returns multiple elements".
    In second case there is no problem because you are assigning *InputParameters[bpws:getVariableData('iterator')]* (+suppose InputParameters[1]+) to target. Here it works fine because you are fetching oonly 1 value from source and assigning it to the target.
    Now in first case you are saying copy InputParameters to target[1] suppose. You know that source is an array which contains multiple index so which index field from the source will be assigned to the target.
    Try your process with only 1 source value it will work but when multiple values will be there it will fail. You have to merge both the cases and it will look like
    *<copy>*
    *<from variable="Var" part="InputParameters"*
    query="/ns7:InputParameters ( bpws:getVariableData('iterator') ) "/>
    *<to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"*
    part="InputParameters"
    query="/ns7:InputParameters ( bpws:getVariableData('iterator') ) "/>
    *</copy>*
    And the easiest way to do this is by the transform activity as said above.
    Regards
    Suryaveer
    Edited by: Suryaveer on Aug 15, 2009 11:19 PM

  • Error While connecting a DL585 server using Emulex LightPulse (A8002A) to a 3par Storage Array

    When connecting this Windows 2003 server to the HP 3PAR Array, the customer receive warnings (6-7 per second), for example:
    ==================================
    Device (4,3,14) is reserved by other host.
    DsmSendTURSynchronous: Device(4,3,12), NTStatus(c0000185), SrbStatus(4), ScsiStatus(18).
    DsmSendTURSynchronous: Device(4,3,14), NTStatus(c0000185), SrbStatus(4), ScsiStatus(18).
    Device (4,2,12) is reserved by other host.
    Device (4,2,14) is reserved by other host.
    Device (4,3,10) is reserved by other host.
    DsmSendTURSynchronous: Device(4,2,12), NTStatus(c0000185), SrbStatus(4), ScsiStatus(18).
    DsmSendTURSynchronous: Device(4,2,14), NTStatus(c0000185), SrbStatus(4), ScsiStatus(18).
    DsmSendTURSynchronous: Device(4,3,10), NTStatus(c0000185), SrbStatus(4), ScsiStatus(18).
    ==================================
    The HBA details are as follows :
     Fibre Channel HBA Drivers
      [elxfc] ................................... Emulex StorPort driver, Version: 7.2.70.18
         [Number of Physical Devices] ........... 2
          Device 0 .............................. Emulex LightPulse HBA - Storport Miniport Driver
           Adapter ID ........................... Emulex A8002A, PCI Slot 6, Storport Miniport Driver
           Location of Device 0 ................. PCI bus 79, device 0, function 0
          Device 1 .............................. Emulex LightPulse HBA - Storport Miniport Driver
           Adapter ID ........................... Emulex A8002A, PCI Slot 4, Storport Miniport Driver
           Location of Device 1 ................. PCI bus 76, device 0, function 0
    # I am not much experdized in Microsoft OS but the issue seems to be related to the Multipath or path repated to the Array. Just want to check anyone has ever came across with such error ? They have access to the external 3Par Array volumes without
    issues. the server is in fact also connected to an HP EVA Array with HP EVA MPIO Dsm installed.
    It may a normal event or error so want to know the full details of the above events and any further actin plan is highly appreciated.
    Thanks in advance,
    Prodyott

    are these LUNs shared or standalone?
    I don't think it's really wise to have more than one DSM on the same server, so you're mixing the EVA and 3par DSMs and on 2003...
    other than ensuring that HBA firmware and drivers are all up to date and DMS drivers are at the latest, not much else you can do from the host side...maybe update the storport.sys driver to the latest for that OS
    are you sure that the HBAs are in fact supported/compatible with both storage back-ends? what about their driver/firmware/DSM versions - some SANs are very picky when it comes to this stuff, check the interop matrixes to find out
    overall, if you don't need SAN connection to one of these storage back-ends, I suggest you get rid of it and its DSM

  • Hard drive array losing access - suspect controller - zfs

    i am having a problem with one of my arrays, this is a zfs fielsystem.  It consists of a 1x500GB, 2x750GB, and 1x2TB, linear array. the pool is named 'pool'.    I have to mention here, i dont have enough hard drive to have a raidz (raid5) setup yet, so there is no actual redundancy to so the zfs cant auto repair itself from a copy because there is none, therefore all auto repair features can be thrown out the door in this equation meaning i believe its possible that the filesystem can easily be corrupted by the controller in this specific case which i suspect.  Please keep that in mind while reading the following.
    I just upgraded my binaries, therefore i removed zfs-fuse and installed archzfs.  did i remove it completely?  not sure.  i wasnt able to get my array back up and running until i fiddled with  the sata cables, moved around the sata connectors, tinkered with bios drive detect. after i got it running, i copied some files off of it from samba thinking it might not last long.  the copy was succesfull, but problems began surfacing again shortly after.  so now i suspect i have a bad controller on my gigabyte board.  I round recently someone else who had this issue so im thinking its not the hard drive. 
    I did some smartmontools tests last night and found that ll drives are showing good on a short test, they all passed.  today im not having so much luck with getting access.  there is hangs on reboot, and the drive light stays on.  when i try to run zfs and zpool commands its stating the system is hanging.  i have been getting what appears as HD errors as well, ill have to manually type them in here since no copy and paste from the console to the maching im posting from, and the errors arent showing up via ssh or i would copy them from my terminal tha ti currently have open to here.
    ata7: SRST failed (errno=-16)
    reset failed, giving up,
    end_request I/O error, dev sdc, sector 637543760
    ' ' ' ' '''' ' ' ''' sector 637543833
    sd 6:0:0:0 got wrong page
    ' ' ' ' ' '' asking for cache data failed
    ' ' ' ' ' ' assuming drive cache: write through
    info task txg_sync:348 blocked for more than 120 seconds
    and so forth, and when i boot i see this each time which is making me feel that the HD is going bad, however i still want to believe its the controller.
    Note, it seems only those two sectors show up, is it possible that the controller shot out those two sectors with bad data?  {Note, i have had a windows system prior installed on this motherboard and after a few months of running lost a couple raid arrays of data as well.}   
    failed command: WRITE DMA EXT
    ... more stuff here...
    ata7.00 error DRDY ERR
    ICRC ABRT
    blah blah blah.
    so now i can give you some info from the diagnosis that im doing on it, copied from a shell terminal.  Note the following metadata errors JUST appeared after i was trying to delete some files, copying didnt cause this, so it apears either something is currently degrading, or it just inevitably happened from a bad controller
    [root@falcon wolfdogg]# zpool status -v
    pool: pool
    state: ONLINE
    status: One or more devices are faulted in response to IO failures.
    action: Make sure the affected devices are connected, then run 'zpool clear'.
    see: http://zfsonlinux.org/msg/ZFS-8000-HC
    scan: resilvered 33K in 0h0m with 0 errors on Sun Jul 21 03:52:53 2013
    config:
    NAME STATE READ WRITE CKSUM
    pool ONLINE 0 26 0
    ata-ST2000DM001-9YN164_W1E07E0G ONLINE 6 41 0
    ata-ST3750640AS_5QD03NB9 ONLINE 0 0 0
    ata-ST3750640AS_3QD0AD6E ONLINE 0 0 0
    ata-WDC_WD5000AADS-00S9B0_WD-WCAV93917591 ONLINE 0 0 0
    errors: Permanent errors have been detected in the following files:
    <metadata>:<0x0>
    <metadata>:<0x1>
    <metadata>:<0x14>
    <metadata>:<0x15>
    <metadata>:<0x16d>
    <metadata>:<0x171>
    <metadata>:<0x277>
    <metadata>:<0x179>
    if one of the devices are faulted, then why are they all 4 stating online???
    [root@falcon dev]# smartctl -a /dev/sdc
    smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.9.9-1-ARCH] (local build)
    Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF INFORMATION SECTION ===
    Vendor: /6:0:0:0
    Product:
    User Capacity: 600,332,565,813,390,450 bytes [600 PB]
    Logical block size: 774843950 bytes
    scsiModePageOffset: response length too short, resp_len=47 offset=50 bd_len=46
    scsiModePageOffset: response length too short, resp_len=47 offset=50 bd_len=46
    >> Terminate command early due to bad response to IEC mode page
    A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
    my drive list
    [root@falcon wolfdogg]# ls -lah /dev/disk/by-id/
    total 0
    drwxr-xr-x 2 root root 280 Jul 21 03:52 .
    drwxr-xr-x 4 root root 80 Jul 21 03:52 ..
    lrwxrwxrwx 1 root root 9 Jul 21 03:52 ata-_NEC_DVD_RW_ND-2510A -> ../../sr0
    lrwxrwxrwx 1 root root 9 Jul 21 03:52 ata-ST2000DM001-9YN164_W1E07E0G -> ../../sdc
    lrwxrwxrwx 1 root root 9 Jul 21 03:52 ata-ST3250823AS_5ND0MS6K -> ../../sdb
    lrwxrwxrwx 1 root root 10 Jul 21 03:52 ata-ST3250823AS_5ND0MS6K-part1 -> ../../sdb1
    lrwxrwxrwx 1 root root 10 Jul 21 03:52 ata-ST3250823AS_5ND0MS6K-part2 -> ../../sdb2
    lrwxrwxrwx 1 root root 10 Jul 21 03:52 ata-ST3250823AS_5ND0MS6K-part3 -> ../../sdb3
    lrwxrwxrwx 1 root root 10 Jul 21 03:52 ata-ST3250823AS_5ND0MS6K-part4 -> ../../sdb4
    lrwxrwxrwx 1 root root 9 Jul 21 03:52 ata-ST3750640AS_3QD0AD6E -> ../../sde
    lrwxrwxrwx 1 root root 9 Jul 21 03:52 ata-ST3750640AS_5QD03NB9 -> ../../sdd
    lrwxrwxrwx 1 root root 9 Jul 21 03:52 ata-WDC_WD5000AADS-00S9B0_WD-WCAV93917591 -> ../../sda
    lrwxrwxrwx 1 root root 9 Jul 21 03:52 wwn-0x5000c50045406de0 -> ../../sdc
    lrwxrwxrwx 1 root root 9 Jul 21 03:52 wwn-0x50014ee1ad3cc907 -> ../../sda
    and this one i dont get
    [root@falcon dev]# zfs list
    no datasets available
    i remember creating a dataset last year, why is it reporting none, but still working
    is anybody seeing any patterns here?  im prepared to destroy the pool and recreate it just to see if its bad data.But what im thinking to do now is since the problem appears to only be happening on the 2TB drive, either the controller just cant handle it, or the drive is bad.  So, to rule out the controller there might be hope.  I have a scsi card (pci to sata) connected that one of the drives in the array is connected to since i only have 4 sata slots on the mobo, and i keep the 500GB connected to there and have not yet tried the 2tb there yet.  So if i connect this 2TB drive to the scsi i should see the problems disappear, unless the drive got corrupted already. 
    Does any experience in the arch forums know whats going on here?  did i mess up by not completely removing zfs-fuse, is my HD going bad, is my controller bad, or did ZFS just get misconfigured?
    Last edited by wolfdogg (2013-07-21 19:38:51)

    ok, something interesting happened when i connected it (the badly reacting 2TB drive) to the scsi pci card.  first of all no errors on boot.... then take a look at this, some clues to some remanants to the older zfs-fuse setup, and a working pool.
    [root@falcon wolfdogg]# zfs list
    NAME USED AVAIL REFER MOUNTPOINT
    pool 2.95T 636G 23K /pool
    pool/backup 2.95T 636G 3.49G /backup
    pool/backup/falcon 27.0G 636G 27.0G /backup/falcon
    pool/backup/redtail 2.92T 636G 2.92T /backup/redtail
    [root@falcon wolfdogg]# zpool status
    pool: pool
    state: ONLINE
    status: The pool is formatted using a legacy on-disk format. The pool can
    still be used, but some features are unavailable.
    action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
    pool will no longer be accessible on software that does not support
    feature flags.
    scan: resilvered 33K in 0h0m with 0 errors on Sun Jul 21 04:52:52 2013
    config:
    NAME STATE READ WRITE CKSUM
    pool ONLINE 0 0 0
    ata-ST2000DM001-9YN164_W1E07E0G ONLINE 0 0 0
    ata-ST3750640AS_5QD03NB9 ONLINE 0 0 0
    ata-ST3750640AS_3QD0AD6E ONLINE 0 0 0
    ata-WDC_WD5000AADS-00S9B0_WD-WCAV93917591 ONLINE 0 0 0
    errors: No known data errors
    am i looking at a bios update needed here so the controller can talk to the 2TB properly?
    Last edited by wolfdogg (2013-07-21 19:50:18)

  • WinXP-64 bit corrupts existing RAID array

    I've got an MSI K8N Neo2 Platinum motherboard running Win XP Pro SP2 on two 36 gig SATA Raptors.  Everything was working fine, but I wanted to try the 64 bit version of XP.  Grabbed an old 80 gig PATA drive and threw that in the case.  Unplugged the SATA drives so as not to risk messing with the existing working OS.  Installed the latest 1218 x64 beta and it worked well.
      The problem was that when I shut down and reconnected my old RAID array, windows wouldn't boot from it.  I lost everything and had to rebuild Windows from scratch.  So now I know to never unplug the SATA drives   
      Rebuilt WinXP on the RAID array and then tried rebooting with the PATA drive with the 64 bit OS.  Came up with the "drive needs checking" screen, and proceeds to "fix" the RAID array while ignoring my frantic pounding on the Logitech USB keyboard to stop.  Rebooted and yes, the new install was nuked.  Okay, since it's gone anyway, reboot to the 64 bit OS and make sure it's got the 64 bit RAID drivers installed.
      Reinstall WinXP on the RAID array, reboot to the 64 bit OS on the other drive and the same old scandisk comes and nukes it AGAIN!
      So now the PATA drive is sitting on the shelf again, unless someone here can suggest what is causing this problem.
    System Specs
    Athlon64 3500
    gig of PQI 3200 at 2-2-2-5 2.6
    2x36 gig Raptors on ports 3-4
    Plextor PX-716a DVD+_RW
    Visiontek X800 Pro.

    The first time you re-installed Win 32 on the raid that was a bit drastic. A repair ought to have done the job.
    The problem was probably that you disconnected the array but that's where the boot.ini was and that file needed to be modified to add the path to the Win64 install.
    Since you took out the array the Win64 install created a new boot.ini on the PATA drive. Even when you tell BIOS to boot off the array, Windows has a bad habit of looking at the IDE channels & using the boot.ini if it finds one there - but the file it found didn't point to the array of course.
    So basically if you already have Win32 on the array I would leave that array connected normally when installing Win64 on the PATA drive and all should be well.
    I've installed Win64 on the same array as my Win32 install and they co-exist happily. I reckon that's the most efficient way to do it. The main thing is to make separate partitions for Win32, Win64 and data files when you install Win32 in the first place. The two OSs can share the same data files, incuding stuff like email.

  • Expanding the drives into a raid 5 array?

    I am going to purchase a powermac soon, but I want to understand raid arrays a bit better. I am an HD video editor, and am getting into large files sizes...Red, XDCam, 2K etc. I can buy any 4TB raid array with a card, or I read that I can add 3 extra 1TB hard drives inside the mac pro and stripe them raid 5? I know 3 drives aren't the best for redundancy, but will it work? Will I also need Apple's raid controller for this.
    As a side not, someone said use all 4 drives as an array, but the OS has to operate on its own drive unless there is something I don't know.
    Any ideas are appreciated.

    I know 3 drives aren't the best for redundancy, but will it work?
    Hi,
    If you are thinking of using the 2009 Mac Pro internal hard disk sleds to create a RAID 5 you would need a $699 Mac Pro RAID Card. http://store.apple.com/us/product/MA849Z/B
    Three HDs can be used in a RAID 5, but as one disk is used for parity data this only leaves you with the volume size of two HDs and performance = to two hard disks in RAID 0. This is not an option I would select. The other downside to this configuration is the Mac Pro RAID Card does NOT support Boot Camp.
    RR 2314 & SeriTek/5PM
    If you want RAID 5, Boot Camp and the ability to use the internal bays for a Mac OS X system an external RAID 5 is a good choice. The HighPoint RR 2314 and the SeriTek/5PM provide a nice solution at a reasonable price.
    http://www.amug.org/amug-web/html/amug/reviews/articles/highpoint/2314/
    http://www.amug.org/amug-web/html/amug/reviews/articles/firmtek/5pm/
    As the SeriTek/5PM only requires one port on the RR 2314, users can expand to up to 20 hard disks using four enclosures. Even a single 5-bay, RAID 5 can support a 4TB volume using inexpensive 1TB hard disks. Larger hard disks are also supported. This option provides more hard disk mounting options and costs about the same as the Apple RAID 5 card.
    RocketRAID 4322 & Proavio EB8MS
    Another option is the HighPoint RR 4322. The controller supports RAID levels 0, 1, 3, 5, 6, 10, 50, hot spare and JBOD configurations. While more expensive, the RocketRAID 4322 adds RAID 6, SAS compatibility and supports an 8-bay enclosure like the Proavio EB8MS.
    http://www.amug.org/amug-web/html/amug/reviews/articles/highpoint/4322/
    http://www.proavio.com/eb8ms.html
    RocketRAID 4322 & Enhance UltraStor RS16 JS
    Another amazing performance option is the RR 4322 matched with the Enhance UltraStor RS16 JS. This 16-bay configuration provides high performance and supports large volume sizes. When AMUG tested this configuration with 16 Samsung 1TB hard disks in RAID 6 mode the volume size was 11.8TB and the average write performance across the volume was 696MB/sec. while the average read performance was 833MB/sec.
    http://www.amug.org/amug-web/html/amug/reviews/articles/highpoint/4322/
    http://www.amug.org/members/reviews/articles/enhance/rs16js/
    Have fun!

Maybe you are looking for