ORA-28500 + 'String data, right truncation' when selecting nvarchar (max)

Hello

I was able to put in place a db Oracle 11.2.0.1 link to SQL Server 2005 using DG4ODBC.

When you try to select a column with the data type of nvarchar (max) in the db link I get the following error:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}
ORA-02063: preceding 2 lines from SQLSERVER_DBLINK
The actual data in the column do not exceed 31 characters, but the application still does not work.

Any suggestions?
Thank you.

checked with DataDirect ODBC driver that returns for col2 = nvarchar (max) and col3 = varchar (max)

Entry hgopcda at 2010/12/23-11: 55:17
Column:2 (col2): dtype:-10 (WLONGVARCHAR), prc / scl:1073741823 / 0, nullbl:1, radix: 0 byte: 2147483647, sign: 1
Out of hgopcda, rc = 0 to 2010/12/23-11: 55:17
SQLFetch ENTER [1 args]
I [0] StatementHandle: h0x0816ff40
---> RC = 0 (TRC = 0)
OUTPUT SQLFetch [1 args]
I [0] StatementHandle: h0x0816ff40
Entry hgopcda at 2010/12/23-11: 55:17
Column:3 (col3): dtype:-1 (LONGVARCHAR), prc / scl:2147483647 / 0, nullbl:0, radix: 0 byte: 2147483647, sign: 1
Out of hgopcda, rc = 0 to 2010/12/23-11: 55:17

This driver correctly fills the buffer (0 no equal) and function of the buffer the gateway decided to map it to:
DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
12 Y VARCHAR 20 20 0 / 0 0 0 200 col1
-1 LONGVARCHAR Y 0 0 0 / 0 0 0 220 col2
-1 LONGVARCHAR Y 0 0 0 / 0 0 0 220 col3

and in Oracle when performing a describe statement I see the column as LONG.

This type of mapping from nvarchar to LONGVARCHAR works in Dg4ODBC if the Oracle DB character set = Unicode. => and you meet this requirement.

==>> If it looks like a driver problem, and it might be useful to use a different driver.

Published by: kgronau on December 23, 2010 12:02

Tags: Database

