Null values for DB2 are causing problems

Hello
I have another problem with the link to the database to DB2 on IBM iSeries Access for Linux 64-bit OEL5 with gateway database Oracle and unixODBC 2.2.14.
DB link works. However, null values for DB2 are causing problems. "The columns Date null on db2 return a date ' 30.11.0002 ', and the columns of characters that are null return an error ORA-28528: heterogeneous Services data type conversion error.
isql returns the correct results.

How can I fix? May set some parameters for the conversion of the data on the entry door?

Thank you.

If the driver is not fully ODBC level 3 compliant and functions of the spleen, we are lost. But sometimes drivers ODBC level 3 compliant, but lack the correct implementation of 64-bit. In these cases, we can tell the gateway to use the 32-bit ODBC 3 standard adjustment level in the gateway init file:
HS_FDS_SQLLEN_INTERPRETATION = 32

Tags: Database

Similar Questions

  • NULL values for some elements of the XML reading tree

    I am confirming that I interpret correctly all the elements of a custom data XML structure defined by my application (the schema is completely under my control).  Some of the elements in my XML tree are read as NULL values, even if similar items are readind as expected.  I have checked some obvious things like misspelling the names of keys, but have not yet find the problem.  Anyone who has debugged similar questions - what else could cause this?

    Example XML:

    
        1.0.0.0
        1000
        MyAppsName
        
            
                1000
                userDefined
                StructName
            
        
    
    

    And extracted C++ w/comments at the end of each line about what I see (DataManager is my class of CRUD operations):

    In DataManager.hpp:

    QVariant mCustomDataStructsTopLevel;
    QVariantMap mCustomDataStructsTopLevelMap;
    

    In DataManager.cpp:

    mCustomDataStructsTopLevel = mXda.load(Utils::dataFilePath(customDataStructsFileName));  // XmlDataAccess; verified loading w/no errors
    mCustomDataStructsTopLevelMap = mCustomDataStructsTopLevel.toMap();
    
    qDebug() << "appName element value: " << mCustomDataStructsTopLevelMap["appName"]; // Outputs "MyAppsName" as expected
    qDebug() << "lastId element value: " << mCustomDataStructsTopLevelMap["lastId"]; // Outputs null (specifically: QVariant(, ) ) - this is NOT expected
    qDebug() << "appVersion element value: " << mCustomDataStructsTopLevelMap["appVersion"]; // Outputs null (specifically: QVariant(QString, "") )  - this is NOT expected
    

    OK, I got the feeling (and actually hoped) it was a silly mistake of face-palm on my part (compared to a problem of BB10 who had little chance of getting fixed).

    The problem is that I copy the structure of custom data from Starter to my Active dir to my data directory to first install but do not crush him on subsequent launches, as the copy in the data directory is what the user changes and relies on.  I was not a delete and reinstall on each of my iterations, so I wasn't really loading the modified versions of my XML I wanted--just, I was getting a day old stale version which was actually for the items I didn't expect NULL values for nulls.  DOH!

  • Problem of null values for the Variable

    I work with APEX 4.0.  I have a menu page that has a list item widget types to select.  I then a navigation list that calls a report page and sets a widget-type element with the value of the widget on the page called - type element.

    Problem is that type widget on the page called article does not meet.  The report depends directly on this issue being filled.  The url indicates the element in the form of Pxxx_WIDGET_TYPE, but the value for parameter & Pxxx_WIDGET_TYPE. is set to null.  I am also an element of Pxxx_CALLED_FROM filling, which fill, and the url shows the value of & APP_PAGE_ID.

    What's wrong?  How to fill the element of widget_type?

    How do you define value for Pxxx_WIDGET_TYPE? And is there a value in the session state for this item?

    Kind regards

    Vincent

  • Frequent hard drive exchanges are causing problems for activation of Windows 7?

    I am new to Windows 7.    I frequently switch (turn) the hard drive on my system - say every 6 weeks or more.  I use the same set of 2-3 disks and restore my system from a disk image every time when I exchange them.   Change the drive often happens to cause problems with the activation of Windows 7?   Thank you.

    Hi Lone Star,

    Change the hard drive on systems not prompt swap you for activation but after that the HDD on another system if the operating system is validated activation would be asked that the physical address of machines would have changed.

  • Replace NULL values for PIVOT query

    Hello

    I'm working a table for sales, for certain values, when now columns, finishing with a null value. How can I handle these values 0 (zeros).

    WITH (AS PIVOT_DATA)
    SELECT S.ZONE_CODE, Z.ZONE_NAME, S.YEAR, S.PERIOD, S.SALES
    OF STAT_TABLE_SALES ADV
    AREAS OF JOIN Z ON S.COMP = Z.COMP AND S.ZONE_CODE = Z.ZONE_CODE
    WHERE S.COMP = '001'
    AND S.BRAND_CODE = '001'
    )
    SELECT *.
    OF PIVOT_DATA
    PIVOT)
    SUM (SALES) FOR THE PERIOD (YEAR) TO ((20091),
    (2009,2),
    (2009,3),
    (20094)
    (2009,5),
    (2009,6),
    (2009,7),
    (2009.8),
    (2009,9),
    (2009.10)
    (2009,11),
    (2009.12),
    (2010,1),
    (20102)
    (2010,3),
    (2010,4),
    (2010,5),
    (2010,6),
    (2010.7))
    )
    ORDER BY DESC NULLS LAST 14;

    This query returns the following:

    COD_ZONA NOM_ZONA 2009_3 2009_2 2009_1
    -------- ------------------------------ ---------------------- ---------------------- --------------------
    01 YEDUSIJH. 1382367.75 1559943.27 1441279.64
    02 C, ASKAK 711897.82 865854,05 1583232.3
    ASDFG 03 130443.03 205409,84 178633.69
    04 OSOIDSD 320118.32 439008,83 409251.18
    05 ODFSDF 300908.21 276301,59 260188.53
    06 CH 242749.65 325196,71 464938.9
    SOA 07 610312.31 606312,93 754569.82
    08 SAN 89426.8 81360,04 61649.27
    09 YP 284487.79 328281,31 267210.85
    10 TC 87043.28 158594,43 85195.8
    11 BAGNN 76778.78 68180,76 118530.04
    12 CRT 122023.7 143442,21 134744.85
    13 ABC 209992.79 196477,03 185222.14
    IDLIB 14
    15 ARE 23870.41 4137,33 16660.53

    * These are not all the columns and rows, but it is a piece of what it returns.

    How can I replace the NULL values with 0 (zeros).

    Still not sure why nvl shouldn't meet your needs:

    SQL> select ename, nvl (clerk_20, 0) clerk_20, nvl (sal_30, 0) sal_30
      from emp pivot (sum (sal)
               for (job, deptno)
               in ( ('CLERK', 20) clerk_20, ('SALESMAN', 30) sal_30))
    /
    ENAME             CLERK_20          SAL_30
    ---------- --------------- ---------------
    WARD                     0            1250
    JONES                    0               0
    TURNER                   0            1500
    ADAMS                 1100               0
    ALLEN                    0            1600
    SMITH                  800               0
    CLARK                    0               0
    KING                     0               0
    BLAKE                    0               0
    JAMES                    0               0
    FORD                     0               0
    SCOTT                    0               0
    MARTIN                   0            1250
    MILLER                   0               0
    
    14 rows selected.
    
  • How to search by null value for the numeric values in the filter of the fable in adf 11g?

    Method of substitution of applyViewCriteria?
    But what to put as the value for ViewCriteriaRow?

    Hello

    You can add following code to your actionListener or any method call when you want to perform this operation:

    ViewObject view = getViewObject();
    ViewCriteria criteria = view.createViewCriteria();
    
    ViewCriteriaRow row = criteria.createViewCriteriaRow();
    row.setAttribute(attrName, "IS NULL");
    
    criteria.addElement(row);
    view.applyViewCriteria(criteria);
    

    ~ Ahmed

  • null value for the parameter in quesry

    Please help on this problem:

    I have a query like

    Select colA, colB
    from tableA
    where cola =: parameter;

    If: parameter has a value, then the request is ok for my pupposes,
    but when: parameter is null, then I have to choose only 3 values of colA. (ColA has more than 3 distinct values)

    I can't use nvl because there are 3 arguments and no 1.

    I tried:

    Select colA, colB
    from tableA
    where (: parameter is not null and colA =: parameter) or (: parameter is null and colA (1,2,3))

    but this isn't the solution.

    Can someone help me on this simple query?

    Your version must have worked as long as you have no other filter criteria in the where condition.
    Need you some parentheses around the OR condition. So I don't know what was the problem with your solution.
    BTW: There is a ') ' missing at the end, but I guess that it's just a typo while copying the code on the forum.

    The following alternative works:

    select colA, colB
    from tableA
    where colA in (nvl(:parameter,1) ,
                 nvl(:parameter,2) ,
                 nvl(:parameter,3)
                 ) ;
    

    Advantage: Can be faster in the case of null, because it can always use an index on the column of cola.

    Published by: Sven w. on April 13, 2010 15:26

  • LocationProvider.getInstance returns a null value for the positioning of the cell PHONE location

    Hi guys.

    I'm having a problem trying to get a network of cells (MS basis) path to be able to work on my BlackBerry Bold 9000.

    Both assisted and Standalone GPS work (outside of course), but I'll try to find a way to position themselves inside the building.

    Here's what I'm going to put criteria:

    Criteria criteria = new Criteria();
    
    criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);
    criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);
    criteria.setCostAllowed(true);
    criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
    
    LocationProvider.getInstance(criteria); //<-- Returns null on real device
    

    When I run on a real device it gives me always null, when I do the same thing on a simulator, so this works:

    What I am doing wrong? I really need to find a way to make it work inside.

    Thanks for any input.

    Hey, Dominator,.

    I'll be real simple with you and try to make you save a LOT of time.

    Basically, cell tower positioning doesn't work out of the box on the Blackberry platform (except in a few configurations of rare device / carrier). So you can essentially throw the code you have above. If you need a place inside detection, you will need access to a database of celltowerId. These databases contain information from the Tower (Rad_error_nocontent, mnc, mcc, Lake) and its approximate location (lat/lng coordinates). This will give your application a rough estimate (less than a mile or two) from the current location of the device.

    Open source and professional databases are available. This is an open source database that runs on GSM networks (of course, he didn't 100% coverage of all the pylons). The biggest downfall is that it does not support CDMA (Sprint/Verizon) networks.

    http://openCellId.org

    You will find that most of the people on this forum are not very useful when it comes to cellTower information, positioning so you will need to research, research, research.

    Good luck

  • If someone created a "save file" for Firefox, would cause problems?

    I had various problems (first to lose some of my FF icons, for example jpeg), now I have problems with
    my e-mail because the 'precarious' icons are appearing on most of the emails that have images. I've reached the point where I
    feel that I can't send these emails, etc..

    Noticed on the information menu "Refresh" here that if a 'refresh' is the fact that 'old data Firefox' on the desktop should be
    deleted. I DID NOT a DISCOUNT, HOWEVER THERE EXISTS a FILE ON THE DESKTOP "old Firefox data NAMED" inside and out
    There is a file named "." lxrajum2.default ".

    This package contains about 32 MB of information FF. I suspect that a computer scientist could possibly create a "backup file."
    I tried to do a 'print screen', failed however

    I HOPE THAT THE REMOVAL OF THIS FILE, OR UNINSTALL FIREEFOX AND RELOCATION WILL SOLVE MY CURRENT DILEMMA. I DON'T WANT TO LOSE FIREFOX.

    Hi Boudica
    I wrote in one of my replies above: uninstall and reinstall of Firefox or by creating a new profile will not help.

    I did not explicitly mention a reset/refresh, but a discount creates a new profile and attempting to transfer data to the new profile.

    It's really a problem of Yahoo and you could only solve this problem by blocking the content involved a content by blocking the extension Adblock Plus to uBlock for example.
    But I don't know what content they are everything and I do not use an extension of myself.

  • Number of rows in each partition is displayed with a NULL value for a table partitioned in user_tab_partitions. Why?

    I created a table and partitioned on the date of the entry and added a local partitioned index.

    Now, I use a query to extract "num_rows" of user_tab_partitions to know the number of rows in each partition.

    Getting this value as null num_rows, wonder why?

    After looking to explain the Plan after interrogation ("select * from my_table1 where entry_date = 1 January 2015" ;))

    to find out if she actually partitioned table and its data in different partitions, I interpreted in effect because the query plan had a line like Partition_range (Single).

    My Question is:

    (a) is actually partitioned data (have I misinterpreted the Explain plan)

    (b) why is the num_rows null column in the query (Pasted below)

    (c) also in addition what difference it would have been if I had created a Global Index instead of the Local Index in my case?

    The following code Snippet:

    ----------------------------------------------------------------------------------------------

    create the table my_table1
    (
    roll_no number constraint my_table1_pk primary key,
    date of entry_date
    )
    partition of range (entry_date)
    (
    PARTITION data_p1 VALUES LESS THAN (TO_DATE (December 31, 2014 ',' DD-MM-YYYY ""));
    PARTITION data_p2 VALUES LESS THAN (MAXVALUE)
    );


    create an index only my_table1_indx on my_table1 (entry_date) local;

    ----------------------------------------------------------------------------------------------

    I now insert two lines:
    insert into my_table1 values (1, to_date ('01-01-2015', ' dd-mm-yyyy'));
    insert into my_table1 values (2, to_date('01-02-2015','dd-mm-yyyy'));

    ----------------------------------------------------------------------------------------------

    These have been inserted successfully, now using the query below shows num_rows column as null. I don't know why?

    SELECT table_name, num_rows, high_value, nom_partition
    Of user_tab_partitions
    where table_name = 'MY_TABLE1 '.
    ORDER BY table_name, nom_partition;

    ----------------------------------------------------------------------------------------------


    (a) is actually partitioned data (have I misinterpreted the Explain plan)

    Yes, it is partitioned. You can query this particular partition SELECT * FROM my_table1 (data_p1) PARTITION to check that.

    (b) why is the num_rows null column in the query (Pasted below)

    As already mentioned that you have not collected statistics.

    (c) also in addition what difference it would have been if I had created a Global Index instead of the Local Index in my case?

    In fact, you have created two types of indexes without knowing (can be)! One is not partitioned (although this column is not partition key) and another is partitioned (LOCAL). They are MY_TABLE1_PK and MY_TABLE1_INDX. You can check that USER_INDEXES.

    You can read this article to get an early jump on the partitioning of decision. Partition: Partition decisions

  • replace NULL values for not null values prior

    Hi all

    I want to set to Null to override value not zero preious available. data are sorted by column Date DT
    WITH 
    TEMP AS (SELECT SYSDATE DT, 1005 ID1, NULL ID2 FROM DUAL    
    UNION ALL
    SELECT SYSDATE+1 DT, 1005    , NULL ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+2 DT, 1006,    1005 ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+3 DT, 1006    , NULL ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+4 DT, 1007,    1006 ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+5 DT, 1007    , NULL ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+6 DT, 1007    , NULL ID2 FROM DUAL
    UNION ALL
    SELECT SYSDATE+7 DT, 1006,    1007 ID2 FROM DUAL
    )
    SELECT * FROM TEMP
    I want the output voltage:
    DT                     ID1      ID2     
    1/6/2012 9:54:11 AM    1005    NULL
    1/7/2012 9:54:11 AM    1005    NULL
    1/8/2012 9:54:11 AM    1006    1005
    1/9/2012 9:54:11 AM    1006    1005
    1/10/2012 9:54:11 AM    1007    1006
    1/11/2012 9:54:11 AM    1007    1006
    1/12/2012 9:54:11 AM    1007    1006
    1/13/2012 9:54:11 AM    1006    1007
    time added so far can be ignored.

    Thanks in advance.

    ... Vivek
    WITH temp AS (
    SELECT SYSDATE DT, 1005 ID1, NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+1 DT, 1005    , NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+2 DT, 1006,    1005 ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+3 DT, 1006    , NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+4 DT, 1007,    1006 ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+5 DT, 1007    , NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+6 DT, 1007    , NULL ID2 FROM DUAL UNION ALL
    SELECT SYSDATE+7 DT, 1006,    1007 ID2 FROM DUAL
    )
    SELECT dt, id1, last_value(id2 ignore nulls) over(order by dt) as id2
    FROM temp
    ORDER BY dt
    ;
    
  • Why is-V$ SESSION. SQL_ID null value for a session ACTIVE?

    Hello

    On a 11.2.0.1 database of our developers connected a select in two sessions (SQLDeveloper). The following SELECT statement is currently being run for more than 4 hours, and if I check the session $ v (3 times), I see this:
    SQL>select sid, status, sql_id, sql_address, sql_hash_value, sql_child_number, sql_exec_start, prev_sql_id, last_call_et, event
      2    from v$session
      3   where sid in (1169,38)
      4  /
    
           SID STATUS   SQL_ID        SQL_ADDRESS      SQL_HASH_VALUE SQL_CHILD_NUMBER SQL_EXEC PREV_SQL_ID   LAST_CALL_ET EVENT
    ---------- -------- ------------- ---------------- -------------- ---------------- -------- ------------- ------------ ------------------
            38 ACTIVE   a38wzrs19h8a2 07000001924E8838       43524418                0 28.06.11 gyytuvyfffj9c        15343 direct path read
          1169 ACTIVE                 00                            0                           gt39fjdj5z9za        15430 direct path read
    
    SQL>/
    
           SID STATUS   SQL_ID        SQL_ADDRESS      SQL_HASH_VALUE SQL_CHILD_NUMBER SQL_EXEC PREV_SQL_ID   LAST_CALL_ET EVENT
    ---------- -------- ------------- ---------------- -------------- ---------------- -------- ------------- ------------ ------------------
            38 ACTIVE   a38wzrs19h8a2 07000001924E8838       43524418                0 28.06.11 gyytuvyfffj9c        15471 direct path read
          1169 ACTIVE                 00                            0                           gt39fjdj5z9za        15558 kfk: async disk IO
    
    SQL>/
    
           SID STATUS   SQL_ID        SQL_ADDRESS      SQL_HASH_VALUE SQL_CHILD_NUMBER SQL_EXEC PREV_SQL_ID   LAST_CALL_ET EVENT
    ---------- -------- ------------- ---------------- -------------- ---------------- -------- ------------- ------------ -------------------
            38 ACTIVE   a38wzrs19h8a2 07000001924E8838       43524418                0 28.06.11 gyytuvyfffj9c        15499 kfk: async disk IO
          1169 ACTIVE                 00                            0                           gt39fjdj5z9za        15586 kfk: async disk IO
    I checked V$ SESSION several times and you can see the wait events change over time, so the two sessions are really ACTIVE.

    The question I have is this: how is it possible that the session 1169 a STATUS = 'ACTIVE' and at the same time a SQL_ID null (or if I ask the same question: How can I get the SQL code 1169 session is running, given that his State is ACTIVE)?


    Thanks in advance for your comments.

    Kind regards
    Swear

    If you are fired for Diagnostic pack, look at V$ ACTIVE_SESSION_HISTORY sql_id, top_level_sql_id, plsql_entry_object_id, plsql_entry_subprogram_id, plsql_object_id, plsql_subprogram_id.

    It's sampled data.

    In addition, if there is anything in there after a certain interval to look into DBA_HIST_ACTIVE_SESS_HISTORY (also requires the same additional license). This is another sample (1/10 by default) of the sampled data kept for 7 days by default.

    Ash can provide a nice overview of what a session has been done in the immediate past

  • May duplicate Applications files are causing problems?

    In the Finder, if I choose my device, Macintosh HD and then choose Applications, I find another folder of Applications with an arrow in the lower left corner listed which, when selected, opens a duplicate of the previous Applications folder.  If I choose then this force of Finder Applications folder closes unexpectedly.  This doesn't seem fair.

    My computer works fine with the exception of my banking (Banktivity 5) program. I had several copies of this in several cases of nominations, and I wonder if these multiple application folders might be the cause of my problem with Banktivity.  I upgraded to El Capitan 10.11.4.

    An arrow in the corner means generally that it is an 'alias' - a pointer back to another folder. Therefore a pointer inside a folder that points to its enclosing folder. Understandbly, the Finder can get into a State of such recursive links.

    You should be able to delete the alias without any problem. But you'll have a backup in all cases, of course!

  • Your last update won't let me connect on Yahoo Messenger. No problem with IE. How can I fix it? I don't like the updates that are causing problems. If it isn't broken don't fix it

    I am unable to use Yahoo Messenger when connected to Firefox. Mail works but not the Messenger. I received notice of message, but when I try to open the message and answer, nothing happens. Or to start a conversation. I tried to use IE and all Yahoo services work fine, so the problem is with your last update. I want to reinstall the previous version. You should not automatically updated versions if problems of this kind will happen. Please respond with a fix.

    A light 'work around' If you know what the contact to discuss with you...

    Keep a tab of discussion open for them. If there is already a tab open, chat works very well.

    When you click on their name, two tabs will appear - one showing a constant loading "dial". Close that one. Then just keep the other open tab.

    I know it's not practical if you have many contacts who chat with you, but if you have just a couple, it's at least a possibility to discuss with them by E-mail.

  • swfBridge has the null value for application responsible brother

    Hi all

    With the multi version found, I had to load SWF as a brother.

    Test sending an event via swfBridge but the property has the value null?

    Parent compiled with 4.0

    under app is 3.2

    <! - automatic charge if mxml - >
    < mx:SWFLoader id = "testApp".
    loadForCompatibility = 'true '.
    trustContent = 'true '.
    Width = "100%" height = "100%".
    source = "TestAppWithPlayback.swf"
    Complete = "swfComplete (); "/ >

    < mx:Button id = "buttonEvent".
    label = "Send Event"
    Click = "sendLoad (Event)" / > "

    public function sendLoad (event: MouseEvent): void
    {
    trace ("sendLoad()");

    Send event
    var allowedToReadSibling:Boolean = testApp.childAllowsParent;
    var loadEvent:LoadCaptureEvent = new LoadCaptureEvent();
    testApp.swfBridge.dispatchEvent (loadEvent);
    }

    Thanks in advance

    In 4.0, you need to add the option in MXMLC

    -includes = mx.managers.systemClasses.MarshallingSupport

Maybe you are looking for