Connecting db2 from oracle
hi,
i)what is the cwbcfg program to be executed you have mentioned.
ii) I executed caths.sql
iii) In tnsnames.ora how to specify the dsn that you create for db2 database.
for example if I have created a dsn for db2 naming it kishore_dsn, how do i specify that in tnsnames.ora file.
and by what sid is the iniths_sid.ora to be created. is it the dsn you create for db2 database. for ex. if dsn name is kishore_dsn, should the file be initkishore_dsn.ora, or it should be the name of local oracle database service.
DESIGN.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = design)
KISHORE_DSN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = KISHORE_DSN)
(HS = OK)
I am getting ora-12154 tns could not resolve service name, while tring to access db2 after creating public links.
I would appreciate if you can send me step by step generic connectivity ,connecting db2 from oracle.
Prabhath.
Hi Tak,
Thanks for your response.
My odbc data source name is : kishore_dsn
driver : ibm db2 odbc driver
I am connecting db2 8 on windows from oracle 9i on windows.
MY iniths_sid.ora file is initdesign.ora
initdesign.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 = KISHORE_DSN
HS_FDS_TRACE_LEVEL = 0
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
I created listener.ora in network/admin
# LISTENER.ORA Network Configuration File: c:\disk1\software\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC5))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = c:\disk1\software)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = design)
(ORACLE_HOME = c:\disk1\software)
(SID_NAME = design)
(SID_DESC =
(SID_NAME = design)
(ORACLE_HOME = c:\disk1\software)
(PROGRAM = hsodbc) )
my tnsnames.ora is
# TNSNAMES.ORA Network Configuration File: c:\disk1\software\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
INST1_HTTP.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
EXTPROC_CONNECTION_DATA.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC5))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
DESIGN1.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = design)
DESIGN.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = design)
KISHORE.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = design)
(HS = OK)
My sqlnet.ora file
# SQLNET.ORA Network Configuration File: c:\disk1\software\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DEFAULT_DOMAIN = foreseeindia.com
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
Before creating these files I had run caths.sql from sys user.
After all the configuration
I logged into database with service name : kishore
user : scott
I created a db link
create database link custard
connect to scott identified by tiger
using 'kishore';
I issued a select * from addr@custard; where addr is in remote db2 database.
I am getting the following error
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=compaq6)(PORT=1521))
)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=design)))
ORA-02063: preceding 2 lines from CUSTARD
I am struck with this for the past 1 week, so kindly help.
If someone can access a tar from metalink and post it also, as currently we donot have the support.
Regards,
PrabhathG
Similar Messages
-
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:\> -
Connectivity issues from Oracle to Sybase
Friends.
I have connectivity issue from Oracle 9.2.0.1 to Sybase 12.5 ASE .I am connecting through the database link in oracle to access the tables.
The error message i am getting :
select count(*) from TEST_TABLE@IND_TEST;
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
523 80
ORA-02063: preceding 2 lines from IND_TEST
Please guide me how to solve this error message. is it version incompatible now?
Thanks
RockyHi,
You are now making the connection to the Sybase database but there is a problem with the user and password used in the database link.
Sybase is case sensitive for names so you need to surround the user/password in double quotes to make sure they are passed to Sybase in the correct case -
create database link ind_test connect to "sybuser" identified by "sybpass" using 'tnsnames_ora_entry' ;
where sybuser is the userid as created in Sybase with the password sybpass.
If they were setup in Sybase in mixed case then it would be -
create database link ind_test connect to "Sybuser" identified by "Sybpass" using 'tnsnames_ora_entry' ;
Regards,
Mike
Edited by: mkirtley on Sep 27, 2011 12:55 PM -
ORA-28500 and ORA-02063 while connecting MySQL from Oracle-
Dear All,
My Database is Oracle 11gR2 Rac of 2 nodes and on Linux 64-Bit operating system.
Version of my MySQL database is 5.5.17 it is on Linux 32-Bit operating system.
I am trying to connect MySQL database from Oracle database using a database link.
These are the step by step process that I am following to achieve my target. All my processes are on one node of Oracle RAC.
1)
Yum install mysql-connector-odbc
Yum install unixODBC
2)
Edit file /etc/odbc.ini
[test]
Driver = /usr/lib64/libmyodbc3.so
Description = MySQL ODBC 3.51 Driver DSN
SERVER = 10.0.0.1
PORT = 3306
USER = test
Password = test
Database = test
OPTION = 3
SOCKET =
3)
Edit file /etc/odbcinst.ini
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib64/libmyodbc3.so
Setup = /usr/lib64/libodbcmyS.so
FileUsage = 1
4) test connection
isql –v test test test
Returns:
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
SQL>
5) Now I edit listener.ora file and add the entry. After entry my listener.ora file is like this:
LISTENER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER))
(ADDRESS = (PROTOCOL = TCP)(HOST=testnode1)(PORT = 1521))
# 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
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = extproc)
(SID_DESC =
(PROGRAM = dg4odbc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = test)
(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
6) After these entries the listener status after RESTART is as following:
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 27-DEC-2011 01:19:32
Uptime 0 days 9 hr. 31 min. 12 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/racnode1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testnode1)(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 "test" has 1 instance(s).
Instance "test", status UNKNOWN, has 1 handler(s) for this service...
Service "testdb" has 1 instance(s).
Instance "testdb1", status READY, has 1 handler(s) for this service...
Service "racdbXDB" has 1 instance(s).
Instance "testdb1", status READY, has 1 handler(s) for this service...
The command completed successfully
7) Then in the tnsnames.ora file I added the following entry:
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = EXTPROC1521)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
test =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SID = test)
(HS = OK)
When i tnsping test, it works.
8) I edit the .bash_profile file for Oracle
ORACLE_HOME, ORACLE_BASE were already pointing to the correct destination, I added:
LD_LIBRARY_PATH=/usr/local/lib:/u01/app/oracle/product/11.1.0/db_1/lib:/u01/app/oracle/product/11.2.0/dbhome_1/hs/lib:/usr/lib64:/usr/lib
export LD_LIBRARY_PATH
ODBCINI=/etc/odbc.ini
export ODBCINI
ODBCINSTINI=/etc/odbc.ini
export ODBCINSTINI
ODBCSYSINI=/etc
export ODBCSYSINI
9) Then i configured $ORACLE_HOME/hs/admin/inithsodbc.ora
And Modified these lines:
HS_FDS_CONNECT_INFO = test
HS_FDS_TRACE_LEVEL = ON
HS_FDS_TRACE_FILE_NAME = odbc_test.log
HS_FDS_TRACE_LEVEL = 4
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
HS_FDS_SUPPORT_STATISCTICS = FALSE
HS_LANGUAGE = AMERICAN_AMERICA.WE8ISO8859P1
set ODBCINI = /etc/odbc.ini
10) Then i created a database link with the following command:
Create public database link test connect to test identified by test using ‘test’;
I tried username and password in database link with double quotes also.
11) Now Finally when I try to select records from mysql table:
select count(*) from "table"@"test"; -- I have tried with and without double quotes
I get the following error:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from TEST
How to get through this error, and how to check logs for HS?
Your help is required.
Regards, Imran
Edited by: misterimran on Dec 27, 2011 1:21 PMHi,
In your listener.ora for the DG4ODBC entry you had -
(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
but this should also include the path for the driver manager directory which in your case is /usr/lib64 so could you add this ?
The error -
Failed to load ODBC library symbol: /usr/lib64/libmyodbc3.so(SQLSetDescRec)
indicates the /usr/lib64 directory cannot be accessed.
The entry should then look like -
(SID_DESC =
<space>(PROGRAM = dg4odbc)
<space>(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
<space>(SID_NAME = test)
<space>(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
<space>)
The spaces may have bene lost when posting but there should be at least one space in the file as indicated by the <space>.
After making the change then stop and start the listener.
If you still have problems then please post again the current versions of the configuration files, the full errors shown in SQLPLUS for a select and the output from a debug trace showing the errors.
The information shows you are using the 3.51 MySQL ODBC driver so could you also try with the latest version of the 5.1 driver and see if you have the same problem ?
Regards,
Mike -
Connect Ingres from Oracle through tg4ingr
Hi, when I perform a query to a table in Ingres from sqlplus I receive the next error:
SQL> select * from paises@ingres;
select * from paises@ingres
ERROR at line 1:
ORA-02068: following severe error from INGRES
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=%s
ORA-28509: unable to establish a connection to non-Oracle system
my tnsnames.ora:
# TNSNAMES.ORA Network Configuration File: /software/oracle/product/9.2.0.1.0/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
INGRES.SIGMAAIE.ORG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = sunsig5)(PORT = 1521))
(CONNECT_DATA =
(SID = ingres)
(HS = OK)
my listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sunsig5)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = ingres)
(ORACLE_HOME = /software/oracle/product/9.2.0.1.0)
(PROGRAM = tg4ingr)
(ENVS = LD_LIBRARY_PATH = /dbms/Ingres26/ingres/lib:/software/oracle/product/9.2.0.1.0/lib)
my initingres.ora ($ORACLE_HOME/tg4ingr/admin):
# This is a sample agent init file that contains the HS parameters that are
# needed for the Transparent Gateway for INGRES
# HS init parameters
HS_FDS_CONNECT_INFO=sigma::sigmatest
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_INGRES_MODE=INGR
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
# Environment variables required for the non-Oracle system
set II_SYSTEM=/dbms/Ingres26
I created the database link using:
SQL> create public database link ingres connecto to "user1" identified by "passwd" using 'ingres';
Any idea why Am I receiving this error?
Thank you in advance.It could be that the SID and SID_NAME is wrong.
Check SID=tg4ingr and SID_NAME=tg4ingr instead of SID=ingres -
I have a requirement that needs data from DB2 to be accessed in Oracle 9i. There are views in DB2 running on Mainframe which needed to be accessed in Oracle. Is there any way we can do this ? If yes, how ?
Any help in this will be greatly appreciated.
Thanks,
Shyam MenonYou can. Oracle has a product called Heterogeneous Services that will allow you to create a database link to a non-Oracle (in this case DB2) database either via ODBC or via a Transparent Gateway. If you aren't running Oracle on Windows, you will likely either have to license a third-party DB2 ODBC driver for you particular platform or you will have to purchase the Transparent Gateway from Oracle.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Setup heterogeneous service to connect MySQL from Oracle
Hello,
I have got an issue with heterogeneous service configuration like
SQL> select * from colour@mysql_local;
select * from colour@mysql_local
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-02063: preceding line from MYSQL_LOCAL
If anybody can advise me what is wrong in conf or might be I missed something
Thanks
Environment:
OS: Windows 7 Pro
Oracle 11.2.0.3
MySQL: 5.6
Configuration:
System ODBC configured : MYSQL_LOCAL
Tested connection - sucessful
Listener
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(SID_NAME = MYSQL_LOCAL)
(ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
(PROGRAM=dg4odbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\app
Tnsnames.ora
MYSQL_LOCAL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SID = MYSQL_LOCAL)
(HS = OK)
initdg4odbc.ora
HS_FDS_CONNECT_INFO = mysql_local
HS_FDS_TRACE_LEVEL = OFF
SQL> conn / as sysdba
SQL> create public database link MYSQL_LOCAL connect to root identified by 12346 using 'MYSQL_LOCAL';
C:\Windows\system32>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 17:44:24
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.3.0 - Production
Start Date 08-MAY-2013 17:44:05
Uptime 0 days 0 hr. 0 min. 18 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File C:\app\diag\tnslsnr\D-9RGC8X1\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "MYSQL_LOCAL" has 1 instance(s).
Instance "MYSQL_LOCAL", status UNKNOWN, has 1 handler(s) for this service...
Service "QA_IMS_MYSQL" has 1 instance(s).
Instance "QA_IMS_MYSQL", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\Windows\system32>tnsping mysql_local
TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 17:44:36
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
C:\app\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 = localhost)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL_LOCAL) (HS = OK)))
OK (0 msec)
SQL> conn / as sysdba
Connected.
SQL> select * from colour@mysql_local;
select * from colour@mysql_local
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-02063: preceding line from MYSQL_LOCALHi,
The gateway file initMYSQL_LOCAL.ora should be placed in the directory -
$ORACLE_HOME\hs\admin
which is the expected location. In your setup this should be -
C:\app\product\11.2.0\dbhome_1\hs\admin
If the file is already in that location then make sure that in the listener.ora and tnsnames.ora that in each section every line except the first line starts with at least one space -
SID_LIST_LISTENER =
<space>(SID_LIST =
<space>(SID_DESC =
LISTENER =
<space>(DESCRIPTION_LIST =
Tnsnames.ora
MYSQL_LOCAL =
<space>(DESCRIPTION =
<space>(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
However, there is also a problem with the tnsnames.ora file. You have -
Tnsnames.ora
MYSQL_LOCAL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SID = MYSQL_LOCAL)
(HS = OK)
) <=== move this bracket
but it should be -
Tnsnames.ora
MYSQL_LOCAL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SID = MYSQL_LOCAL)
) <=== bracket moved here
(HS = OK)
Of course, with spaces as shown above. They are often lost in the forums.
You may also need to change -
(HOST = localhost)
to -
(HOST = <actual host name>)
but it depends on your setup.
Try these changes and let me know what happens.
Regards,
Mike -
Connection error from Oracle 9i JDeveloper to Oracle 9i
Hi,
I have the oracle 9i database installed on my local box.
I have Oracle 9i JDeveloper installed 2. I am trying to configure a connection from JDeveloper to Oracle 9i.
I get the following error message:
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
DBError.java:187
void oracle.jdbc.dbaccess.DBError.throwSqlException(int, java.lang.Object)
DBError.java:229
void oracle.jdbc.dbaccess.DBError.throwSqlException(java.io.IOException)
DBError.java:342
void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
OracleConnection.java:415
java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
OracleDriver.java:485
java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
OracleDriver.java:337
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
DriverManager.java:517
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties)
DriverManager.java:146
java.sql.Connection oracle.jdeveloper.cm.JdbcConnectionWrapper.createConnectionImpl(java.lang.String, java.lang.String, java.util.Properties)
JdbcConnectionWrapper.java:146
void oracle.jdeveloper.cm.JdbcConnectionWrapper.createConnection(oracle.jdeveloper.cm.ConnectionDescriptor)
JdbcConnectionWrapper.java:110
java.sql.Connection oracle.jdeveloper.cm.JdbcConnectionWrapper.getJdbcConnection()
JdbcConnectionWrapper.java:175
java.lang.Object oracle.jdeveloper.cm.JdbcConnectionWrapper.getPresentation(java.lang.String)
JdbcConnectionWrapper.java:162
void oracle.jdevimpl.cm.dt.browser.jdbc.JdbcBrowser.openConnectionBrowser(oracle.jdeveloper.cm.dt.ConnectionBrowsable)
JdbcBrowser.java:133
java.lang.Object oracle.jdeveloper.cm.dt.ConnectionNode$NodeOpen.doWork()
ConnectionNode.java:202
void oracle.jdeveloper.cm.dt.ProgressRunnable.run()
ProgressRunnable.java:193
void oracle.ide.dialogs.ProgressBar.run()
ProgressBar.java:527
void java.lang.Thread.run()
Thread.java:484
My Classpath looks like this:C:\oracle\ora92\bin;C:\oracle\ora92\jdbc\lib;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;Either the SID you specified is wrong or the DB listener is not configured correctly
See ORA-12505
http://www.cryer.co.uk/brian/oracle/ORA12505.htm -
Issue while invoking a stored procedure in DB2 from Oracle OSB flow
oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/Test_Project/Application/Project1/TestSP [ TestSP_ptt::TestSP(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'TestSP' failed due to: Stored procedure invocation error.
Error while trying to prepare and execute the NED.LOGIN_MODULE API.
An error occurred while preparing and executing the NED.LOGIN_MODULE API. Cause: java.lang.NullPointerException
; nested exception is:
BINDING.JCA-11811
Stored procedure invocation error.
Error while trying to prepare and execute the NED.LOGIN_MODULE API.
An error occurred while preparing and executing the NED.LOGIN_MODULE API. Cause: java.lang.NullPointerException
Check to ensure that the API is defined in the database and that the parameters match the signature of the API.This forum is for issues about WebLogic Connector container itself. You may need to post your issue to other forums such as SOA.
Thanks -
Connecting to db2 from report builder via odbc
Hi!
Some manuals said, it is possible to connect to DB2 from Oracle SQL*Plus (we have version 8.0.6.0.0)
and from Oracle Report Builder.(6.0.8.11.3)
User must install OCA (Oracle Open Client Adapter for ODBC (6.0.5.29.0)) and make ODBC entry.
I did it.
run with: plus80 db2user/db2pass@odbc:db2test
SQL*Plus made the connection, but with errors:
SQL*Plus: Release 8.0.6.0.0 - Production on Fri Oct 17 16:12:56 2003
(c) Copyright 1999 Oracle Corporation. All rights reserved.
ORA-00022: invalid session id; access denied
ORA-00022: invalid session id; access denied
ORA-00022: invalid session id; access denied
Error accessing PRODUCT_USER_PROFILE
Warning: Product user profile information not loaded!
You may need to run PUPBLD.SQL as SYSTEM
Server not available or version too low for this feature
ORA-00022: invalid session id; access denied
Connected to:
Oracle Open Client Adapter for ODBC 6.0.5.29.0
DB2/NT 08.01.0000
SQL>
The error refers PUPBLD.SQL, but I think it is Oracle specific, don't help.
Worse, that it can't connect from Report Builder, it just throws error.
If I set OCA_DEBUG=TRUE in registry, I have bonus messages:
oca-30053 unsupported network call (oracle code: 3115)
oca-30002 ubofssw function not supported (1010)
I tried to connect to MsAcces too, but I got same errors.
Have you any idea, how can I solve this?
Thanksresolved
I just add the master entry in the c:\Report\NET80\ADMIN\tnsnames.ora, and it works.
but I can't connect with the system or sys accounts, it work just with scott/tiger. -
Connecting ZOS DB2 from SQLDeveloper
Hi Friends,
I am trying to connect Z O/S DB2 from Oracle sql developer.
I already installed DB2 in my windows machine and i can configure the catalog of Z O/S database. I can connect Z O/S DB2 from my windows machine DB2.
Then i installed SQLDEVELPOER 3.0.04.34 registered the following jar file from windows DB2.
db2jcc.jar and db2jcc_license_cu.jar (Location :- ****\SQLLIB\java). Then i try to connect the Z 0/S DB2 database. While i try to connect, it show the below error.
An error was encountered performing the requested operation:
[jcc][t4][10509][13454][3.62.56] Connection to the data server failed. The IBM Data Server for JDBC and SQLJ license was invalid or was not activated for the DB2 for Z/OS subsystem.if you are connecting directly to the data server and using DB2 connect unlimited Edition for System z, perform the activation step by running the activation program in the license activation kit.
If you are using aother edition of DB2 Connect,obtain the license file, db2jcc_license_cisuz.jar, from the license activation kit, and follow the installation directions to include the license file in the class path
Thanks in advance.
Please help to solve this problem.
I think i need to download and register db2jcc_license_cisuz.jar. Where i can dowload?
Note:- JDBC connection was enabled in Z O/S DB2.
Edited by: user8665771 on Oct 13, 2011 12:22 AM1008611 wrote:
I know this is an old issue, but for future reference I would like to contribute with my 2 cents...
I'm not entirely sure, but I think that Oracle SQL Developer don't support DB2 z/OS at it's current state, only DB2 LUW (Linux, Unix and Windows).
I am in the same situation and I am very sure that I'm using properly licensed files.
If this is true, the issue might very well be Oracle related.
Can anyone confirm this, please?If it is an "oracle" issue, it would only be so far as what non-oracle databases can be supported by Oracle SQL Developer. And so would best be addressed in the dedicated SQL Developer forum: SQL Developer -
How to Create a DataSource to DB2 in Oracle App Server 10g
Dear All
I have to connect to DB2 from Oracle Application Server 10g.
If anyone knows how to connect to DB2 from Oracle App Server 10g.
Pls advice me..
With Regards
SureshHi,
Once u created a data source. go to respective application component which u have assigned ducring creatinon of DS in RSO2 and right click on it and use replicate metadata.
a popup with options 1. as data source
2. as 3.x data source will come u select 2 one here and go on. -
Not able to connect database from another os user using externally?
Hi,
I want to connect database from another os user. i am able to connect database from oracle externally. but not able to connect different OS user.
As ORACLE User:
[oracle@test1 admin]$ sqlplus /
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:41:57 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
Non ORACLE user:
[sample@test1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/
[sample@test1 ~]$ export ORACLE_SID=rman
[sample@test1 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[sample@test1 ~]$ sqlplus /
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:37:42 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name:
ThanksYou didn't install Oracle correctly, especially you didn't run the root.sh and rootpre.sh scripts.
If you would have read the error message at all, and researched it, you would have known this.
Regrettably however you decided to ignore Forums Etiquette and to abuse this forum with Yet Another Doc Question.
Sybrand Bakker
Senior Oracle DBA -
How do I connect to a DB2 database from Oracle 10G on linux?
Hi
I have tryed to connect to a DB2 database from oracle 10 G on linux.
I have installed unixODBC and a db2 odbc driver. I can connect to the db2 using isql, but oracle comes with this error:
select * from testtable@acc_spc_gr2
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
Could not find symbol 'SQLAllocConnect' in dynamic library
DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'
ORA-02063: preceding 3 lines from ACC_SPC_GR2
What am I doing wrong? Any one have a guide to do this?
- Jesperthis is my complete configuration
Database_
-bash-3.2$ export ORACLE_SID=XE
-bash-3.2$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mié Jul 7 10:04:43 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Conectado a:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Platform_
Linux srvpdf 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux
*/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/initDB2DATABASE.init*
#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 = ODBC_DSN
HS_FDS_CONNECT_INFO = prueba
HS_FDS_TRACE_FILE_NAME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/DB2DATABASE.log
HS_FDS_CONNECT_INFO = DB2DATABASE
#HS_FDS_TRACE_LEVEL = debug
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
# Environment variables required for the non-Oracle system
set DB2INSTANCE=is400
listener.ora_
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = DB2DATABASE)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM =hsodbc)
(ENVS = LD_LIBRARY_PATH = /opt/ibm/iSeriesAccess/lib:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.32)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.31)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
tnsnames.ora_
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvpdf)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
DB2DATABASE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost )(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = DB2DATABASE)
(HS=OK)
odbc.ini_
[prueba]
Description = iSeries Access ODBC Driver
Driver = iSeries Access ODBC Driver
System = xxx.xx.3.2
UserID = xxxxxx
Password = xxxxxx
Naming = 0
DefaultLibraries = QGPL
Database = CHERRYWEB
ConnectionType = 0
CommitMode = 2
ExtendedDynamic = 0
DefaultPkgLibrary = QGPL
DefaultPackage = A/DEFAULT(IBM),2,0,1,0,512
AllowDataCompression = 0
MaxFieldLength = 32
BlockFetch = 1
BlockSizeKB = 128
ExtendedColInfo = 0
LibraryView = 0
AllowUnsupportedChar = 0
ForceTranslation = 0
Trace = 0
odbcinst.ini_
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
[iSeries Access ODBC Driver]
Description = iSeries Access for Linux ODBC Driver
Driver = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
Driver64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup = /opt/ibm/iSeriesAccess/lib/libcwbodbcs.so
Setup64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
UsageCount = 1
CPTimeout =
CPReuse =
System = 172.18.3.2
User = inf5mito
Password = lonco3pue
NOTE1 = If using unixODBC 2.2.11 or later and you want the 32 and 64-bit ODBC drivers to share DSN's,
NOTE2 = the following Driver64/Setup64 keywords will provide that support.
Threading = 2
DontDLClose = 1
ODBC Driver_
-bash-3.2$ cd /opt/ibm/iSeriesAccess/lib
-bash-3.2$ ls -ltr
total 2260
-r-xr-xr-x 1 root root 443939 Apr 5 2008 libcwbxda.so
-r-xr-xr-x 1 root root 94504 Apr 5 2008 libcwbrc.so
-r-xr-xr-x 1 root root 16636 Apr 5 2008 libcwbodbcs.so
-r-xr-xr-x 1 root root 729572 Apr 5 2008 libcwbodbc.so
-r-xr-xr-x 1 root root 998060 Apr 5 2008 libcwbcore.so
and this is my error.
SQL> /
select from display@db2database*
ERROR en línea 1:
ORA-28500: la conexión de ORACLE a un sistema no Oracle ha devuelto este
mensaje:
*[Generic Connectivity Using ODBC][C077] Could not find symbol 'SQLAllocConnect'*
in dynamic library
*[C079] Failed to load dynamic library*
*'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'*
ORA-02063: 3 lines precediendo a DB2DATABASE
Edited by: user6669081 on 07-jul-2010 6:31 -
Changing the data source from DB2 to ORACLE in SBOP 4.0
Hi Gurus,
We have done SBOP 4.0 SP 2 installation successfully on Linux by choosing DB2 as default Database as suggested by SAP as there is some issue with RH LINUX 5.5 version. Now, we need to change the CMS data source back to ORACLE 11G. For that we have to execute cmsdbsetup.sh and go with the option of "copy" (Copy data from another Data Source). We need to provide the target/destination CMS database in my case ORACLE (TNS & CMS user) details. And also we need to provide the source CMS user (DB2) details. As we went with the bundled/default DB2 installation, we are not able to find the cms user name and password (no where during the installation it prompted to provide cms username and password).
What will be the default cms username /password in DB2?
Thanks,
SandeepHi,
The work around is to create/add an extra node (SIA Node) with default servers option for the existing CMS and provided my ORACLE CMS username/password along with the TNS Names using cmsdbsetup.sh. Make sure that this new node is visible in the Servers section of the CMC console (i.e. http://<webappserver>:8080/BOE/CMC-->servers) and also see that all the servers should be running. Then you can delete the old SIA which was connected to DB2 from the CMC->servers.
Thanks,
Sandeep
Maybe you are looking for
-
Hi - Previously, the Mail settings on my iPhone and MacBook Pro were set exactly as I wanted them to be: If I opened a Mail message on my phone, it stayed in the inbox only until I opened the Mail App on my MacBook Pro, at which time it downloaded on
-
Visual Difference on image between acrobat 6 and Above
Dear all, We have a query on visual difference in the pdf file(particularly in images). We have also inserted the screenshot image in this mail Please help and tell me the difference in features on this. In Acrobat Professional 9.0 In Acrobat Profess
-
Search files in current folder doesn't work
When I search my whole mac for e.g. "Danse Macabre" i get the results from all over the place, which is to be expected. So when I go into the folder I get a list of files including the one I was searching for. So far so good. While typing in a new se
-
File Manager for Lumia devices
Provide us file manager this a important part of any mobile phone Moderator's note: We have amended the subject as we provide a topic touched on the subject.
-
Best practises for using Excel functions on Power Pivot Data
Hi How do you suggest to perform calculations on cells in a power pivot table? Obviously the ideal approach is to use a DAX measure. But given that DAX doesn't have every function, is there a recommended way of eg adding an "extra" ( ie just adjacen