Connect to PostgreSQL since Oracle 11 GR 2

Hi people!

Try to connect to PostgreSQL Oracle 11.2.0.3 (RAC). My configuration files are:

initRT.ora:
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = RT
HS_FDS_TRACE_LEVEL = ON
HS_FDS_TRACE_FILE_NAME = /tmp/odbc_trace.log
HS_FDS_TRACE_LEVEL = 4
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so

# ODBC specific environment variables
#
set ODBCINI=/etc/unixODBC/odbc.ini
Listener.ora:
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))                # line added by Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(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
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON                # line added by Agent


SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME =/u01/app/oracle/product/11.2/db)
      (PROGRAM = extproc)
    )
    (SID_DESC=
      (SID_NAME = RT)
      (ORACLE_HOME = /u01/app/oracle/product/11.2/db)
      (PROGRAM = dg4odbc)
      (ENVS = "LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2/db/lib:/u01/app/oracle/product/11.2/db/hs/lib")
    )
  )
tnsnames.ora:
RT = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID=RT))(HS = OK))
isql rt rt3 passw
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL> quit
oracle@hostname: psql -h rt rt3 passw
Welcome to psql 8.3.9, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

rt3=>
As you can see, I can connect to PostgreSQL. Then in DB I created DB link as follows:
 CREATE DATABASE LINK "RT"
   CONNECT TO "RT3" IDENTIFIED BY "passw"
   USING 'RT';


oracle@hostname: sqlplus rt3/passw

SQL*Plus: Release 11.2.0.3.0 Production on Tue Nov 15 03:46:12 2011

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
Data Mining and Real Application Testing options

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


Elapsed: 00:00:00.01
rt3@sid1>
Don'tunderstand why I can't connect to Oracle? Thanks in advance.

Kind regards
Pavel.

Feel free to post a file gateway trace level 255.

Published by: kgronau on November 21, 2011 11:59

I think I found the root cause - meet you again HS_FDS_SQLLEN_INTERPRETATION = 32 in your file init bridge?
Then please comment-it is not necessary for the of DataDirect ODBC drivers as they compile their driver following the last level 3 ODBC 64-bit standard.

Tags: Database

