Insertion in Postgres via ODBC gateway

Hi, I did a few tests, here are the questions and results:

Postgres:
CREATE TABLE t_dump
(
  str character varying(100)
)
Oracle: [ORADB: db link to Postgrers]
INSERT INTO "t_dump"@ORADB VALUES ('test'); 
Works very well, both from PL/SQL SQL

However:
Declare
m_str Varchar2 (10) := 'test';
Begin
INSERT INTO "t_dump"@ORADB VALUES (m_str);  
End;
Gives me an error:
Error report:
ORA-00604: error occurred at recursive SQL level 1
ORA-02067: transaction or savepoint rollback required
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DB)(PORT=1521))(CONNECT_DATA=(SID=pg)))
ORA-02055: distributed update operation failed; rollback required
ORA-02063: preceding lines from ORADB
ORA-06512: at line 8
00604. 00000 -  "error occurred at recursive SQL level %s"
*Cause:    An error occurred while processing a recursive SQL statement
           (a statement applying to internal dictionary tables).
*Action:   If the situation described in the next error on the stack
           can be corrected, do so; otherwise contact Oracle Support.
Dynamic SQL gives the exact same error:
Declare
m_str Varchar2 (10) := 'test';
Begin
EXECUTE IMMEDIATE
'INSERT INTO "t_dump"@ORADB VALUES (:v0)'
  Using m_str;
End;
Is it possible that I could use variables in queries?

