Connect to PostgreSQL from Oracle 11gR2

Hi folks!
Trying to connect to PostgreSQL from 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.inilistener.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've 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 from Oracle? Thanks in advance.
Regards,
Pavel.

Hi, sure:
odbc.ini:
[ODBC Data Sources]
RT=RT Database
[RT]
Description     = RT Database
Driver          = /usr/lib64/psqlodbcw.so
Database        = rt3
TraceFile       = /u01/app/oracle/diag/rdbms/trace/odbc_rt.trc
Trace           = Yes
Servername      = rt.domain.com
Port            = 5432
Protocol        = 6.4
ReadOnly        = Yes
RowVersioning   = No
ShowSystemTables = No
ShowOidColumn   = No
FakeOidIndex    = No
ConnSettings    =
Debug           = 0
CommLog         = 0
oracle@host:> lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 15-NOV-2011 04:09:23
Copyright (c) 1991, 2011, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date                15-NOV-2011 03:30:50
Uptime                    0 days 0 hr. 38 min. 32 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/11.2/grid/network/admin/listener.ora
Listener Log File         /u01/app/grid/diag/tnslsnr/host/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=IP)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=IP)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "RT" has 1 instance(s).
  Instance "RT", status UNKNOWN, has 1 handler(s) for this service...
Other servicesListener.log for PROGRAM=dg4odbc is empty. There are a lot of entries for other services.
Regards,
Pavel.
Edited by: Pavel E. on 15.11.2011 13:13

