Heterogeneous connection between Oracle and Postgres.

Hi all

I am trying to connect heterogeneous Postgres and Oracle for a few days, but I've always seen this error: "loss of the RPC connection.

First of all: I use Windows 7, Oracle 10 g and PostgreSQL 8.4.

I did the following:

(1) create a system DNS named "PG". (The connection test is OK)

(2) to create the file 'initPG.ora' in ' $ORACLE_HOME/hs/admin:
# This is an example of initialization file of the agent that contains the HS settings
# needed for an ODBC Agent.

#
# HS init parameters
#
HS_FDS_CONNECT_INFO = PG
HS_FDS_TRACE_LEVEL = WE

#
# Required for the non-Oracle system environment variables
#
#set < varenv > = < value >

(3) configure the file 'listener.ora' (in ' $ORACLE_HOME/NETWORK/ADMIN "):
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(= Extproc PROGRAM)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(= Extproc PROGRAM)
)
(SID_DESC =
(SID_NAME = PG)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = hsodbc)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP) (HOST = Cédric-PC)(PORT = 1521))
)
)

DEFAULT_SERVICE_LISTENER = (XE)

(4) set up the 'tnsnames.ora' file (in ' $ORACLE_HOME/NETWORK/ADMIN "):
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = Cédric-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
PG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp) (HOST = Cédric-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PG)
(HS = OK)
)
)

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

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

(5) Finally, I create my DB-Link and test it:
CREATE DATABASE LINK 'CENTRALE_POSTGRES' CONNECT TO 'user_login' IDENTIFIED BY 'user_password' USING "PG";

SELECT * FROM 'dual"@CENTRALE_POSTGRES;

I got this error:
ORA-03135: interruption of the RPC connection.

As you can see, I have activated the trace level (HS_FDS_TRACE_LEVEL = WE), but the still empty directory ' $ORACLE_HOME/NETWORK/trace.

Any ideas?

Concerning

the alias PG tnsnames.ora is wrong — you must have 2 closing brackets after the so that HS SERVICE_NAME = OK is outside the CONNECT_DATA as:

PG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp) (HOST = Cédric-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PG))
(HS = OK)
)

