DB Link to SQL Server

Hi all

I'm trying to understand how to configure a DB connection to MS SQL Server, I learned a lot of links but still do not see where I am going wrong.

I tested different types of configuration:

Oracle Database 11 g 11.2.0.3.0 on AIX--> gateway database Oracle 11 g Release 2 (11.2.0.1.0) for MS SQL (64-bit) on Windows Server 2008R2 SP1 - > MS SQL server 2008 R2 x 64 SP1 on Windows Server 2008R2 SP1

Oracle Database 11 g 11.2.0.3.0 on AIX--> gateway database Oracle 11 g Release 2 (11.2.0.1.0) for MS SQL (32-bit) on Windows Server 2003R2 SP2 x 32 - > MS SQL server 2008 R2 x 64 SP1 on Windows Server 2008R2 SP1

Oracle Database 11 g on AIX - 11.2.0.3.0 > gateway database Oracle 11 g Release 2 (11.2.0.1.0) for MS SQL (32-bit) on Windows Server 2003x 32 SP2 + MS SQL server 2005 R2 x 32 on the same Windows Server SP4.

I followed the instructions as

Configuration of database gateway for ODBC Oracle

http://www.YouTube.com/watch?v=rEZOiZrc708

etc.

But nothing works (())

Help me please understand what is the problem?

Let me show you the last configuration where the Oracle Database gateway and MS SQL 2005 x 32 SP4 server are installed on the same Windows 2003x 32 R2 SP2 server.

First, I created a system DSN, as described, for example, here Re: DB link to SQL Server

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\dg4msql]
"Driver"="C:\\WINDOWS\\system32\\SQLSRV32.dll"
"Description"="dg4msql"
"Server"="MSVO-TG4MSQL"
"LastUser"="RECOVER"

then I configured the config .ora files

Here's my config files:

initdg4msql.ora - the Oracle database gateway

# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server

#
# HS init parameters
#
HS_FDS_CONNECT_INFO=[10.48.104.18]//AdventureWorks
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
HS_FDS_RESULTSET_SUPPORT=TRUE

Listener.ora - on Oracle database gateway

# listener.ora Network Configuration File: F:\oracle\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER=
   (SID_LIST=
      (SID_DESC= 
         (SID_NAME=dg4msql)
         (ORACLE_HOME=F:\oracle)
         (PROGRAM=dg4msql)
      )
   )


LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.48.104.18)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = F:\oracle

TNSNames.ora - on Oracle database gateway

# tnsnames.ora Network Configuration File: F:\oracle\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

dg4msql = 
 (DESCRIPTION=
  (ADDRESS = (PROTOCOL = TCP)(HOST=10.48.104.18)(PORT=1521))
  (CONNECT_DATA = (SID = dg4msql))
  (HS=OK)
 )



EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

Create DB Link on the Oracle database server

Create database link BTEST.WORLD connect to recover identified by “nnnn” using ‘(DESCRIPTION =
        (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP )(HOST = msvo-tg4msql)(PORT = 1521))
        )
        (CONNECT_DATA =
        (SID = tg4msql))
        (HS = OK))’

tnsnames.ora - on the Oracle database server

  1. SQLLAB.world =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP) (HOST = msvo-tg4msql)(PORT = 1521))

)

(CONNECT_DATA =

(SID = tg4msql))

(HS = OK))

You didn't fix your database tnsnames.ora file - you have still the bad SID entry in there - see the tnsping:

(CONNECT_DATA = (SID = tg4msql)) (HS = OK))

=> According to your listener.ora file the SID is dg4msql.

Please open the tnsnames.ora file on your Oracle database server and modify the alias SQLLAB:

SQLLAB.world = (DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP) (HOST = 10.48.104.18)(PORT = 1521))

)

(CONNECT_DATA =

(SID = dg4msql))

(HS = OK))

Tags: Database