Similar Messages

  • Create a database link to access SqlServer 2005 view from oracle 11gr2

    Hi All,
    Greetings for the day.
    Though I have seen quite a few posts but just wanted to cross-verfiy and double check hence posting.
    Oracle Database : 11gr2
    OS :SOLARIS SPARC 64 Bit
    SQL Server Database : Sql Server 2005
    OS : Windows 2003 32 Bit
    The requirement is to access a view residing in the SQL Server 2005 Database using the Oracle Database. This involves creation of a Database link in the Oracle Database to access the SQL Server.
    Can you suggest which approach should i follow ( I am able to understand that both do the same job ):
    How to Configure DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) post install [ID 562509.1]or
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install [ID 561033.1]Will they do the same job ? And can they be used on any OS and version of the SQL Server Database as version information for SQL Server is not specified anywhere?
    Please let me know so that I can it forward with Business for approvals and budgetting.
    Regards
    KK

    Your question is similar to the post: Oracle 11gr2 connection to Sql Server using dg4msql problem
    Please visit: http://stackoverflow.com/questions/4658942/oracle-11gr2-connection-to-sql-server-using-dg4msql-problem
    Answer on the website:
    You seem to be using the Gateway for MySQL set-up rather than the Heterogeneous Gateway (for ODBC connections). Here is an overview of the process
    On SQL Server create a database user and give it read access to the database/tables you want to read via the Oracle database link.
    In the gateway home each SQL Server database you want to access should have an init.ora located in $OH/dg4msql/admin in the form initsid.ora where sid is the name of the database to be used in the link (e.g. initbob.ora), so create one
    HS_FDS_CONNECT_INFO=msserver1:1234//Example_Database
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_TRANSACTION_MODEL=READ_ONLY
    You must now add the new sid to the listener.ora in the gateway home using an additional SID_DESC section inside the existing SID_LIST, for example
    (SID_DESC =
    (SID_NAME=bob)
    (ORACLE_HOME=/oracle/gateway/product/11.2.0)
    (ENVS=LD_LIBRARY_PATH=/oracle/gateway/product/11.2.0/dg4msql/driver/lib;/oracle/gateway/product/11.2.0/lib)
    (PROGRAM=dg4msql)
    You should now stop and restart the gateway listener so that the new sid becomes active. NB a reload is not enough.
    You must now add the new sid in the tnsnames.ora file for the listener of each database in which you will create a link. You don't need to do this in the gateway home unless it is also a database home in which you will create a database link.
    bob =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = severname.example.com)(PORT = 1690))
    (CONNECT_DATA = (SID = bob))
    (HS = OK)
    NB: The host and port are for the gateway not for the SQL Server database
    In each database that requires a link to the MS-SQL database you should create a database link to your new gateway sid.
    CREATE PUBLIC DATABASE LINK bob
    CONNECT TO "ms_user" IDENTIFIED BY "ms-passwd" USING 'bob';
    where ms-user and ms-password are the SQL Server user you created right at the start.
    Now you can test the new database link
    SELECT COUNT(*) FROM "Table_Name"@bob;
    Once you have this working you can alter the initsid.ora file to add parameters to suit your connection. If you do it this way you can easily add and manage many different databases via the gateway.
    Hip
    Edited by: 1000595 on 04:58 17-04-2013

  • Connect SQL Server From Oracle

    Hi Experts,
    I want's to made connection from Oracle 10g to Ms SQL Server 2000. I made necessary entries in receptive file, but still getting an error...
    Setting info .....
    */hs/initMYSQLSERVERDSN.ora*
    HS_FDS_CONNECT_INFO = MYSQLSERVERDSN
    HS_FDS_TRACE_LEVEL = OFF
    LISTENER.ORA
    LISTENERMYSQLSERVERDSN =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)(queuesize=80)))
    SID_LIST_LISTENERMYSQLSERVERDSN=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MYSQLSERVERDSN)
    (ORACLE_HOME = E:\oracle\product\10.1.0\db_1)
    (PROGRAM=hsodbc)
    TNSNAME.ORA
    MYSQLSERVERDSN =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (CONNECT_DATA=(SID=MYSQLSERVERDSN))
    (HS=OK)
    LISTENER start successfully, and tnsping working fine.
    But after createing db link , when i execute query desc spt_datatype_info@mysqlserverdsn;
    I am geting an error message in listenermysqlserverdsn.log file
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    Please help me out from this issue.
    Thanks in Advance
    Mani

    You OS ?
    I have also done the same.
    I did install SQL Server & Oracle on another machine with Windows.
    For more pls visit.
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    Aqeel Nawaz

  • Connecting to sqlserver2000 from oracle

    Hi,
    Need to know which is the best way to connect to sqlserver2000 database from oracle. [this connection will be use purly for backend processing only not for frontend]
    Scenario: need to fetch/insert/update the data present on sqlserver2000.

    I just answered a similar question Oracle connectivity to SQL Sever. You may find it useful.
    Cheers, APC

  • SQL Connect problem - migration from Oracle 7.3.4 to Oracle 8.0.6

    Our development environment has just been upgraded from HP10.20
    to HP11 and the database from Oracle 7.3.4.0 to Oracle 8.0.6.0.
    I am now having problems with one of the PRO*C programs. The old
    executable( compiled in the old enviroment HP10/Oracle734) is
    working fine in the new environment. But after I successfully re-
    compiled this program in the new environment, the new executable
    is not working and stops at the statement: 'EXEC SQL CONNECT:
    userid'. I have checked the userid and Oracle settings, they are
    correct. Right after the EXEC SQL, I've tried checking the
    status of connection, but it never gets there. The
    only change to the make file is using
    $(ORACLE8_HOME)/precomp/lib/env_precomp.mk instead of using
    $(ORACLE7_HOME)/precomp/env_precomp.mk
    Other PRO*C programs which are using exactly the same connecting
    statemment are working fine.
    Anyone have any ideas, I would appreciate them?
    Thanks,

    I am upgrading with precisely the same varaibles that you encountered
    and am receiving the same inability to do a simple CONNECT with
    Pro*C. Were you able to resolve this problem? If so, please reply
    with some guidance.
    Thank you.
    - Tad Franson
    [email protected]

  • How to get connected to OIPM from Oracle WebCenter Document Capture

    Hi,
    How we get connected from Oracle WebCenter Document Capture(ODC) to Oracle WebCenter Cintent:Imaging (OIPM). OIPM is 11g and ODC is 10g. Pls suggest any doc or link.
    Thanks and Warm Regards,
    RR.

    Reading your previous question once again, now I think you have actually asked a simpler question than I answered to. Is it that you just need to anyhow send data from ODC to IPM?
    If so, it is a standard functionality of ODC, called Commit Profile. I have never worked with IPM, but there is one to UCM and it works the way that you use administrator's login (such as sysadmin in 10g or weblogic in 11g) for authentication and then you map ODC user to a metadata field (in UCM there is a mandatory field called dDocAuthor and there should be value of an existing user; but you can you the administrator here as well, if ODC user info is not important for you). I believe IPM will behave similar.
    What you have to check, whether commit profiles are available for IPM 11g, but I believe they are.
    As for the documentation, the link I mentioned before contains both installation and configuration manual, so you should find all the info there.

  • How to get connected MS SQL from Oracle

    I need to connect MS SQL Server (MSDE exactly) to Oracle 8.1.7
    and operate it from Oracle side (some clever data imports from
    client's sql server machine to bigger Oracle server). I tried to
    use ODBC from client to oracle and works fine, but I need "the
    other way". Any Ideas?
    Please help,
    yours HG

    http://asktom.oracle.com/pls/ask/f?p=4950:8:442320::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:1139834557335,%7Bodbc%7D

  • Best way to change from Oracle 11gR2 Standard Edition to Standard one..?

    Hi,
    I have installed Oracle 11gR2 Standard edition+ installed database and additional software (which looks into the Oracle 11g database) in around 20 PCs (company)
    But now the management says that they got license only for 11g Standard one edition (Standard one is significantly cheaper than standard edition)
    So I have to change the Oracle edition from Standard to Standard one now..We only need standard one edition features in the PCs.
    Can somebody please advise what would be the best way to do this? Do I have to uninstall all database and reinstall standard one edition again?
    I will be grateful if somebody says some kind of upgrade is possible(in this case degrade!)..
    Pls ..waiting for a reply..its very urgent!
    Thanks&regards..

    Yes I agree there was standard and standard one options and I selected standard.
    But how to confirm?
    SQL> select banner from v$version;
    BANNER
    Oracle Database 11g Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    It doesnt say anything..where else will I check?
    Also as said in the previous post,
    1) SE max. 4 sockets , SE1 2 sockets <======== hardware restriction
    2) No RAC on SE1
    3) No Automatic Workload Management (a RAC feature) on SE1
    These apply to us.
    So can we get a SE1 license, since we are not on RAC and satisfy all criteria for standard one.
    Thanks&Regards

  • Connect to DB2 from oracle 11g on windows 2008 server

    Hi Folks,
    I want to conenct to DB2 from oracle 11g using DB link.
    DB2 :
    user : db2user
    pwd : db2pwd
    database : db2database (OSBLDEV)
    able to connect to db2 server (installed on machine M1) using db2 client with above details from machine M2 (where oracle is installed).
    Oracle :
    user : orauser
    pwd : orapwd
    host : orahost
    port : 1521
    service : oraservice
    able to connect to oracle server using oracle sql developer with above details on Machine M2 (windows 2008 server)
    when i execute the query with database link
    select row_id from siebel.s_org_ext@OSBLDEV;
    I get the message : ORA-12154: TNS:could not resolve the connect identifier specified.
    could you pls check and let me know whether the below enteries are correct or not.
    Pls share if you have step by step connectivity from DB2 to oracle using DB link.
    1. I have created the Data source for DB2 - test successful
    create database link OSBLDEV
    connect to "db2user"
    identified by "ldb2pwd"
    using 'OSBLDEV';
    1. I have made the following entry in E:\oracle\product\11.1.0\db_1\hs\admin\initosbldev.ora
    HS_FDS_CONNECT_INFO = OSBLDEV
    HS_FDS_TRACE_LEVEL = 0
    2. I have made the following entry in E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN\tnsnames.ora
    OSBLDEV =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=orahost)(PORT=1521))
    (CONNECT_DATA=(SID=OSBLDEV))
    (HS=OK)
    3. I have made the following entry in E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN\listener.ora and releoaded the listner (lsnrctl reload)
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=orahost)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENER=
    (SID_LIST=
         (SID_DESC = # this is the entry for HSODBC
         (SID_NAME = OSBLDEV)
         (ORACLE_HOME = e:\oracle\product\11.1.0\db_1)
         (PROGRAM = hsodbc)
    Thanks in advance.

    1. My listener.ora is placed at the below location:
    E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN
    2. I have modifed the listener and removed the entry - hsodbc
    3. stop and start the listener.
    still can't see the service entry in listener status.
    C:\>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.1.0.7.0 - Production on 19-JUL-2010 02:27
    :08
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.1.0.7.0 - Produ
    ction
    Start Date 19-JUL-2010 02:21:17
    Uptime 0 days 0 hr. 5 min. 52 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File e:\oracle\diag\tnslsnr\DALDEVDBCRM1\listener\alert\log
    .xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=daldevdbcrm1.corp.nai.org)(PORT=1521
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+asm1", status READY, has 1 handler(s) for this service...
    Service "+ASM_XPT" has 1 instance(s).
    Instance "+asm1", status READY, has 1 handler(s) for this service...
    Service "ARIBADEV" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "ARIBADEV_XPT" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "ARIBAXDB" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "aiad.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 2 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aiadXDB.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 1 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aiad_XPT.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 2 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aianew" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    Service "aianewXDB" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    Service "aianew_XPT" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\>

  • Can't connect to MySQL from Oracle 11g R1

    Hello Oracle's guru.
    Sorry for my English it's not my native langauge
    Enviroments: Oracle 11g R1, Windows 7, ODBC Driver 5.1.8
    I have a some problem with creation gateway to connection to MySQL, and I hope somebody can help me.
    So,
    1) ODBC name - MYSQLDSN
    2) initMYSQLDSN.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQLDSN
    HS_FDS_TRACE_LEVEL = 0
    3) listener.ora
    # listener.ora Network Configuration File: E:\app\voxa\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MYSQLDSN)
    (ORACLE_HOME=E:\app\voxa\product\11.1.0\db_1)
    (PROGRAM=dg4odbc)
    4) tnsnames.ora
    # tnsnames.ora Network Configuration File: E:\app\voxa\product\11.1.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    CXWH =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = CXWH)
    MYSQLDSN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =(SID = MYSQLDSN))
    (HS = OK)
    Then I trying to connect to MySQL using sql*plus:
    C:\Windows\system32>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Ср Июн 1 12:13:39 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    login: system
    pass:
    Connect to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create public database link MYSQLDSN
    2 connect to DEMO identified by "DEMO" using 'MYSQLDSN';
    Channel was created
    SQL> select * from items@MYSQLDSN;
    select * from items@MYSQLDSN
    Error in line 1:
    ORA-28500: connection with ORACLE with other system return message:
    [MySQL][ODBC 5.1 Driver][mysqld-5.5.12]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near
    '"ITEMS_KEY",A1."ITEM_NAME",A1."ITEM_CATEGORY",A1."ITEM_VENDOR",A1."ITEM_SKU",A1
    .' at line 1
    ORA-02063: предшествующий 2 lines из MYSQLDSN
    If I trying create new ODBC mobule via OWB, I had next error:
    [MySQL][ODBC 5.1 Driver][mysqld-5.5.12]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"DUAL"' at line 1
    ORA-02063: предшествующий 2 lines из OWB_56
    What I do wrong? Please help me

    Hi,
    You can download the 11.1.0.7 patchset from My Oracle Support -
    support.oracle.com
    as patch 6890831.
    Once logged in click on 'Patches and Updates' and enter the patch number as 6890831 and choose whichever platform you are running.
    the readme explains how to apply the patch to an existing 11.1.0.6 install.
    The url you posted is only for complete product installs, but 11.1.0.7 is only a patchset that must be applied to an existing install.
    Regards,
    Mike

  • Trying to connect to AS400 from Oracle =  ORA-28545

    Hello,
    I woul like to connect to an AS400 DB from an Oracle DB (OS: Windows Server 2003 SP2 - 32 bits, DB: Oracle DB 10g Release 10.2.0.1.0).
    To that, I have done the following steps:
    1) Create System DSN
    Name: AS400_DTA
    Driver: iSeries Access ODBC Driver
    2) Edit tnsnames.ora:
    SID_LIST_LISTENER =
    (SID_DESC =
    (SID_NAME = AS400_DTA)
    (ORACLE_HOME = D:\oracle\bise1\db)
    (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = HOST)(PORT = 1521))
    3) Edit listener.ora:
    (SID_DESC =
    (SID_NAME = AS400_DTA)
    (ORACLE_HOME = D:\oracle\bise1\db)
    (PROGRAM = hsodbc)
    4) create initAS400_DTA in D:\oracle\bise1\db\hs\admin:
    (SID_DESC =
    (SID_NAME = AS400_DTA)
    (ORACLE_HOME = D:\oracle\bise1\db)
    (PROGRAM = hsodbc)
    5) Restart the listener
    6) Create DB link:
    create public database link AS400_DTA connect to "user" identified by "pwd" using 'AS400_DTA';
    In this step I have the following error:
    Link  : "CRPDTA.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    Error : ORA-28545: error diagnosticado por Net8 al conectar a un agente
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: 2 lines precediendo a DTA
    What I am doing wrong? How can I solve the issue?
    How can I test the ODBC drivers to ensure that connectivity is made to the AS400 database?
    If I execute > tnsping AS400_DTA, the result is:
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-JUN-2011 15:05:37
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Archivos de parámetros utilizados:
    D:\oracle\bise1\db\network\admin\sqlnet.ora
    Adaptador TNSNAMES utilizado para resolver el alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.18.125.103)(PORT = 1521))) (CONNECT_DATA = (SID = AS400_CRPDTA)) (HS = OK))
    TNS-12541: TNS:no hay ningún listener
    I appreciate any idea/suggestion.
    Thank you in advance!
    Regards,
    Mónica.

    Monica,
    The error reported from the tnsping is -
    Adaptador TNSNAMES utilizado para resolver el alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.18.125.103)(PORT = 1521))) (CONNECT_DATA = (SID = AS400_CRPDTA)) (HS = OK))
    TNS-12541: TNS:no hay ningún listener
    so looks like a problem with the listener and it is also reporting the SID as AS400_CRPDTA and not AS400_DTA as you have in the tnsnames.ora. Are you accessing the correct tnsnames.ora file ?
    Also, the listener.ora entry is -
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = HOST)(PORT = 1521))
    Are you using the actual host name in the HOST entry instead of (HOST = HOST) ?
    What is the output from issuing -
    lsncrtl
    then the 'status' and 'services' command ?
    And an obvious question - did you stop and start the listener after adding the new entry ?
    Also, this is completely incorrect -
    4) create initAS400_DTA in D:\oracle\bise1\db\hs\admin:
    (SID_DESC =
    (SID_NAME = AS400_DTA)
    (ORACLE_HOME = D:\oracle\bise1\db)
    (PROGRAM = hsodbc)
    The initAS400_DTA.ora file should only have these entries -
    HS_FDS_CONNECT_INFORMATION =AS400_DTA
    HS_FDS_TRACE_LEVEL=debug
    And finally, 10.2 HSODBC is now desupported and you should install and use the replacement product which is the 11g Database Gateway for ODBC (DG4ODBC).
    The following note has links to further information -
    Note.1083703.1 Master Note for Oracle Gateway Products
    If you want to continue to use HSODBC then refer to this note -
    Note 109730.1 How to setup generic connectivity (HSODBC) for Windows NT
    but we strongly recommend you install and use DG4ODBC so that you are on a fully supported version.
    Regards,
    Mike

  • Connect Sql Server From Oracle Both on Windows

    I want to connect my SQL Server running on Windows2003 with my oracle database 10g which is also on windows through some odbc which i have also created on my machine running oracle 10g. Can some one guide me with simple steps.

    Generally most folks use OLEDB rather than ODBC for that.
    If you have Metalink access, check out the following note:
    Note.191368.1 Ext/Pub How to Create a Sql Server Linked Server With The Oracle Provider for OLE DB:
    Hope it helps,
    Greg

  • Connecting SQL server from Oracle 11g

    Hello,
    I know there are several threads available to this post but please help me in
    *step by step process to follow in connecting 2 servers.
    I tried everything in internet but got Connection closed error after tnsping of DNS name. Do i need to run any instance sort of thing in SQL server?
    I dont have any access on SQL server.Whatever i have to do that has to be only in Oracle server.I got all those information and created ODBC (using SQL server driver) and tested the connection successfully in Oracle server. Altered INIT*.ORA,TNSNAMES.ORA and LISTENER.ORA but when pinging TNS awfully getting the afore said error.
    My environment : Oracle 11g server - SQL server 2008 ( both in windows platform).
    My
    TNS names entry
    GSIS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.1)(PORT = 63455))
    (CONNECT_DATA = (SID=GSIS)
    (SERVER = DEDICATED)
    (HS=OK)
    Listener entry
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = COB417147.cob.apac.bosch.com)(PORT = 1522))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (SID_NAME = GSIS)
    (ORACLE_HOME = C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1)
    (PROGRAM = hsodbc)
    and
    initGSIS
    entry
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = GSIS
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set
    when tnsping i am getting
    TNS connection closed.
    I am awfully stuck here.
    Please guide..

    Status
    C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 11-MAY-2012 17:48
    :14
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 11-MAY-2012 17:36:30
    Uptime 0 days 0 hr. 11 min. 48 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\network\
    admin\listener.ora
    Listener Log File c:\oracle\app\amk1cob\diag\tnslsnr\COB417147\listener\
    alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=COB417147.cob.apac.bosch.com)(PORT=1
    522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=COB417147.cob.apac.bosch.com)(PORT=8
    080))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "GSIS" has 1 instance(s).
    Instance "GSIS", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl.cob.apac.bosch.com" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.cob.apac.bosch.com" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    TNS ping
    C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>tnsping GSIS
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 11-MAY-2
    012 18:21:55
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.
    1.1)(PORT = 63455)) (CONNECT_DATA = (SID=GSIS)) (HS=OK))
    TNS-12537: TNS:connection closed
    C:\Oracle\app\amk1cob\product\11.2.0\dbhome_1\BIN>
    BTW it is 32-bit machine.
    Edited by: 933729 on May 11, 2012 5:57 AM

  • Heterogeneous Connectivity to MSSQLServer2000 from Oracle 10g ver10.1.0.2.0

    Hi Gurus!
    I have oracle 10.1.0.2.0 (personal edition) running on WinXp Professional Edition
    MS-SqlServer 2000 developer edition on the same machine
    I have preinstalled microsoft ODBC for SQL Server .. I have configred MSSQLDSN for my sqlserver database
    My configuration is as follows
    D:\ORACLE\product\10.1.0\db_1\hs\admin/InitMSSQLDSN.ORA
    # This is a sample agent init file that contains the HS parameters that are needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = MSSQLDSN
    HS_FDS_TRACE_LEVEL = OFF
    D:\ORACLE\product\10.1.0\db_1\NETWORK\ADMIN\Listener.ORA
    # listener.ora Network Configuration File: D:\oracle\product\10.1.0\db_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = extproc)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
    SID_LIST_LISTENERMSSQLDSN =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = MSSQLDSN)
    (ORACLE_HOME = d:\oracle\product\10.1.0\db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dsn01.Clinicsoft.com)(PORT = 1521))
    LISTENERMSSQLDSN =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.16)(PORT = 1522))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
    D:\ORACLE\product\10.1.0\db_1\NETWORK\ADMIN\Tnsnames.ORA
    # tnsnames.ora Network Configuration File: D:\oracle\product\10.1.0\db_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    MSSQLDSN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(Key = PNPKEY))
    (CONNECT_DATA =
    (SID = MSSQLDSN)
    (HS = OK)
    BTORA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dsn01.Clinicsoft.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    (HS = OK)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dsn01.Clinicsoft.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    c:\lsnrctl start listenermssqldsn
    does give any error
    c:\lsnrctl services
    does not show mssqldsn service
    Need help!

    Hi,
    Did you check the address you use in the listener.ora: 192.168.1.16 is the address of Oracle Server and not from MS SQL SERVER?
    Or try to modify to get that:
    LISTENERMSSQLDSN =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dsn01.Clinicsoft.com )(PORT = 1522))
    regards,
    Mireille

  • Connecting mssql 2005 from oracle 10gR2 64-bit

    Hi
    I am not finding TG4MSQL in Oracle 10gR2 64-bit on windows, can anybody tel me any workaround for the same,
    What if i install 10gR2 32-bit TG4MSQL (only this api) on my 10gR2 64-bit ..!?
    suggest plz
    - Mustafa

    Transparent Gateway for SQL Server. Available on Microsoft Windows (32-Bit). Use Oracle Transparent Gateway Installation Guide for Microsoft Windows (32-Bit), and then Oracle Transparent Gateway for Microsoft SQL Server Administrator's Guide for Microsoft Windows.
    http://download-west.oracle.com/docs/cd/B19306_01/gateways.102/b14270/toc.htm
    http://download-west.oracle.com/docs/cd/B19306_01/gateways.102/b19083/toc.htm
    ~ Madrid.