An issiue more:
I created a table partitioned in Postgres and simple INSERT statement works well [SQL Oracle's]; However - the same statement, accompanied by start/end [PL/SQL] needs about 60 seconds to complete. Is this a normal behavior? Y at - it a config/pragma... I use to speed it up?

Concerning
Bart Dabr

is the full path or you cut a few lines at the end?

When you look at the link I see a column is bound without precision (LONGVARCHAR-1 Y 0 0 0 / 0 0 0 220 stringvalue)-this also happens when using the insert without a variable binding?

Published by: kgronau on October 5, 2011 09:09

I've created a demo table in a Postgres database:
CREATE TABLE information_schema. "" VarBin ".
(
whole col1,
col2 character varying (100)
)
WITHOUT OIDS;

And my gateway to help insert links works:
SQL > declare
Number of m_nmbr (10): = 1;
m_str Varchar2 (10): = 'test ';
Begin
INSERT INTO 'information_schema '. "VarBin"@postgres_dg4dd61_emgtw_1123_db (m_nmbr, m_str) values;
End;
/ 2 3 4 5 6 7

PL/SQL procedure successfully completed.

SQL > select * from 'information_schema '. "VarBin"@postgres_dg4dd61_emgtw_1123_db;

col1 col2
----------------------------- ---------------------------------------------------
1 test

What the version of the ODBC driver you are using and do the test using my script works for you?

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

  • Sync create a database via odbc

    Is it possible to have a win RT database that can synchronize via odbc or similar with a pc?

    Thank you

    Hello

    The question you have posted is related to database connectivity and would be better suited to the MSDN support. I suggest you check with the MSDN help for more information.

    http://social.msdn.Microsoft.com/forums/en-us/newThread?category=SQLServer&Forum

  • NET8 timeout with ODBC gateway

    Local:
    Database: Oracle XE 11 GR 2
    ODBC Oracle 11g gateway
    Windows 7
    Customer Sybase SQL light 12

    Distance:
    Database: Sybase SQL Anywhere 10
    Windows Server 2008 R2
    ====================

    SQL:
    Select * from mytable@dblink:

    Error returned:
    ERROR on line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of dblink

    Files:
    ---------------
    initdlink.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 = dblink
    #HS_FDS_TRACE_LEVEL = 255

    HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    HS_NLS_NCHAR = UTF-8

    ----------------
    Listener.ora
    ----------------

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = XE)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    )
    (SID_DESC =
    (SID_NAME = dblink)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\gtw)
    (PROGRAM = dg4odbc)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    )
    )

    DEFAULT_SERVICE_LISTENER = (XE)

    ------------------
    tnsnames.ora
    ------------------

    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )

    dblink =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = localhost)
    (PORT = 1521)
    )
    (CONNECT_DATA =
    (SID = dblink))
    (HS=OK))

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    ==========================
    (1) mounting similar works well under Linux, remote Sybase on Windows. But getting the below error when running on Windows 7.
    (2) similar editing of Windows7 to Windows 2008 R2 works very well when ODBC gateway on remote Windows 2008 Server.
    (3) ODBC connectivity has been verified as ok for a remote Sybase database on Windows 2008 server.
    (4) dblink tnsping checked ok.

    Problems started when you move the ODBC gateway to local system where the target Oracle database.

    Please notify.

    Added to initdblink.ora (no change in the results):

    HS_KEEP_REMOTE_COLUMN_SIZE = ALL
    HS_NLS_LENGTH_SEMANTICS = CHAR

    Published by: user601798 on December 4, 2012 11:59

    You are mixing of different OH in your earpiece. The entry door is located in C:\oraclexe\app\oracle\product\11.2.0\gtw, but the database and listener in: C:\oraclexe\app\oracle\product\11.2.0\server

    When you use DG4ODBC, you can use the gateway that is automatically installed in the database Home-> you will find also a HS directory and the executable dg4odbc. The other option is to use separate listeners for both facilities. For example, use the listener to Oracle database on port 1521 for database connections and 1522 for the gateway.

    If you really want to use a listener (who is not the preferred solution), then you must also specify the location of the file executable, similar to:

    (SID_DESC =
    (SID_NAME = dblink)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\gtw)
    (PROGRAM = C:\oraclexe\app\oracle\product\11.2.0\gtw\dg4odbc)
    )

    After you change the listener.ora file, please STOP and STAT the listener using lsnrctl utility and provide its output. Also provide output of tnsping dblink.

    -Klaus

  • Help with the Universal Installer - installation of database for ODBC gateway

    Hi experts,

    I'm trying to install the database to ODBC bridge according to http://download.oracle.com/docs/cd/B28359_01/gateways.111/b31043/installodbc.htm#BHCCCJJJ

    My problem is that the installation program seems trying to install another data base oracle from scratch and I don't get the options above documentation suggests.

    This is a Windows 2003 R2 Standard Edition 11.1.0.7.0 server is a production system, so I can't screw it up :-)

    I'm probably doing something stupid - I'm a developer and not really a DBA.

    Thanks for your suggestions that you could help me with.

    Best regards
    Pete

    PS. instead of getting 'Specify Home Details' after the Welcome screen I get "set Source location."

    Published by: Pete S on April 20, 2010 12:47

    Are you sure that you downloaded the correct software? From the download page:

    Oracle Database gateways 11g Release 1 (11.1.0.6.0)
    for Microsoft Windows (32-bit)
    win32_11gR1_gateways.zip (479,045,812 bytes)

    But - there should be no need to install DG4ODBC, he is already part of the installation of the database server. At least this is the case for Enterprise Edition, I'm not sure about Standard Edition. In a simply command window issue
    "dg4odbc", if you see something like the following, you already have the ODBC gateway:

    Oracle Corporation - Tuesday 20 April 2010 21:59:20.000

    11.2.0.1.0 - Production built with heterogeneous Agent release
    Gateway for ODBC Oracle database

    Werner

  • OMBCRETAE odbc gateway module

    Hello

    I am trying to create an odbc in OWB module using tcl, but when I write OMBCREATE ODBC_MODULE 'test', it gives an error.
    Can you please tell me how to create a module not oracle odbc module.

    Thanks :)

    OMBCREATE GATEWAY_MODULE

    Goal

    To create a gateway module.

    Prerequisites

    Should be the project.

    Syntax

    createGatewayModuleCommand = OMBCREATE (GATEWAY_MODULE ("QUOTED_STRING")
    SET 'setPropertiesClause') [SET
    ["setReferenceClauseForDataMetadataModule"]
    "addModuleReferenceLocationClause"])
    setPropertiesClause = PROPERTIES ' (""propertyNameList"" "") ' VALUES '() '.
    'propertyValueList' ").
    setReferenceClauseForDataMetadataModule = ("setReferenceLocationClause"]
    SET "setReferenceMetadataLocationOrIconSetClause"] |
    "setReferenceMetadataLocationOrIconSetClause")
    addModuleReferenceLocationClause = {'addReferenceLocationClause'
    "addReferenceLocationClause"}
    propertyNameList = "UNQUOTED_STRING" {"," "UNQUOTED_STRING"}
    propertyValueList = 'propertyValue' {', ' 'propertyValue'}
    setReferenceLocationClause = (REFERENCE |) REF) LOCATION 'QUOTED_STRING.
    setReferenceMetadataLocationOrIconSetClause =)
    "setReferenceMetadataLocationClause" [SET "setReferenceIconSetClause"
    ] | "setReferenceIconSetClause")
    addReferenceLocationClause = Add (REFERENCE |) LOCATION REF)
    "QUOTED_STRING' [SET AS DEFAULT]
    propertyValue = ("QUOTED_STRING" |) "INTEGER_LITERAL" |
    "FLOATING_POINT_LITERAL")
    setReferenceMetadataLocationClause = (REFERENCE |) METADATA_LOCATION REF)
    "QUOTED_STRING.
    setReferenceIconSetClause = (REFERENCE |) ICONSET REF) "QUOTED_STRING.

    Keywords and parameters

    createGatewayModuleCommand

    This command creates a gateway module

    QUOTED_STRING

    The gateway module name must be created.

    setPropertiesClause

    Associate a set of properties with the gateway module.

    Basic properties of GATEWAY_MODULE:

    Name: BUSINESS_NAME

    Type: STRING (200)

    Valid values: n/a

    Default: NAME

    Trade name of an Oracle Module

    Name: DESCRIPTION

    Type: STRING (4000)

    Valid values: n/a

    Default: "

    Description of an Oracle Module

    Name: GATEWAY_TYPE

    Type: STRING

    Valid values: n/a

    Default: n/a

    Gateway module type. Values supported are: "DB2 Gateway Module', 'Sybase

    Gateway module ',' Sql * server Gateway Module ", 'Informix Gateway Module',"

    "ODBC gateway module', 'DRDA Gateway Module', 'RDB gateway Module',

    "Teradata Gateway module', 'another Module Gateway.

    Properties of GATEWAY_MODULE:

    Name: DB_LOCATION

    Type: STRING

    Valid values: n/a

    Default: "

    Location for the referenced objects

    Note:

    1 n/a means any valid character in the supported character set.

    2 "represents an empty string

    setReferenceClauseForDataMetadataModule

    Set location and/or the icon set for the module gateway.

    addModuleReferenceLocationClause

    Add runtime for the gateway module locations.

    propertyNameList

    List separated by commas in the names of properties. Property names without quotes.

    propertyValueList

    List separated by commas of property values.

    setReferenceLocationClause

    Set a location of runtime for the gateway module.

    setReferenceMetadataLocationOrIconSetClause

    Define metadata location and/or the icon set for the gateway module.

    addReferenceLocationClause

    Add a runtime for the gateway module location.

    propertyValue

    Value of a property.

    setReferenceMetadataLocationClause

    Set the location of the metadata for the gateway module.

    setReferenceIconSetClause

    Set the icon set for the gateway module.

    See also

    OMBCREATE, OMBALTER GATEWAY_MODULE, OMBDROP GATEWAY_MODULE

  • Transport via RDP gateway

    Hi all

    I installed on Windows 2008 R2 TGW and only access via RDP. The previous installation worked fine on an another win 2008 R2 and could access the GUI using the option/admin in RDP.

    With the recent installation cannot access the GUI at all. The only difference is the account being used, before, I had an administrator account, now I use my account with done AD part of the Administrators group.

    Can anyone suggest a fix or a solution?

    Wayne

    Hi Wayne,

    Make sure that the Windows Service 'Ineractive Services détection' is enabled and running.

    Bryan

  • Export data from Autodesk - 2015 Revit (via ODBC)

    Hi all

    I'm having some trouble for some time now regarding the export of data from a Revit to my database project. This is my environment:

    Windows 7-64 bit

    Oracle 11.2.0.1 database

    Revit 2015

    The first two times, I was able to export the project data in a newly created schema 'RELIVES' (taking into account appropriate subsidies).

    The first time, the project was implemented without any problems. Next time, I tried to export the same project to another schema 'REVIT2', I got this error from ODBC:

    [42S 02] [Oracle] [ODBC] [Ora] ORA-00942: table or view is not (942)

    Since then, I was not able to export any project in any schema.

    I tried to get this type of error, but I couldn't find anything on the forums of Autodesk. I was going to ask this here when I read the documentation (C:\Oracle\product\11.2.0\dbhome_1\odbc\html\ODBCRelnotesUS.htm) ODBC.

    Under the necessary software , he said:

    Microsoft Windows XP and for Unix platforms, refer to free the driver ODBC Oracle version for Unix platforms.

    Oracle Net Client 11.2.0.1.0

    Oracle Universal Installer shipped with Oracle 11.2.0.1.0

    I thought that maybe the first time worked but things I have screwed up later (since I'm on Windows 7). So, I read a post for a similar case which offers the download of a different ODBC driver as a solution. So I downloaded the instantclient-basic - windows.x 64 - 11.2.0.4.0.zip and instantclient-odbc - windows.x 64 - 11.2.0.4.0.zip. I deployed the moment customer base and installed the ODBC successfully.

    I was able to create and test the connection from the ODBC Administrator Console successfully. However, I still get the same error!

    Any ideas?

    Thanks in advance.

    Mr. Fadel

    You copy of Autodesk to Oracle.  I assume that it is a utility from Autodesk that you use that copies the data.  If it's utility datapump of Oracle, I could have been able to help (if you knew how the privileges of the user, data dictionary, trace files etc in an Oracle database views!)

    Hemant K Collette

  • SQL dev to connect via odbc to non-oracle db

    Question asked to me regarding the use of sql dev to connect to a Turbo Image databsae running on a HP-3000 through odbc.  They have odbc drivers, but the front-end client is no longer supported and are looking for an alternative.  I've never used Dev of SQL to connect to a non-oracle database, but it seems as it should, maybe with the OTG for odbc.

    Ideas?

    We are a java application. Yes JDBC.

    And we offer only 3rd connectivity to help migration of Oracle. Currently we do not support Turbo-Image of database migration to Oracle.

    There are however several ODBC database generic tools out there.

  • inserting submenu items via the code - not the file editor graphics *.uir (not the edit > > Menu Bars... method!)

    How submenu items are constructed by code and not the edit menu bar settings in the *.uir Editor?  NemMenuItem (...) does not do that, or I'm not plugging in parameters correctly, which I doubt is the case.  BTW, he has no explanation in the help of v.8.0.1 AIC menu items on NewSubMenu (...) and how to use the subMenuHandler for all other functions.  At least everything I found had nothing to do with submenu items.  Is it impossible to do it by programming?

    Hi Chris,

    You can paste the code below directly to the interactive execution window and run.

    The result is in the attachment.

    #include

    public static int NLP, mbar, menu;
    public static int mitem, submit, submitem;

    NLP = NewPanel (0, "", 250, 250, 250, 250);
    mbar = NewMenuBar (NLP);
    menu = NewMenu (mbar, "menu",-1);

    mitem = NewMenuItem (mbar, menu, "submenu",-1, 0, 0, 0);
    prese = NewSubMenu (mbar, mitem);
    submitem = NewMenuItem (mbar, submit, "submenuitem",-1, 0, 0, 0);

    DisplayPanel (NLP);
    RunUserInterface ();

    I hope that's what you asked for.

    Have a nice weekend

  • Gateway ODBC Oracle SELECT Sybase fails on large column

    OS: CentOS 64-bit 5.8
    DB: Oracle XE 11 GR 1 64-bit material
    Gateway: Oracle Gateway for ODBC 64-bit
    Database and the entrance door are on the same Linux server.
    Connect to the remote server from Sybase SQL Anywhere 10 on Windows XP.
    Using the SQL Anywhere 11 odbc and unixODBC on Linux server handler driver.
    tool isql connects without any problems.
    A LISTENER, service for db and the gateway on the same port.
    ===================================
    Via SQL * Plus, the following error occurs...

    SQL > select * from mytable@dblink;
    Select * from mytable@dblink

    ORA-02070: dblink database does not support the outer joins in this context

    Gateway don't like the 'great' column which is varchar (3270) length. It is also the only
    the table column that is of type varchar.
    Remove this column and SELECT works very well.

    Here is the initdblink.ora file:

    # 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 = dblink
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
    HS_FDS_TRACE_LEVEL = 255

    HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    HS_NLS_NCHAR = UTF-8

    #
    # ODBC specific environment variables
    #
    Set ODBCINI=/etc/odbc.ini

    Please advise...

    Published by: user601798 on October 17, 2012 07:09

    Published by: user601798 on October 17, 2012 07:09

    Published by: user601798 on October 17, 2012 07:13

    The gateway of the trace that shows "12 VARCHAR N 3270 3270 0 / 0 0 0 200 DISCPLN_COMM" I expect the column is mapped to a varchar2 Oracle that accuracy does not exceed the limit of varchar2 (4000).
    But there could be a risk that the database Oracle uses Unicode HOCXU_DB_CSET = 873 that could result in a tripling of the varchar columns because some Unicode characters require 3 bytes. When this product then the column discpln_comm is mapped to a data type long Oracle and there are dozens of restrictions when it comes well of data types.

    Published by: kgronau on October 19, 2012 07:37

    A previous update, you said:
    I noticed in my PL/SQL Developer IDE that this 1 column returned as a LONG. (?)
    This means that a tripling of the precision could happen.

    Could you please add these 2 parameters to the file init Bridge:
    HS_KEEP_REMOTE_COLUMN_SIZE = ALL
    HS_NLS_LENGTH_SEMANTICS = CHAR

    Now open a new SQL * Plus term and describe the table in SQL * more (desc RSCCC.SR_SPEC_PGM_SPEC_ED @) and to report to its release. Is the column that discpln_comm is always mapped to a long column?

    If so, then change the parameters of 2 gateway for:
    HS_KEEP_REMOTE_COLUMN_SIZE = LOCAL
    HS_NLS_LENGTH_SEMANTICS = CHAR
    Open a new SQL again * more session and describe the table again. DISCPLN_COMM is always mapped to a long?

    Published by: kgronau on October 19, 2012 07:43

  • Transparent Oracle Gateway for ODBC error on SELECT Sybase Anywhere 11

    Environment:
    ------------------
    O / s: CentOS 6.2 (64-bit)
    Oracle DB: Oracle XE 11.2.0.2.0 (64-bit)
    Sybase DB: Sybase Anywhere 11 (64-bit)
    Driver ODBC: unixODBC 2.3.1 (64-bit)
    ODBC drivers: Sybase Anywhere Client ODBC (64-bit)
    Oracle ODBC Gateway: 11.2.0.1.0 (64-bit)
    NOTE: The two databases are local.
    Changing init.ora in listener.ora gateway home directory and put to update the (and use) and tnsnames.ora Oracle XE directory.
    Listener and tnsping started / worked successfully.
    -----------------------------------------------------------

    Question:
    ----------

    Get the following error message when you try to SELECT a Sybase Anywhere 11 database via the ODBC Oracle Gateway running with Oracle XE:

    SQL > select * from employees@SybASA;
    Select * from employees@SybASA;
    *
    ERROR on line 1:
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [

    SQL >

    Trace enabled in bridge init.ora file (initSybASA.ora) and got the following at the end of the trace file:

    hgocont, 2752 line: call SqlDriverConnect obtained sqlstate 0
    Out of hgocont, rc = 28500 to 2012-08-05-08: 44:56 with the ptr LEADER: hgocont.c LINE 2772 FUNCTION error: hgocont() ID: something else that permission is not valid
    Out of hgocont, rc = 28500 to 2012-08-05-08: 44:56 with the ptr LEADER: hgocont.c LINE 781 ID:Calling FUNCTION error: hgolgon() hgocont
    Entry hgoexit to 2012-08-05-08: 44:56
    Release of hgoexit, rc = 0

    ---------------------------------------
    Any advice would be appreciated. THX.

    Hello
    Could you add the following to theinit .ora leading bridge -

    HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    HS_NLS_NCHAR = UCS2

    and try a select a new SQLPLUS session.
    If you still have problems then post the following files-

    -Gateway listener.ora
    -Gateway initSybASA.ora

    Kind regards
    Mike

  • Using Oracle ODBC connection to a remote Oracle database gateway

    Oracle 11 g 2

    RHEL 6.4

    Someone at - it use the Oracle ODBC gateway to connect to a different Oracle database?  Problems with this configuration?  Where can I get the drivers for Linux ODBC?

    (I know, "why not use a dblink?" -Well that would be against the strategies of enterprise security)

    Thanks for your reply.  What I wanted was 'just' a dblink of 1 db Oracle to another Oracle db w/o the use of the ODBC bridge.

  • Transparent gateway for ODBC Oracle

    The Transparent Oracle Gateway for ODBC is available on Windows platforms? ODBC drivers are available for Linux and * nix platforms, but it appears from reading the documentation that you can install the ODBC Oracle transparent gateway on a Windows operating system.  However, I also found a certification matrix that shows the following O / its certified Oracle DB 10g / 11g and the ODBC bridge:

    HR 4.5 or OEL 4.5 and 10 SLSE
    Solaris 9 (update 6) 10
    AIX 5.3
    HP - UX 11.23, 11.31

    The Oracle Database 11 g 1 material that will use the gateway that runs on HR 5.

    See you soon!

    Published by: user601798 on July 12, 2012 12:57

    The ODBC gateway is called gateway for ODBC database and it is available for several Unix platforms.

    Take a look at the certification matrix, which can be found here:
    http://www.Oracle.com/technetwork/database/gateways/certmatrix-168347.PDF

    Published by: kgronau on July 13, 2012 06:35

    When you access the My Oracle Support Portal, then you can check the note:
    How to set up DG4ODBC on 64-bit Unix OS (Linux, Solaris, AIX, HP - UX Itanium) to connect to Oracle databases Post Install [561033.1 Document]

    gives you the instruction step by step how to set up DG4ODBC release 11.

  • A weird exception in 12 c (ORA-01461: can bind to a LONG value only for insert into a LONG column)

    I have a Windows application that accesses a database of 12 c Oracle via ODBC (driver version is 12.01.00.01).

    I have a table with a column of key named REGION_ID (NVARCHAR2 (9)) and a dozen other columns, of which three are named region1 and region.2 elle3, all of type NVARCHAR2 (40).

    When I try to insert a string in the scope of the region1 is longer than 9 characters (length of REGION_ID), I get an error ORA-01461 (' can bind to a LONG value only for insert into a LONG column). If I set the length of REGION_ID be NVARCHAR2 (15), so I can add channels to the region1 in length up to 15 field until I get ORA-01461 exception again. Curiously, if I change the name of column region1 to REGIONONE, I don't get any errors, and everything works fine. It's almost as if the column name region1 is being confused with REGION_ID backstage.

    Any ideas? I am using SQLBindParameter to bind the columns, and all calls are successful. I get the exception when I run the insert statement. This same code worked for previous versions of Oracle (9i, 10g and 11g). And if I use a driver of client 11g against the 12 c server, I do not receive the exception.

    Thank you!

    It is a component of ODBC driver bug in 12 c and it is fixed. You can download and install the fix for bug 18232462 or the last window for 12 c patch cumulative/bundle.

    Thank you

    Spengler

Maybe you are looking for