Similar Questions

  • linked clones, sql server sysprep, how does the storage

    Hello

    I created a SQL Server 2008 R2 sysprep installation. deployed clones related to these models.

    Everything works great!

    I just want to know how the installatioon takes place. linked clones share binaries and files of parent?

    Is there any degradation of performance in the future?

    or that all the SQL Server program files and installation files actually get copied on?

    What happens exactly...

    Thank you

    Solution

    1 use this link to prepare the image through GUI

    http://blogs.msdn.com/b/petersad/archive/2009/12/17/SQL-Server-2008-R2-Sysprep-step-by-step.aspx

    2 copy the content on SQL Server ISO at the root of C:\xxxxxx

    3 complete the image using configuration.ini (encrypted installation)

    you will need to change your setupcomplete.cmd in the C:\windows\setup\scripts folder

    4. once the installation is finished, you can run a batch file to delete the installation folder.

    any questions let me know

  • Get the error ORA-12518 with DG4ODBC to link with SQL Server

    Hi all

    We have recently updated a test area to 11g 2 on a windows 64-bit platform and now when you install our links database with our sql servers that we receive an error "ORA-12518'.»

    Listener.ora


    LISTENERPCIS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WILTS-ORCL4)(PORT = 1522))
    )

    SID_LIST_LISTENERPCIS =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = dg4odbc)
    (SID_NAME = PCIS)
    (ORACLE_HOME = c:\oracle\product\11.2.0\db_1)
    )
    )

    tnsnames.ora


    SIPC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WILTS-ORCL4)(PORT = 1522))
    )
    (CONNECT_DATA =
    (SID = PCIS)
    (HS = OK)
    )
    )

    All help appericated

    See you soon
    David

    Your Oracle_Home in the Listenerpcis of the Oracle Listener setting does not match the House reported in the status of the listener:

    In config you have published, you must:

    SID_LIST_LISTENERPCIS =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = DG4ODBC)
    (SID_NAME = PCIS)
    (ORACLE_HOME = c:\oracle\product\11.2.0\db_1)
    )
    )

    but the listener status:
    C:\ORACLE\PRODUCT\11.2.0\DBhome_1

    Please correct the Oracle_Home adjustment in the listener.ora file - and then stop and restart the listener.

  • DB Link from Oracle to SQL Server error

    Dear friends,

    I need met some select on tables that are in SQL Server 2005 from Oracle 10 g.

    I followed the steps:
    http://www.DBA-Oracle.com/t_heterogeneous_database_connections_sql_server.htm

    I could ping TNS who is successful, but only when I run a select I get this error.

    ERROR on line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of SQLS

    I checked my dsn name is in small caps completely everywhere where it is used (since its proposed in many sites).

    Please guide me.

    I'm looking for really come to a solution.

    Kind regards

    Nith

    similar use 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 server link in sql server after testing WLAN with oracle

  • OBIEE in SQL Server

    Hello

    I am trying to learn how to use OBIEE 11 GR 1 material against SQL Server 2008R2 for reporting.

    I'm following these instructions: http://docs.oracle.com/cd/E23943_01/bi.1111/e10539/c3_requrmnts.htm#BGBJAIDI

    Just need to know what would be the process to start. I would create a schema (or the equivalent in SQL Server) in my Administration of BI?

    I know RCU creates an Oracle and DB2 schema where you keep the views for reports (physical layer). Not sure if it works the same way in for posting a link to SQL Server.

    Thanks for help.

    Check out these links
    http://total-bi.com/2010/10/OBIEE-11g-RCU-SQL-Server/
    http://Amit-OBIEE.blogspot.com/2011/11/installation-of-OBIEE-11g-R1-11113.html

    If brand pls help

    Published by: VIEREN Srini December 12, 2012 21:48

  • Selecting a SQL Server 2005 with names of long columns (> 30 characters)

    Hello

    I was able to put in place a db Oracle 11.2.0.1 link to SQL Server 2005 using DG4ODBC.

    My problem is that some column names in Sql Server are more than 30 tanks and trying to select gives me the ORA-00972: identifier is a mistake too long.

    If I omit those select columns succeeds.
    I know that I can create a view in sql server and query it instead of the original table, but I was wondering if there is a way to overcome it with sql.

    My selection looks like this:
    select "good_column_name" from sometable@sqlserver_dblink -- this works
    select "good_column_name","very_long_column_name>30 chars" from sometable@sqlserver_dblink -- ORA-00972
    Thank you

    No there is no other way then using a view in SQl Server and select in the view rather than the table. The reason is that the Oracle database has a restriction that the column names must be 30 or fewer characters.

  • I can't find the link to download the program installation of SQL Server 2008 R2 or disk image

    Hello

    I'm trying to find the image disk or self-extracting installer of SQL Server 2008 R2 Evaluation Version. Would be nice if someone gave me the link.

    Hello

    Your question is beyond the scope of these forums.

    Please ask this question in the following forums.

    Category of the SQL Server:

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

    Concerning

  • Unable to kenza link to download the Patch MS02-061 for SQL Server 2000

    original title: can not download Patch MS02-061

    Hello

    I know this is an old patch but our new VPN software was listed as a patch that is required if SQL Server 2000 is installed.  I get out the site and I am unable to download.  Telling me that it can't find it when I click on the link:

    http://support.Microsoft.com/default.aspx?scid=kb;en-us;316333&SD=Tech

    It is on the page: http://www.microsoft.com/technet/security/bulletin/ms02-061.mspx

    This is supposed to be the patch that replaces MS02-039.

    Thank you!
    Ryan

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    You will find appropriate support for SQL Server in this forum: http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/threads

  • How to establish links of Labview with SQL server database Toolkit

    I'm a database newbie, but I have to use MS SQL server (2008) to store my data. I am well equipped with all the features of Labview, don't know how to use it properly. I now complete development, including the toolbox database. My latest version of labview is 8.6.1. Side material, I have cFP2220 and many modules of differnet kind.

    Here is a useful link that I found on the web:

    1. I got the database creation procedure (pdf file) to link the udl.

    http://decibel.NI.com/content/docs/doc-4602

    It gives a step-by-step login procedure to MS Access, and I'm able to save data to MS Access with the database Toolbox. However, I could not understand how to establish a chain of connection or udl to SQL server. In other words, I hope someone can explain in detail what is the procedure to set up such a link.

    2. I learned about the forum that there is a LabSQL, but it takes some knowledge of SQL statement. I would walk away from him, as I am not familiar with SQL.

    3. the VI I used for the recording of data in DB are very similar to "Create database Table.vi" found in the sample.

    In short, I think that I just need someone who has experience with the connection to the server SQL with Labview to show me the steps to link to SQL.

    Thank you very much

    You may not create a database in SQL Server using the control panel ODBC or a UDL. You must create a database by using SQL Server tools. (In fact, you can use SQL statements to create a database, which is what's really going on by using SQL Server tools. However, I don't know if the database Toolbox has the screws required to send these types of SQL statements.). Once you have created the database you can create tables using SQL Server tools, or you can use the screw of toolbox database.

    You try to run SQL Server on your computer? SQL Server is usually running on a server. You try to use SQL Server Express?

    Assuming that you have SQL Server running and a database has been created, then here are the steps needed to create a UDL to connect:

    1. In Windows Explorer, create a text file and rename the text file so that there a .udl extension (like this PDF).
    2. Double-click the UDL file.
    3. Change to the tab 'supplier '.
    4. Select 'Microsoft OLE DB for SQL Server provider'.
    5. Click on the ' next > ' button. It changes you to the tab 'connection '.
    6. In the drop-down menu, select your SQL Server. If it is not listed, try clicking on the Refresh"" button. If this does not meet the list, then you will need to enter manually.
    7. In the section "#2" specify the authentication method and credentials, if necessary, to connect to SQL Server.
    8. In the section "#3" specify the database that will be used, which is the one that you created earlier using the SQL Server tools. NOT SELECT THE MASTER DATABASE. If you do, you will completely screw up your installation of SQL Server.
    9. Click "Test connection" to verify that you can connect to SQL Server.
  • Help links not working not not in Microsoft SQL Server

    Thanks for reading this post.

    (1) in SQL Server Management Studio, select 'help, how do I' in the menu bar main. In this page, and under the 'How?', the first six hyperlinks, 'Get Started', 'find documentation for a particular component', etc. having the segment after the .htm ok work of #bkmk_ (the name of the link). Example below:

    Ms-help://MS. SQLCC.v10/MS. SQLSVR.v10.en/s10sq_GetStart/html/a8d3fcbd-c841-4ac3-8030-585500824964.htm#bkmk_BrowseUser

    When I move the cursor on the link, the cursor changes pointer on the hand cursor indicating that it recognizes the link and when you click on it, it goes to the correct page. Theselinks work.

    ******************************************************************************************

    (2) when I move the cursor overany the other links on the first page, the cursordoes does not change the hand cursor and after clicking, I can't go to subsequent pages. The example below is taken from the HTML source, I do not see the address in the URL drop-down list. All statements of keywords MSHelp:link do not work.

    Database engine

    ******************************************************************************************

    (3) this link is in my "Help topics" pane anddoes work well when you click on it.

    Ms-help://MS. SQLCC.v10/MS. SQLSVR.v10.en/s10sq_GetStart/html/31f9e6dc-e946-4576-80bb-729f2bee7478.htm

    ******************************************************************************************

    (4) if all of the items listed in the "Help contents" pane, click the linkworks.

    Ms-help://MS. SQLCC.v10/MS. SQLSVR.v10.en/s10sq_GetStart/html/6a428023-e3cc-4626-a88a-4c13ccbd7db0.htm

    ******************************************************************************************

    What appearsnot to work are the links embedded in the page, except for the type in the example (1) or in the pane content or favorite.

    I have C:\WINDOWS\$hf_mig$\KB928843\SP2QFE\hhctrl.ocx and C:\WINDOWS\$hf_mig$\KB896358\SP2QFE\hhctrl.ocx on my machine. There are also (2) C:\WINDOWS\system32\shdoclc and C:\WINDOWS\system32\shdoclc.dll .dll.

    I glued (ms-help://MS. SQLCC.v10/MS. SQLSVR.v10.en/s10sq_GetStart/html/a8d3fcbd-c841-4ac3-8030-585500824964.htm#bkmk_BrowseUser) directly in IE 8 and received the 'ActiveX control' blocked content message of IE. I allowed that blocked content and the links still do not work. It seems that the ActiveX control is loaded but does not work properly.

    Someone knows how to present all works in Explorer and ms-help, is there relevant registry problems and where and how it can be broken. Thank you for your time and effort.

    Best regards

    Howard

    Hi howardsmith,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for SQL server support. Please post your question in the Sub forum.

    Link:http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/threads

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • 10.2.0.5 Oracle database link (Linux - x 86) for MS SQL Server 2012 (x 64)

    Please guys, I really need your help on this issue.

    I tried using freetds driver but when I use db link I get this error:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:

    [Generic connectivity using ODBC] [S1000] [9013] error General nvITrans_BeginT - rc = - 1. Please see the log file for more details.

    ORA-02063: preceding 2 lines MIXERI

    To cite that I can connect to the remote sql server through isql tool with no problem at all. I study a lot and I found no solution for this error, so to this end, I will try to find another alternative way.


    Is there another way to manage the communication link between the system of 2 DB db?

    Thank you

    Hello

    S erro coming from the ODBC side then you can try the following-

    1. change the listener.ora LD_LIBRARY_PATH for-

    (ENVS=LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/db/oracle/10.2.0/lib)

    stop and start the listener.

    2. don't you get the error even if you delete the entry-

    HS_FDS_SQLLEN_INTERPRETATION = 32

    3. get a debugging bridge route-

    -Comment the entry
    HS_FDS_TRACE_FILE_NAME = /db/oracle/10.2.0/hs/admin/MIKSERI.trc

    then the tracks go to the location by default with default names-

    /DB/Oracle/10.2.0/HS/log

    -set the level of the trace-

    HS_FDS_TRACE_LEVEL = DEBUG

    -start a new session of SQLPLUS, run select, close the session.

    -Download the trace from somewhere, it can be displayed by our care.

    It can also be an idea to install and use the 11.2.0.5 last DG4ODBC gateway that is certified with RDBMS 10.2.0.5 and available at My Oracle Support you.

    Patch 13390677: 11.2.0.4.0 PATCH SET FOR ORACLE DATABASE SERVER

    which must be installed in a new and separate ORACLE_HOME.

    Kind regards

    Mike

  • DB Link for MS SQL Server connectivity

    Hi all

    Is it possible to create the DB link in the Oracle to MS SQL server database.

    If yes then guide.

    Best regards

    Cecile

    VISHWAKARMAPARDEEP wrote:

    Hi all

    Is it possible to create the DB link in the Oracle to MS SQL server database.

    If yes then guide.

    Best regards

    Cecile

    refuses or is unable to use GOOGLE yourself?

    https://www.Google.com/search?q=create+DB+link+into+Oracle+database+for+MS+SQL+Server

  • connect ms sql server to oracle using db link


    Hello

    Source: Oracle 11g on linux

    destination: ms sql server 2005

    I need to create the link oracle to ms sql server db to display tables, it is posibble without having to configure gateways (as it looks like it is produced under license)

    Please let me know any alternative to achieve this

    Thank you

    PMP

    There are 2 bridge - commercial database gateway for Ms SQl Server, which requires a license and database for ODBC gateway which is free. The license for DG4ODBC is included in your license data. You just need to install an ODBC driver on your Linux machine (for example, to use the MS SQl Server for Linux ODBC driver - 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 set up DG4ODBC on 64-bit Unix OS (Linux, Solaris, AIX, HP - UX Itanium) to connect to Oracle databases Post Install [Article ID 561033.1]

    -Klaus

  • Urgent: db link from oracle 10g to sql server 2000

    Hello

    I have an oracle 10g db connection to sql server 2000. It was created a couple of years. This works.

    I have now created another link db of the same oracle on the same sql server server but it does not work.

    But I'm getting ORA-28500 and error IM002

    . Please notify.

    I can't understand what is wrong as I followed the hs odbc set up on this link db in the same way as I did 2 years ago.

    Thank you

    Shailaja

    Just sort the problem.

    Basically, I use HSODBC to connect to SQL Server from Oracle (on windows 2003 64-bit).

    To do this, I need to create a connection ODBC from Oracle to SQL Server.

    HSODBC is a 32-bit application and is why we use the ODBC 32-bit driver when we create the ODBC connection.

    When I created the connection ODBC from Oracle to SQL Server, I used the ODBC 64-bit driver and that's why the system could not find the name of the data source.

    I have now created connection ODBC from Oracle to SQL Server via the ODBC 32-bit driver and everything works fine now.

    No offense to anyone, but as you all works using Oracle software, I was hoping a better answer than some of the answers above. You can say that you did not understand the question or you do not know the reason why it happened.

    I have just listed how the problem was fixed so that in the future one having the same problem can benefit.

  • Links of DB Oracle to Sql server

    Hi all

    I intend to create DB connection from oracle to sql server 2005.

    Please provide the doc to create db connection from oracle to sql server 2005 and also made me know is their any freeware to do the same thing.

    Concerning

    It would be useful you might mention what platform works on your Oracle database and word size of the OS (32/64 bit).

    The free solution would be to use the database for ODBC (= Dg4ODBC) gateway and install it on a platform of MS Windows or Linux 64-bit with regard to these 2 platforms that Microsoft offers a free ODBC driver. On all other platforms, you can buy an ODBC drivers appropriate from a 3rd party such as DataDirect provider. I know, some people here on the Forum use FreeTDS but this driver is not a good choice when using it in production.

    Beginning with the documents where you can create a link to database free of charge:

    Please take a look at documents available on the My Oracle Support Portal:
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 64-bit Windows operating systems to connect to Oracle databases Post Install [1266572.1 ID]
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 32-bit Windows to connect to Oracle databases Post Install [466225.1 ID]
    and
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 32-bit Windows to connect to Oracle databases Post Install [466225.1 ID]

    As mentioned for other platforms, you can usually buy a 3rd party ODBC driver and according to licensing costs this 3rd ODBC driver may be more expensive the using commercial product Oracle, MS SQl Server database gateway. It is designed for MS SQl Server connections and much more powerful then DG4ODBC - for example it allows you to call SQL Server stored procedures remotely or to participate in the distributed transaction.
    Documents on the DG4MSQl are also on the support of Oracle Portal.

    -Klaus

Maybe you are looking for