Problem by doing a query on MySQL using dblink

Good Morning,well,the DBLink works perfectly,but if the field in the MySQL DB is type TEXT(CLOB) throw the next error:
ORA-28500: la conexión de ORACLE a un sistema no Oracle ha devuelto este mensaje:
[Generic Connectivity Using ODBC]DRV_BlobRead: DB_ODBC_ENGINE (1489): ; [MySQL][ODBC 5.1 Driver][mysqld-5.1.30]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"CUSTOM_VALUES" WHERE "id"=16' at line 1 (SQL State: 37000; SQL Code: 1064)
ORA-02063: 2 lines precediendo a MYSQLDB
28500. 00000 - "connection from ORACLE to a non-Oracle system returned this message:"
*Cause:    The cause is explained in the forwarded message.
*Action:   See the non-Oracle system's documentation of the forwarded
message
Thank you
Edited by: 812419 on 18-ene-2011 0:41

Hi,
You are hitting a known problem with the MySQL ODBC driver and 10g HSODBC which is discussed in this note on My Oracle Support -
Problems Selecting Mysql Blob Data Using Hsodbc - Error In Your SQL Syntax          (Doc ID 739274.1)
There are 3 workrounds -
a) convert the affected column to a char or varchar column in MySQL.
b) use the Openlink ODBC driver. This is available from -
http://download.openlinksw.com/
c) create a view in MySQL which uses the 'CAST' function to convert the affected column to char. As an
example for a BLOB -
create view test_blob_v as select col1, cast(col2 as char) as col2 from test_blob ;
Then select from the view in Oracle -
select * from test_blob_v@mysql ;
========
If you are using 10g HSODBC you should migrate to 11g Database Gateway for ODBC (DG4ODBC) as 10g HSODBC is now desupported and DG4ODBC is the replacement product.
Regards,
Mike