You should know also HSODBC to release 10.2 was desupported since March 2008 and it was replaced by its product follow-up DG4ODBC V11

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

  • DB-link between Oracle and MSSQL - deleted decimal in one query

    Hi all

    I configured a heterogeneous connection between Oracle and MSSQL. Then, when I run a query, I get the results of a numeric field (38.2) without decimals. It seems that Oracle remove the decimal places.

    The language in MSSQL is Modern_Spanish and in Oracle is Spanish as well.

    The most curious is that the field of MSSQL is a FLOAT so I recover decimal values, but if it is the DECIMAL number I get the results of the query without decimals. So, it works with FLOAT but work not with DECIMAL.

    Does anyone have an idea? Please I need some help on this...

    Thanks in advance

    Victor.

    SQL Server internal decimal interpreters using a period as a separator. Try the parameter in the gateway init file:
    HS_LANGUAGE = AMERICAN_AMERICA. WE8MSWIN1252

  • on heterogeneous Services of Oracle and Oracle Gateway

    Hi all


    I am very new at this, I want to know:
    (1) heterogeneous services of oracle and Oracle Gateway even or not? Need to license or not?
    (2) want to creating link database to Oracle 11 g to Sybase 15.5 heterogeneous Oracle using the SERVICES what drivers should I install to my pc (windows 7) and my server (Linux red hat 5)? Please give me the link for this
    (3) is there a step by step link to configure odbc to create dblink?
    (4) what's more convenient connection of heterogeneous Oracle or Oracle Gateway Services sybase?

    Thank you very much for your help

    Concerning

    JOE

    Joe,
    Let the copy/paste your questions and comments online:

    (1) heterogeneous services of oracle and Oracle Gateway even or not? Need to license or not?
    Let me first clarify one thing, heterogeneous services is the generic mechanism in the database Oracle used by all gateways. The product you are talking about is database for ODBC bridge or the bridge of Sybase database.
    Database for ODBC bridge is available for Linux and Windows. It is the free product that does not require a license of Oracle. The license is included in your license data. It's a generic gateway which allows you to connect with any suitable part 3 ODBC driver to a corresponding foreign database. As this is a generic connectivity what words connect to real data, but also to MS Excel or text files as long as you have an appropriate ODBC, capacity driver is very limited.
    More powerful bridge is the bridge of Sybase database. It covers the same functionality as DG4ODBC but it also allows you to work with distributed transactions, you can call procedures stored remote Sybase etc.. This gateway is design for Sybase ASE connections, so it is also able to map some Oracle Sybase equivalent functions. This gateway for Sybase database is NOT free, it requires an additional license.

    (2) want to creating link database to Oracle 11 g to Sybase 15.5 heterogeneous Oracle using the SERVICES what drivers should I install to my pc (windows 7) and my server (Linux red hat 5)? Please give me the link for this
    It depends on your preferences. Two entry doors are available for Linux and Windows. When you use DG4ODBC, you must only be careful that you get a suitable 3rd party ODBC driver for this platform with the size of the corresponding word (64 bits for 64-bit DG4ODBC and 32-bit ODBC driver for DG4ODBC installations on 32-bit platforms).
    The latest version of the software is currently 11.2.0.3 and it can be downloaded (and installed from scratch) of "My Oracle Support". Simply open the patches & updates section, look for Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER and make sure you choose the platform you want to use. Then check out the readme file it lists, which of these download CD contains the gateway software.
    BTW, the CD contains DG4ODBC and DG4SYBS and it is up to you to decide during installation of which product you want to use.

    (3) is there a step by step link to configure odbc to create dblink?
    Installation of the ODBC driver is different from one provider to another, and from platform to platform - so we didn't not a note specifies how to configure the ODBC driver. This kind of question is best managed by the provider of the ODBC driver.
    Regarding the implementation of DG4ODBC on Windows, you will find the appropriate information in the knowledge base on My Oracle Support. Just look:
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 32-bit Windows to connect to Oracle databases Post Install [466225.1 Document]

    and to DG4SYBS:
    How to set up DG4SYBS (Oracle to Sybase database entry door) on 64-bit Unix (AIX, HP - UX Itanium, Linux and Solaris) Post Install [437696.1 Document]
    How the installer DG4SYBS (bridge of Sybase database) on a 64-bit Windows [Document 1319852.1]

    (4) what's more convenient connection of heterogeneous Oracle or Oracle Gateway Services sybase?
    It really depends on your needs. DG4SYBS is sullen more easy to install because this gateway comes with everything you need and you don't have to find an appropriate ODBC driver or get the working ODBC driver. It is also more powerful as you can for example use triggers that replicate changes to data in an Oracle database on the Sybase database in the same transaction. When you want to call Sybase stored procedures, you can also do this with DG4SYBS. So it really depends on your needs.

    -Klaus

  • Bluetooth connection between iPhone and iPad

    My iPhone 6 does not connect to my iPad via bluetooth.

    I previously used the bluetooth connection between my iphone and iPad to connect the iPad to the internet. Despite the two devices were among the recognized bluetooth devices and they were previously linked/partner, it was not possible to establish a connection.

    Perform the actions recommended for repair/reissue apple support - 1. Toggle bluetooth, 2. turn on/off the unit, 3. remove the iPhone/iPad bluetooth connections - 4. Reset network settings - 5. Reset all the settings-, nothing works.

    IPhone/iPad devices isn't even on the list of bluetooth devices available on the iPhone, or iPad. Everything that happens is the animated icon turns all the time.

    Deleting a connection to a device and bluetooth speaker/amp from the pairing of the speaker/amp system process made a new connection.

    iPhone 6:

    Model: MG4F2QN/A

    SN: C31NLG8KG5MR

    Version: 9.2 (13 c 75)

    iPad:

    Model: ME898LL/A

    SN: DLXM42LHFK13

    Version: 9.2 (13 c 75)

    Please give instructions for the previous maintenance work bluetooth connection between iPhone and iPad.

    Thanks in advance

    To use the Hotspot feature (that you described for the connection), you must use the instructions below.

    Share your Internet connection with Personal Hotspot - Apple Support

  • Localhost UDP connection between FCR and Matlab

    Hi all

    I have a question about the connection between Matlab and FCR UDP. My idea is to Exchange data between Matlab and Labview on the same computer.

    So I found the 'UDP Simple' of the FCR 2.0 sample project where periodically a datasample is generated randomly and sent to the remoteport 61557 local host. In the project a 'fractional number of string for transmission' is used for the transmission of data. The receiver of the sample project reads from the same port to receive the datasample.

    Now, I'm interested to read this simple stream from Matlab (just at first), however, it does not work and I'm not sure why. What I do in Matlab is the following (code Matlab)

    delete variables;
    u = udp ('127.0.0.1', 61557); % Of installation UDP Object
    fopen (u); open reading port %
    A = fread (u, 1);  % read an element
    fclose (u);

    With this code, however, I get a timeout by saying: "' WARNING: unsuccessful reading: the amount of data specified has not been returned within the time limit." "

    I'm not sure why this happens, maybe you could help me out here? I guess that the formet serving to VCF is not the same as in Matlab? Maybe the Terminators are not the same?

    See you soon,.

    Steve0

    Hey

    So, regarding the problem actually, I found the solution today. It was not the firewall, but a simple configuration in Matlab seting the UDP port. So the side of Matlab, to change the definition of udp object according to

    u = udp ('127.0.0.1', 'Thelocalport', 61557);

    If you have

    u = udp ('127.0.0.1', 'Thelocalport', 61557);
    fopen (u);

    A = fread (u)

    fclose (u);
    Delete (u);

    Who does the trick and you can read from the port. Then of course you say Matlab that you read from the "LocalPort" x, which I wasn't aware of.

    On the transmitter side, you simply:

    u = udp ('127.0.0.1', 61557);

    fopen (u);

    fwrite (u, '1');

    fclose (u);
    Delete (u);

    Here, you set just the port of transmiting.

    About the format of the data: I used the simple UDP protocol streaming Comms project where a random number is generated as a double, transformed into a string (ASCII values) and transmitted. At the level of the receiver, you get as much the UDP packet with the ASCII values that you must turn if you want to find the number.

    I hope this helps anyone having the same problem.

    See you soon

  • Establish a persistent connection between client and server

    My application must keep in touch with my servers, the HTTPConnection gives the ablitity to make one request per connection. Then the HttpConnection might not make persistent connections in the BB. I think I can use Socket connections. I am wonding if some body can confirm that and give some sugustions how persistent connections between clients and servers.

    Thank you RexDoug and Marchywka. Your suggestions are appreciated.

  • What is the difference between Oracle and MySQL

    Hello

    I would like to know the major difference between Oracle and MySQL. I have a project to generate tables of database XML files, I used the functions XML built oracle XMLELEMENT, XMLAGG XMLATTRIBUTES, XMLFOREST. I really want to know if these functions (or) similar functions are taken into charge/availabe in MySQL.

    I'm having a hard time finding better linux distro to install Oracle11g, so I intend to move to MySQL. Please help, thanks in advance.

    Supported operating system versions are documented - http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#CIHFICFD

    HTH
    Srini

  • What is the difference between oracle and peoplesoft databases

    What is the difference between oracle and peoplesoft databases. How the tables of metadata between the two relate?

    According to my understanding, peoplesoft database exists as a schema on the oracle database.
    Please correct me if iam wrong.

    user4212454 wrote:
    ...
    The second statement, I realized that each schema created its specific use.
    for example, peoplesoft had 1000 objects (including the peopletools and application and system tables), each schema created above has access restrictions different on these database of 1000 objects. Am I wrong?

    Yes, each schema has its own purpose and the grant for objects of Peoplesoft. SYSADM is the owner of the objects of Peoplesoft with all rights. PS is the owner of one and same table, PSDBOWNER and the PEOPLE is granted to select three of these tables (PSOPRDEFN and PSACCESSPRFL PSDBOWNER).

    In addition, for DB2, what are the patterns of PeopleSoft?

    It is located in the installation documentation dedicated to the database you want to work on:
    http://download.Oracle.com/docs/CD/E15742_01/PSFT/HTML/docset.html

    The first statement, could you please elaborate on the part highlighted.

    A "Peoplesoft database" is nothing, it's terms to refer to a database containing everything you need to make a Peoplesoft application running.

    Nicolas.

  • Oracle streams heterogeneous Support (non-Oracle and Oracle databases) envi

    Oracle streams heterogeneous Support (non-Oracle and Oracle databases) environments?

    It is possible to move data from Oracle to DB2 using Oracle Streams?

    Hello

    Visit this link

    http://download-West.Oracle.com/docs/CD/B28359_01/server.111/b28322/hetero.htm

    Kind regards
    Deepak

  • Difference between Oracle and Prometric test center?

    What is the difference between Oracle and Prometric Testing Center?

    Pass the examination in a CTA is exactly the same as the exam at Prometric. The review is exactly the same and it's exactly the same thing. The only difference is the location where the examination is taken, so I believe that over-the-counter medications have set schedules to offer tests, take exams at Prometric can give you a little more freedom to your schedule.

    Answers to the questions:
    can you any valid CTA agent/Center in kolkata? Then I will be very grateful
    -You should go to www.oracle.com/education and you can search on the keywords "certification" or "OTC test"
    - Or you can call your local representative of OU. You can find your local numbers to http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=225
    -Please note that if you are in North America, your search for OTC drugs will not return any results. Over-the-counter medications are not available in North America.

    If someone got 051 OTC and 144 of a promeric / pearson since it granted as OCA?
    Yes

    List there is the offer of TBT that are testing to the general public?
    -You should go to www.oracle.com/education and you can search on the keywords "certification" or "OTC test"
    - Or you can call your local representative of OU. You can find your local numbers to http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=225
    -Please note that if you are in North America, your search for OTC drugs will not return any results. Over-the-counter medications are not available in North America.

    Is there a TBT in countries other than the United States., UK, Japan, Germany?
    -There is no over-the-counter drugs to the United States.
    -There are also over-the-counter drugs in Asia-Pacific

    CTA can be only in branches of Oracle or OAEP?
    -I don't know where are all over-the-counter medications. It is preferable to refer these questions to a representative of the ORGANIZATION unit. They will be better able to help.

    Kind regards
    Brandye Barrington
    Certification Forum Moderator
    Manager certification program

  • Ad hoc connection between XP and Android

    How can I set up a wireless ad-hoc, with shared Internet access, between a Windows XP computer (connected to Internet) and an Android device?

    Hello

    You can see the following link.

    How to create an Ad hoc network using Win XP

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-computer-to-computer-ad-hoc-network?SignedIn=1

    Note: also applies to Windows XP as well.

    Please provide us with more information on the Android device and the version of operation.

  • Connection between servers and opening default home

    Question about cross-server logon, if a customer has changed their rules of routing so that the default value at the opening of "wishes" is no longer used and a different call handler is used instead, will be this connection between breaking servers? Looks like that connection between servers using backdoor functionality (# and some numbers) which works with the 'Opening of wishes' system, I understand this right?

    No, it is not hardcoded to opening greeting Manager of appeal, but he needs to finish a greeting (whether for a Subscriber or call handler) - the logic is handled in the PHGreeting conversation (the guy that is used for the treatment of the call manager/subscriber wishes) - so if you have a routing rule that say, load the sign the Subscriber in conversation, then you're going to break.

    But as long as the call is handled by _some_ greeting, the hand of logic should work because the conversation PHGreeting is looking for a specific series of TTS to indicate that it is a grip of calls.

  • Connectivity between Interconnect and Nexus 2000 fabric options

    Hello

    I would like to know what models of fabric nexus 2000 Extenders can I use if I want to connect them to a pair of interconnections 6248UP fabric in a FEX deployment, so I can move between blade and rack servers service profiles.

    Thanks for your replies.

    Christian

    Christian,

    Take a look at this guide.  It should answer all your questions:

    http://www.Cisco.com/en/us/customer/docs/unified_computing/UCS/c-series_integration/ucsm2.0.2/b_UCSM_202_C-integration.html

    Kind regards

    Robert

  • Connection between mac and PC

    Why can't connect between computers PC under Windows 7 and Mac computers on my network equipment?

    without knowing what you have tried and this error message you receive, impossible to
     
     
    Barb
     
     
     
     
    Please mark as answer if that answers your question
     
     
     
     

Maybe you are looking for

  • ESXi Machine license, reusable House?

    Hey people.I'm having a devil of a time here, and I hope someone can point me in the right direction.  I recently updated my ESXi Server 4.1 here at home to 5.  The license I had to 4.1 was free, but of course does not include any medium for vMotion,

  • Capitalize first letter of each new sentence

    Hi guys,.I'm working on a drawing or model for a magazine that, for now, I need to type a large number of texts in InDesign instead of copy - paste from word or...It made me a bit annoyed because I don't get uppercase every first letter of each sente

  • Show the model number...

    I need a display on a digital field model so that when a user enters 12 as the value.the display should be like 12,00%Tried several options but nothing have mounted correctly.All the tips are greatly appreciated.Nith

  • Creating metadata templates

    I completely ignored models of metadata on the 5 years, I've been using Bridge. After reading an article on the protection of intellectual property, I decided that I should take an interest and at least to apply personal metadata when you import the

  • simple mistake, I do not understand

    I used this code before and had no problem but now it's me hesitantstage.addEventListener (MouseEvent.MOUSE_DOWN, onDown, false, 0, true);function onDown(evt:MouseEvent):void {}TweenLite.to (box, 1, {x: "40", ease:Elastic.easeOut});})}if(Box.x > stag