ORA-02063: preceding line HSLINK

When I try to connect to ms sql to oracle (in solaries 11.1.0.7) I get the error of connection from ORACLE to a system non-Oracle sent this message: before line of HSLINK

SQL > SELECT * FROM Banks@hslink;
SELECT * from Banks@hslink
*
ERROR on line 1:
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
ORA-02063: preceding line HSLINK

TNSPING and lsnrctl status agree

usually, for this kind of error a trace would be very useful. So, I can just guess.
Please add to your gateway init file:
HS_FDS_SUPPORT_STATISTICS = FALSE

Tags: Database

Similar Questions

  • dblink oracle to postgres with dg4odbc. ORA-28500: connection between ORACLE and a non-Oracle system returned this message: ORA-02063: preceding line

    Hi, I am creating the database link from a database of Oracle 11 g PostgreSQL with DG4ODBC and unixODBC

    My configured for /etc/odbc.ini

    [PostgreSQL]

    Description = Test to Postgres

    Driver = psqlodbc

    Trace = Yes

    Trace file = /tmp/sql.log

    Database = danieldb

    ServerName =

    UserName = SA

    Password = password

    Port = 5432

    Protocol = 6.4

    ReadOnly = No

    RowVersioning = No

    ShowSystemTables = No

    ShowOidColumn = No

    FakeOidIndex = No

    My configured for /etc/odbcinst.ini

    [ODBC]

    CommLog = 1

    Debug = 1

    FileUsage = 1

    Layout common = No

    Trace = 1

    [psqlodbc]

    Description = PostgreSQL ODBC driver

    Driver=/usr/lib64/psqlodbcw.so

    CommLog = 1

    Debug = 0

    FileUsage = 1

    My configured for /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora

    HS_FDS_CONNECT_INFO = PostgreSQL

    HS_FDS_TRACE_LEVEL = 0

    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so

    Set ODBCINI=/etc/odbc.ini

    My configured for /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora

    Listener =

    (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521))

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PostgreSQL)

    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)

    (PROGRAM = dg4odbc)

    (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib')

    )

    )

    My configured for /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora

    PostgreSQL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521))

    (CONNECT_DATA =

    (SID = PostgreSQL)

    )

    (HS = OK)

    )

    I'm trying to created public database link:

    CREATE DATABASE LINK PUBLIC 'orapos' CONNECT to 'HIS' IDENTIFIED BY 'password' USING 'PostgreSQL ';

    When I used tnsping

    [root@oracle-poc admin] # tnsping PostgreSQL

    AMT Ping utility for Linux: Version 11.2.0.2.0 - Production on May 16, 2013 20:34:19

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

    Use settings files:

    /U01/app/Oracle/product/11.2.0/XE/network/admin/SQLNET.ora

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))

    OK (0 msec)

    and finally, I try to use the database link:

    "SQL > select * from tabel2"@orapos ".

    2;

    Select * from 'tabel2"@orapos '.

    *

    ERROR on line 1:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:

    ORA-02063: preceding the line of ORAPOS

    What wrong with my setup?

    Thank you and best regards,

    Daniel

    Daniel,

    The problem is that you are using the ODBC Postgres driver for the HS_FDS_SHAREABLE_NAME parameter, but this must be an ODBC driver manager and not the driver ODBC Psotgres.
    Go to the.

    http://www.unixODBC.org/

    Click the 'Download' and follow the instructions to download the 2.3.1 pilot and make libraries and programs.

    Once this is done, then use the driver as parameter HS_FDS_SHAREABLE_NAME Manager, for example-

    HS_FDS_SHAREABLE_NAME =/home/odbc64/unixODBC/2.3.1/lib/libodbc.so

    Depending on where you install it.

    Kind regards

    Mike

  • 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

  • ORA-08177: ORA-02063:

    Hello world

    I have a big problem. I insert some BI - SAP records in an Oracle table, but with some records the BD shows this error: 'Error(-8177) '. "ORA-08177: can't serialize access for this transaction ORA-02063: preceding line {BD}.

    How can I solve this problem?
    Is this a problem of competition?

    Thank you!!!

    ORA-08177: can't serialize access for this transaction
    Cause: Encountered the data modified by a transaction that took place after the serializable transaction began.

    Action: Read/write operations, retry the transaction or planned operation

    Also check this out to debug the error.

    http://oraclue.com/2009/03/02/debugging-serializable-transactions-ora-08177-cant-serialize-access-for-this-transaction/

    Concerning

    Published by: skvaish1 on May 5, 2010 12:07

  • dblink error ORA - 02063

    Hello
    I test IE 2 databases and test1.

    I created a database of public link test_dblink@test1 (from test database).

    test the database with 2 diagrams: IE schema1 and schema2

    When I executed a query using schema1 on the database of test as below:

    Select * from table@test_dblink---it works

    but when I executed the same query through schema2 on the test database that it gives:

    Error: ORA-00942 table or view does not exist. ORA - 02063: preceding line test1

    kindly help me:

    Thanks in advance

    Select * from test1.are_sdo@refdata;
    the value long 9999;
    SELECT DBMS_METADATA. GET_DDL('DB_LINK',a.Db_link,'PUBLIC') OF DBA_db_links A WHERE DB_LINK LIKE '% REFDATA % ';

    What is the result of the above commands?

    Just copy and paste (remove password)

  • 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

  • Error when inserting a record - a feature not taken in charge with clause RETURNING ORA-06512: at line 1

    Hello

    I have a created an EO based on a synonym (synonym is created for a Table by using binding remote Db)

    I created a from VO of the EO above and added to an AM. When I run the AM and try to insert a record I get following error

    [164] BEGIN INSERT INTO TRACK_TRANSACTION_STATUS_BIZ (TRANS_NO, TRANS_ID, START_DATE, LOGIN_USER_ID, SESSION_ID, REFUND_APPLICABLE_IND) VALUES (: 1,: 2,: 3,: 4:5:6) TRANS_STATUS, ISHOP_LOGIN_IND, EMAIL_ADDR_AT_SIGN, TEL_NO_INT_PREFIX, REFUND_APPLICABLE_IND, REFUNDED_IND, CSP_IND RETURNING: 7: 8: 9,: 10,: 11,: 12,: 13; END;

    [165] insert link param 1: test

    [166] insert link param 2: you

    [167] insert link param 3: 2014-10-16 21:37:09.0

    [168] insert link param 4: your

    [169] insert link param 5: you

    [170] insert link param 6: N

    OracleSQLBuilderImpl.doEntityDML [171] failed...

    [172] X / Open SQL State is: 99999

    [173] java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)

    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)

    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    [174] OracleSQLBuilder: ROLLBACK WORK point registration "BO_SP".

    [175] DCBindingContainer.reportException: oracle.jbo.DMLException

    oracle.jbo.DMLException [176]: Houston-26041: could not publish data from database in "Insert": SQL statement ' BEGIN INSERT INTO TRACK_TRANSACTION_STATUS_BIZ (TRANS_NO, TRANS_ID, START_DATE, LOGIN_USER_ID, SESSION_ID, REFUND_APPLICABLE_IND) VALUES (: 1,: 2,: 3,: 4: 5:6) TRANS_STATUS, ISHOP_LOGIN_IND, EMAIL_ADDR_AT_SIGN, TEL_NO_INT_PREFIX, REFUND_APPLICABLE_IND. , REFUNDED_IND, CSP_IND INTO TURNING: 7: 8: 9: 10: 11:12:13; END; ».

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:583)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Caused by: java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)

    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)

    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)

    ... 52 more

    # # 0 in detail

    java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    Ask for help in this regard

    ADF will generate default DML statement with RETURNING clause, and it is not applicable to your use case: ORA-22816: feature not supported with RETURNING clause

    Instead, you can try with setUseReturningClause (false): http://docs.oracle.com/middleware/1213/adf/develop/adf-bc-entity-objects.htm#BABJAJCA

    Dario

  • ORA-01578: block of data corrupted ORACLE ORA-01110: data file 46:, ORA-06512: at line 1 ScanningError 1038246

    We get error below of the application team. Please find attached the file backup rman error.

    ORA-01578: ORACLE corrupt data (file # 46, block # 64626) ORA-01110: data file 46: ' / db04_hlt/PHCLMDB/PHCLMDB_DATA/phclm21.dbf' ORA-06512: at "HCLM_ADMIN. SCANPROC_INSUPLOADTEMP", line 16 ORA-06512: at line 1 ScanningError 1038246

    fe40282660394026b5f76bf3f5d649e4 SCANPROC_INSUPLOADTEMP-ORA-01578: data block (file # 46, block # 64626) corrupted ORACLE ORA-01110: data file 46:

    Hello

    Please follow the steps to format corrupt block a used the procedure mentioned in the document below, please note that you need to do several times for all the block corrupted in free space.
    Doc-ID 336133.1===> how corrupt Format block is not part of any Segment.

    Following the notes 293515.1 -->> ORA-1578 ORA-26040 in a LOB segment - Script to resolve errors

    This note is for these errors, but the procedure is exactly the same, we must:

    1 - identify the ROWID affected
    2 - Put the ROWID corrupted on EMPTY_LOB
    3. When you MOVE the LOB to a new Tablespace

    These are essentially the steps, the note shows how

    Kind regards

    Alok

  • Event Driven Publishing API 11 GR 2 - ORA-06512: at line 20

    Hello

    I use event driven api publishing to send the report to our users, I use the procedure to do this, but the procedure executes with the error

    declare

    *

    ERROR on line 1:

    ORA-20999:

    ORA-06512: at «NRSP.» SRW", line 264

    ORA-06512: at «NRSP.» SRW", line 799

    ORA-06512: at line 20

    no additional information about the cause of the error.

    Please help about this.

    Database: 11 GR 2

    Train services: 11 GR 2

    RAC (2 knots)

    -procedure

    declare

    myPlist SRW_PARAMLIST;

    myIdent SRW. Job_Ident;

    myStatus SRW. Status_Record;

    BEGIN

    SRW.start_debugging;

    myPlist: = SRW_PARAMLIST (SRW_PARAMETER('',''));

    srw.add_parameter (myPlist, 'GATEWAY','http://192.168.5.35:8888/reports/rwservlet ');

    SRW. ADD_PARAMETER (myPlist, "SERVER", "rep_wls_reports_conho_asnist_1");

    SRW.add_parameter(myPlist,'REPORT','D:\Reports\EMP_ABSNTE_AUTO.rdf');

    SRW.add_parameter(myPlist,'USERID','usr/pwd@mydb');

    SRW.add_parameter (myPlist, 'DESTYPE', 'email');

    SRW.add_parameter (myPlist, 'DESFORMAT', 'PDF');

    srw.add_parameter (myPlist, 'DESNAME',' [email protected]');

    SRW.add_parameter (myPlist, 'SUBJECT', 'Monthly absent notice');

    srw.add_parameter (myPlist, "FROM",' [email protected]');

    myIdent: = srw.run_report (myPlist);

    myStatus: = srw.report_status (myIdent);

    SRW.stop_debugging;

    end;

    /


    The debug output should tell you more. See this thread:

    Report in PDF format and send it to some clients, using database triggers

  • Unit test: disassembly of the table or restore the line failed: ORA-06502: PL/SQL: digital error or value: string buffer too small ORA-06512: at line 22

    Is any idea available in the process of disassembly of the table or restore the line to line 22?

    I see a bunch of discussions on the subject, but no clear solution/answer...

    What could be the causes of this error?

    I had two process of disassembly on the level now, and one of them had failed with this error. Displacement of the failure of the process of disassembly compared to the level of the suite for the level of performance of test unit solved the error for a while, but after some more dragging the process of disassembly of the table (with about 500 cases) is permanent.

    Please advise...

    Thank you

    Val

    Well, had to create a bug officially... I hope this helps...

    Bug 19696042 : UNIT TEST: disassembly of THE TABLE or LINE RESTORE failed: ORA-06502: STRING BUFFER TOO SMA

    Thank you

    Val

  • ORA-06502: PL/SQL: digital or value error ORA-06512: at the 'APPS '. WF_NOTIFICATION', line 5754 ORA-06512: at line 5

    Hello

    I have a l_body variable in my pl/sql code with varchar2 (32767).

    It displays maximum 44 lines, more than 44 lines he gives buffer size error.

    If I use the clob data type then it gives value or digital erro on 44 lines.

    code is below

    concerning

    l_clob CLOB.

    l_body varchar2 (32767);

    BEGIN
    Dbms_lob. CreateTemporary (l_clob,TRUE);

    l_body: = null;

    l_body: =
    "< Html >";

    l_body: = l_body |
    "< Body >" ;

    -l_body: = l_body | "< do Face ="Verdana, Arial, Helvetica"Color ="#000000"> ';

    -l_body: = l_body | "< BR > < BR > < BR > ' | l_str | "< Br >".

    l_body: = l_body |
    "< BR >" || "Please note that receipt number < B > ' " || Trans_Id | ' with amount: ' | Trim (to_char (total_amount,'999G999G999G999D99')): ' < /B > has been sent for approval. Detail is given below:' | ' < Br BR > > < ' ;

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


    l_body: = l_body |
    ' < / table > < Br > < Br > ' ;

    l_body: = l_body |
    '< table Border = 1 ">' ;

    -l_body: = l_body | "< Tr Bgcolor = rgb (0,154,61) > ';

    l_body: = l_body |
    "< Tr Bgcolor = rgb (162,202,230) >" ;

    l_body: = l_body |
    '< e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > Date' ;

    l_body: = l_body |
    ' < e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > name of the seller ' ;

    l_body: = l_body | '< e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > number of PO' ;

    l_body: = l_body |
    ' < e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > number ' ;

    l_body: = l_body | '< e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > line' ;

    l_body: = l_body |
    '< e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > Description of the object' ;

    l_body: = l_body |
    ' < e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > quantity ' ;

    l_body: = l_body |
    ' < e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > unit ' ;

    l_body: = l_body |
    ' < e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > unit price PO' ;

    l_body: = l_body |
    ' < e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > currency " " ;

    l_body: = l_body |
    ' < e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > amount ' ;

    l_body: = l_body |
    '< e > < P > < Font Size = 2 Face = "Verdana, Arial, Helvetica" > < div align = left > Code combination' ;

    l_body: = l_body |
    "< /Tr >" ;

    FOR x in C LOOP

    l_body: = l_body | "< Tr >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = left >' | x.transaction_date | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = left >' | x.VENDOR_NAME | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = left >' | x.po_number | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = left >' | x.release_num | "< Table >" ;

    l_body: = l_body | '< td > < P > < Font Size = 2 > < div align = left >' | x.line_num | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = left >' | x.item_description | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = right >' | x.Quantity | "< Table >" ;

    l_body: = l_body | '< td > < P > < Font Size = 2 > < div align = left >' | x.unit_of_measure | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = right >' | x.po_unit_price | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = left >' | x.currency_code | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = right >' | x.amount | "< Table >" ;

    l_body: = l_body |
    '< td > < P > < Font Size = 2 > < div align = left >' || x.cc|| "< Table >" ;

    l_body: = l_body |
    "< /Tr >" ;

    END LOOP;

    l_body: = l_body |
    ' < / table > < Br > < Br > ' ;

    l_body: = l_body |
    "< / body >" || CHR(10);

    l_body: = l_body |
    ' < / html > ' || CHR(10);

    DBMS_LOB. WriteAppend (l_clob, length (l_body), l_body);

    RETURN L_Clob;

    END Format_Notification_Msg;

    The maximum size allowed for l_body is 32767 who as varchar2 (32767)

    Even if the CLOB has no size limit, you store the actual data in "l_body", it throws the error when the "l_body" increases of 32,767 characters.

    Call the dbms_lob.writeappend () API in the for loop and cancel l_body after the API call, so that the 'l_body' will not go beyond the specified limit.

  • ERROR at line 1: ORA-06502: PL/SQL: digital or value error ORA-06512: at line 10

    Hi all

    DECLARE

    TYPE (t1) IS RENDERING

    v_ename emp.ename%TYPE,

    v_sal emp.sal%TYPE

    );

    TNom TYPE IS an ARRAY OF t1

    INDEX OF DIRECTORY;

    v_tname tNom;

    BEGIN

    BECAUSE me IN v_tname. FIRST... v_tname. LAST

    LOOP

    Dbms_output.put_line (v_tname (i) .v_ename |) '' || .v_sal v_tname (i));

    END LOOP;

    END;

    You want to ask why I used the SLIDER? -We can use in BULK COLLECT with LIMIT clause with the cursor

    We also directly in bulk collect into collections as below:

    DECLARE

    TYPE (t1) IS RENDERING

    v_ename emp.ename%TYPE,

    v_sal emp.sal%TYPE

    );

    TNom TYPE IS an ARRAY OF t1

    INDEX OF DIRECTORY;

    v_tname tNom;

    BEGIN

    SELECT ename, sal BULK COLLECT INTO v_tname FROM emp;

    BECAUSE me IN v_tname. FIRST... v_tname. LAST

    LOOP

    Dbms_output.put_line (v_tname (i) .v_ename |) ' ' || .v_sal v_tname (i));

    END LOOP;

    END;

    /

  • 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

  • DG4ODBC configured and working but receiving ORA-28528 for some columns

    DG4ODBC is configured and working for XE 11 GR 2, but under some circumstances receiving SQL Error: ORA-28528: heterogeneous Services data type conversion error.

    Configuration: DG4ODBC configured for Oracle 11 g 2 using ODBC datasource based on IBM UniVerse ODBC Driver 4.00.04.7346 UVODBC. DLL (25/08/2009), all on the same host 32-bit Windows designed to extract data from remote AIX based IBM/Rockit universe version 10.1 of the database.

    After 3 orders with matching results illustrate the problem:

    Select NO_PROD from bill_mat@dblink, including NO_PROD not in ('15', '20', '24', '6',' 10');

    no selected line


    Select NO_PROD, count (*) from bill_mat@dblink where NO_PROD Group ('15', '20', '24', ' 6', ' 10') of NO_PROD;

    NO_PROD COUNT (*)
    ---------- --------
    6 1
    20 1
    24 1
    9 out of 10
    15 1

    Select NO_PROD in the bill_mat@dblink;

    Error at startup on line 19 of order:
    Select NO_PROD from bill_mat@dblink
    Error report:
    SQL error: ORA-28528: heterogeneous Services data type conversion error
    ORA-02063: preceding line of DBLINK
    28528 00000 - "heterogeneous Services data type conversion error."
    * Cause: Is a type of data Oracle could not be converted to a non-Oracle
    data type, or a type of data non-Oracle could not be converted
    for an Oracle data type. Here are the possible reasons
    the failure of the conversion:
    -overflow problems (in the case of numbers)
    -the limits of length (in the case of strings)
    -invalid values passed in the conversion routines
    * Action: Contact customer support of the agent vendor. If the problem is
    due to differences in size between Oracle and the non-Oracle system.
    It is not possible to convert the value.


    LIST universe queries shows many ' white' values for both fields LST.WO & no PROD that issue when trying to query through DG4ODBC, in the case of the subjects table "BILL_MAT":

    LIST BILL. MAST LST.WO No. LOCK PROD 16:08:44 November 22, 2011 PAGE 11
    BILL. MAST... LST.WO... MOM PROD LOCK

    239912 10
    220419
    247992
    252739
    249709
    239913 15
    184767
    164264
    184666
    164265
    247994
    239914
    251731
    249711
    173760
    239915 20
    242137
    247490
    247894
    254156
    Press a key to continue...



    Interestingly, the output of this test JDBC application is different, including references to "null" values "in white" referred to as with output LIST above:

    import java.sql. *;
    import java. IO;

    public class billmat {}

    Public Shared Sub main (String [] argv)
    {
    try {}
    BufferedReader in = new BufferedReader (new InputStreamReader (System.in));



    //---------------------------
    Connect to the server U2
    //---------------------------

    Chain account = "universe_account";
    String userid = "username";
    String passwd = "password";
    String host = "AIX_Host";
    String url = "jdbc:ibm-u2://"+host+"/"+account+"?tracelevel=5;tracefile=qiang.trace";

    Load the driver and connect to the server
    Class.forName ("com.ibm.u2.jdbc.UniJDBCDriver");
    Connection con = DriverManager.getConnection (url, username, passwd);

    System.out.println ("successful - \n\t*---connexion * \n");


    System.out.println ("1. Select the file Bill. MAT ------------------------");
    testQuery (con);


    con. Close;
    } catch (SQLException e) {}
    System.out.println ("Ex-Message:" + e.getMessage ());
    System.out.println ("ex-code:" + e.getErrorCode ());
    System.out.println ("Ex-SQLState:" + e.getSQLState ());
    System.out.println ("Ex-Next:" + e.getNextException ());
    e.printStackTrace ();
    System.GC();
    } catch (Exception e) {}
    System.out.println ("Exception caught:" + e);
    e.printStackTrace ();
    }
    }


    /**
    * Select CUST. MAT file.
    @param con The JDBC connection object.
    */
    public static void testQuery (connection con)
    throws SQLException
    {
    Statement stmt = con.createStatement ();
    String sql = "select DISTINCT LST.WO, no. PROD, BILL's LOCK. CARPET where LST.WO is not null or not. PROD is not zero. "
    Run the SELECT statement
    ResultSet rs = stmt.executeQuery (sql);

    Results of the first five records
    System.out.println ("\tlist selected columns for the first five records :");
    int i = 1;
    While (rs.next () & & I < 100)
    {


    System.out.println ("\tLST_WO: \t" + rs.getString (1));
    System.out.println ("\tNO_PROD: \t" + rs.getString (2));
    System.out.println ("\tLOCK: \t" + rs.getString (3));

    i ++ ;
    }

    RS. Close();
    stmt. Close();
    System.out.println ("\n\t*---QUERY test has been successfully-* \n");
    System.out.println ("\n\tDisplay Count: \t" + i);
    }

    }



    [root@VM-Linux01 Linux] # java billmat

    -Successful - connection

    1. select in the file Bill. MAT ------------------------
    LST_WO: null
    NO_PROD: null
    LOCK:
    LST_WO: null
    NO_PROD: 10
    LOCK:
    LST_WO: null
    NO_PROD: 15
    LOCK:
    LST_WO: null
    NO_PROD: 20
    LOCK:
    LST_WO: null
    NO_PROD: 6
    LOCK:
    LST_WO: null
    NO_PROD: 24
    LOCK:

    -QUERY test was performed with success-


    Number of view: 7


    The reason column THAT LOCK is included above is because he is using DG4ODBC queryable and presents itself as (null) in the result of the query and provided by SQLDeveloper.

    Considering the above findings, it seems what ORA-28528 IS NOT associated with problems of overflow or limits of length. Instead, some kind of mapping characterset problem here seems more plausible. For example, it seems NULL value returned in the case of the columns LST_WO and NO_PROD of the distant universe database is mapping not properly in the way that a NULL value is represented in the database 11 GR 2. Y at - it % HS_ in file init DG4ODBC value that can be set to solve this problem? I'm not quite sure the range of settings that exist, but try different values for HS_LANGUAGE which did not help.

    There is no problem using Excel MS Query to recover data using the same system DSN and associated ODBC driver on which DG4OBDC the installation program is based on the same Windows computer where DG4ODBC is configured.

    Here are the current settings of DG4ODBC for this instance (initDBLINK.ora):


    HS_FDS_CONNECT_INFO = DBLINK. ODBC
    HS_FDS_TRACE_LEVEL = WE
    HS_FDS_TRACE_FILE_NAME = c: / DG_LOG
    HS_FDS_TRACE_LEVEL = 4
    HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    # Other parameters HS_LANGUAGE attempted to solve the problem are discussed below:
    # HS_LANGUAGE = american_america.utf8
    # HS_LANGUAGE = american_america.al32utf8


    Any guidance would be greatly appreciated!

    Edited by: WileyCoyote 8 March 2012 13:33

    Edited by: WileyCoyote 8 March 2012 13:39

    A gateway trace level 255 (HS_FDS_TRACE_LEVEL0 = 255) could be interesting - also the definition of the source table (how the table is defined in the database of version 10.1 IBM/Rockit universe).

  • 64-bit Oracle 11.2.0.4 problem connection postgresql 9.1 64-bit

    Hello everyone, this week I tried extensively to create a connection between an engine and a motor of oracle postgresql, but have failed, followed the user recommendations Kgronau-Oracle through the thread https://community.oracle.com/thread/3560250?start=0 & tstart = 0, but did not work and error that comes out when I run the following query in sqlplus :

    Select * from 'user' PG_LINK;

    ERROR on line 1:

    ORA-28500: connection to a non-Oracle system Oracle returned this

    Publish:

    ORA-02063: preceding line PG_LINK

    I did the settings as follows:

    Oracle Linux 6.5 64 - bit

    I created a file in /home/oracle/.odbc.ini

    with the following information:

    [PG_LINK]

    Driver = /usr/pgsql-9.1/lib/psqlodbcw.so

    ServerName = 172.16.2.14

    Username = user

    Password = pass

    Port = 5432

    Database = database

    Trace = yes

    Trace file = /tmp/database.log

    With the permissions: - rw - r - r - oracle oinstall

    The driver install via: yum install postgresql91 - odbc.x86_64

    version 09.03.0400 - 1PGDG.rhel6

    Also installed the unixODBC package - 2.3.0 compile the source and the result of the-j odbcinst command that results in:

    unixODBC 2.3.0

    DRIVERS...: /usr/local/etc/odbcinst.ini

    SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini

    FILE DATA SOURCES... : / usr/local/etc/ODBCDataSources

    USER DATA SOURCES.. : /home/oracle/.odbc.ini

    SQLULEN size...: 8

    SQLLEN size...: 8

    Size SQLSETPOSIROW. : 8

    $ ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1

    I also created a file $ORACLE_HOME/hs/admin/initPG_LINK.ora with the following information:

    HS_FDS_CONNECT_INFO = PG_LINK

    HS_FDS_TRACE_LEVEL = OFF

    HS_FDS_SHAREABLE_NAME = /usr/pgsql-9.1/lib/psqlodbcw.so

    HS_FDS_SQLLEN_INTERPRETATION = 32

    Define ODBCINI = /home/oracle/.odbc.ini

    Files $ORACLE_HOME/network/admin/listener.ora and tnsnames.ora were also changed as well:

    Listener.ora

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PG_LINK)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (ENV = "LD_LIBRARY_PATH = /usr/lib64:/usr/pgsql-9.1/lib:/u01/app/oracle/product/11.2.0/dbhome_1/bin")

    (PROGRAM = dg4odbc)

    )

    (SID_DESC =

    (GLOBAL_DBNAME = SIAPROD)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = SIAPROD)

    )

    )

    tnsnames.ora

    SIAPROD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.1.55) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = SIAPROD)

    )

    )

    PG_LINK =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.1.55) (PORT = 1521))

    (CONNECT_DATA = (SID = PG_LINK))

    (HS = OK)

    )

    Finally, I've followed these recommendations:

    So, let's create a file strace to see if we get more details for esta trace.

    1. get the process id of the Oracle listener that generates the gateway (ps - ef | grep TNS)

    2 strace o FAE - dg4odbc.log < gateway listener process id > Pei

    3. now start a new SQL * Plus the term and try to select in the Postgres database again. Once you get the error, cancel the process of strace of step 2 dg4odbc.log and download the file to a public file share.

    -Klaus

    http://www.mediafire.com/download/3kglaeg023v3r9r/dg4odbc.log

    I hope you can help me solve this problem

    Thanks in advance.

    Mkirtley good day, thanks again for your help and time on my problem, but I followed your recommendations again and the error persists. Already tired of this, I decided to make several changes to the files of configuration and ODBC iniPG_LINK.ora where I was finally able to operate these services bad XD, all attached configuration files:

    Listener.ora

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PG_LINK)

    (ORACLE_HOME = / u01 / app / oracle / product / 11.2.0 / dbhome_1)

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

    (PROGRAM = dg4odbc)

    )

    (SID_DESC =

    (GLOBAL_DBNAME = SIAPROD)

    (ORACLE_HOME = / u01 / app / oracle / product / 11.2.0 / dbhome_1)

    (SID_NAME = SIAPROD)

    )

    )

    tnsnames.ora

    SIAPROD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.1.55) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = SIAPROD)

    )

    )

    SS_LINK =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.1.55) (PORT = 1521))

    (CONNECT_DATA = (SID = SS_LINK))

    (HS = OK)

    )

    PG_LINK =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 172.16.1.55) (PORT = 1521))

    (CONNECT_DATA = (SID = PG_LINK))

    (HS = OK)

    )

    iniPG_LINK.ora

    HS_FDS_CONNECT_INFO = PG_LINK

    HS_FDS_TRACE_LEVEL = 255

    HS_FDS_SHAREABLE_NAME = / usr / local / lib / libodbc.so

    # HS_LANGUAGE = American_America.WE8ISO8859P1

    # HS_FDS_SQLLEN_INTERPRETATION = 32

    ODBCINI September = / home / oracle /. ODBC.ini

    / Home/Oracle /. ODBC.ini

    [ODBC data sources]

    PG_LINK = PostgreSQL

    [PG_LINK]

    Debug = 1

    CommLog = 1

    ReadOnly = no

    Driver = / usr / pgsql - 9.1 / lib / psqlodbc.so

    ServerName = 172.16.2.27

    FetchBufferSize = 99

    User name = portaluquindio

    Password = portaluquindio

    Port = 5432

    Database = portaluquindio

    [Default]

    Driver = / usr / lib64 / liboplodbcS.so

    /usr/local/etc/odbcinst.ini

    [PostgreSQL]

    Description = PostgreSQL ODBC driver

    Driver = / usr / pgsql - 9.1 / lib / psqlodbc.so

    The installation program = / usr / lib64 / libodbcpsqlS.so

    FileUsage = 1

    [Oracle @ hs DB02] $ odbcinst-j

    unixODBC 2.3.2

    ............ DRIVERS: /usr/local/etc/odbcinst.ini

    SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini

    FILE DATA SOURCES... : / usr / local / etc / ODBCDataSources

    USER DATA SOURCES.. : /home/oracle/.odbc.ini

    SQLULEN size... 8

    SQLLEN size... 8

    Size SQLSETPOSIROW. : 8

    CREATE DATABASE LINK PG_LINK3

    CONNECT to 'portaluquindio' IDENTIFIED BY 'portaluquindio '.

    WITH THE HELP OF "PG_LINK";

    CREATE DATABASE LINK PG_LINK

    CONNECT to 'postgres' IDENTIFIED BY 'postgres '.

    WITH THE HELP OF 'PG_LINK '.

    [Oracle @ dbhome_1 DB02] $ database

    SQL * more: Production release 11.2.0.4.0 Wednesday, August 12, 2015 09:48:17

    Copyright (c) 1982, 2013, Oracle. All rights reserved.

    Connected to:

    Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production

    SQL > select count (*) from 'usuario"@PG_LINK;

    COUNT (*)

    ----------

    442

    SQL >

    [Oracle @ dbhome_1 DB02] $ database

    SQL * more: Production release 11.2.0.4.0 Wednesday, August 12, 2015 09:50:19

    Copyright (c) 1982, 2013, Oracle. All rights reserved.

    Connected to:

    Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production

    .; SQL > select count (*) from 'general '. "usuario"@PG_LINK3

    COUNT (*)

    ----------

    63143

    SQL >

    The above configuration leads to several conclusions, given my experience with all heterogeneous services:

    (1) it is not really clear, precise and detailed information on the installation of the heterogeneous services and its connection with unixODBC in oracle, I say this, because all Web sites official and unofficial oracle differently to configure or similar appear, but I always find people with different problems without clear indications of your problem.

    (2) I think that it is very important to take account of the version of unixODBC, because the version 2.3.0 has not helped me and I had to use the 2.3.2. Version 2.3.0 did not help me, because a mistake: '[unixODBC-support] [IM002] [unixODBC] [driver manager] data source name not found and no pilot not specified default', unlike points 2.3.2 and it was installed in the same way as above:

    tar xvf /tmp/unixODBC-2.3.2.tar

    CD /tmp/unixODBC-2.3.2

    . / configure; do; make install

    (3) I have several dblinks with data different connection as stated above, this means that the dblink is not logging data of the odbc.ini.

    Yet once, I thank very you much collaboration user Mkirtley, because it was a great help.

    I'm now stuck looking for a tutorial or a manual on how to write sentences or procedures between oracle and postgres.

    For now I leave you with the following problem when you run a SQL statement in oracle postgres:

    SQL > select 'usua_id' from 'general '. 'The user' PG_LINK

    2 where "usua_usuario" = "123456";

    where "usua_usuario" = "123456"

    *

    ERROR on line 2:

    ORA-00997: invalid use of LONG data type

    SQL >

    Thank you very much and good day.

Maybe you are looking for