Similar Messages

  • Query from oracle to MySql using dblink fetch all the rows in MySql table

    Hello,
    I am using Heterogeneous connectivity between oracle 10204 to Mysql database.
    I have a database link in the oracle side .
    I am query a table in MySql that have 10 million rows.
    Its doesnt matter if i am running :
    select * from "CDR_Accounts"@mysql where "id"=7675405;
    or
    select * from "CDR_Accounts"@mysql ;
    There is an index on the id column.
    Yet, it seems that the Mysql is feteching all the rows from the table , all the data is transfering to oracle over the dblink , and only after that the requested rows are get back to the client.
    The /etc/odbcinst.ini file is as follow:
    [odbcprd:oracle@odbc /software/oracle]$ cat /etc/odbcinst.ini
    [myodbc3]
    Description             = Mysql connector to mysql version 3.5
    Driver          = /software/oracle/MysqlOdbc/3.52/lib/libmyodbc3-3.51.25.so
    Driver64                = /usr/lib
    Setup           = /software/oracle/MysqlOdbc/3.52/lib/libmyodbc3S-3.51.25.so
    Setup64         = /usr/lib
    UsageCount              = 1
    CPTimeout               = 3600
    CPReuse         = Please advice
    Thanks

    When using a gateway it is always possible that a where clause is not sent to the remote database. This is called post processing and depends on several factors like the used ODBC driver, the columns and its data types but also if you specify certain functions in the where clause.
    The fastest way to see if post processing happens is in Oracle 11g the explain plan for a query. In 10g the plan does not always match the statement sent to the foreign database. Here it would be better to enable gateway tracing and setting the trace level to ON. This will log the statements sent to the foreign database and you can compare what statement was sent with the statement you've tried to execute.

  • Problems while doing a rollback on MQSeries using a java client

    Hi,
    I'm new to using MQSeries with Java client. I have a kind of similar problem. I have a set of messages in a Queue. When i'm doing a rollback on certain message it's returing to the same pointer where it had come from in the queue. When i'm iterating through the messages in the queue using a for loop, the same message is again retireved. So, i tried to set the setMQGMO_MARK_SKIP_BACKOUT flag to true. But i'm getting an RequestException with error code 2046: MQRC_OPTIONS_ERROR
    Any help on this would be highlly appreciated.
    I'm pasting the code snippet below.
    Class X {
    public void receive(
    com.stc.connector.webspheremqadapter.message.IMessage input, com.stc.connector.webspheremqadapter.message.IMqOtd
    MQSeries_1){
    int msginqueue = MQSeries_1.getCurrentDepth();
    String corrID = "";
    byte[] corrIDInputArray = input.getMsgHeader().getCorrelationId();
    String corrInputID = (new String( corrIDInputArray )).trim();
    for (int i = 0; i < msginqueue; i = i + 1) {
    MQSeries_1.getQueue().getGMO().setMQGMO_SYNCPOINT( true );
    MQSeries_1.getQueue().getWithOptions();
    byte[] corrIDArray = MQSeries_1.getMessage().getMsgHeader().getCorrelationId();
    corrID = (new String( corrIDArray )).trim();
    if (corrID.equalsIgnoreCase( corrInputID )) {
    MQSeries_1.commit();
    } else {
    MQSeries_1.getQueue().getGMO().setMQGMO_MARK_SKIP_BACKOUT( true );
    MQSeries_1.backout();
    }

    I agree that you should check for a specific axis / tomcat forum (maybe on apache website??;)) anyway ... check the path and classpath you use while building the wsdd file and when running the adminclient, and check the syntax of its invokation

  • Problem in Changing the Query of LOV using Forms Personalisation

    Hi all,
    I have a problem while trying to change the LOV of job field in the people--> assignment form. I am trying to do through forms personalisation. I defined all the rquired fields:
    Following are the description of fields Idescribed in the form Personalisation:
    Trigger Event: WHEN-NEW-FORM-INSTANCE
    in actions tab:
    10-- Built In--Create Record Group With Query
    11-Property----LOV
    Target Object--JOBS
    Property Name--GROUP_NAME
    vALUE--jobs(rECORD gROUP NAME created above)
    It is validated successfully,
    but when trying to open the form it is giving an error 'cannot create record group jobs'..
    Can anybody help me with this..
    Thanks and Regards
    Raj

    I found that there is no problem with code. My problem is not technical, its a functional problem.
    It is related to Inventory's "System Items" KFF.
    Can anybody tell me, to this "System Items" KFF, one value set is assigned. but it is of none type of value set. so from where the values in LOV are coming?

  • Query slow due to dblink

    Hi All,
    We are experiencing slow performance for a query which is using dblink.
    Our Database version is 8i
    Our OS is Windows 2000
    the explain plan is as below.
    Explain plan:-
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=7494 Card=1 Bytes=38
    0)
    1 0 SORT (ORDER BY) (Cost=7494 Card=1 Bytes=380)
    2 1 SORT (GROUP BY) (Cost=7494 Card=1 Bytes=380)
    3 2 HASH JOIN (Cost=7489 Card=1 Bytes=380)
    4 3 MERGE JOIN (CARTESIAN) (Cost=9 Card=17 Bytes=1479)
    5 4 NESTED LOOPS (Cost=8 Card=1 Bytes=63)
    6 5 TABLE ACCESS (FULL) OF 'CATMAP' (Cost=1 Card=1 B
    ytes=14)
    7 5 TABLE ACCESS (BY GLOBAL INDEX ROWID) OF 'DOCPART
    EXT' (Cost=7 Card=1 Bytes=49)
    8 7 INDEX (RANGE SCAN) OF 'DOCPARTEXT_I10' (NON-UN
    IQUE) (Cost=3 Card=1)
    9 4 SORT (JOIN) (Cost=2 Card=17 Bytes=408)
    10 9 TABLE ACCESS (FULL) OF 'PARTGROUP' (Cost=1 Card=
    17 Bytes=408)
    11 3 REMOTE* (Cost=7311 Card=1161896 Bytes=340435528) PRICE
    11 SERIAL_FROM_REMOTE SELECT "PARTID","PARTGROUP","PARTDESCRIPTION
    ","IMAGEFILENAME" FROM "DIST"."
    Statistics
    18 recursive calls
    14 db block gets
    38130 consistent gets
    378 physical reads
    172 redo size
    65623 bytes sent via SQL*Net to client
    2983 bytes received via SQL*Net from client
    25 SQL*Net roundtrips to/from client
    3 sorts (memory)
    0 sorts (disk)
    360 rows processed
    The above query sometimes execute in 2 seconds and sometimes it takes almost 150 secs
    Please advice how to tune this query.
    Regards,
    ang

    Hi Anurag,
    I found below stuff in system wait events.
    EVENTS Total Waits
    SQL*Net message to client     112838591     0     0     0
    SQL*Net message to dblink     297216585     0     0     0
    SQL*Net more data to client     7965780     0     0     0
    SQL*Net more data to dblink     2207     0     0     0
    SQL*Net message from client     112838213     0     0     0
    SQL*Net more data from client     525083     0     0     0
    SQL*Net message from dblink     297216585     0     0     0
    SQL*Net more data from dblink     94103530     0     0     0
    SQL*Net break/reset to client     10115895     0     0     0
    SQL*Net break/reset to dblink     41218     0     0     0
    Above are the highest wait events in v$system_event.
    Regards,
    Ang

  • Problem of Query Chinese words in MySQL using Java (Servlet java)

    In my servlet, if I build in this sql inside ,
    SELECT * FROM table WHERE location='Chinese word here'
    It outputs nothing!
    if i change the 'Chinese word here' to English,it have result!
    But if I query in mysql, i can
    If the 'Chinese word here' is get in a form, (ie 'Chinese word here' is got by req.getParameter but not built in), it can display result, why???

    Hi hlj_zhj
    Oh your method works, I change the Gb2322 to Big5,
    and I have a question about your "return shift", shift is not defined in your part of programme, so I change to follows:
    private String getISO(String gbstr){
    String temp=null;
    try{
    String temp_p = gbstr;
    byte[] temp_t = temp_p.getBytes("Big5");
    temp = new String(temp_t, "ISO8859-1");
    catch(Exception e){}
    return temp;
    ANOTHER question, Some of my BIG5 words contains "Hong Kong Words,eg:�`������", therefore, using temp_p.getBytes("Big5") not work in this case, do you have any suggestion in this case? thanks

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • Good night recently my iphone 4s was exchanged for a new one because was defective and was in warranty. the problem is that now I try to use the same apple id on itunes and applications while had bought the old iphone does not appear and I think should ap

    good night recently my iphone 4s was exchanged for a new one because was defective and was in warranty. the problem is that now I try to use the same apple id on itunes and applications while had bought the old iphone does not appear and I think should appear. Can someone help?

    ?

  • I don't know of there is anyone than can fix this age old Apple problem.   Does anyone know how to retrieve things under an old Apple ID when the email used for that account no longer exists? I am trying to update a number of apps that was bought under an

    I don't know of there is anyone than can fix this age old Apple problem.   Does anyone know how to retrieve apps under an old Apple ID when the email used for that account no longer exists &amp; I can't remember the password? After speaking with Apple Acct. Security, I got the security Q right but my birthday was wrong! They wanted the serial number from my phone that was 3 iPhones ago! Seriously??!!
    Any updated way to work around this? No Apple people can correct it.
    Thanks,
    Joe

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (122986)

  • HT1947 Does anyone else have my problem with atv3? Plays films in iTunes without any problems but on music every time I use the remote app on my iPhone 3GS it stops playing after around 5 tracks in. Anyone having this problem?

    Does anyone share my problem with atv3 I can play films through iTunes without any problems. When I start playing music using the remote app on my iPhone 3GS after around 5 tracks in it just stops playing and seems to lose my connection. Hoping this is human error on my part?

    I think this is probably a sign that your network could be better than it is.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first.

  • I have a 17" Macbook pro with flickering red and cyan(blue) lines across the screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem.

    I purchased my Macbook (17") through a certified apple tecnition in August 2012, it was refurbished and the motherboard was completely replaced. I do a lot of photo editing, but I have been unable to do so because of the red vibrating lines that interrupt my screen. The issue disappears temporarily when I tap on the computer, and the problem does not occur when I use external display or try to screen capture the problem. I brought the computer back to the technition I purchased it from and he said that it was a problem with my fan, so I have two new fans but the issue is still occuring. He says he doesnt know whats wrong. Does anyone have any information on this issue?
    Here is an image of the issue
    http://www.flickr.com/photos/67839707@N08/8884847081/

    I recommend having your Mac serviced by someone competent. A force sufficient to "blow apart" the fans was clearly excessive and may have damaged the display cable, as well as any number of other problems.
    Dust is properly cleaned with a vacuum, preferably one designed for computer service, and they are not cheap.
    Compressed air should never be used. It just blows dust everywhere, often into places where it can no longer be removed.

  • Im having problem with the dvd quality, I'm using compressor to convert the video fils from apple prores to mpeg2 .It doesn't matter how long my video is even if its just 5 minutes  I'm getting cut edges in the video , does anyone have any idea ?

    Im having a problem with the dvd quality, I'm using compressor to convert the video fils from apple prores to mpeg2 .It doesn't matter how long my video is even if its just 5 minutes  I'm getting cut edges/lines  in the video specialy if i have titles it comes up really bad , I took the same video to a friend of mine who have PC and he uses Encore , did the encoding there and it was just fine no problems! BTW I tried using doferent setings in compressor from CBR and VBR I even pushed up the setings to 8 or 9 BR and still no luck !
    does anyone have any idea ?
    Thanks in advence ...

    Let's focus attention on just the Sony. (What model and what resolution are you shooting?)
    For now, I'll assume you're shooting 1080i.
    Take a representaive clip  into a new sequence. Add a title.
    In your sequence, make sure field dominance is set to Upper.
    Set render settings to Pro Res 422.
    After rendering, export QT self contained.
    Import into Compressor (I'm now referring to v3.5).
    Select the 90 minute Best quality DVD preset.
    Open frame controls and turn on (click the gear icon). Set Resize filter to Best.
    Submit burn and check quality on TV.
    Good luck.

  • Hi, I wish to buy an Adobe Master Collection CS3 (Corporate Edition) from someone in the US and I hope to use it in the UK. Does anyone know if this can be done without any problems, also does Adobe still allow people to register the CS3 Corporate Edition

    Hi, I wish to buy an Adobe Master Collection CS3 (Corporate Edition) from someone in the US and I hope to use it in the UK. Does anyone know if this can be done without any problems, also does Adobe still allow people to register the CS3 Corporate Edition? any help would be greatly appreciated

    The flaw is here:
    corporate edition
    ...which essentially means it's most likely a volume license and thus not transferable in the first place. The rest is as Steve said - buying software on eBay is risky even on the best of days.
    Mylenium

  • Red Hat Enterprise Linux Test Page - why am I directed to this page when I go to a specific website. It does not happen when I use other browsers so there is not a problem with the website.

    Red Hat Enterprise Linux Test Page - why am I directed to this page when I go to a specific website. It does not happen when I use other browsers so there is not a problem with the website.
    Just started happening yesterday.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Do you see any prefs related to that <b>knoxnews<i></i>.com</b> site on the <b>about:config</b> page if you enter that URL in the Filter?
    *http://kb.mozillazine.org/about:config
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • HT201272 I need to reload some songs as the backup did not include all. Following this article. Problem is that download icon does not appear anywhere. Using iTunes 11.01. Anybody seen this before?

    I need to reload some songs as the backup did not include all. Following this article. Problem is that download icon does not appear anywhere. Using iTunes 11.01. Anybody seen this before?

    Steve!
    There is a lot more "meat" in this .
    I purchased all out of Denmark. My HD crashed and I reload it all. While doing this I had to install new iTunes, - this is the newest version 10.xx. The old version was probbaly 9.xx (cant remember). So the library files are from an old version, - but it does not look like creating a problem. I am now in Sweden, so iTunes was installed in Sweden, and I try to re-download my missing songs while being here in Sweden. However, - I belive I am connected to iTunes store in Denmark. ... (it takes 2 smileys for this, - if you get as far as to here and still have an overview.)

Maybe you are looking for

  • Aspect Ratio Scripting

    I am trying to author a dvd with 16:9 and 4:3 letterbox video & menus. I want the DVD to check the player to see whether the aspect ratio is set to 4:3 or 16:9. This works in all of the set top DVD players I have tried it in(presuming the player and

  • Z10 camera cant be started

    Since my last update, 10.2.0.424, my camera just wont start up. I cant watch any videos either, not even on you tube? Everything was working fine on previous updates. Been sitting with this problem for a month now..waiting for new update to fix this

  • OCI, java.lang.ArithmeticException: / by zero

    Hi, Could someone help me with this? I'm using OCI driver, because database character set is user-defined. There is no problem with connection, but if I open any database objects list or execute any statement I've got this exception: Oracle SQL Devel

  • Need ideas for best audio setup on Q180

    Hello all.  I've got a Q180 and very nice it is too, apart from one major ommision; there is no audio input/output on the rear panel, only on the front.  I want a setup where I can have speakers plugged in to the rear somehow, but also be able to swi

  • [JS  CS3] Apply Italics with scripting

    There's a keyboard shortcut called "Apply Italics", which by default is [cmd]+[shift]+[i] on Mac, and  [ctrl]+[shift]+[i] on Windows. I use it often because it will change text to the correct italic style. For instance text with the style "85 Heavy"