Heterogeneous Connectivity to SQL Server from 8.0.5
I read many topics in this forum relating to Heterogeneous Services (HS) but cannot find any documentation that details how to 'invoke' an HS connection through ODBC
We need simple connectivity to a SQL-Server DB so there is no need to install Transparent Gateway.
So, how do we invoke a "Heterogeneous Service" call from a SQL*Net script? Do we configure an ODBC connection to the SQL Server in the Win2k ODBC applet first? Then how do we make the 'call' to that ODBC connection?
We saw in some postings that the TNSNAMES & LISTENER files require some entries; what is the format for those entries?
Mariano,
You want to use Generic Connectivity to access SQL Server. This is documented in Chap 7 of the Heterogeneous Connectivity Administrator's Guide.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96544/gencon.htm#1656
you will need an ODBC/OLE DB driver for sql server.
I hope that helps.
Similar Messages
-
Error while connecting to SQL SERVER from OWB
HI All,
I got the following error while connecting to SQL SERVER from OWB(10gR2).
1). Created DSN with (GMSCADA)
2). tnsnames file is updated with the following information
GMSCADA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.60.29)(PORT = 1433))
(CONNECT_DATA =
(SERVICE_NAME = SA)
3). Tried to connect to SQL SERVER frm OWB
Username: sa
password: sa
host: 172.16.60.29
port: 1433
service name: GMSCADA
schema: sa
I got the following error, when I click Test Connection:
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 OWB_3095
Regards,
Kumar.Hi David,
What is Gateway, How I have to setup, Please let me know.
I tried according to the Demo, But still I am facing the same problem. Which system IP I have to put in the host details.
Can u please let me know.
Regards,
Kumar. -
How to connect to SQL Server from Forms 10g?
Hello all,
How do we connect to SQL Server database from Forms 10g?
In Oracle Metalink site they have suggested using Transparent Gateway for SQL Server as a solution.
But is there a way we can connect directly to SQL Server from Forms using an ODBC connection
without installing anything on the database server?
Pls help!
Regards,
SamHello all,
I was able to connect to SQL Server from Oracle using Generic Connectivity (HSODBC).
Transparent gateway was not required.
Followed metalink note 109730.1
So, after I created a dblink to SQL Server, I created a synonym for the dblinked SQL Server table.
When I used the synonym as the table source in Oracle Forms, I got the following error while querying.
"ORA-02070 - ROWID is not supported in this context."
This is because Forms has an invisible ROWID field and when data is fetched from SQL Server table
no Rowid is fetched since SQL Server table doesn't have one.
Is there a way to overcome this issue or do we have populate the block manually using a SQL query ?
Pls suggest.
Regards,
Sam -
Failure when connecting MS SQL SERVER from ODI ! could not load JDBS driver
i have some trouble with connecting MS SQL SERVER from ODI.
I have already downland jdbs driver 3.0 (and 2.0 ) and copy the sqljdbc4.jar to D:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers( where the oracle jdbs driver is already exitst )....but i have this error :
could not load JDBS driver class..
thanksAfter more investigation and even more chocolate, we've identified the problem and it's now working. For anyone else who strikes this problem in future, here's something to check/consider/try:
Even though Squirrel SQL Client was connecting and working ok using the MS JDBC driver (v 3.0), it recorded this in its logs:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the INTERSECT operation.
We've found that the open source jTDS driver does not have the same issue as the Microsoft one.
We've installed the current jTDS driver, recorded the driver name (net.sourceforge.jtds.jdbc.Driver) and the JDBC URL (jdbc:jtds:sqlserver://<hostname>:1433/<database>) and the connection is now working fine.
Hope this helps other people...
Thanks to those of you who offered suggestions and things to check...much appreciated.
Robyn -
Connect to SQL Server from Oracle
Does Oracle offer any connectivity to NON-Oracle databases such as SQL Server from within the Oracle database itself, similar to a database link ?
Yes, it's called Heterogeneous Connectivity. Basically how it works is you set up an ODBC data source on the Oracle server
and need to modify the tnsnames.ora and listener.ora files. Once you get it set up it works exactly like a dblink. You should be
able to find information on it in the Oracle manuals or from Metalink. There's also a Heterogenous Connectivity forum on OTN. If
you can't find anything let me know and I can send you some documents on how to set it up. I think the hardest part for you might
be finding a SQL Server ODBC driver for HP-UX. -
Regarding the tns-12541 error in connecting to sql server from oracle
i need to create a database link from oracle on windows box to sql server.I configured everything but when i am trying to tnsping the sqlserver
it throws me an TNS12541 no listener error.
The listner status is up and the listener workslittle confusion here, are you trying to tnsping sql server? tnsping is an Oracle utulity.
To acces sql server from Oracle you may use Transparent Gateway for Microsoft SQL - http://download.oracle.com/docs/cd/B19306_01/gateways.102/b14270/ch3.htm#sthref66 and Heterogeneous Connectivity - http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/intro.htm#sthref33
Best regards. -
Connect to sql server from 10g webforms using exec sql
Hi
We are embarking on a project to upgrade our 6i client server forms to 10g web
based. One of our forms uses the exec_sql package to open a connection to an MS
SQL Server database and execute queries on that database.
Oracle open client adapter and an odbc driver for SQL Server is installed on
every client to achieve this. I have read that open client adapter is no longer
available on 10g.
I also read that there a feature of the Oracle database called Generic
Connectivity which would allow us to install an odbc driver on the database
server and allow us to connect to sql server. However I discovered that this
feature is not supported on TRU64 - the operating system our database runs on.
I have read about Oracle Transparent gateways but I have been informed that they are not supported from forms.
Is there any alternative? How can our webform connect to sql server and execute
queries against it? The sql we need to execute is already sql server compliant so no translation is required - just a simple pass through
thanks
paul schweigerI used in the past Forms 6i against DB2 on a mainframe through Transparent Gateway for DB2. So I'm wondering who did you tell such a configuration does not work. And the migration guide states:
/* Open Client Adapters (OCA)
In order to provide platform-independent access to a wider range of non-Oracle data sources, use the Oracle Transparent Gateway and Generic Connectivity solutions in place of OCA. */
At least gateway is mentioned.
Werner -
Problem connecting to SQL Server from JDeveloper 10g using jdbc third party
I am using Oracle 10g Jdeveloper and I tried to setup a database
connection to SQL Server using various Drivers for JDBC as Merlin, jtds, inet.tds, etc.
(I had no problem to set up a connection to an Oracle Database using the
Oracle JDBC driver).
When I am testing the connection throughout the wizard, I do receive
this error message: "Unable to find driver:
com.microsoft.jdbc.sqlserver.SQLServerDriver".
I m not understanding from last 3 days where to place the corresponding JAR files so thaI may not get the Error.
When I hit n trialed at various directories of the JDeveloper as </rootDir/jdbc/lib>
</rootDir/lib>
</root/jdev/my Work/Application1/Project1/public_html>
</root/jdev/my Work/Application1/Project1/public_html/web-inf/>
when I tested the connection I do received:
"Unable to find driver:
xxx.xxx.xxx.xxxxxxx Unable to find driver:
Obviously it can't locate the Micrososft JDBC driver but I can't
figure out why.
I tried all kind of things without any success. Is somebody can help
me and took me beyond this.
I m trying to build DataSource connection from JavaBeans.
Please make me out of this cave. I m not finding any of the way to do this.
The last code I tried is
try {
Class.forName("com.inet.pool.PoolDriver");
com.inet.tds.TdsDataSource tds = new com.inet.tds.TdsDataSource();
tds.setServerName( "local" );
tds.setDatabaseName( "bluff" );
tds.setUser( dbUserName );
tds.setPassword( dbPassword );
DataSource ds = tds;
Connection con = ds.getConnection(dbUserName,dbPassword);
Statement stmt;
ResultSet rs = null;
Thanks,you are confusing me at least as your error is discussing the microsoft driver yet you are configuring the inet datasource.
I do not use JDeveloper, but you need to make sure that whatever is servicing your web app/JavaBean has access to the driver. Not sure why you are not doing a JNDI look up of the resoure, but because you are not you can stick the driver jar in the lib directory within the WAR bundle. I would suggest that you add the driver to the lib/ext or the lib directory which is loaded at boot time for your web container and then use JNDI to look up your DataSource to reduce your coding maintenance headaches. -
Connecting to SQL Server from Solaris using Perl & Oracle.
Hey All,
Using the DBI.pm provided by the default Perl package that comes integrated with Oracle server, I am being able to connect to the Oracle database through Perl.
But is there a way I can connect to SQL Server through Perl using any package provided by Oracle like ODBC or something else (on Solaris)
I am using following version of Oracle server on Solaris 10
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
TIA
ParagThe problem is I cannot install any third party package but I found something. Have a look at this:
bash-3.00$ pwd
/opt/oracle/product/10.2.0.4.0/perl/lib/site_perl/5.8.3/sun4-solaris-thread-multi/Win32
bash-3.00$ ls -l
total 10
-rwxr-xr-x 1 oracle dba 4532 Jul 7 2004 DBIODBC.pm
bash-3.00$
Will explore more and keep you all posted.
Cheers,
Parag -
Cannot establish connection with SQL server from SQL developer
Hi, I recently downloaded SQL Developer version 3.0.04 and am trying to establish a connection to a remote SQL server. The database was created on this server by someone who is no longer working on the project. I have been given the username, password and server name. Is there another piece of information I am missing? I keep receiving the error:
Status: Failure-Test failed: IO Error: The Network Adapter could not establish the connection.Check out the SQL Server network configuration. When instances are used the port on which the SQL Server is listening on might be different. Use the networking utility from the SQL Server and check out the SQL Server network details.
-
Connecting ms sql server from oracle using db link
Hi,
Source : Oracle 11g on linux
destination : ms sql server 2005
i need to create the db link from oracle to ms sql server to view the tables , is it posibble without configuring the gateways( as looks like it is licenced product)
Please let me know any alternative to achive this
Thanks
PGRThere are 2 gateway - the commercial Database Gateway for Ms SQl Server which requires a license and the Database Gateway for ODBC which is for free. The license for DG4ODBC is included in your database license. You only need to install a suitable ODBC driver on your Linux box (for example use the MS SQl Server ODBC driver for Linux - details can be found here: http://www.microsoft.com/en-gb/download/details.aspx?id=36437 ). and then configure the gateway using the My Oracle Support Note:
How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install
[Article ID 561033.1]
- Klaus -
How to connect MS SQL Server from SAP based on AIX/ORACLE ?
Hi ,
I need ABAP program to read and write data on MS SQL server.
The SAP System is based on AIX system and Oracle DB.
The MS SQL is based on Windows Server System.
How to do this?
Thanks.Hello,
First is crerate a connexion with the target MS SQL. Use the trasaction DBCO.
Next, You must use EXEC SQL instruction. I give to you an example for read that I use :
For writting, is the same think. The request SQL must change in update or insert
Thierry
DATA dbtype TYPE dbcon_dbms. "dbtype chaine de caractere
DATA wl_con_name TYPE dbcon-con_name.
DATA wl_info_con(3).
DATA wa_sytabix TYPE sy-tabix.
DATA matnr_temp TYPE mara-matnr.
DATA refart TYPE mara-matnr.
DATA consi TYPE zed_cons.
wl_con_name = 'CONN_SQL_DATAB'.
SELECT SINGLE dbms FROM dbcon INTO dbtype WHERE con_name = wl_con_name.
IF dbtype = 'MSS'.
TRY.
*Connexion a la base de donnée
EXEC SQL.
CONNECT TO :wl_con_name
ENDEXEC.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE cx_sy_native_sql_error.
ELSE.
MESSAGE s258(zm) WITH wl_info_con.
ENDIF.
*Recupération des données
EXEC SQL.
OPEN WRECORDSET FOR SELECT Refart, consi FROM Articles
ENDEXEC.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE cx_sy_native_sql_error.
ENDIF.
DO.
EXEC SQL.
FETCH NEXT WRECORDSET INTO :Refart, :Consi
ENDEXEC.
IF sy-subrc <> 0.
EXIT.
ENDIF.
CLEAR wa_comp.
CLEAR wa_sytabix.
READ TABLE wt_comp INTO wa_comp WITH KEY matnr = refart.
IF sy-subrc = 0.
wa_sytabix = sy-tabix.
IF consi = 'F'.
wa_comp-consi = 'Non'.
ELSE.
IF consi = 'T'.
wa_comp-consi = 'Oui'.
ELSE.
wa_comp-consi = ''.
ENDIF.
ENDIF.
MODIFY wt_comp INDEX wa_sytabix FROM wa_comp.
ELSE.
ENDIF.
ENDDO.
*on ferme tout
EXEC SQL.
CLOSE WRECORDSET
ENDEXEC.
EXEC SQL.
DISCONNECT :wl_con_name
ENDEXEC.
CATCH cx_sy_native_sql_error.
MESSAGE `Error in Native SQL.` TYPE 'I'.
ENDTRY.
ENDIF. -
No suitable driver when connect MS SQL server from Oracle 10g using JTDS
Hi,
I have developed a java servlet application connection to MS SQL using jtds-1.2.jar. I have try to deploy this application to Oracle 9ias and it works fine.
However, when I deploy the same application to Oracle 10g (10.1.2.0.2), I encounter this error - java.sql.SQLException: No suitable driver.
I have copy the jtds-1.2.jar to Ora10g/jdbc/lib, Ora10g/j2ee/home/lib and also the Ora10g/j233/OC$J_GENERAL/applications/sampleApp/sampleApp/WEB-INF/lib folder, and also setup the data source via the EM interface. The data-source.xml entry is as follows:
<data-source location="jdbc/ess" class="com.evermind.sql.DriverManagerDataSource" xa-location="jdbc/xa/essS" ejb-location="jdbc/ess" connection-driver="net.sourceforge.jtds.jdbc.Driver" username="scott" url="jdbc:jtds:sqlserver://202.xx.xx.xx:1433/sampleDB" inactivity-timeout="30" name="ess"/>
</data-sources>
Is there any configuration that I've forgotten to set?>
I have developed a java servlet application
connection to MS SQL using jtds-1.2.jar. I have try
to deploy this application to Oracle 9ias and it
works fine.
However, when I deploy the same application to Oracle
10g (10.1.2.0.2), I encounter this error -
java.sql.SQLException: No suitable driver.
I have copy the jtds-1.2.jar to Ora10g/jdbc/lib,
Ora10g/j2ee/home/lib and also the
Ora10g/j233/OC$J_GENERAL/applications/sampleApp/sample
App/WEB-INF/lib folder, and also setup the data
source via the EM interface.
Is there any configuration that I've forgotten to set?The JAR file needs to be in a place the container can locate it correctly. This is the applib directory for your OC4J instance.
Which I believe from what you have entered is:
Ora10g/j2ee/OC4J_GENERAL/applib
There's a general JDBC 3rd party driver set of documentation here:
http://download.oracle.com/docs/cd/B14099_11/web.1012/b14012/datasrc.htm#sthref592
This is not using jtds-1.2.jar but it shows how another set of 3rd party jdbc libs are used with the server.
-steve- -
Connecting to SQL Server on Windows 8 from WindowsCE
Hello,
I need to make a connection to SQLServer 2008 which is on my developer machine, later it will be SQL Server on some production machine from .Net Compact Framework developed app on WindowsCE.
When I using local sdf file I use SqlCeConnection for DB connection but how to connect from same app local SQL Compact databse and SQL Server on some server.
Thanks in advance...Related blog: How to connect to SQL Server from a Windows Mobile Emulator
Forum thread:
Windows mobile connect with sql server 2008 r2
Kalman Toth Database & OLAP Architect
Free T-SQL Scripts
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Hello friends..i m not able to connect MS SQL SERVER 2005 FROM cmd prompt
dear friends,
i m not able to connect MS SQL SERVER from command prompt..
do you know how to connect from command prompt or any other ways to connect to database only for delete SAP* user purpose.
thanks
zaheerHi,
you can use the SQLCMD tool:
Microsoft (R) SQL Server Command Line Tool
Version 10.50.1600.1 NT x64
Copyright (c) Microsoft Corporation. All rights reserved.
usage: Sqlcmd [-U login id] [-P password]
[-S server] [-H hostname] [-E trusted connection]
[-N Encrypt Connection][-C Trust Server Certificate]
[-d use database name] [-l login timeout] [-t query timeout]
[-h headers] [-s colseparator] [-w screen width]
[-a packetsize] [-e echo input] [-I Enable Quoted Identifiers]
[-c cmdend] [-L[c] list servers[clean output]]
[-q "cmdline query"] [-Q "cmdline query" and exit]
[-m errorlevel] [-V severitylevel] [-W remove trailing spaces]
[-u unicode output] [-r[0|1] msgs to stderr]
[-i inputfile] [-o outputfile] [-z new password]
[-f <codepage> | i:<codepage>[,o:<codepage>]] [-Z new password and exit]
[-k[1|2] remove[replace] control characters]
[-y variable length type display width]
[-Y fixed length type display width]
[-p[1] print statistics[colon format]]
[-R use client regional setting]
[-b On error batch abort]
[-v var = "value"...] [-A dedicated admin connection]
[-X[1] disable commands, startup script, enviroment variables [and exit]]
[-x disable variable substitution]
[-? show syntax summary]
You have to have the SQL Server tools installed on the box, to get sqlcmd.
You then can connect with SQL authentication
sqlcmd -S <Servername\Instancename> -U user -P password
or with windows authentication
sqlcmd -S <Servername\Instancename> -E
Best regards
Clas
Maybe you are looking for
-
Is there a way to install Mountain Lion from my laptop to my MacPro Tower without a disc?
I erased my drive on my mac thinking I could migrate my stuff from my Mac Mini to my Mac Pro Tower. The mac mini won't let me migrate it. The drives aren't being recognized in Migration Assistant (while being hooked up via firewire 800). I was wond
-
Why does text formatting not copy from RH project to RH project?
In RoboHelp 9, I'm copying text, from one RoboHelp project to another. How come the text formatting is not retained? The indenting is off and the small Roman numerals and small letters are changed to bullets.
-
Display PO Release group Approval Information-urgent
Hi All, In my report i have to display PO Release Date, PO Release group in various level,based on Approval From Release i have to display the PO Status(Released or not).In Our project we have 3 level of approval in PO Release group such as PO(P
-
IPhoto 08 JPEG Compression vs MAX Quality?
I installed iPhoto 08 the day it came out. I can access preferences - but the preference choices are wimpy! I want to choose the level of JPEG compression MYSELf. Usually I want maximum quality - that's why I shoot with a pro DSLR. It seems that Appl
-
Unable to switch quickly between bluetooth and handheld
This seems like a basic question/function, and it may be something that should happen automatically, but... I love using my Bluetooth. But, if I have turned "off" (basically closed the bluetooth) so that it is not receiving a signal anymore, and my