Maybe you are looking for

  • I am receiving error code 65543 while opening what...

    Hello there, I am using nokia asha 501 with latest update from nokia i.e 14.0.4 as per received from nokia. then i have installed whatsapp and now when i try to open a picture then its showing me error code 65543 whit some java application error. can

  • Pc card won't fit

    I backed up all my stuff from my old hp computer to a Toshiba 5-GB PC Card drive. I transferred most of it to my new Satellite L305 through a USB cable (I think; Properties doesn't work) but one thing doesn't work and now I find the card won't fit. I

  • 802.1x EAP-TLS with NPS/W2008 - Authentication result 'timeout'

    Hello [Env on my lab investigation] supplicant - W7 with cert authenticator - Catalyst 2960 with IOS 15.0(1)SE2 /newest/ authentication server 2x - W2008/NPS like a RADIUS server [Config some part of authenticator] interface FastEthernet0/1 switchpor

  • BW Questions

    Hi, Can someone help me with the answers 4.     What is table partition? 5.     What are the options available in transfer rule and when ABAP code is required during transfer rule what important variables you can use? 6.     How would you optimize th

  • Qpspmanager compile issue

    anyone here have a psp, or use qpspmanager? i wasn't sure exactly where the best place to post this was. but i've had the source for qpspmanager 2.0.2 for a while now. it compiled fine on 2 machines running 32bit arch. but it won't compile on my 64 b