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

Tags: Database

Similar Questions

  • 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

  • Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi?

    Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi? When I try this Apple TV does not appear in the list of devices on my iPhone.

    Yes, I'm doing exactly this with the same put in place.

    If the problem persists the next relative to the following articles might help you.

    Troubleshooting home sharing

  • Problem with password reset link - "there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later. »

    Hello, account Windows Live from my wife was hacked a week ago and has been used to send many spam emails. As a result, his account has been disabled or closed (we are not sure). Whenever she asks to reset a password and a link sent to a different e-mail account, when she clicked it gets this message 'there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later. "She is tried repeatedly, but get the same message. Someone knows how to go beyond that, so she can recover her account? Thank you.

    Hello BBB34,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • How can I add an ID related when I get this message (there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later.) ?

    How can I add an ID related when I get this message (there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later.) ?

    Hello

    an answer your other thread

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-networking/why-do-i-keep-getting-your-Windows-Live-ID-cant-be/268ff99c-E459-E011-8dfc-68b599b31bf5?page=1&TM=1301396733390#footer

  • Create a postgres with dg4odbc oracle dblink

    Hello

    I am creating a dblink from an Oracle (10.2.0.3) database to PostgreSQL (8.3.11) database with DG4ODBC (11.2.0.1.0).

    I installed the 64-bit driver postgres:
    file /usr/lib64/psqlodbc.so
    /usr/lib64/psqlodbc.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
    I am the /oracle/.odbc.ini configuration:
    [record]
    Driver=/usr/lib64/psqlodbc.so
    Description  = PostgreSQL ODBC
    Servername       = cdxlan035
    Port         = 5435
    Username         = rec_lct
    Password     = rec_lct
    Database     = REC_TEST
    I am setting up the /oracle/product/DG4ODBC/hs/admin/initrecord.ora like this:
    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = record
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME = /oracle/product/DG4ODBC/hs/log/hsodbc.trc
    HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbc.so
    
    #
    # ODBC specific environment variables
    #
    set ODBCINI=/oracle/.odbc.ini
    I'm the /oracle/product/DG4ODBC/network/admin/listener.ora configuration
    LISTENER_HS =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036.douane)(PORT = 1525))
        )
      )
    
    ADR_BASE_LISTENER_HS = /oracle/product/DG4ODBC
    
    SID_LIST_LISTENER_HS =
      (SID_LIST =
        (SID_DESC =
          (PROGRAM = dg4odbc)
          (ORACLE_HOME = /oracle/product/DG4ODBC)
          (SID_NAME = record)
          (ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/product/DG4ODBC/lib:/oracle/product/10.2.0/lib)
        )
      )
    I update my /oracle/product/10.2.0/network/admin/tnsnames.ora:
    RECORD2 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036)(PORT = 1525))
        )
        (CONNECT_DATA =
          (SID = record)
        )
        (HS=OK)
       )
    Last I created the dblink:
    CREATE  DATABASE LINK "RECORD"  CONNECT TO "rec_lct" IDENTIFIED BY "rec_lct"  USING 'RECORD2';
    When I'm trying to choose my postgres database, it does not. Here's the /oracle/product/DG4ODBC/hs/log/record.log:
    [oracle@cdxlan036 log]$ cat record_agt_30445.trc
    
    
    Oracle Corporation --- MONDAY    FEB 27 2012 17:11:31.204
    
    
    Heterogeneous Agent Release
    11.2.0.1.0
    
    
    
    
    Oracle Corporation --- MONDAY    FEB 27 2012 17:11:31.204
    
        Version 11.2.0.1.0
    
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
    Entered hgosdip
     setting HS_OPEN_CURSORS to default of 50
     setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
     setting HS_FDS_RECOVERY_PWD to default value
     setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
     setting HS_IDLE_TIMEOUT to default of 0
     setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
     setting HS_NLS_NCHAR to default of "AL32UTF8"
     setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
     setting HS_FDS_DATE_MAPPING to default of "DATE"
     setting HS_RPC_FETCH_REBLOCKING to default of "ON"
     setting HS_FDS_FETCH_ROWS to default of "100"
     setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
     setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
     setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
     setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
     setting HS_FDS_MAP_NCHAR to default of "TRUE"
     setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
     setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
     setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
     setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
     setting HS_FDS_QUERY_DRIVER to default of "TRUE"
     setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
     Parameter HS_FDS_QUOTE_IDENTIFIER is not set
     setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
     setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
     setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
     setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
     setting HS_FDS_DELAYED_OPEN to default of "TRUE"
     setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
     ORACLE_SID is "record"
     Product-Info:
      Port Rls/Upd:1/0 PrdStat:0
      Agent:Oracle Database Gateway for ODBC
      Facility:hsa
      Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:record
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=31
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2012/02/27-17:11:31
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/psqlodbc.so"
    Entered hgolofns at 2012/02/27-17:11:31
     libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
     peflerr=6521, libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
     hoaerr:28500
    Exiting hgolofns at 2012/02/27-17:11:31
    Failed to load ODBC library symbol: /usr/lib64/psqlodbc.so(SQLAllocHandle)
    Exiting hgolofn, rc=28500 at 2012/02/27-17:11:31
    Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs
    Entered hgoexit
    HS Gateway:  NULL connection context at exit
    Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection context
    What wrong with my setup?

    Thanks for your help

    Kind regards

    Mathieu

    Yes, you need to have a (psqlodbc.so) ODBC driver and the ODBC Driver Manager (very common name is libodbc.so). If you are absent Manager ODBC drivers that you find for example the unixodbc.org and once you have it installed you need to fix HS_FDS_SHAREABLE_NAME to refer to the driver manager. The driver manager will check the file odbc.ini and according to the specified DSN, it will load your ODBC driver.

  • XP home edition & infected with rustock.d. Free AVG detects and deletes, but it always returns. How can I remove permanently and safely

    I am infected with the rustock.d virus, like a way to remove this thing without having to buy a specific product to do. Free running ANG

    Rustock.d is a rootkit infection. You will need an expert to have guided help on one of the specialty forums listed in the link below OR take your machine to a local computer professional OR return to top your data and do a clean install of Windows. It's your choice. I do not recommend using BigComputerStore/GeekSquad types of places.

    http://www.elephantboycomputers.com/page2.html#HJT-links MS - MVP - Elephant Boy computers - don't panic!

  • Problem with VPN Site-to-Site between RV215W and ASA5510

    The RV215W is intended to connect a new branch via 3G, but fail.

    But when connected to the internet via a cable modem VPN works.

    I have set up with the FULL domain name and remote ip address.

    Please help me soon as soon as you can.

    Thaks a lot.

    Henriux2412.

    Dear Henry;

    Thank you to the small community of Support Business.

    I doubt that this VPN site-to-site is compatible with the USB modem broadband Mobile 3 G, but I have when even suggest to verify that the Status field of the map will show your mobile card is connected (status > Mobile network). I've seen a similar problem with a Verizon USB modem where the solution was to change a few settings in their access Manager software ("NDIS Mode - connect manually" has been selected and change this option to "Modem Mode - connect manually fixed), but if this is not your case then I suggest you to check with your service provider about supported VPN site to site on the WAN configuration.

    Except that I advise you to contact the Small Business Support Center for more information on this subject, although I don't think they will support

    https://supportforums.Cisco.com/community/NetPro/small-business/sbcountrysupport

    Do not hesitate to contact me if there is anything I can help you with in the meantime.

    Kind regards

    Jeffrey Rodriguez S... : | :. : | :.
    Support Engineer Cisco client

    * Please rate the Post so other will know when an answer has been found.

  • Problem with VPN Site-to-Site between RV215W and ISA550

    Hello

    I tried to set up a site connection to site between a RV215W and an ISA550 for a whole day without success now, could someone help me with an example of configuration?

    I'm new to this kind of configurations and VPN Options of two routers seem very different, with IKE an IPsec on the RV, IPsec and IKE policies, transform the policies on the ISA.

    Outputs the Wizards from Site to Site are not either.

    The RV215W is intended to connect a new branch via 3G and that it doesn't have a fixed IP address.

    Subnet the ISA is 10.10.11.0/24 VR 192.168.100.0/24

    Thanks for any help in advance!

    T

    Hello

    I check all the screenshots and you must:

    -Disable the PFS on ISA500 (screenshot of ISA500 of a second)

    -Enable IPsec on ISA500 (first screenshot of ISA500)

    -Activate the VPN on RV215W (first screenshot of RV215W) policy

    And iniate the RV215W VPN

    I hope that this step will fix the problem

    Thank you

    Mehdi

  • PIX 515E (7.0.1) - problem with the VPN connection between inside and outside

    Hello

    I ve creates a VLAN on the pix.

    In this VLAN, users are allowed to connect only to the Internet. Everything is fine, but when trying to connect with his VPN Client to their company, it has problems... (Outside traffic flow, but no traffic came back.)

    Is the only solution for this problem to create a Pool of Nat with public ip addresses, one to one mapping, or is there another solution with a public IP address (NAT on PAT) possible for this problem?

    Thanks for your replies.

    D.

    The problem is that the esp is an IP Protocol, so PAT will not work in this scenario. When the return traffic returns to pix he doesn't know how to get to the inside host. The only way to do this is by adding a static nat (1 to 1 mapping) and create a rule to allow esp. Is what type of vpn client? Microsoft vpn? Cisco vpn? If cisco VPN, perhaps, they can use NAT - T on the vpn that overcomes the question PAT by encapsulating ipsec within UDP packets. You need to talk to the admin VPN and itself it allow.

    -kevin

  • Just updated to Firefox 8. Now, when I close firefox with several active tabs, it didn't offer not an option 'Save the tabs and close', how can I return this option?

    I looked in the 'Options' and I can't find a way to toggle this switch. I hope that this feature has not disappeared, because I use it all the time.

    Versions of Firefox 4 + automatically record your session when you close Firefox. To restore your previous session click on the link of the Previous Session restoration on the subject: Home Home page or in the history menu.

  • Error "there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later. "When you try to change Live ID.

    I'm changing my Windows Live ID and I keep going in circles.  Help, please.  E-mail address is removed from the privacy *.

    Hello DanCefaratti,

    Thanks for visiting the site of the community of Microsoft Windows 7. The question you have posted is related to Windows Live Messenger and would be better suited to the Windows Live community. Please visit the link below to find a community that will support what ask you:

    http://www.windowslivehelp.com/product.aspx?ProductID=10

    Thank you
    Irfan H, Engineer Support Microsoft Answers.

  • Has detected an error with your hardware or software graphics Illustrator and tipped to the CPU for this session overview

    It is a MacBook Pro (13-inch) mid-2014. 

    It's also getting the following error: "cannot complete preview. There is not enough memory. "ID:-108".


    Any thoughts on how I can solve these problems?  Illustrator works very well on the mac for months.

    You must move to Illustrator CC 2015.3

  • Error ORA-28500, DBLink Oracle to Sql Server

    Hi guys, when I query a remote table via a db link get "ORA-28500: connection between ORACLE and a non-Oracle system returned this message:" and the message after it's juice a plain square brackets "[]" "."

    SQL > select *.
    2 of [email protected];
    of [email protected]
    *
    ERROR on line 2:
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [


    SQL >

    I want to know where I can get error that she supposed to track the error ORA-28500 or what means this error?

    Thank you...

    This error with the simple opening bracket is commonly indicating a problem of NLS.

    Unfortunately, you specify which ODBC driver manager and ODBC driver you are using and on what platform you have installed the bridge, so I can only guess...

    Could you please add 2 to your gateway gateway config file settings, and then try again from the select in a new SQL * Plus the term:
    HS_NLS_NCHAR = UCS2
    HS_LANGUAGE = AMERICAN_AMERICA.we8iso8859P1

    -Klaus

  • Issue between sqlserver2005 and oracle dblink

    Hello

    Oracle Version: 10.2.0.1
    Operating system: Windows Xp

    When I am creating oracle database to sqlserver2005 link I get the following error when you try to retrieve data. Here my sqlserver is on windows Xp only.
     
    
    SQL> create database link sq connect to sa identified by sql2005 using 'hsodbc_1';
    
    Database link created.
    
    SQL> select *  from test.emp@sq;
    select *  from test.emp@sq
                            *
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver][SQL
    Server]Login failed for user 'SA'. (SQL State: 28000; SQL Code: 18456)
    ORA-02063: preceding 2 lines from SQ
    Please help me.

    Thank you and best regards,
    Poorna Prasad.

    SIDDABATHUNI wrote:
    Hello

    I still get the error.

    SQL> drop database link sq;
    
    Database link dropped.
    
    SQL> create database link sq connect to "sa" identified by "sql2005" using 'hsodbc_1';
    
    Database link created.
    
    SQL> select *  from test.emp@sq;
    select *  from test.emp@sq
    *
    ERROR at line 1:
    ORA-02085: database link SQ.REGRESS.RDBMS.DEV.US.ORACLE.COM connects to
    HO.WORLD
    

    It's a different error that you posted earlier.

    In this case

    ORA-02085: database link string connect to string
    Cause: a database link is connected to a database with a different name. The connection is rejected.
    Action: create a link of database with the same name as the database, it connects to, or set global_names = false.

Maybe you are looking for

  • Satellite P100 - its becoming distorted / crackling

    My sound started to stop and start to deform / crackling.I installed the latest version of the bios and audio drivers, but sound is still the same.Connection to external speakers does not solve the problem either.Can anyone help?

  • How to get into my iphone disabled

    I reset my phone and now it locked me off him and said the guests with disabilities, please help me. Thank you

  • question micro dv6-6156ea

    Hello I have a problem with my new laptop dv6-6156ea, the microphone does not work. I followed the guide provided by hp, I reinstalled the driver IDT several times but it does not meet any sound! If I plug an external mic it works fine, but inside I

  • VRRP

    Hello I want to use VRRP between 2 M8024-K I use this: SWITCH1 interface vlan 25 IP 192.168.25.251255.255.255.0 interface vlan 25 VRRP 25 VRRP 25 mode VRRP 25 ip 192.168.25.254 interface of runway 25 VRRP Vl25 VRRP timers advertising 180 25 VRRP 25 a

  • Cannot open files .tx.

    Hey Microsoft, I use Windows 7 Pro in my organization. I can't open files .tx... Can anyone tell me is it possible to open files in pdf, word, or any other format .tx.