Similar Questions

  • Support for using postgresql since blackberry application

    Hello

    I'm a newbe in the blackberry application development.

    I want to connect to the database to postgresql since my blackberry app.

    To do this, I get the jar of postgresql.

    But I am not getting full java support in blackberry for the connection to the Postgresql.

    So, if someone with the idea.

    Pls let me know how can I connect to postgresql.

    Thanks in advance,

    bskania.

    Welcome to the BlackBerry Java forum.

    I assume that you got a pot that will interface between Java and postgre, except if it has been written specifically FRO BlackBerry devices, then it will not work on BlackBerry unfortunately.  The code that I suspect you've got will only work on Java SE environments, not Java ME.

    The usual solution to this kind of problem is to write a middleware application, that supports http requests from BlackBerry converts it to the required SQL, executes the SQL, then the data for transmission back to the Blackberry formats.  This kind of solution is required for all databases, unless you buy a middle ware product that has already been built - and the only one that I have a conscience is the Sybase offers to iSQLAnywhere.    You will find other peoples comments if you search in the forum, I suggest you search for "SQL Server".

    Good luck.

  • Connections without success since your last message of session?

    Hello

    For my previous client in the case of unsuccessful logon, oracle displays a message like below.

    Connections without success since your last session: 3

    Cause: Someone tried to connect to Oracle Applications using your username 3 times.

    Action: If you suspect that someone unauthorized attempts to connect as you guess your password, contact your system administrator for assistance. Change your password immediately.

    How to turn on this message for my current client, where it is not lit.

    Both my clients use R12.1.3.

    Thank you very much

    Susan

    View profile ' Sign-On: Notification "- user profiles and profile in Oracle Application Object Library Options

  • Unable to connect to wifi since the 10.0.2 update

    I can't connect to wifi since updating to ios 10.0.2

    Hello

    Try to force reboot your device: restart your iPhone, iPad or iPod touch - Apple Support

    If this does not work, reset your network settings: http://ee.co.uk/help/phones-and-device/apple/apple-iphone-6/apple-iphone-6-inter net-and-applications/iphone-6-reset-netw...

  • Check the connection to a remote Oracle database


    Hello

    I have an application that runs on a server that connects to an Oracle database on another server.  The application uses Java and JNDI to connect, there is no Oracle client installed on the server hosting the application.  The application seems to have been to connect to the database on the other server.  How can I check that the connection to the database still work from the server hosting the application?  Is there a software tool that I use does not require Oracle client must be installed.

    Thanks in advance

    Alanjo

    the connection request is saved in the file listener.log on the DB server

  • 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.

  • Connect to MYSQL DB Oracle

    MY SQL-(5.1.61) version
    Oracle (11.2.0.2.0 - 64 bit)

    Must read a view in Oracle's MYSQL and flush the data in the table from Oracle scene.
    Please provide the steps in detail.

    Thank you.

    Best regards
    Franck Giri

    Hello
    You can use the database for ODBC (DG4ODBC) gateway to establish a connection to the MySQL database, and then use the copy, "create table as select... "or select / insert commands to move the data from MySQL in Oracle tables.
    You will need access to My Oracle Support, but the following notes have details on setting up Dg4ODBC on variosu - platforms

    How to set up DG4ODBC on x 86 32 bit Linux or HP - UX RISC (11.1 DG4ODBC only) to connect to databases Non-Oracle post installation (Doc ID 466228.1)
    How to set up DG4ODBC on 64 bit OS Unix (Linux, Solaris, AIX, HP - UX Itanium) to connect to Oracle databases Post Install (Doc ID 561033.1)
    How the installer DG4ODBC (gateway for ODBC Oracle database) on Windows 32 bits (Doc ID 466225.1)
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 64-bit Windows operating systems to connect to Oracle databases Post Install (Doc ID 1266572.1)

    Then this note contains information on the data - transfer

    Copying data between Oracle database and non-Oracle foreign databases or data banks using gateways (Doc ID 171790.1)

    You can also use GoldenGate which allows the replication of data between Oracle and non-Oracle databases in real-time.

    Kind regards
    Mike

  • Cannot connect to the database Oracle Hyperion EPM 11.1.2

    Hello!
    I'm deployment Hyperion EPM 11.1.2 on a single machine with Windows 2008 R2 x 64. I created an Oracle database, and I can connect to it through SQL, so everything looks ok here. I also installed the Oracle Client for Win x 64 and ODP on my machine. The installation of Hyperion EPM also completed successfully, and then I went to set it up. I have entered the database connection information:

    Driver database: Oracle (thin)
    Server: the IP address of the machine >
    Port: 1521
    The service name or SID: < my Oracle database name >
    Username: Oracle user with the role of s/n >
    Password: < password of the Oracle user >

    And then I click on 'Next' and I get the error message: + "" i/o error: the network adapter could not establish the connection "+"

    I would point out that I also had a problem connecting to the Oracle SQL Plus error first database: "ORA - 12560:TNS:protocol adapter error. But after the creation of the ORACLE_SID environment variable by assigning the name of the database, this error disappeared.

    Please help with any advice on what could be bad! Thank you!

    If you use 'localhost' or 127.0.0.1 during the configuration of the database not the real IP address

  • Use of RegExp and connect by level in Oracle SQL

    Hello

    Can someone help me to know about the use of regular expressions and the concept connect by level in oracle SQL?

    Thanks adavance

    Prakash wrote:
    Hello

    select regexp_substr(str, '[^,]+', 1, level) val
    from (select 'a,b,c,d' str from dual)
    connect by level <= length(str) - length(replace(str,','))+1
    
    i  tried my level to understand it but couldn't
    
    Please explain  how it works
    

    Please only put code in tags code, otherwise it's hard to see what you're asking.

    In response to your question look at the query...

    SQL> select regexp_substr(str, '[^,]+', 1, level) val
      2      from (select 'a,b,c,d' str from dual)
      3   connect by level <= length(str) - length(replace(str,','))+1
      4  /
    
    VAL
    -------
    a
    b
    c
    d
    

    OK, so clearly it's split the string anywhere where there is a comma, then, how he does it.

    Firsly we look at connect by clause it when we use it as a generator of line...

    SQL> select level from dual connect by level <= 4;
    
         LEVEL
    ----------
             1
             2
             3
             4
    

    Now, look at how the number 4 is calculated from the string...

    SQL> select length('a,b,c,d') - length(replace('a,b,c,d',','))+1 from dual;
    
    LENGTH('A,B,C,D')-LENGTH(REPLACE('A,B,C,D',','))+1
    --------------------------------------------------
                                                     4
    

    ... looking at the length of the string and the length of it without comma, we can determine how many commas are in the chain and the surmize that there must be 1 more value there are commas.

    Now look at the regular expression...

    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 1) from dual;
    
    R
    -
    a
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 2) from dual;
    
    R
    -
    b
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 3) from dual;
    
    R
    -
    c
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 4) from dual;
    
    R
    -
    d
    

    The 4th parameter of the regexp_substr function is the 'presence' of the search string to return.

    The actual regular expression itself is looking for 1 or more characters (sign +) who are not (the ^ symbol) a comma.

    Is that more clear?

  • Connect my Sql from Oracle

    Hi all

    I installed Oracle 10.2.0 Linux and My Sql installed in Windows, can someone explain me how to connect from oracle to my sql?

    Thank you
    Prakash S

    Prakash,
    You can use the database for ODBC (DG4ODBC) 11g gateway to connect to MySQL from Oracle.
    See the following notes in My Oracle Support for more details and information-

    Note to master note.1083703.1 for the Oracle Gateway products

    Note.233876.1 Connection Options abroad of banks of data and databases non-Oracle

    Note.466228.1 how DG4ODBC Setup on Linux x 86 32 bit
    Note.561033.1 how to Setup DG4ODBC on 64 bit OS Unix (Linux, Solaris, AIX, HP - UX)
    Note.466225.1 How to Setup DG4ODBC (database gateway for ODBC Oracle) on 32-bit Windows
    Note.1266572.1 How to Setup DG4ODBC (gateway for ODBC Oracle database) on 64-bit Windows operating systems

    Your RDBMS 10.2 should be 10.2.0.4 or 10.2.0.5 use DG4ODBC.

    Kind regards
    Mike

  • Connection to the database Oracle by TOAD

    Hi experts, I have a problem connecting to Oracle DB...

    I installed Oracle Enterprise DB in Windows Server 2008, in the Virtual Box platform...

    now, I need to connect to the DB, Toad, since another platform (windows 7)...
    user: xxxxxx
    password: xxxxxxxx
    direct > host: 10.0.2.15, 
                port: 1521
                sid: books
    connect as: normal
    connect using: oraClient11g_home1
    This is the error
    ORA-12170:TNS:Connect timeout occurred
    hope someone can help me.

    Thanks in advance...

    Go to the server where the database is installed. Check if you have installed or not on the server listener?

    Go to the server
    go to the command prompt
    lsnrctl status

    After the release

  • WIFI connection constantly fall since we have upgraded to El Capitan. REALLY NOT HAPPY! any suggestions?

    We have improved our iMac to El Capitan 10 days ago, and since then, the WIFI connection, it is to drop all the minutes. It is driving us bananas!

    Any suggestions?

    Power cycle your router.

  • No internet connection while tethering since update

    Hello

    I bought a few weeks ago and really liked z2, everything worked well, including tie... but since the last update android, tie them has stopped working.

    Trying to attach my computer connects to the phone, but it says "no internet connection". I'm on the 3 network and use attaching it a LOT for work... I checked all the settings on my phone and changed the APN type of "by default, supl, mms, gps' to 'internet + mms' as suggested here:

    http://www.geeksquad.co.UK/articles/three-APN-settings#3%20Three%20Android%20APN%20MMS%20mobile%20in...

    But it made no difference. I don't know what else to try? It seems that there are a few others with the same question. I'll have to take the sim card out and put it in my old phone to work so I can connect to the internet via the modem...

    I'm not really happy about that the attachment is REALLY important for my business. Its the only way I can connect to the internet to order parts and my clients by e-mail.

    Is there anything else I can try?

    Thanks, Neil

    We found the cause of the problem and it will be fixed in the next software update:

    http://talk.sonymobile.com/T5/Xperia-Z3-Z3-dual/tethering-hotspot-problem-with-Z3-after-lollipop-UPD...

  • Postgresql to Oracle Migration

    Y at - it free to migrate a Postgresql database to Oracle, a software?

    I need to migrate the schema (tables, views, sequences) and, more importantly, stored procedures.

    I tried to use the procedure described here:

    https://www.YouTube.com/watch?v=W1QaEHpNw6Y

    With driver JDBC Postgresql here:

    https://JDBC.PostgreSQL.org/download.html

    But I don't have the 'Migration to Oracle' option.

    Right-clicking a table, I can select "Copy to Oracle" and it works. But I can't see one of my procedures and therefore cannot copy in oracle.

    I know there are similar questions but they are old and maybe in 2016, there is a solution.

    Hello

    Unfortunately, at the time where the Oracle SQL * product Developer is not compatible Postgres migration.

    Supported databases are shown here.

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/supportedmigplatforms-086703.html

    There may be third party available tools, but there is no current Oracle tools to migrate stored procedures in Postgres.

    If you have access to My Oracle Support, then, this note can help with migration data, but not the other items-

    How to migrate databases non-Oracle for which a SQL * Developer Migration Workbench Option is not available (Doc ID 393760.1)

    Our consultancy can also be able to help, but you'd have to pay for it.

    Kind regards

    Mike

  • Connection of database in oracle's 12 c

    I have installation let oracle 12 c as according to the steps of oracle documentation.

    but when I connect forms 12 c to the 11g database

    ORA - 12154:TNS: can not resolve the connect identifier specified...

    I have check the(path - C:\Oracle\Middleware\Oracle_Home\user_projects\domains\forms12c\config\fmwconfig) tnsnames.ora file has no entries.

    #

    #

    # the file tnsnames.ora in sample

    #

    sample entry #.

    # < ALIAS > = (DESCRIPTION = (ADDRESS_LIST =

    # (ADDRESS = (PROTOCOL = TCP)

    ((# (HOST = < HOST >) (PORT = < PORT >)))

    (# (CONNECT_DATA = (SID = < SID >)))

    #

    #

    How do the configuration of database in oracle 12 c.

    COPY the TNS data entry and paste it after the last line of the file above.

    Hamid

Maybe you are looking for

  • iPhone forgets the password to WPA2Enterprise WI - fi

    When I connect my iPhone to the WiFi of the office, he forgets the password after my cut of it and I have to insert it again. Why?

  • notifications not working not

    Verizon Samsung Galaxy 2 NoteCHS-I6054.4.2 Android / cm11 nightlySkype 4.5.0.39600Free Wi - FiSometimes I'll hear the sounds of Skype, check notifications and nothing is there. Open Skype and won't see any new messages until I message someone who mes

  • How to play Command & Conquer Red Alert sequel?

    game I have a windows 95 game. (Command & Conquer Red Alert sequel). the game is a set of 16 bits and my computer is 64-bit. Troubleshooting Guide for older programs don't open the game because of the issue of the ILO. What can I do to load it

  • Lync not showing invite session Exchnage Server

    Some of my guest session appear on Lync RT customers while others do not. Today, I can see a meeting invite on the calendar application, but not on the app of Lync.  One has this problem or knows what is the reason for which the Lync application does

  • Switched to Mac and need to download Lightroom.

    I bought Lightroom 4 years ago and have been using it on my Windows laptop. I just bought a Macbook Pro and need to download Lightroom. May be a stupid question but I just download (which I can't understand) or should I buy it? Thank you