Similar Questions

  • Get ORA-28562 with link of database when select NULL via ODBC

    Hello

    This is my first post of the time issue in this community.  Apologies if this isn't the right place to start and lease let me know where to post this instead.

    I have a database link to connect via odbc to Ingres.  Everything works as expected but when I try to select ODBC (HS), where the column is NULL, it returns the error:

    Select * from mynull@ingres;

    ORA-28562: heterogeneous Services data truncation error

    ORA-02063: preceding line of INGRES

    This is the track that counts:

    hgoftch2, line 139: print hoada @ 0xe55288

    MAX: 1, SIZE: 1, BRC:1, WHT = 5 (SELECT_LIST)

    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)

    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME

    VARCHAR Y 1 1 12 0 / 0 0 0 200 col1

    SQLFetch: rank: 1, column 1, bflsz: 2, bflar:-1

    SQLFetch: rank: 1, column 1, bflsz: 2, bflar: SQL_NULL_DATA

    1 lines read

    Here's the hsinit:

    #

    # HS init parameters

    #

    HS_FDS_CONNECT_INFO = rd-cdsuat02

    HS_FDS_TRACE_LEVEL = DEBUG

    HS_FDS_TRACE_LEVEL0 = 255

    #HS_FDS_FETCH_ROWS = 1

    HS_FDS_SHAREABLE_NAME = /opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so

    HS_LANGUAGE = AMERICAN_AMERICA.we8iso8859P1

    #HS_KEEP_REMOTE_COLUMN_SIZE = REMOTE

    #

    # ODBC specific environment variables

    #

    Set ODBCINI=/opt/Ingres/IngresII/ingres/files/odbc.ini

    The values in the table mynull on the side of Ingres is added as follows:

    create table mynull (col1 char (1) with the null value);

    insert into mynull values (NULL);

    The idea is to use the database link to convert the Ingres on Oracle data.  I have the tables all created and copied 90% of the data, but stuck with all the data that has NULL values in it.  Can someone tell me what I did not right?

    Thank you

    HY

    Hi Mike,.

    Thanks for spending the time to answer my question.  Just to let you know that I discovered that I need to add this in my hs init file:

    HS_FDS_SQLLEN_INTERPRETATION = 32

    This solved the problem I have.  Now, I get NULL value correctly.  Before closing the issue, here is the info you requested.  Thanks again for the help.

    1. you use DG4ODBC to connect to Ingres?  If so, what is the version?

    Yes, not sure about the version that is part of the Oracle 12 C.
    2. What is the name and the version of the ODBC of Ingres driver that you use?

    The driver name is Ingres and version: 3.50.1010.0137

    3. What is returned by - describe "mynull"@gtw_link ".

    -do not put a semicolon at the end of the describe.

    02:04:21 wswmvzwd [SYS] > describe mynull@ingres

    Name                                                                               Null?    Type

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

    col1                                                                                VARCHAR2(1)

    4. what happens if you use NVL in the selection from Oracle?

    Previously, it is fixed:

    12:15:39 wswmvzwd [SYS] > select * from mynull@ingres;

    ERROR:

    ORA-28562: heterogeneous Services data truncation error

    ORA-02063: preceding line of INGRES

    no selected line

    Elapsed time: 00:00:00.13

    After it is fixed (added HS_FDS_SQLLEN_INTERPRETATION = 32):

    12:17:03 wswmvzwd [SYS] > select nvl ("col1", 'NULL') of mynull@ingres;

    NVL)

    ----

    NULL VALUE

    A

    NULL VALUE

    5. you have-
    HS_FDS_SHAREABLE_NAME = /opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so

    -is the Ingres driver or a driver manager libiiodbcdriver.1.so?

    Ingres driver
    -If the pilot can you confirm it offers the features of driver as Manager?

    Yes, I was able to check it out since the Manager ODBC INgres for the test.

    6. can you upload a track of comprehensive gateway somewhere so that see us? Use-

    HS_FDS_TRACE_LEVEL = 255

    for the trace.

    Since it is resolved, I'll ignore it.  Part of the debugging information is in the original post.

    Thanks again Mike, really appreciated.

    HY

  • ORA-00907: lack the right parenthesis when using Group by clause with xmlagg

    I have the following query and I am getting ORA-00907 error when I use the clause with the xmlagg function group.
    select xmlelement("Mitigation",
                    xmlelement("m_szMethodName",tm.DisplayName),
                    xmlelement("SubstanceInterferenceProtocolList",
                                (select xmlagg(xmlelement("MitigationProtocol",
                                        xmlelement("m_szMethodName",tm.DisplayName),
                                        xmlelement("m_szInterferenceProtocolName",tmp.protocol_name),
                                        xmlelement("m_szInterferenceSubstance",tmp.intf_mtrl_prod_code),
                                        xmlelement("m_ProtocolParameters",
                                            xmlelement("m_szProtocolName",tmp.protocol_name),
                                                xmlelement("m_Consumables",
                                                    xmlelement("Consumable",
                                                        xmlelement("m_szConsumId", xrl.rgnt_pack_name),
                                                        xmlelement("m_szProductCode",xrl.pack_prod_code),
                                                        xmlelement("m_nVolume",tmp.fluid_vol),
                                                        xmlelement("m_szProtocolStep",xps.protocol_step_name))),
                                                    xmlelement("m_ProtParamList",
                                                        xmlagg(
                                                        xmlelement("ParameterValues",
                                                            xmlelement("m_szProtocolName",tmp.protocol_name),
                                                            xmlelement("m_Time",xpsd.parameter_ntime_value))
                                                        group by tmp.ccd_test_id,tmp.intf_mtrl_prod_code)
                    )))
                    order by tmp.ccd_test_id, tmp.intf_mtrl_prod_code, xps.protocol_step_intprotocolstep )
                    from XPR_tdef_mitigation_protocol tmp, xp_reagentlist xrl,
                    xpr_protocol_settings xps, xpr_protocol_settings_default xpsd
                    where tmp.ccd_test_id = tm.ccd_test_id
                    and tmp.ccd_test_id = xrl.ccd_test_id
                    and tmp.pack_prod_code = xrl.pack_prod_code
                    and tmp.intf_type = 1
                    and xps.protocol_name = xpsd.protocol_name
                    and xps.protocol_step_name = xpsd.protocol_step_name
                    and xps.ps_action_parameterlist = xpsd.ps_action_parameterlist
                    and xps.protocol_name =  tmp.PROTOCOL_NAME
                    )))
    from XPtoXPRTdef_defn_mapping tm
    where tm.DisplayName = 'SYPH'
    If I remove the clause xmlagg and the group by clause, the query works well and not give me the result.
    But in this code XML, the output format is incorrect for my application.

    Could someone help out here?

    Now my problem is that this unique coating is more than 32767 characters and utl_file can write 32767 bytes per line.
    Someone deal with this?

    Serialize the output as CLOB and DBMS_XSLPROCESSOR.clob2file procedure used to write to a file:

    DECLARE
      xml_output CLOB;
    BEGIN
      SELECT XMLElement("Department",
               XMLAgg(
                 XMLElement("Employee",e.job_id||' '||e.last_name)
                 ORDER BY e.last_name
               )
             ).getClobVal() AS "Dept_list"
      INTO xml_output
      FROM hr.employees e
      WHERE e.department_id = 30 OR e.department_id = 40;
    
      DBMS_XSLPROCESSOR.clob2file(xml_output, 'XML_DIR', 'test.xml');
    END;
    /
    
  • ORA-01403: no data found

    Hello

    The following procedure works fine when the select statement returns a line.
    However, it creates "ORA-01403: no data found" error when no data is returned for select.

    When I put the following exception after select it, It doest go inside the if block. (It stops after selection). Do not know why.
    exception
    when NO_DATA_FOUND then null;
    How can I set an exception for this?
    CREATE OR REPLACE PROCEDURE kill_blocking
    IS
    l_sid number(10); 
    l_serial number(10);
    l_wait number(10);
    l_username varchar2(20);
    sqlStmt VARCHAR2(1000);
    BEGIN
    
    SELECT s1.sid,s1.serial#,s2.seconds_in_wait,s2.username
    into l_sid,l_serial,l_wait,l_username
    FROM v$lock l1, v$session s1, v$lock l2,v$session s2,v$sql sqlt1, v$sql sqlt2
    WHERE s1.sid =l1.sid
    AND s2.sid =l2.sid AND sqlt1.sql_id= s2.sql_id AND sqlt2.sql_id= s1.prev_sql_id AND l1.BLOCK =1
    AND l2.request > 0 AND l1.id1 = l2.id1 AND l2.id2 = l2.id2;
    
    if l_username='APP' and l_wait > 100
    then 
    sqlStmt := 'ALTER SYSTEM KILL SESSION ''' || TO_CHAR(l_sid) ||',' || TO_CHAR(l_serial) ||'''' ;
    dbms_output.put_line( sqlStmt );
    
    EXECUTE IMMEDIATE sqlStmt;
    
    
    END IF;
    END;
    / 

    Check this box

    SQL> CREATE OR REPLACE PROCEDURE kill_blocking IS
      2     l_sid        NUMBER (10);
      3     l_serial     NUMBER (10);
      4     l_wait       NUMBER (10);
      5     l_username   VARCHAR2 (20);
      6     sqlstmt      VARCHAR2 (1000);
      7  BEGIN
      8     SELECT s1.SID, s1.serial#, s2.seconds_in_wait, s2.username
      9       INTO l_sid, l_serial, l_wait, l_username
     10       FROM v$lock l1,
     11            v$session s1,
     12            v$lock l2,
     13            v$session s2,
     14            v$sql sqlt1,
     15            v$sql sqlt2
     16      WHERE s1.SID = l1.SID
     17        AND s2.SID = l2.SID
     18        AND sqlt1.sql_id = s2.sql_id
     19        AND sqlt2.sql_id = s1.prev_sql_id
     20        AND l1.BLOCK = 1
     21        AND l2.request > 0
     22        AND l1.id1 = l2.id1
     23        AND l2.id2 = l2.id2;
     24
     25     IF l_username = 'APP' AND l_wait > 100
     26     THEN
     27        sqlstmt :=
     28              'ALTER SYSTEM KILL SESSION '''
     29           || TO_CHAR (l_sid)
     30           || ','
     31           || TO_CHAR (l_serial)
     32           || '''';
     33        DBMS_OUTPUT.put_line (sqlstmt);
     34
     35        EXECUTE IMMEDIATE sqlstmt;
     36     END IF;
     37  EXCEPTION
     38     WHEN NO_DATA_FOUND
     39     THEN
     40
     41        DBMS_OUTPUT.put_line ('No Data Found');
     42  END;
     43  /
    No Data Found
    
    PL/SQL procedure successfully completed.
    
  • Select this OPTION to generate XML data from the table using XMLELEMENT, XMLAGG gives error ORA-19011 string buffer too small

    My select statement fails with the error:


    The ORA-19011 string buffer too small


    The select statement looks like:


    SELECT TO_CLOB)

    XMLELEMENT ("accounts",

    XMLELEMENT ("count",

    XMLATTRIBUTES)

    rownum AS "recordId."

    To_date('20130520','YYYYMMDD') AS "datestarted."

    123456 AS "previousBatchId."

    56789 AS 'previousRecordId '.

    ),

    ....

    .... .

    .....

    XMLFOREST)

    SIG_ROLE AS "SignatoryRole."

    To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."

    NVL(Reason,0) AS 'reason '.

    ) AS the 'transfer '.

    )

    ()) AS CRDTRPT

    OF ANY_TABLE;

    • It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.

    NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES

    No UTL_FILE

    I need to use the REEL spool the resulting XML data of the SELECT query.

    SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)

    What I do is:

    1. a column of type CLOB to a xml_report of the loading of the above SELECT query table
    2. Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml

    No need of XMLTYPE data behind. Xml data stream is fine for me.

    In addition, I need to validate the XML file, also using XSD.

    Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.

    Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    A Suggestion or a solution to this problem would be appreciated.

    (Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)

    Bravo!

    Rahul

    It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    You use the right method.

    There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.

    To serialize XMLType to CLOB, use the XMLSerialize function:

    SELECT XMLSerialize (DOCUMENT

    XMLELEMENT ("accounts",

    ...

    )

    )

    OF ANY_TABLE;

    For the rest of the requirement, I wish you good luck trying to spool the XML correctly.

    You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.

  • SQL error: ORA-31038: invalid number '420,05' when extracting data from XML

    Hello everyone ,

    J’ai créé dieting

    DBMS_XMLSCHEMA. REGISTERSCHEMA (SCHEMAURL = > 'OrdenDetalle.xsd', SCHEMADOC = > ' <? xml version = "1.0" encoding = "UTF?) 8 "? >

    " < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema ">

    < xs: element name = "Monsigniore" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Quantity" type = "Integer" / >

    < xs: element name = "FechaCreacion" type = "xs: DateTime" / >

    < xs: element name = "Version" type = "xs: String" / >

    < xs: ELEMENT ref = "News" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "News" >

    < xs: complexType >

    < xs: Choice >

    < xs: element name = "OrdenCompra" type = "T_OrdenCompra" / >

    < / xs: Choice >

    < / xs: complexType >

    < / xs: element >

    < name XS: complexType = "T_OrdenCompra" >

    < xs: SEQUENCE >

    < xs: element name = "Code" type = "xs: String" / >

    < xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CodigoEstado" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CodigoLicitacion" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Description" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CodigoTipo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Type" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "TipoMoneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "State" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CodigoEstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "EstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: ELEMENT ref = "Fechas" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "TieneItems" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "PromedioCalificacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CantidadEvaluacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Well" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Freighters" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "TotalNeto" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "PorcentajeIva" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Impuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Financing" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "TipoDespacho" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "FormaPago" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: ELEMENT ref = "Comprador" minOccurs = "0" maxOccurs = "1" / >

    < xs: ELEMENT ref = "Proveedor" minOccurs = "0" maxOccurs = "1" / >

    < xs: ELEMENT ref = "Items" minOccurs = "0" maxOccurs = "1" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < xs: element name = "Items" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Quantity" type = "Integer" / >

    < xs: element name = "News" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: ELEMENT ref = "Item" minOccurs = "0" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < name XS: complexType = "OrdenCompraBusqueda" >

    < xs:complexContent >

    < xs:extension base = "T_OrdenCompra" >

    < / xs:extension >

    < / xs:complexContent >

    < / xs: complexType >

    < xs: element name = "Item" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Correlativo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CodigoCategoria" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Category" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CodigoProducto" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Product" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "EspecificacionComprador" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "EspecificacionProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Quantity" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Moneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    "< xs: element name ="PrecioNeto"type ="XS: Decimal"minOccurs ="0"maxOccurs ="1"/ >

    < xs: element name = "TotalCargos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "TotalDescuentos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "TotalImpuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Fechas" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "FechaCreacion" type = "xs: DateTime" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "FechaEnvio" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "FechaAceptacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "FechaCancelacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "FechaUltimaModificacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Comprador" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "CodigoOrganismo" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "NombreOrganismo" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "RutUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CodigoUnidad" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "NombreUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Activity" type = "xs: String" nillable = "true" / >

    < xs: element name = "DireccionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "ComunaUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "RegionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Proveedor" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Code" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Activity" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CodigoSucursal" type = "Integer" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "NombreSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "RutSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Address" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Comuna" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Region" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < / xs: Schema >

    ', LOCAL = > true, GENTYPES = > false, GENBEAN = > false, GENTABLES = > false,

    FORCE = > false, OPTIONS = > DBMS_XMLSCHEMA. REGISTER_BINARYXML, OWNER = > USER);

    I have a table with one xml domain.

    CREATE TABLE XML_Orden_Detalle (Fecha_GET date default current_date not null,

    Fecha_Ordenes number not null,

    Correlativo_Ordenes number not null,

    Codigo_Orden varchar2 (20) not not null primary key,

    Cant_Item,

    Date of InicioProceso,

    Date of FinProceso,

    Xmltype Orden_Detalle not null)

    Orden_Detalle XMLTYPE COLUMN

    STORE AS BINARY XML

    XMLSCHEMA " " http://xmlns.Oracle.com/xdb/schemas/CCS_XML/OrdenDetalle.xsd "" "

    ELEMENT "command";


    I inserted data like that, without any Errors:

    " < Command containing = ' http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">

    < Number > 1 < / quantity >

    < FechaCreacion > 2015-05-28T 12: 10:26.947000 < / FechaCreacion >

    v1 < version > < / Version >

    < Return >

    < OrdenCompra xsi: type = "OrdenCompraBusqueda" >

    3879-2661-SE14 < code > < / code >

    < Number > PSP DAEM 2014.  COFFEE BREAK PARA FRINGE OP21838 < / number >

    < CodigoEstado > 6 < / CodigoEstado >

    3902 5-on 14 < CodigoLicitacion > < / CodigoLicitacion >

    < Description > PSP DAEM 2014.  COFFEE BREAK PARA FRINGE OP21838 < / description >

    < CodigoTipo > 8 < / CodigoTipo >

    < Type > SE < / Type >

    < TipoMoneda > CLP < / TipoMoneda >

    Is < State > < / Estado >

    < CodigoEstadoProveedor > 4 < / CodigoEstadoProveedor >

    Is < EstadoProveedor > < / EstadoProveedor >

    < Fechas >

    < FechaCreacion > 2014-12-29T 17: 43:32.287000 < / FechaCreacion >

    < FechaEnvio > 2014-12-31T 10: 32:35.480000 < / FechaEnvio >

    < FechaAceptacion > 2015 - 01-01 T 21: 03:03.660000 < / FechaAceptacion >

    < FechaCancelacion xsi: Nil = "true" / >

    < FechaUltimaModificacion > 2014-12-29T 17: 51:00.000000 < / FechaUltimaModificacion >

    < / Fechas >

    < TieneItems > 1 < / TieneItems >

    < PromedioCalificacion > 5 < / PromedioCalificacion >

    < CantidadEvaluacion > 1 < / CantidadEvaluacion >

    < Well > 0 < / well >

    cargo <>0 < / cargo >

    < TotalNeto > 53782 < / TotalNeto >

    < PorcentajeIva > 19 < / PorcentajeIva >

    < Impuestos > 10218 < / Impuestos >

    < total > 64000 < / Total >

    < Financing > 1140569 < / financing >

    < Country > CL < / Pais >

    < TipoDespacho > 12 < / TipoDespacho >

    < FormaPago > 2 < / FormaPago >

    < comprador >

    < CodigoOrganismo > 118069 < / CodigoOrganismo >

    < NombreOrganismo > Ilustre municipalidad of Bulnes < / NombreOrganismo >

    < RutUnidad > 69.141.200 - 8 < / RutUnidad >

    < CodigoUnidad > 4799 < / CodigoUnidad >

    Daem < NombreUnidad > < / NombreUnidad >

    < Actividad / >

    < DireccionUnidad > VICTOR BIANCHI Nº415 < / DireccionUnidad >

    Bulnes < ComunaUnidad > < / ComunaUnidad >

    < RegionUnidad > Region del Biobio < / RegionUnidad >

    < Country > CL < / Pais >

    Antonella Brunetti < NombreContacto > < / NombreContacto >

    Adquisiciones < CargoContacto > < / CargoContacto >

    < FonoContacto > 56-42-2204053-2204054 < / FonoContacto >

    < MailContacto > [email protected] < / MailContacto >

    < / comprador >

    < Proveedor >

    < Code > 275020 < / code >

    Luis < number > < / number >

    < Activity > MANUFACTURING OF PAN, BLOCK PANADERIA Y PRODUCTOS < / activity >

    < CodigoSucursal > 280820 < / CodigoSucursal >

    Luis < NombreSucursal > < / NombreSucursal >

    < RutSucursal > 5.940.940 - 9 < / RutSucursal >

    < Address > Carlos Palacios 125 < / address >

    Bulnes < Comuna > < / Comuna >

    Region del Biobio < region > < / region >

    < Country > CL < / Pais >

    < NombreContacto > Luis Leonardo Valdés Landero < / NombreContacto >

    Gerente < CargoContacto > < / CargoContacto >

    < FonoContacto > (56) (42) 631498 < /FonoContacto >

    < MailContacto > [email protected] < / MailContacto >

    < / Proveedor >

    elements <>

    < Quantity > 7 < / quantity >

    < Return >

    < item >

    < Correlativo > 1 < / Correlativo >

    < CodigoCategoria > 30222700 < / CodigoCategoria >

    < Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >

    < CodigoProducto > 30222703 < / CodigoProducto >

    < product > ALMACEN Mercancias < / product >

    < EspecificacionComprador > 3 LITROS BEBIDAS < / EspecificacionComprador >

    < EspecificacionProveedor / >

    < Number > 10 < / quantity >

    < Moneda > CLP < / Moneda >

    < PrecioNeto > 1550 < / PrecioNeto >

    < TotalCargos > 0 < / TotalCargos >

    < TotalDescuentos > 0 < / TotalDescuentos >

    < TotalImpuestos > 0 < / TotalImpuestos >

    < total > 15500 < / Total >

    < / point >

    < item >

    < Correlativo > 2 < / Correlativo >

    < CodigoCategoria > 30222700 < / CodigoCategoria >

    < Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >

    < CodigoProducto > 30222703 < / CodigoProducto >

    < product > ALMACEN Mercancias < / product >

    < EspecificacionComprador > DEEMED OF 1 1/2 LITYROS < / EspecificacionComprador >

    < EspecificacionProveedor / >

    < Number > 10 < / quantity >

    < Moneda > CLP < / Moneda >

    < PrecioNeto > 1150 < / PrecioNeto >

    < TotalCargos > 0 < / TotalCargos >

    < TotalDescuentos > 0 < / TotalDescuentos >

    < TotalImpuestos > 0 < / TotalImpuestos >

    < total > 11500 < / Total >

    < / point >

    < item >

    < Correlativo > 3 < / Correlativo >

    < CodigoCategoria > 30222700 < / CodigoCategoria >

    < Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >

    < CodigoProducto > 30222703 < / CodigoProducto >

    < product > ALMACEN Mercancias < / product >

    < EspecificacionComprador > PACKAGES SERVILLETAS < / EspecificacionComprador >

    < EspecificacionProveedor / >

    < Number > 8 < / quantity >

    < Moneda > CLP < / Moneda >

    < PrecioNeto > 170 < / PrecioNeto >

    < TotalCargos > 0 < / TotalCargos >

    < TotalDescuentos > 0 < / TotalDescuentos >

    < TotalImpuestos > 0 < / TotalImpuestos >

    < total > 1360 < / Total >

    < / point >

    < item >

    < Correlativo > 4 < / Correlativo >

    < CodigoCategoria > 30222700 < / CodigoCategoria >

    < Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >

    < CodigoProducto > 30222703 < / CodigoProducto >

    < product > ALMACEN Mercancias < / product >

    < EspecificacionComprador > pounds OF AZÚCAR < / EspecificacionComprador >

    < EspecificacionProveedor / >

    < Number > 5 < / quantity >

    < Moneda > CLP < / Moneda >

    < PrecioNeto > 580 < / PrecioNeto >

    < TotalCargos > 0 < / TotalCargos >

    < TotalDescuentos > 0 < / TotalDescuentos >

    < TotalImpuestos > 0 < / TotalImpuestos >

    < total > 2900 < / Total >

    < / point >

    < item >

    < Correlativo > 5 < / Correlativo >

    < CodigoCategoria > 30222700 < / CodigoCategoria >

    < Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >

    < CodigoProducto > 30222703 < / CodigoProducto >

    < product > ALMACEN Mercancias < / product >

    < EspecificacionComprador > NESCAFE < / EspecificacionComprador >

    < EspecificacionProveedor / >

    < Number > 2 < / quantity >

    < Moneda > CLP < / Moneda >

    < PrecioNeto > 3900 < / PrecioNeto >

    < TotalCargos > 0 < / TotalCargos >

    < TotalDescuentos > 0 < / TotalDescuentos >

    < TotalImpuestos > 0 < / TotalImpuestos >

    < total > 7800 < / Total >

    < / point >

    < item >

    < Correlativo > 6 < / Correlativo >

    < CodigoCategoria > 30222700 < / CodigoCategoria >

    < Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >

    < CodigoProducto > 30222703 < / CodigoProducto >

    < product > ALMACEN Mercancias < / product >

    < EspecificacionComprador > CAJAS OF TE 20 BOWL < / EspecificacionComprador >

    < EspecificacionProveedor / >

    < Number > 5 < / quantity >

    < Moneda > CLP < / Moneda >

    < PrecioNeto > 340 < / PrecioNeto >

    < TotalCargos > 0 < / TotalCargos >

    < TotalDescuentos > 0 < / TotalDescuentos >

    < TotalImpuestos > 0 < / TotalImpuestos >

    < total > 1700 < / Total >

    < / point >

    < item >

    < Correlativo > 7 < / Correlativo >

    < CodigoCategoria > 30222700 < / CodigoCategoria >

    < Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >

    < CodigoProducto > 30222703 < / CodigoProducto >

    < product > ALMACEN Mercancias < / product >

    TRITON GALLETAS < EspecificacionComprador > < / EspecificacionComprador >

    < EspecificacionProveedor / >

    < Number > 31 < / quantity >

    < Moneda > CLP < / Moneda >

    < PrecioNeto >420,05< / PrecioNeto >

    < TotalCargos > 0 < / TotalCargos >

    < TotalDescuentos > 0 < / TotalDescuentos >

    < TotalImpuestos > 0 < / TotalImpuestos >

    < total > 13021,550000000001 < / Total >

    < / point >

    < / News >

    < / object >

    < / OrdenCompra >

    < / News >

    < / Monsigniore >

    However when I extract data, for example:


    Select *.

    from xmltable (to_char (' / Monsigniore/news/OrdenCompra/Items/News/Item[1] ''))

    passage (select Orden_Detalle

    of xml_Orden_Detalle

    where Fecha_Ordenes = 20150101 and Correlativo_ordenes = 83)

    path of columns Correlativo varchar2 (15) 'Correlativo '.

    , Path of varchar2 (15) CodigoCategoria 'CodigoCategoria '.

    , Path Categoria Varchar2 (100 CHAR) "category.

    , Path of varchar2 (15) CodigoProducto 'CodigoProducto '.

    , Path of Producto Varchar2 (100 CHAR) 'product '.

    , Path of the EspecificacionComprador Varchar2 (100 CHAR) "EspecificacionComprador".

    , Path of the EspecificacionProveedor Varchar2 (100 CHAR) "EspecificacionProveedor".

    , Amount varchar2 (15) path 'amount '.

    , Path of the Moneda Varchar2 (16 CHAR) "Moneda".

    , Path of varchar2 (15) PrecioNeto 'PrecioNeto '.

    , Path of varchar2 (15) TotalCargos 'TotalCargos '.

    , Path of varchar2 (15) TotalDescuentos 'TotalDescuentos '.

    , Path of varchar2 (15) TotalImpuestos 'TotalImpuestos '.

    , Path of varchar2 (15) total 'Total '.

    );


    delivery the following error:


    Informed of error:

    SQL error: ORA-31038: Valor number no valido: "420,05."

    «31038 00000 - "value not valid %s: \"%s\»»

    * Cause: The text in the XML document does not represent a valid

    value given the data type and other constraints in the schema.

    * Action: Make sure the value specified in the XML documents is valid

    regarding the data type and other constraints in the schema.

    Note that extract le agenda [1] but the reported error is à la point [7]

    Please If anyone can Help me with le solution for no report error

    Thank you very much in advance

    Carlos

    in Chile, the decimal point are ', 'no'.', the xml data table is OK for us

    You do not understand.

    Regardless of the locale, numeric values limited by a type of data XS: Decimal must use a point in a correct XML representation, otherwise, the document is not valid by the XSD.

    (3) TO_CHAR (...) the code is part of a procedure

    Again, do NOT build a dynamic path like that.

    Why not just move through the records returned by the query (if you need close at all)?


    FOR rec in)

    SELECT x.*

    From your_table t

    XMLTABLE (...) x

    )

    LOOP

    END LOOP;


    What is the role of the v_CantItems variable? Paging?

    Whence its value?

  • ORA-28500 and ORA-02063 when querying sql server tables.

    Hello

    I am getting below error when querying (also with oracle reports) talbes of MS SQL 2008 database who have more lines. There is no problem with tables with less number of lines.
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    ORA-02063: preceding line from SQLSERVER

    When I asked "select *"Areas"@sqlserver;", it is retriving 195 lines and then the display above error.» This table contains 10716 lines.

    Here are the details of our environment:

    Database Oracle 11 G RAC (2 knots) on RHEL 5 64 Bit, MS SQL 2008

    ODBC. INI
    [oracle@proddb1 ~] $ cat /etc/odbc.ini
    [ODBC data sources]
    MSSQL = MS SQL Server

    [mssql]
    Driver=/opt/Microsoft/SQLNCLI/lib64/libsqlncli-11.0.so.1790.0
    Database = Ksa_Fakieh_SFA
    LogonID = OracleUser
    Password=0r@cle999
    Server = SJSQLV01.fakiehgroup.com
    QuotedId = YES
    AnsiNPW = YES
    [ODBC]
    IANAAppCodePage = 4
    Trace = 0
    UseCursorLib = 0
    UseCursorLib = 0


    INIT FILE:

    [oracle@proddb1 ~] $ cat $ORACLE_HOME/hs/admin/initDG4ODBC.ora
    # This is an example of initialization file of the agent that contains the HS settings
    # necessary for the database to ODBC gateway

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = mssql
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_SUPPORT_STATISTICS = FALSE
    HS_LANGUAGE = AMERICAN_AMERICA. AR8MSWIN1256
    HS_NLS_NCHAR = UCS2
    #
    # ODBC specific environment variables
    #
    Set ODBCINI=/etc/odbc.ini
    #


    Listener.ora:

    # ###############################################################

    #

    TRACE_FILE_LISTENER_PRODDB1 = fakieh1

    LISTEN_DG4ODBC =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP (PORT = 1511))(HOST = proddb1.fakiehgroup.com))
    )
    )
    SID_LIST_LISTEN_DG4ODBC =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = u01/oracle/fakieh/db/tech_st/11.1.0) (SID_NAME = DG4ODBC)
    (ENV="LD_LIBRARY_PATH=/usr/lib64:/u01/oracle/fakieh/db/tech_st/11.1.0/lib')
    (PROGRAM = dg4odbc)
    )
    )

    #
    # Definition of RAC database listener
    #

    LISTENER_PRODDB1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADRESSE = (PROTOCOL = TCP) (HOST = proddb1 - vip.fakiehgroup.com) (PORT = 1521)(IP = FIRST)))
    (ADDRESS_LIST =
    (ADRESSE = (PROTOCOL = TCP) (HOST = proddb1) (PORT = 1521)(IP = FIRST)))
    )
    )

    SID_LIST_LISTENER_PRODDB1 =
    (SID_LIST =
    (SID_DESC = (ORACLE_HOME = /u01/oracle/fakieh/db/tech_st/11.1.0)(SID_NAME = fakieh1))
    )

    STARTUP_WAIT_TIME_LISTENER_PRODDB1 = 0
    CONNECT_TIMEOUT_LISTENER_PRODDB1 = 10
    TRACE_LEVEL_LISTENER_PRODDB1 = OFF

    LOG_DIRECTORY_LISTENER_PRODDB1 = /u01/oracle/fakieh/db/tech_st/11.1.0/network/admin
    LOG_FILE_LISTENER_PRODDB1 = fakieh1
    TRACE_DIRECTORY_LISTENER_PRODDB1 = /u01/oracle/fakieh/db/tech_st/11.1.0/network/admin
    TRACE_FILE_LISTENER_PRODDB1 = fakieh1
    ADMIN_RESTRICTIONS_LISTENER_PRODDB1 = WE
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_PRODDB1 = OFF


    IFile=/U01/Oracle/Fakieh/DB/tech_st/11.1.0/Network/admin/fakieh1_proddb1/listener_ifile.ora


    Thank you
    Mohammed.

    Mohammed,
    Without seeing the tracing information, it is difficult to say why this problem occurs.
    However, could you add the following to the file initDG4ODBC.ora gateway -.

    HS_RPC_FETCH_REBLOCKING = OFF
    HS_FDS_FETCH_ROWS = 1

    and try to select it again again SLQPLUS session and see if the same problem occurs?

    Kind regards
    Mike

  • Selected pass contains a string indicator combo box when you press the Enter key

    Hello

    How to pass selected contains a string indicator combo box when you press the enter keyboard key?

    Right now I use a button to send the command selected in the combox to string indicator.

    The photos shows a combo box with the button that I use to send to the indicator as example.

    After the user selects the text to pass, "send the cmd" button must be pressed to pass the string.

    I need to pass the selected string when the user press enter on the keyboard rather than press the button 'send cmd '.

    Kindly to you needing help.

    Hello

    You can use a structure of the event to capture keystrokes and filter, transmit only the drop-down list box "value of the indicator of channel when you press the return or enter key."

    Let me know it the joint allows an example (in LV 8.6).

  • When I try to run Age Of Empires with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    Former title: Trouble running games CD, post installation under Vista. That is to say 2 AoE, Warrior kings.

    I have vista on my laptop, I installed games like shogun and medieval total war and they both work perfectly, I tried to put it on the age empires and warrior kings: battles who are also on a cd format, I installed the last but they usually run after that. Although the instialltion is over, I get asked if I wanted to leave the program to run as administrator. : s

    DVD/CD drive recognize there is a disc, but does not work automatically. I can't install the program normally when I run the setup.exe for the game. When I try to run the program with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    I tried to run them in compatibility mode, using all variants. and also I tried soome of advice from the help article about the disk drivers. game discs are clean and one striped.

    Why can I install the program and access the drive to use the files it contains, but then not use the disk?

    Hello
     

    This problem may occur if one of the following conditions is true:
    a. you do not use the game disc to start the program.
    b. the CD player is not compatible with the program.
    c. using a copy of the program CD.
    d. you are not connected to the computer as an administrator.
    e. the programs interfere with the start of the game which is running but is invisible to you.
    f. the CD-ROM drive uses out-of-date drivers.
     
     
    I would ask you to try the methods listed in the article below:
    Error message or the game stops responding on the "Loading" screen when you start a Microsoft game: "insert the right CD.
    http://support.Microsoft.com/kb/228985/en-us

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • ORA-28500 when you access an Excel file

    Hello

    I'm getting the dreaded ORA-28500 "optional not implemented" when you try to access an Excel file via ODBC HS. This is a bug in 11.1.0.6 (6701400), however my flavor is 11.1.0.7 fully patched. Because I'm trying to use the OLAP on Windows XP 32, I installed version 11.1.0.6 and applied the patches 6890831 and 7682184, as recommend it on [this page | http://www.oracle.com/technology/products/bi/olap/collateral/olap_certification.html], without as far as I can tell error. This should have fixed the problem with dg4odbc according to the bug page, but when now trying to access an Excel spreadsheet I get the exact same message:
    SQL> select * from "International$"@refdata;
    select * from "International$"@refdata
                  *
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Excel Driver]Optional feature not implemented
    ORA-02063: preceding 2 lines from REFDATA
    Is it possible that the patch do not go as planned? Or the second patch to restore the old behavior? I am really lost at what to do now.

    Thanks for your help,
    Chris

    Hi Chris,

    The problem is really fixed in 11.1.0.7 However you must change this setting:
    HS_FDS_SUPPORT_STATISTICS = FALSE

    11.1.0.6, the default value of HS_FDS_SUPPORT_STATISTICS is set to 'TRUE '.
    even if the trace files see the value is set to "FALSE".
    In 11.1.0.7 is always 'TRUE' by default, but the trace files now show that
    value.
    Use DG4ODBC with Excel, requires that the value "false".

    I hope this helps you

    Kind regards

    Mireille

  • When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    You use listener EA3 ADR?

  • When I use the truncation tool, select a zone and press return it removes everything except for a single pixel. This just started today. CS5, Windows 7.

    When I use the truncation tool, select a zone and press return it removes everything except for a single pixel. This just started today. CS5, Windows 7. I tried to reinstall CS5 and who did not help. I am trying to set up a new computer and installed Photo Shop CS5 on it earlier in the day. Maybe it has something to do with it. But until I get the new fully configured machine I still want to continue to work on my current machine, which is where the problem is happening.

    Hi haroldschlegel,

    Please try resetting the cropping tool

    Restart Photoshop once done and see if that helps.

    Kind regards

    Assani

  • without discount date when select select list

    Hello

    I have two field
    1. select list
    2-date picker

    now, I want to when I select a value in to select the list, and then the corresponding date value should come to date picker point field.i want it without updating date picker.


    How can I do this

    Hello

    I guess that your date is in the table?

    Something like this in the HTML page header

    function fetchDate(){
        var ajaxReq = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GET_DATE',0);
        ajaxReq.addParam('x01', $v('Px_YOUR_SELECT_LIST'));
        var lRet = ajaxReq.get();
        $x_Value('Px_YOUR_DATE_PICKER', lRet);
        ajaxReq = null;
    }
    

    Then the process of request GET_DATE

    DECLARE
     l_d VARCHAR2(32000);
    BEGIN
    
      SELECT TO_CHAR(your_date_column, 'DD.MM.YYYY') -- Check date format. Set same as date picker
      INTO l_d
      FROM your_table
      WHERE your_column = apex_application.g_x01;
    
      HTP.PRN(l_d);
    
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
        HTP.PRN('No data found !');
      WHEN TOO_MANY_ROWS THEN
        HTP.PRN('More than one date found !');
      WHEN OTHERS THEN
        HTP.PRN(sqlerrm);
    END;
    

    And add onchange = "fetchDate (); "to select the attributes of the list HTML form element
    BR, Jari

    Published by: jarola November 21, 2009 12:56

    Published by: jarola November 21, 2009 13:05

  • ORA-28500 and ORA-02063 connecting MySQL to Oracle.

    Dear all,

    My database is Oracle 11 GR 2 Rac 2 knots and on 64-bit Linux operating system.
    Version of my MySQL database is 5.5.17 it's the Linux 32-bit operating system.

    I am trying to connect to MySQL database to Oracle database using a database link.

    Here is the step by step process that I followed to reach my goal. All my processes are on an Oracle RAC node.

    1)
    Yum install mysql-connector-odbc
    Yum install unixODBC

    2)
    Edit the file /etc/odbc.ini
    [test]
    Driver = /usr/lib64/libmyodbc3.so
    Description = MySQL ODBC 3.51 Driver DSN
    SERVER = 10.0.0.1
    PORT = 3306
    USER = test
    Password = test
    Database = test
    OPTION = 3
    SOCKET =

    3)
    Edit the /etc/odbcinst.ini file
    [MySQL]
    Description = ODBC for MySQL
    Driver = /usr/lib64/libmyodbc3.so
    Setup = /usr/lib64/libodbcmyS.so
    FileUsage = 1

    (4) test connection
    isql - v test test test
    Returns:
    ---------------------------------------
    | Connected!
    | |
    | SQL query |
    | help [tablename] |
    | quit smoking |
    | |
    ---------------------------------------
    SQL >

    (5) now, I change the listener.ora file and add the entry. After the entry of my file listener.ora is like this:

    LISTENER =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = CIP)(KEY = LISTENER))
    (ADDRESS = (PROTOCOL = TCP)(HOST=testnode1) (PORT = 1521))
    )
    )

    # line added by Agent
    LISTENER_SCAN1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = LISTENER_SCAN1))
    )
    )

    # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON # line added by Agent

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (PROGRAM = dg4odbc)
    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = test)
    (ENVS = LD_LIBRARY_PATH = usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    )
    )

    (6) after these entries, the listener after REBOOT status is as follows:

    LSNRCTL > status
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start date December 27, 2011 01:19:32
    Uptime 0 days 9 h 31 min 12 sec
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file
    The listener log file /U01/app/grid/diag/tnslsnr/racnode1/listener/alert/log.XML
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = LISTENER)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=testnode1) (PORT = 1521)))
    Summary of services...
    Service '+ ASM' a 1 instance (s).
    Instance '+ ASM1' READY State, has 1 operation for this service...
    Service 'PLSExtProc' has 1 instance (s).
    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
    Service 'test' has 1 instance (s).
    Instance of 'test', status UNKNOWN, has 1 operation for this service...
    Service 'testdb' is 1 instance (s).
    'Testdb1' instance, State LOAN, has 1 operation for this service...
    Service 'racdbXDB' has 1 instance (s).
    'Testdb1' instance, State LOAN, has 1 operation for this service...
    The command completed successfully

    (7) then in the tnsnames.ora file, I added the following entry:

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = EXTPROC1521)
    )
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )


    test =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SID = test)
    )
    (HS = OK)
    )

    When I test tnsping, it works.

    (8) I change the file .bash_profile for Oracle
    ORACLE_HOME, ORACLE_BASE were already pointing to the right destination, I added:

    LD_LIBRARY_PATH=/usr/local/lib:/U01/app/Oracle/product/11.1.0/Db_1/lib:/U01/app/Oracle/product/11.2.0/dbhome_1/HS/lib:/usr/lib64:/usr/lib
    export LD_LIBRARY_PATH

    ODBCINI=/etc/ODBC.ini
    Export ODBCINI

    ODBCINSTINI=/etc/ODBC.ini
    export ODBCINSTINI

    ODBCSYSINI = / etc
    export ODBCSYSINI

    (9) then I configured $ORACLE_HOME/hs/admin/inithsodbc.ora
    And modified these lines:
    HS_FDS_CONNECT_INFO = test
    HS_FDS_TRACE_LEVEL = WE
    HS_FDS_TRACE_FILE_NAME = odbc_test.log
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_SUPPORT_STATISCTICS = FALSE
    HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    Set = /etc/odbc.ini ODBCINI

    (10) then I created a link of database with the following command:
    Create a database connection test audience to connect to test identified by test using 'test '.

    Also I tried the username and password in the database link with double quotes.

    (11) now finally when I try to select records from a mysql table:
    Select count (*) from "table"@"test" -I tried with and without double quotes

    I get the following error:

    ERROR on line 1:
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    ORA-02063: preceding the TEST line

    How to pass through this error and how do I check the logs for HS?

    Your help is needed.

    Best regards, Imran

    Published by: misterimran on December 27, 2011 13:21

    Hello
    You had your listener.ora for the DG4ODBC entry-

    (ENVS = LD_LIBRARY_PATH = usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)

    but it should also include the path to the driver manager directory which in your case is/usr/lib64 might then you add this?
    The error:

    Unable to load the ODBC library symbol: usr/lib64/libmyodbc3.so(SQLSetDescRec)

    indicates the lib64 directory are not accessible.

    The entry should look like-

    (SID_DESC =
    (PROGRAM = dg4odbc)
    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = test)
    (ENVS = LD_LIBRARY_PATH = usr/local/lib:/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    )

    Spaces may have bene lost at the time of publication, but at least there should be a space in the file as indicated by the .
    After the change is made and then stop and start the listener.
    If you still have problems, please post again the current versions of the configuration files, the complete errors figure in SQLPLUS to a select statement and the output of a trace debugging with errors.

    According to the information you use the 3.51 MySQL ODBC driver so could you also try with the latest version of the 5.1 driver and see if you have the same problem?

    Kind regards
    Mike

  • ORA-28545: error diagnosed by Net8 when connecting to an agent

    Hi all

    This question was asked several times in this forum and I went to many discussions in this forum, but unfortunately I failed.

    I want to connect to MySQL database to oracle. I have the following configurations.

    1. Oracle database edition company 12 c (12.1.0.2.0) 64 bits on 64-bit Windows server 2012
    2. I have 5.6.11 MySQL on windows 7 64 bit
    3. I downloaded the driver site for delivery of oracle ODBC (MySQL Connector/ODBC 5.3.4 MSI for Windows x 86 (64 bit))
    4. I have install ODBC on my oracle server, a full install which installs the Unicode and Ansi versions.
    5. I create the connection ODBC for Unicode by going to control panel-> administrator tools-> (64-bit) ODBC Data Sources-> system DSN. I test and the test succeeded.
    6. I have set up my files Listner.ora, Tnsname.ora and initmysql.ora as below;

    Listner.ora

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = c:\app\Administrator\product\12.1.0\dbhome_1)
    (= Extproc PROGRAM)
    (ENVS = "EXTPROC_DLLS=ONLY:c:\app\Administrator\product\12.1.0\dbhome_1\bin\oraclr12.dll")
    )
    (SID_DESC =
    (SID_NAME = mysql)
    (ORACLE_HOME = C:\app\Administrator\product\12.1.0\dbhome_1)
    (PROGRAM = dg4odbc)
    (ENVS = LD_LIBRARY_PATH = C:\app\Administrator\product\12.1.0\dbhome_1\LIB)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
    )

    Tnsnames.ora

    PDBORCL =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = pdborcl.hct.org)

    )

    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.hct.org)
    )
    )

    MySQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = N410FS02)(PORT = 1521))
    (CONNECT_DATA =
    (SID = mysql)
    )
    (HS = OK)
    )

    initmysql.ora (C:\app\Administrator\product\12.1.0\dbhome_1\hs\admin\)

    HS_FDS_CONNECT_INFO = mysql

    HS_FDS_TRACE_LEVEL = OFF

    then I stop and start the listener, the listener status is less than

    LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on April 23, 2015 09:16
    : 52

    Copyright (c) 1991, 2014, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=ORADEV.hct.org) (PORT = 152
    (1)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    TNSLSNR for Windows 64-bit version: Version 12.1.0.2.0 - Prod
    ction
    Start date April 23, 2015 09:13:56
    Uptime 0 days 0 h 2 min 59 sec
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    C:\app\Administrator\product\12.1.0\dbhome_1\network\a Listener parameter file
    dmin\listener.ora


    C:\app\Administrator\diag\tnslsnr\ORADEV\listener\aler log listener
    t\log. XML
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=ORADEV.hct.org) (PORT = 1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))
    Summary of services...
    Service 'CLRExtProc' has 1 instance (s).
    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...
    "Mysql" service has 1 instance (s).
    "Mysql", status UNKNOWN instance, has 1 operation for this service...
    Service 'orcl.hct.org' has 1 instance (s).
    Instance "orcl", State LOAN, has 1 operation for this service...
    Service 'orclXDB.hct.org' has 1 instance (s).
    Instance "orcl", State LOAN, has 1 operation for this service...
    Service 'pdborcl.hct.org' has 1 instance (s).
    Instance "orcl", State LOAN, has 1 operation for this service...
    The command completed successfully

    tnsping MySQL

    AMT Ping Utility for 64-bit Windows: Version 12.1.0.2.0 - Production on 23-APR-2
    015 09:17:54

    Copyright (c) 1997, 2014, Oracle.  All rights reserved.

    Use settings files:
    c:\app\Administrator\product\12.1.0\dbhome_1\network\admin\sqlnet.ora


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = N410FS02)
    () (PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS = OK))
    OK (40 msec)

    then I open sqlplus and connect to my plug-in database as user sys and create a link from public database for the test scheme that I have created in the MySQL database.

    create public database link mysql connect to test identified by test using 'mysql';
    

    then I try the table1 which lies in the scheme of test of MySQL to sqlplus as below

    SQL> select * from table1@mysql;
    select * from table1@mysql
                         *
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from MYSQL
    
    

    I have tried versions of Ansi and Unicode ODBC, but the same question.

    where is the problem in my setup?

    Thank you.

    You use the wrong host name in the tnsnames.ora.

    Take a look at the Oracle listener - it is configured with the address: (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))

    In your tnsnames.ora you specified in the mysql alias: (ADDRESS = (PROTOCOL = TCP) (HOST = N410FS02)(PORT = 1521))

    It does not work. Alias configured in the tnsnames.ora AMT must reference an Oracle listener who begins the process of bridge, so in your case at ORADEV.hct.org.

    So please correct your tnsnames.ora entry:

    MySQL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))

    (CONNECT_DATA =

    (SID = mysql)

    )

    (HS = OK)

    )

Maybe you are looking for

  • Software update new cannot open applications

    Model: Macbook Air 6 Recently updated software (Mac OS X 10.10.5) Restart, but now I "problem report for Finder" on the loop. Says "Finder close unexpectedly. This report will be sent to Apple. " I click OK but the message just re-. Cannot open the a

  • Cannot load the Google search

    When you do a search, and I want to go to that particular website I can't seem to load, but if I put the web page directly to the it will take me there

  • "looking for credential tiles" - unsuccessful removal of Veriface and ReadyComm - HELP :(

    Hello I did some research and tried and called and did everything, but can't seem to get my Lenovo to play nice. I bought this computer only a month or two before and have placed since my materials of the entire work here so a total rebuild of the sy

  • Report Builder 1.0 will not connect to the data source for Reporting SERVICES

    We have a few users who are unable to connect to SSRS on SQL Server 2008 using the Report Builder version 1.0 (We will be updating soon, but it's a slow process, and now users have questions) Instead of disputed for their IDs, they are requested to s

  • How to copy & paste several items at once?

    Original title: copy paste & I'm sorry if I ask this question in the right place. How to copy & paste several items at once? Recently, I learned how to copy & paste, which will give you an idea of my level of skills.  Thanks, Jim