DB link not working from Oracle to Sql server
Hi All,
DB:10.2.0.3.0 and 11.1.0.7
OS: linux 86x64
DB:11.1.0.7
OS: linux 86x64
We created a db link from Oracle 10.2.0.3.0 to sql server and rceived the error message as:
$ tnsping testdb
TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 09-FEB-2011 15:42:57
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp) (HOST=abcd) (PORT=1521)) (CONNECT_DATA = (SERVICE_NAME=testdb)) (HS = OK))
TNS-12541: TNS:no listener
What steps are we missing to connect to sql server?
Thanks for your time!
Regards,
Hi,
We are trying to connec to sql server DB: CognosStaging
lsnrctl status
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 22-FEB-2011 18:19:06
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.3.0 - Production
Start Date 04-JAN-2010 19:11:37
Uptime 413 days 23 hr. 7 min. 29 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /orabin/oracle/product/10.2.0.3/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fcobidbfrm01)(PORT=1521)))
Services Summary...
Service "OBIDEV" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Service "OBIDEVXDB" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Service "OBIDEV_XPT" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Service "OBIHRDEV" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Service "OBIHRDEVXDB" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Service "OBIHRDEV_XPT" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$ env | sort
_=/bin/env
G_BROKEN_FILENAMES=1
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=fcobidbfrm01
INPUTRC=/etc/inputrc
KDEDIR=/usr
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/orabin/oracle/product/10.2.0.3/lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
OLDPWD=/oradata/OBIDEV
OPATH=/orabin/oracle/product/10.2.0.3/bin:/orabin/oracle/product/10.2.0.3/OPatch/:./:
ORACLE_HOME=/orabin/oracle/product/10.2.0.3
ORACLE_SID=OBIDEV
PATH=/orabin/oracle/product/10.2.0.3/bin:/orabin/oracle/product/10.2.0.3/OPatch/:./:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
PWD=/home/oracle
SHELL=/bin/bash
SHLVL=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_CLIENT=::ffff:10.20.142.68 3901 22
SSH_CONNECTION=::ffff:10.20.142.68 3901 ::ffff:10.20.10.152 22
SSH_TTY=/dev/pts/3
TERM=xterm
USER=oracle
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$ id
uid=500(oracle) gid=503(oradba) groups=10(wheel),502(oinstall),503(oradba)
[oracle@fcobidbfrm01 ~]$ lsnrctl service
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 22-FEB-2011 18:21:14
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
Services Summary...
Service "OBIDEV" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:301781 refused:0 state:ready
LOCAL SERVER
Service "OBIDEVXDB" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:4 refused:0 current:0 max:972 state:ready
DISPATCHER <machine: fcobidbfrm01, pid: 25232>
(ADDRESS=(PROTOCOL=tcp)(HOST=fcobidbfrm01)(PORT=47228))
Service "OBIDEV_XPT" has 1 instance(s).
Instance "OBIDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:301781 refused:0 state:ready
LOCAL SERVER
Service "OBIHRDEV" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4286 refused:0 state:ready
LOCAL SERVER
Service "OBIHRDEVXDB" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:972 state:ready
DISPATCHER <machine: fcobidbfrm01, pid: 21212>
(ADDRESS=(PROTOCOL=tcp)(HOST=fcobidbfrm01.na.gilead.com)(PORT=57739))
Service "OBIHRDEV_XPT" has 1 instance(s).
Instance "OBIHRDEV", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4286 refused:0 state:ready
LOCAL SERVER
The command completed successfully
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$ uname -a
Linux fcobidbfrm01 2.6.9-67.0.7.ELsmp #1 SMP Wed Feb 27 04:47:23 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[oracle@fcobidbfrm01 ~]$ cat $ORACLE_HOME/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /orabin/oracle/product/10.2.0.3/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
DBATST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = fcdbfrm02)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = DBATST)
TESTSBY=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = fcdbfrm02)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = TESTSBY)
ctmsdev =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = fcdb01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ctmsdev)
ERPINT1=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=fcterpdb01.na.gilead.com)(PORT=1566))
(CONNECT_DATA=
(SID=ERPINT1)
OBIDEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = fcobidbfrm01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = OBIDEV)
CognosStaging= (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)
(HOST=fcsql18)
(PORT=1521)
(CONNECT_DATA = (SERVICE_NAME=CognosStaging)
(HS = OK)
[oracle@fcobidbfrm01 ~]$
[oracle@fcobidbfrm01 ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.20.10.152 fcobidbfrm01.na.gilead.com fcobidbfrm01
Do we need to just add an entry to the listener.ora in Oracle DB to get the connection working? Is that all what is required?
or
I have found a metalink note: How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) [ID 562509.1]
Do we need to set it up in Oracle DB first?
Thanks,
Similar Messages
-
Tnsping not working from oracle to sql
hi
i need to connect sql server 2005 on windows server from my oracle database 10.2 on hpux
before doing this setup on unix server to windows server
i m testing it on my local windows xp system where oracle is installed and trying to connect to remote sql server
so 1 i configured ODBC drivers for sql server
2. then i have alterd initfile under dir $ORACLE_HOME/hs/admin/
with this parameter
# 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 = Test1
HS_FDS_TRACE_LEVEL = off
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
3 i configured listener. ora file and added this entries in listener.ora file under dir $ORACLE_HOME/network/admin/
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 01hw172211)(PORT = 1521))
LISTENERTEST1 =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=01hw172211)(PORT=1522))
(ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
SID_LIST_LISTENERTEST1=
(SID_LIST=
(SID_DESC=
(SID_NAME=TEST1)
(ORACLE_HOME = C:\oracle\product\10.1.0\db_1)
(PROGRAM=hsodbc)
where 01hw172211 is the host where oracle is installed and TEST1 Is the sql database
4 then i configured tnsnames. ora file under dir $ORACLE_HOME/network/admin
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 01hw172211)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
TEST1 =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=01hw172211)(PORT=1522))
(CONNECT_DATA=(SID=test1))
(HS=OK)
where ORCL is oracle database on local system 01hw172211 and TEST1 is SQL SERVER database
5 then i start the new listenertest1 listener ... listener started successfully
6 then i checked tnsping test1 ... but it is faild..
can any body tell me what is wrong in above procedure for connecting from oracle to sql ... in step no. 4 there is a TEST1 CONNECT discriptor where I have used HOST=local system where oracle is installed.. is it correct OR i have to specifiy HOST=sql server host name.hi
i need to connect sql server 2005 on windows server from my oracle database 10.2 on hpux
before doing this setup on unix server to windows server
i m testing it on my local windows xp system where oracle is installed and trying to connect to remote sql server
so 1 i configured ODBC drivers for sql server
2. then i have alterd initfile under dir $ORACLE_HOME/hs/admin/
with this parameter
# 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 = Test1
HS_FDS_TRACE_LEVEL = off
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
3 i configured listener. ora file and added this entries in listener.ora file under dir $ORACLE_HOME/network/admin/
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 01hw172211)(PORT = 1521))
LISTENERTEST1 =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=01hw172211)(PORT=1522))
(ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
SID_LIST_LISTENERTEST1=
(SID_LIST=
(SID_DESC=
(SID_NAME=TEST1)
(ORACLE_HOME = C:\oracle\product\10.1.0\db_1)
(PROGRAM=hsodbc)
where 01hw172211 is the host where oracle is installed and TEST1 Is the sql database
4 then i configured tnsnames. ora file under dir $ORACLE_HOME/network/admin
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 01hw172211)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
TEST1 =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=01hw172211)(PORT=1522))
(CONNECT_DATA=(SID=test1))
(HS=OK)
where ORCL is oracle database on local system 01hw172211 and TEST1 is SQL SERVER database
5 then i start the new listenertest1 listener ... listener started successfully
6 then i checked tnsping test1 ... but it is faild..
can any body tell me what is wrong in above procedure for connecting from oracle to sql ... in step no. 4 there is a TEST1 CONNECT discriptor where I have used HOST=local system where oracle is installed.. is it correct OR i have to specifiy HOST=sql server host name. -
Oracle DB Link from Oracle to SQL Server
Dear buddies,
I am trying to create a dblink from Oracle to SQL Server.
This is my tnsnames.ora
sq =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=LOCALHOST)(PORT=1521)
(CONNECT_DATA=(SID=sq))
(HS=OK)
)This is my listener
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = sq)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_2)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)initsq.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 = sq
HS_FDS_TRACE_LEVEL = OFF
# Environment variables required for the non-Oracle system
#set <envvar>=<value>I have created my System DSN for sq with the appropriate values which works fine when I tested the connection.
These 2 databases are in different servers.
This is how I created the db link in Oracle
create public database link sq
CONNECT TO XXX IDENTIFIED BY "XXX"
using 'sq'
select "Column1"
from "Table1"@'sq';The error I receive is: ORA-01729: database link name expected
When I try to recreate the database link it tells me that: ORA-02011: duplicate database link name
I hope someone could guide me.
Thanks.C:\Documents and Settings\Administrator>tnsping sq
TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 16-AUG-2011 14:48:40
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
C:\Documents and Settings\Administrator> -
DB Link from Oracle to SQL Server error
Dear buddies,
I need to perfome some select on the tables which reside in SQL Server 2005 from Oracle 10g.
I followed the steps given in :
http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
I could perform a TNS ping which is successful but only when I perform a select I receive this error.
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 SQLS
I have checked that my dsn name is in small caps all the way wherever it is used(Since its suggested in many sites).
Please guide me.
I am really looking ahead for a solution.
Regards,
Nithuse the like to setup ODBC and datasource
http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
and then create link server in sql server after you test connenction with oracle -
Creation of database link from oracle to sql server 2000
Hi
I need to create a database link from oracle to sql server 2000.Assuming your Oracle database is running on Windows, you can set up a database link using ODBC using Heterogeneous Services and Generic Connectivity, but there are some functional limitations (i.e. no two-phase commits). If you can live with those limitations but aren't on Windows, you can generally purchase an ODBC driver for your operating system that will connect to SQL Server through someone like DataDirect and still use Generic Connectivity. If you cannot live with those limitations, you can purchase one of Oracle's Transparent Gateway products (though this can get somewhat pricey).
What version of Oracle are you on?
What operating system(s) are you using?
What are you going to use the database link for?
Justin -
Creating Database Link from Oracle to SQL Server
I am trying to create a database link from Oracle to SQL Server, and the documentation is about as clear as mud to me. Can anyone send me clear instructions on exactly what I need to do? What needs to be in tnsnames.ora and listener.ora files? Is there anything other than those two files that needs to be set up? Do I set up an ODBC connection? Anything else? I want to execute queries against a SQL Server database and load data into Oracle database.
Thanks so much,
SusanThese are the instructions from an old document I created. The steps are same for SQL Server and Sybase. Hope it helps.
The 9i Transparent Gateway Software is in Oracle Software CD -> oracle9i database -> Custom -> Oracle Transparent Gateways
The gateway can be installed on the same machine as the Oracle database or
on the Sybase server or on a third machine as a stand-alone.
We have installed the gateway software in one of oracle database
servers in a separate oracle home.
These are the steps involved in configuring a gateway to a Sybase database
1. Install Sybase client and Gateway software on the Gateway Server
2. Configure <initsidfile> in the Gateway Server's <gatewayhome>
/u00/app/oracle/product/9.2.0/tg4sybs/admin/init<gatewaysid>.ora
Sybase server and database information is required for this step.
eg: HS_FDS_CONNECT_INFO=USTRUD01.uwd
3. Add an entry in listener.ora in <listnenerhome>
(/u00/app/oracle/product/9.0.1/network/admin/listener.ora) for the <gatewaysid>
4. Edit the tnsnames file (/u00/app/oracle/product/9.0.1/network/admin/tnsnames.ora)
to add an entry <tnsalias> for the <gatewaysid>
5. Create a database link to the Sybase database in the oracle database.
The steps for creating the database link are
a. create a login oracle_tgw in the sybase server
b. add the user to the sybase database with the necessary privilege on the tables
c. create the database link in the required oracle database using the command
"create public database link <dblinkname> connect to oracle_tgw identified by password using 'tnsalias'; "
6. Restart the gateway listener. -
How to create database link from oracle to sql server
Please help with how to create database link from oracle to sql server
Best regards,
VishalPlease help with how to create database link from oracle to sql server
Best regards,
Vishal
Hi Vishal,
I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
Regards,
Elvis Long
TechNet Community Support -
Connecting from Oracle to SQL Server
Hi
I am now tring to connect from oracle to sql server using database link.
Created database link
but when connecting to remote db getting the floowing error
select * from region@mysqlserverdsn
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 MYSQLSERVERDSN
Can anyone help
My Listener File
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc1)
(SID_DESC =
(GLOBAL_DBNAME = ORCL.DOMAIN.COM)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = orcl)
(SID_DESC =
(GLOBAL_DBNAME = NORTHWIND.DOMAIN.COM)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = MYSQLSERVERDSN)
(PROGRAM=hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST=
(ADDRESS = (PROTOCOL = TCP)(HOST = SALIHKM.DOMAIN.COM)(PORT = 1522))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
My Tnsnames Entry
MYSQLSERVERDSN =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=1522))
(CONNECT_DATA=(SID=MYSQLSERVERDSN))
(HS=OK)
Lsnrctl is working fine.
c:\>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-MAY-2006 18:53
:13
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is D:\oracle\product\10.2.0\db_1\network\admin\listener.or
a
Log messages written to D:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SALIHKM.DOMAIN.COM)(POR
T=1522)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SALIHKM.DOMAIN.COM)(POR
T=1522)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 18-MAY-2006 18:53:16
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\oracle\product\10.2.0\db_1\network\admin\listener.o
ra
Listener Log File D:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SALIHKM.DOMAIN.COM)(PORT=1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
Services Summary...
Service "NORTHWIND.DOMAIN.COM" has 1 instance(s).
Instance "MYSQLSERVERDSN", status UNKNOWN, has 1 handler(s) for this service..
Service "ORCL.DOMAIN.COM" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
But Tnsping show no listener
C:\>tnsping MYSQLSERVERDSN
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-MAY-2
006 18:56:27
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(P
ORT=1522)) (CONNECT_DATA=(SID=MYSQLSERVERDSN)) (HS=OK))
TNS-12541: TNS:no listener
Services
C:\>lsnrctl services
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-MAY-2006 19:00
:04
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SALIHKM.DOMAIN.COM)(POR
T=1522)))
Services Summary...
Service "NORTHWIND.DOMAIN.COM" has 1 instance(s).
Instance "MYSQLSERVERDSN", status UNKNOWN, has 1 handler(s) for this service..
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "ORCL.DOMAIN.COM" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: SALIHKM, pid: 2080>
(ADDRESS=(PROTOCOL=tcp)(HOST=SALIHKM.DOMAIN.COM)(PORT=1070))
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1 refused:0 state:ready
LOCAL SERVER
The command completed successfully
I am very much confused with this situation.
Thanks & Regards
Salih KmHi ,
Thanks for your reply.
Contents of my initMYSQLSERVERDSN.ora file is
# 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 = MYSQLSERVERDSN
HS_FDS_TRACE_LEVEL = 0
HS_FDS_TRACE_FILE_NAME = hsmsql.trc
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
set ODBCINI=c:\WINDOWS\ODBC.INI
SALIHKM.DOMAIN.COM is my system in which Oracle Test DB is Installed.
SQL Server is in another location.
In Tnsnames i specified ip address.
One more doubt.
I am using 10g Release 2 demo version.
whether it will support Hetrogeneous Services?
How to know whether a database supports HS or not?
Thanks & Regards
Salih Km -
Oracle 10gR2 64bit odbc from oracle to sql server Win 2008 EE 64bits
Hi, I am having trouble with a 10gR2 64bits creation of odbc from oracle to sql server, I have follow several instruction with no luck at all. My OS is windows 2008 EE 64bits on the oracle and sql server server.
This is what I have done
1. in the $oracle_home/hs/admin directory
inithsodbc.ora
# HS init parameters
HS_FDS_CONNECT_INFO = hsodbc
HS_FDS_TRACE_LEVEL = off
2. in the $oracle_home/network/admin
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(SID_DESC=
(SID_NAME=hsodbc)
(ORACLE_HOME=C:\oracle\product\10.2.0\db_1)
(PROGRAM=C:\oracle\product\10.2.0\db_1\hs\hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
And the tnsname.ora
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
PRUEBA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = prueba)
hsodbc =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=xx.xx.xx.xx)(PORT=1521))
(CONNECT_DATA=(SID=hsodbc))
(HS=OK)
I create the odbc connection an test it , the result is TEST PASSED
4. The i create a database link on my database
CREATE PUBLIC DATABASE LINK XYZ
CONNECT TO "sysdba" IDENTIFIED BY "masterkey"
USING 'hsodbc';
5 execute a select
SQL> select * from dual@XYZ;
select * from dual@XYZ
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 XYZ
6. When I check the listener log i'm getting this error
25-MAR-2011 11:48:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169870592)) * status * 0
25-MAR-2011 11:48:47 * (CONNECT_DATA=(SID=hsodbc)(CID=(PROGRAM=)(HOST=PRO)(USER=PRO\Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=xx.xx.xx.xx)(PORT=49329)) * establish * hsodbc * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
Edited by: user626125 on Mar 26, 2011 11:39 AM
Edited by: user626125 on Apr 12, 2011 2:49 PMHeterogeneous Connectivity
-
Inserting Data from Oracle to SQL Server on the Real Time Basis.
Hi Everyone,
I need to insert data from Oracle to SQL Server on the Real Time basis, we have to fetch data from oracle approx 20 tables, and each table has more than 30 Fields. I need to fetch data in every 15 mins.
I have created a job using SQL SERVER Agent by writing insert queries for all the tables with conditions that no rows will be inserted which is already in SQL. note that this job is taking only 1 min to execute.
But in this way our SQL Server getting hanged and it giving problems to other application running in the SQL SERVER.
So i m requesting all of you that what is the best way to insert huge amount of data on the real time basis.
Thanx in Advance.1) Create Linked server
2) insert data using openquery and set job in sql agent
3) run job after 15 minutes -
Error while converting schema from oracle to SQL server
Hello,
I am getting following error while converting schema from oracle to SQL server using SSMA.
I get Errors 1-3 while migrating procedures and error 4 while migrating a table.
1- O2SS0050: Conversion of identifier 'SYSDATE' is not supported.
2- O2SS0050: Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.
3- O2SS0050: Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported.
4- O2SS0486: <Primary key name> constraint is disabled in Oracle and cannot be converted because SQL Server does not support disabling of primary or unique constraint.
Please suggest.
Thanks.The exact statement in oracle side which causing this error (O2SS0050:
Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
dStartDate:= to_date(sStartDate,'MON-YYYY');
Statement causing error O2SS0050:
Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
nCount2:= length(regexp_replace(sDataRow,'[^,]'));
So there is no statement which is using to_date(VARCHAR2,
CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY' and '[^,]'
are CHAR values hence SSMA is unable to convert it from varchar2 to char.
Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
dDate date := sysdate;
Thanks. -
Pulling data from oracle into sql server 2005
hi,
these days i am working on sql server 2005 on windows server 2008 64 bit.
and oracle 10g on 32 bit unix.
my problem is that when i am pulling data from oracle into sql server it shows me about *500-700 entries less*.
why this is happening? is it because 32 bit to 64bit? or is it because of different os?Akki,
are you using snapshot or replication from MSSQL? I am doing the same thing, hope to share your experience.
I am using import/export from MGT studio and pull some data from Oracle database, I am working on how to update the changes on these tables pulled from Oracle.
Thanks,
-hank -
Migrating data from oracle to sql server
I have two databases(Oracle and Sql Server) in my company.
I want to migrate some data on daily basis from Oracle to Sql Server.
what are the best methodologies used to perform this task?
Can we schedule this task on daily basis?
please help me guysSalma,
First and foremost, you need to understand that there are architectural difference between Oracle and SQL Server (with the major one being the difference between Oracle's PL/SQL and Microsoft's Transact-SQL) thus, it will not be an easy task to migrate data from Oracle Database to SQL Server. As far as the use of tools is concerned, you can utilize the following tools (third party tools not recommended) to achieve this:
Microsoft SQL Server Migration Assistant (Oracle to SQL)
http://www.microsoft.com/sqlserver/2005/en/us/migration-oracle.aspx
Oracle SQL Developer Migration Workbench (SQL to Oracle)
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
But before proceeding with anything, I would recommend you to read through the following post as it lists down the primary compatibility resources and migration guidelines:
Migrating from Oracle to SQL Server
http://vyaskn.tripod.com/oracle_sql_server_differences_equivalents.htm
Hope this helps.
Regards,
Naveed. -
Migration of Database from Oracle to SQL Server in Business Objects XI 3.1
Hi,
Currently, We are working on Business Objects XI 3.1 and Database is Oracle 11g. And now we have the requirement to migrate from Oracle 11g to SQL Server 2008 R2.
I would like to know what are the key points to be considered in business objects XI 3.1 when the database is migrated from oracle to SQL server.
If anyone can share the Impact analysis document for Business Objects, it would be great.
Thanks,
Lavanyaa TPIf you use business objects tools for such migration , the impact should be minimal.
CMSDBCopy mechanism from CCM should work fine for this purpose. -
Changing CMS and Audit Repository databases from Oracle to SQl server 2008
Hi guys,
We have a Business Objects Dev environment which was installed with Oracle 10g database for CMS and Audit Repository.
Our database team now decided to change the CMS and Audit databases of Dev BOE from Oracle to SQL server 2008.
What is the ideal way to achieve this? I'm concerned because the old DB is Oracle and the new one would be SQL server.
Earlier, I have changed CMS database from one to another by stopping SIA , taking the backup of old DB into new and changing it in the Update Databse option. But in that case both old and new CMS databses were on SQL server 2005.
Thanks,
GangaDenise,
Thanks for the solution.
We have done Windows AD and SAP integration on the Dev BOE. Will there be any issue with those after the DB change. I am guessing there won't be, but just want to confirm. Please reply.
Also, we need to stop the old SIA and start using the new SIA after the step two is done right?
Maybe you are looking for
-
Service-specific error code -2146885628- MS SQL Server 2008 r2 Express
I have had no end of problems starting my MS SQL Server 2008 r2 Express. My database program (Sage ACT! Pro 2011) starts fine. However when it attempts to start my default database, I get the following error message: When I start my database within m
-
How can I tighten the tension on the display arm? The pivot points have caps with three recesses which would seem to require a special tool?
-
Error: ORA-29532: Java call terminated by uncaught Java exception:
Anyone have this similar problem of ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException: Caught exception while handling request: deserialization error: XML reader error: unexpected character content: "A"
-
I am using a Motion HD template (Blue News template) and one of them starts with a picture of a person growing in size. The template only lasts about 5 seconds but i want to use it longer. My question is how after the image has grown how can I keep i
-
Any suggestions would be appreciated please.....