{"id":14012,"date":"2020-01-27T06:58:26","date_gmt":"2020-01-27T06:58:26","guid":{"rendered":"https:\/\/dbtut.com\/?p=14012"},"modified":"2020-01-27T11:05:23","modified_gmt":"2020-01-27T11:05:23","slug":"heterogeneous-connection-from-oracle-to-sql-server","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/","title":{"rendered":"Heterogeneous Connection From Oracle to SQL Server"},"content":{"rendered":"<p>You can read this document to access the tables in the MSSQL database using the DBLINK architecture from the Oracle database. Please test in the TEST database first. If you want to connect to other databases or connect to Oracle from other databases, you should read the below articles.<\/p>\n<h3>Connect To Oracle From SQL Server<\/h3>\n<p>&#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2018\/07\/12\/how-to-create-a-linked-server-to-connect-to-oracle\/\" target=\"_blank\" rel=\"bookmark noopener noreferrer\">How To Create a Linked Server To Connect To Oracle&#8221;<\/a>,<\/p>\n<h3>Connect To PostgreSQL From SQL Server<\/h3>\n<p><a href=\"https:\/\/dbtut.com\/index.php\/2019\/10\/22\/how-to-create-a-linked-server-to-connect-to-postgresql-from-sql-server\/\" target=\"_blank\" rel=\"bookmark noopener noreferrer\">&#8220;How To Create a Linked Server To Connect To PostgreSQL From SQL Server&#8221;<\/a><\/p>\n<h3>Connect to Oracle From PostgreSQL<\/h3>\n<p><a href=\"https:\/\/dbtut.com\/index.php\/2018\/12\/02\/foreign-data-wrapper-between-postgresql-and-oracle\/\" target=\"_blank\" rel=\"bookmark noopener noreferrer\">&#8220;Foreign Data Wrapper Between PostgreSQL and Oracle&#8221;<\/a><\/p>\n<h3>Connect to SQL Server From PostgreSQL<\/h3>\n<p><a href=\"https:\/\/dbtut.com\/index.php\/2018\/10\/23\/foreign-data-wrapper-between-postgresql-and-mssql\/\" target=\"_blank\" rel=\"bookmark noopener noreferrer\">&#8220;Foreign Data Wrapper Between PostgreSQL and MSSQL&#8221;<\/a><\/p>\n<h2>Downlaod Package<\/h2>\n<p>Download the &#8220;<strong>Microsoft\u00ae ODBC Driver 11 for SQL Server\u00ae &#8211; Red Hat Linux<\/strong>&#8221; package using the link below.<\/p>\n<p><a href=\"http:\/\/www.microsoft.com\/en-us\/download\/confirmation.aspx?id=36437\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.microsoft.com\/en-us\/download\/confirmation.aspx?id=36437<\/a><\/p>\n<p>The relevant file is transferred to the server where the oracle database is installed with <code>wget\/upload<\/code>.<\/p>\n<pre class=\"lang:default decode:true \">[root@db msodbcsql-11.0.2270.0]# tar -zxvf msodbcsql-11.0.2270.0.tar\n[root@db msodbcsql-11.0.2270.0]# .\/build_dm.sh\n\nBuild unixODBC 2.3.0 DriverManager script\nCopyright Microsoft Corp.\n\nIn order to use the Microsoft ODBC Driver 11 for SQL Server on Linux,\nthe unixODBC DriverManager must be installed on your computer.  unixODBC\nDriverManager is a third-party tool made available by the unixODBC Project.\nTo assist you in the installation process, this script will attempt to \ndownload, properly configure, and build the unixODBC DriverManager from \nhttp:\/\/www.unixodbc.org\/ for use with the Microsoft ODBC Driver 11\nfor SQL Server ODBC Driver on Linux.\n\nAlternatively, you can choose to download and configure unixODBC\nDriverManager from http:\/\/www.unixodbc.org\/ yourself.\n\nNote: unixODBC DriverManager is licensed to you under the terms of an\nagreement between you and the unixODBC Project, not Microsoft.  Microsoft\ndoes not guarantee the unixODBC DriverManager or grant any rights to\nyou.  Prior to downloading, you should review the license for unixODBC\nDriverManager at http:\/\/www.unixodbc.org\/.\n\nThe script is provided as a convenience to you as-is, without any express\nor implied warranties of any kind.  Microsoft is not liable for any issues\narising out of your use of the script.\n\nEnter 'YES' to have this script continue: YES\n\nVerifying processor and operating system ................................... OK\nVerifying wget is installed ................................................ OK\nVerifying tar is installed ................................................. OK\nVerifying make is installed ................................................ OK\nDownloading unixODBC 2.3.0 DriverManager ................................... OK\nUnpacking unixODBC 2.3.0 DriverManager ..................................... OK\nConfiguring unixODBC 2.3.0 DriverManager ................................... OK\nBuilding unixODBC 2.3.0 DriverManager ...................................... OK\nBuild of the unixODBC 2.3.0 DriverManager complete.\n\nRun the command 'cd \/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0; make install' to install the driver manager.\n\nPLEASE NOTE THAT THIS WILL POTENTIALLY INSTALL THE NEW DRIVER MANAGER OVER ANY\nEXISTING UNIXODBC DRIVER MANAGER.  IF YOU HAVE ANOTHER COPY OF UNIXODBC INSTALLED,\nTHIS MAY POTENTIALLY OVERWRITE THAT COPY.\n[root@TestOracle01 msodbcsql-11.0.2270.0]# \n[root@TestOracle01 msodbcsql-11.0.2270.0]# cd \/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0;\n[root@TestOracle01 unixODBC-2.3.0]# make install\nMaking install in extras\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/extras'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/extras'\nmake[2]: Nothing to be done for `install-exec-am'.\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/extras'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/extras'\nMaking install in log\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/log'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/log'\nmake[2]: Nothing to be done for `install-exec-am'.\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/log'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/log'\nMaking install in lst\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/lst'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/lst'\nmake[2]: Nothing to be done for `install-exec-am'.\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/lst'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/lst'\nMaking install in ini\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/ini'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/ini'\nmake[2]: Nothing to be done for `install-exec-am'.\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/ini'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/ini'\nMaking install in libltdl\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/libltdl'\nmake  install-am\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/libltdl'\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/libltdl'\ntest -z \"\/usr\/lib64\" || \/bin\/mkdir -p \"\/usr\/lib64\"\ntest -z \"\/usr\/include\" || \/bin\/mkdir -p \"\/usr\/include\"\ntest -z \"\" || \/bin\/mkdir -p \"\"\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/libltdl'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/libltdl'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/libltdl'\nMaking install in odbcinst\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/odbcinst'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/odbcinst'\ntest -z \"\/usr\/lib64\" || \/bin\/mkdir -p \"\/usr\/lib64\"\n \/bin\/sh ..\/libtool   --mode=install \/usr\/bin\/install -c   libodbcinst.la '\/usr\/lib64'\nlibtool: install: \/usr\/bin\/install -c .libs\/libodbcinst.so.1.0.0 \/usr\/lib64\/libodbcinst.so.1.0.0\nlibtool: install: (cd \/usr\/lib64 &amp;&amp; { ln -s -f libodbcinst.so.1.0.0 libodbcinst.so.1 || { rm -f libodbcinst.so.1 &amp;&amp; ln -s libodbcinst.so.1.0.0 libodbcinst.so.1; }; })\nlibtool: install: (cd \/usr\/lib64 &amp;&amp; { ln -s -f libodbcinst.so.1.0.0 libodbcinst.so || { rm -f libodbcinst.so &amp;&amp; ln -s libodbcinst.so.1.0.0 libodbcinst.so; }; })\nlibtool: install: \/usr\/bin\/install -c .libs\/libodbcinst.lai \/usr\/lib64\/libodbcinst.la\nlibtool: finish: PATH=\"\/usr\/kerberos\/sbin:\/usr\/kerberos\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/root\/bin:\/sbin\" ldconfig -n \/usr\/lib64\n----------------------------------------------------------------------\nLibraries have been installed in:\n   \/usr\/lib64\n\nIf you ever happen to want to link against installed libraries\nin a given directory, LIBDIR, you must either use libtool, and\nspecify the full pathname of the library, or use the `-LLIBDIR'\nflag during linking and do at least one of the following:\n   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable\n     during execution\n   - add LIBDIR to the `LD_RUN_PATH' environment variable\n     during linking\n   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag\n   - have your system administrator add LIBDIR to `\/etc\/ld.so.conf'\n\nSee any operating system documentation about shared libraries for\nmore information, such as the ld(1) and ld.so(8) manual pages.\n----------------------------------------------------------------------\ntest -z \"\/etc\" || \/bin\/mkdir -p \"\/etc\"\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/odbcinst'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/odbcinst'\nMaking install in DriverManager\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DriverManager'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DriverManager'\ntest -z \"\/usr\/lib64\" || \/bin\/mkdir -p \"\/usr\/lib64\"\n \/bin\/sh ..\/libtool   --mode=install \/usr\/bin\/install -c   libodbc.la '\/usr\/lib64'\nlibtool: install: \/usr\/bin\/install -c .libs\/libodbc.so.1.0.0 \/usr\/lib64\/libodbc.so.1.0.0\nlibtool: install: (cd \/usr\/lib64 &amp;&amp; { ln -s -f libodbc.so.1.0.0 libodbc.so.1 || { rm -f libodbc.so.1 &amp;&amp; ln -s libodbc.so.1.0.0 libodbc.so.1; }; })\nlibtool: install: (cd \/usr\/lib64 &amp;&amp; { ln -s -f libodbc.so.1.0.0 libodbc.so || { rm -f libodbc.so &amp;&amp; ln -s libodbc.so.1.0.0 libodbc.so; }; })\nlibtool: install: \/usr\/bin\/install -c .libs\/libodbc.lai \/usr\/lib64\/libodbc.la\nlibtool: finish: PATH=\"\/usr\/kerberos\/sbin:\/usr\/kerberos\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/root\/bin:\/sbin\" ldconfig -n \/usr\/lib64\n----------------------------------------------------------------------\nLibraries have been installed in:\n   \/usr\/lib64\n\nIf you ever happen to want to link against installed libraries\nin a given directory, LIBDIR, you must either use libtool, and\nspecify the full pathname of the library, or use the `-LLIBDIR'\nflag during linking and do at least one of the following:\n   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable\n     during execution\n   - add LIBDIR to the `LD_RUN_PATH' environment variable\n     during linking\n   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag\n   - have your system administrator add LIBDIR to `\/etc\/ld.so.conf'\n\nSee any operating system documentation about shared libraries for\nmore information, such as the ld(1) and ld.so(8) manual pages.\n----------------------------------------------------------------------\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DriverManager'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DriverManager'\nMaking install in exe\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/exe'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/exe'\ntest -z \"\/usr\/bin\" || \/bin\/mkdir -p \"\/usr\/bin\"\n  \/bin\/sh ..\/libtool   --mode=install \/usr\/bin\/install -c isql dltest odbcinst iusql odbc_config '\/usr\/bin'\nlibtool: install: \/usr\/bin\/install -c .libs\/isql \/usr\/bin\/isql\nlibtool: install: \/usr\/bin\/install -c dltest \/usr\/bin\/dltest\nlibtool: install: \/usr\/bin\/install -c .libs\/odbcinst \/usr\/bin\/odbcinst\nlibtool: install: \/usr\/bin\/install -c .libs\/iusql \/usr\/bin\/iusql\nlibtool: install: \/usr\/bin\/install -c odbc_config \/usr\/bin\/odbc_config\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/exe'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/exe'\nMaking install in cur\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/cur'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/cur'\ntest -z \"\/usr\/lib64\" || \/bin\/mkdir -p \"\/usr\/lib64\"\n \/bin\/sh ..\/libtool   --mode=install \/usr\/bin\/install -c   libodbccr.la '\/usr\/lib64'\nlibtool: install: \/usr\/bin\/install -c .libs\/libodbccr.so.1.0.0 \/usr\/lib64\/libodbccr.so.1.0.0\nlibtool: install: (cd \/usr\/lib64 &amp;&amp; { ln -s -f libodbccr.so.1.0.0 libodbccr.so.1 || { rm -f libodbccr.so.1 &amp;&amp; ln -s libodbccr.so.1.0.0 libodbccr.so.1; }; })\nlibtool: install: (cd \/usr\/lib64 &amp;&amp; { ln -s -f libodbccr.so.1.0.0 libodbccr.so || { rm -f libodbccr.so &amp;&amp; ln -s libodbccr.so.1.0.0 libodbccr.so; }; })\nlibtool: install: \/usr\/bin\/install -c .libs\/libodbccr.lai \/usr\/lib64\/libodbccr.la\nlibtool: finish: PATH=\"\/usr\/kerberos\/sbin:\/usr\/kerberos\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/root\/bin:\/sbin\" ldconfig -n \/usr\/lib64\n----------------------------------------------------------------------\nLibraries have been installed in:\n   \/usr\/lib64\n\nIf you ever happen to want to link against installed libraries\nin a given directory, LIBDIR, you must either use libtool, and\nspecify the full pathname of the library, or use the `-LLIBDIR'\nflag during linking and do at least one of the following:\n   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable\n     during execution\n   - add LIBDIR to the `LD_RUN_PATH' environment variable\n     during linking\n   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag\n   - have your system administrator add LIBDIR to `\/etc\/ld.so.conf'\n\nSee any operating system documentation about shared libraries for\nmore information, such as the ld(1) and ld.so(8) manual pages.\n----------------------------------------------------------------------\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/cur'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/cur'\nMaking install in DRVConfig\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DRVConfig'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DRVConfig'\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DRVConfig'\nmake[3]: Nothing to be done for `install-exec-am'.\nmake[3]: Nothing to be done for `install-data-am'.\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DRVConfig'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DRVConfig'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/DRVConfig'\nMaking install in Drivers\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/Drivers'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/Drivers'\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/Drivers'\nmake[3]: Nothing to be done for `install-exec-am'.\nmake[3]: Nothing to be done for `install-data-am'.\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/Drivers'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/Drivers'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/Drivers'\nMaking install in include\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/include'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/include'\nmake[2]: Nothing to be done for `install-exec-am'.\ntest -z \"\/usr\/include\" || \/bin\/mkdir -p \"\/usr\/include\"\n \/usr\/bin\/install -c -m 644 odbcinst.h odbcinstext.h sql.h sqlext.h sqltypes.h sqlucode.h uodbc_stats.h uodbc_extras.h '\/usr\/include'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/include'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/include'\nMaking install in doc\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc'\nMaking install in AdministratorManual\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/AdministratorManual'\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/AdministratorManual'\nmake[3]: Nothing to be done for `install-exec-am'.\nmake[3]: Nothing to be done for `install-data-am'.\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/AdministratorManual'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/AdministratorManual'\nMaking install in ProgrammerManual\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual'\nMaking install in Tutorial\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual\/Tutorial'\nmake[4]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual\/Tutorial'\nmake[4]: Nothing to be done for `install-exec-am'.\nmake[4]: Nothing to be done for `install-data-am'.\nmake[4]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual\/Tutorial'\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual\/Tutorial'\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual'\nmake[4]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual'\nmake[4]: Nothing to be done for `install-exec-am'.\nmake[4]: Nothing to be done for `install-data-am'.\nmake[4]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual'\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/ProgrammerManual'\nMaking install in UserManual\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/UserManual'\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/UserManual'\nmake[3]: Nothing to be done for `install-exec-am'.\nmake[3]: Nothing to be done for `install-data-am'.\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/UserManual'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/UserManual'\nMaking install in lst\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/lst'\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/lst'\nmake[3]: Nothing to be done for `install-exec-am'.\nmake[3]: Nothing to be done for `install-data-am'.\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/lst'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc\/lst'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc'\nmake[3]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc'\nmake[3]: Nothing to be done for `install-exec-am'.\nmake[3]: Nothing to be done for `install-data-am'.\nmake[3]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc'\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/doc'\nMaking install in samples\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/samples'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/samples'\nmake[2]: Nothing to be done for `install-exec-am'.\nmake[2]: Nothing to be done for `install-data-am'.\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/samples'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0\/samples'\nmake[1]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0'\nmake[2]: Entering directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0'\nmake[2]: Nothing to be done for `install-exec-am'.\ntouch \/etc\/odbcinst.ini\ntouch \/etc\/odbc.ini\nmkdir -p \/etc\/ODBCDataSources\n\/usr\/bin\/odbc_config --header &gt; \/usr\/include\/unixodbc_conf.h\nmake[2]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0'\nmake[1]: Leaving directory `\/tmp\/unixODBC.26962.10505.13318\/unixODBC-2.3.0'<\/pre>\n<h2>Verify the Package<\/h2>\n<pre class=\"lang:default decode:true \">[root@db msodbcsql-11.0.2270.0]# .\/install.sh verify\n\nMicrosoft ODBC Driver 11 for SQL Server Installation Script\nCopyright Microsoft Corp.\n\nStarting install for Microsoft ODBC Driver 11 for SQL Server\n\nChecking for 64 bit Linux compatible OS ..................................... OK\nChecking required libs are installed ........................................ OK\nunixODBC utilities (odbc_config and odbcinst) installed ..................... OK\nunixODBC Driver Manager version 2.3.0 installed ............................. OK\nunixODBC Driver Manager configuration correct .............................. OK*\nMicrosoft ODBC Driver 11 for SQL Server already installed ............ NOT FOUND\n\nInstall log created at \/tmp\/msodbcsql.5731.31852.9475\/install.log.\n\nOne or more steps may have an *. See README for more information regarding\nthese steps.<\/pre>\n<p>The part that writes NOT FOUND is the package we&#8217;re going to use. We haven&#8217;t install it yet.<\/p>\n<h2>Install the Package<\/h2>\n<pre class=\"lang:default decode:true \">[root@db msodbcsql-11.0.2270.0]# .\/install.sh install\n\nEnter YES to accept the license or anything else to terminate the installation: YES\n\nChecking for 64 bit Linux compatible OS ..................................... OK\nChecking required libs are installed ........................................ OK\nunixODBC utilities (odbc_config and odbcinst) installed ..................... OK\nunixODBC Driver Manager version 2.3.0 installed ............................. OK\nunixODBC Driver Manager configuration correct .............................. OK*\nMicrosoft ODBC Driver 11 for SQL Server already installed ............ NOT FOUND\nMicrosoft ODBC Driver 11 for SQL Server files copied ........................ OK\nSymbolic links for bcp and sqlcmd created ................................... OK\nMicrosoft ODBC Driver 11 for SQL Server registered ................... INSTALLED<\/pre>\n<h2>Verify the Installation<\/h2>\n<pre class=\"lang:default decode:true \">[root@db msodbcsql-11.0.2270.0]# .\/install.sh verify\n\nMicrosoft ODBC Driver 11 for SQL Server Installation Script\nCopyright Microsoft Corp.\n\nStarting install for Microsoft ODBC Driver 11 for SQL Server\n\nChecking for 64 bit Linux compatible OS ..................................... OK\nChecking required libs are installed ........................................ OK\nunixODBC utilities (odbc_config and odbcinst) installed ..................... OK\nunixODBC Driver Manager version 2.3.0 installed ............................. OK\nunixODBC Driver Manager configuration correct .............................. OK*\nMicrosoft ODBC Driver 11 for SQL Server already installed ............ INSTALLED\n\nSee \/tmp\/msodbcsql.23248.18969.28756\/install.log for more information about installation failures.<\/pre>\n<p>After the package installation is complete, we will run some commands to access the .ini and config information generated by the related packages.<\/p>\n<h2>Check Package Version<\/h2>\n<pre class=\"lang:default decode:true \">[root@db msodbcsql-11.0.2270.0]# odbc_config --version\n2.3.0<\/pre>\n<h2>Access to Configuration Information<\/h2>\n<p>\/etc\/odbc.ini will be the most commonly used configuration file.<\/p>\n<pre class=\"lang:default decode:true \">[root@TestOracle01 msodbcsql-11.0.2270.0]# odbcinst -j\nunixODBC 2.3.0\nDRIVERS............: \/etc\/odbcinst.ini\nSYSTEM DATA SOURCES: \/etc\/odbc.ini\nFILE DATA SOURCES..: \/etc\/ODBCDataSources\nUSER DATA SOURCES..: \/root\/.odbc.ini\nSQLULEN Size.......: 8\nSQLLEN Size........: 8\nSQLSETPOSIROW Size.: 8<\/pre>\n<h2>Access to Driver Information<\/h2>\n<pre class=\"lang:default decode:true \">[root@db msodbcsql-11.0.2270.0]# odbcinst -q -d -n \"ODBC Driver 11 for SQL Server\"\n[ODBC Driver 11 for SQL Server]\nDescription=Microsoft ODBC Driver 11 for SQL Server\nDriver=\/opt\/microsoft\/msodbcsql\/lib64\/libmsodbcsql-11.0.so.2270.0\nThreading=1\nUsageCount=1<\/pre>\n<p>After these checks, we can now use the relevant packages to connect from Oracle to MSSQL.<\/p>\n<h1>Configure Heterogeneous Connection From Oracle to SQL Server<\/h1>\n<p>We need to write the information of the MSSQL database to be connected to \/etc\/odbc.ini.<\/p>\n<p>The point to note here is to specify the type of database we have added under [ODBC Data Sources]. If more than one is used, it must be written to the new line.<\/p>\n<p>The information you see under [MSSQL_DB_NAME] is the information used to access the MSSQL database.<\/p>\n<pre class=\"lang:default decode:true \">[root@mhrstestdb2 ~]# cat \/etc\/odbc.ini \n[ODBC Data Sources]\nMSSQL_DB_NAME=MS SQL Server\n\n[MSSQL_DB_NAME]\nDriver=\/opt\/microsoft\/msodbcsql\/lib64\/libmsodbcsql-11.0.so.2270.0\nDescription=Microsoft ODBC Driver 11 for SQL Server\nServer=tcp:&lt;IP_ADRESI&gt;,&lt;PORT&gt;\nDatabase=&lt;DB_NAME&gt;\nUser=username\nPassword=password\nQuotedId=YES\nAnsiNPW=YES\nThreading=1\nUsageCount=1\nAutoTranslate=No<\/pre>\n<p>You see an example odbc.ini file above.<\/p>\n<p>We will do the following to make [MSSQL_DB_NAME] meaningful by ORACLE.<\/p>\n<pre class=\"lang:default decode:true \">[root@db ~]# su - oracle\n[oracle@db ~]$ cd \/u01\/app\/oracle\/product\/11.2.0.4\/db_1\/hs\/admin\/\n[oracle@db admin]$ ls -ltr\ntotal 12\n-rw-r--r-- 1 oracle oinstall  489 Aug 24  2013 initdg4odbc.ora\n-rw-r--r-- 1 oracle oinstall 1109 Aug 24  2013 extproc.ora<\/pre>\n<p>In order for MSSQL_DB_NAME to be recognized by ORACLE, the critical point here is that the name of the .ora file must match the definition you make in the .ini file and begin with init\u2026.<\/p>\n<pre class=\"lang:default decode:true \">[oracle@mhrstestdb2 admin]$ vi init&lt;MSSQL_DB_NAME&gt;.ora \nHS_FDS_CONNECT_INFO = MSSQL_DB_NAME\nHS_FDS_SHAREABLE_NAME = \/usr\/lib64\/libodbc.so\nHS_FDS_TRACE_LEVEL = 0\nHS_LANGUAGE = AMERICAN_AMERICA.WE8MSWIN1252\nHS_KEEP_REMOTE_COLUMN_SIZE = LOCAL\nHS_NLS_LENGTH_SEMANTICS = CHAR\nHS_NLS_NCHAR = UCS2<\/pre>\n<p>To access this odbc.ini file by the Environment<\/p>\n<pre class=\"lang:default decode:true \">set ODBCINI=\/etc\/odbc.ini<\/pre>\n<h2>Connect to MSSQL from Oracle<\/h2>\n<p>If all steps are correct, we will be able to connect to the MSSQL database with the isql tool.<\/p>\n<p><strong>NOTE:<\/strong> Password must be written in single quotes (\u2018). If there is a single quotation mark inside the password, it is a problem.<\/p>\n<pre class=\"lang:default decode:true \">[oracle@db ~]$ isql -v &lt;MSSQL_DB_NAME&gt; &lt;USERNAME&gt; &lt;PASSWORD&gt;\n+---------------------------------------+\n| Connected!                            |\n|                                       |\n| sql-statement                         |\n| help [tablename]                      |\n| quit                                  |\n|                                       |\n+---------------------------------------+<\/pre>\n<p>If there is no problem up to this point, let Oracle Access this service via DBLINK.<\/p>\n<pre class=\"lang:default decode:true \">[oracle@db admin]$ cd \/u01\/app\/oracle\/product\/11.2.0.4\/db_1\/network\/admin\n\n&lt;MSSQL_DB_NAME&gt; =\n   (DESCRIPTION =\n      (ADDRESS =\n         (PROTOCOL = tcp)\n         (HOST = &lt;oracle veri taban\u0131n\u0131n host bilgisi&gt; )\n         (PORT = 1521))\n      (CONNECT_DATA =\n         (SID = &lt;MSSQL_DB_NAME&gt; ))\n      (HS = OK)\n   )<\/pre>\n<p>We make the configuration for MSSQL look like it&#8217;s a service offered by ORACLE.<\/p>\n<pre class=\"lang:default decode:true \">[oracle@db admin]$ cd \/u01\/app\/11.2.0.4\/grid\/network\/admin\n\nMSSQL_DB_NAME =\n   (DESCRIPTION =\n      (ADDRESS =\n         (PROTOCOL = tcp)\n         (HOST = &lt;oracle veri taban\u0131n\u0131n host bilgisi&gt;)\n         (PORT = 1521))\n      (CONNECT_DATA =\n         (SID = &lt;MSSQL_DB_NAME&gt;))\n      (HS = OK)\n   )<\/pre>\n<p><strong>NOTE:<\/strong> If you are using an Oracle database in the RAC architecture, the corresponding operation must be performed on each NODE.<\/p>\n<p>Then, the LISTENER must be defined.<\/p>\n<pre class=\"lang:default decode:true \">SID_LIST_LISTENER =\n   (SID_LIST =\n      (SID_DESC =\n         (SID_NAME = &lt;MSSQL_DB_NAME&gt;)\n         (ORACLE_HOME = \/u01\/app\/oracle\/product\/11.2.0.4\/db_1)\n         (PROGRAM = \/u01\/app\/oracle\/product\/11.2.0.4\/db_1\/bin\/dg4odbc)\n         (ENVS=LD_LIBRARY_PATH=\/opt\/microsoft\/msodbcsql\/lib64\/libmsodbcsql-11.0.so.2270.0:\/usr\/lib64:\/u01\/app\/oracle\/product\/11.2.0.4\/db_1\/lib)\n      )\n   )<\/pre>\n<p>We previously learned LD_LIBRARY_PATH during package installation.<\/p>\n<h2>Create DBLINK on Oracle database<\/h2>\n<pre class=\"lang:default decode:true \">CREATE PUBLIC DATABASE LINK &lt;MSSQL_DB_NAME&gt;\n CONNECT TO &lt;USERNAME&gt;\n IDENTIFIED BY &lt;PASSWORD&gt;\n USING '&lt;MSSQL_DB_NAME';<\/pre>\n<p>In the USING section we will use the service name we defined in odbc.ini.<\/p>\n<pre class=\"lang:default decode:true \">SELECT SYSDATE FROM DUAL@&lt;MSSQL_DB_NAME;<\/pre>\n<p>Thus, a heteregeneous connection was established from Oracle to SQL Server.<\/p>\n<p><strong>Note:<\/strong> Please note that service names and access names are the most important part.<\/p>\n\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_14012\" class=\"pvc_stats all  \" data-element-id=\"14012\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can read this document to access the tables in the MSSQL database using the DBLINK architecture from the Oracle database. Please test in the TEST database first. If you want to connect to other databases or connect to Oracle from other databases, you should read the below articles. Connect To Oracle From SQL Server &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_14012\" class=\"pvc_stats all  \" data-element-id=\"14012\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":486,"featured_media":14014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[6302,8064,6301,6320,6319,6321,6308,6307,6310,6305,6311,6303,6304,6318,6296,6297,6295,8063,6300,6299,6309,6298,6306,6314,6316,6317,6315,6312,6313],"class_list":["post-14012","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-oracle","tag-accessing-sql-server-from-oracle","tag-accessing-sql-server-from-oracle-with-database-gateway","tag-configuring-oracle-database-gateway-for-sql-server","tag-connect-to-oracle-from-postgresql","tag-connect-to-oracle-from-sql-server","tag-connect-to-sql-server-from-postgresql","tag-create-a-database-link-from-linux-oracle-to-sql-server-heterogeneous-connectivity","tag-create-a-database-link-from-oracle-to-sql-server-heterogeneous-connectivity","tag-create-database-link-between-oracle-and-sql-server","tag-create-database-link-from-oracle-to-sql-server","tag-create-database-link-oracle-11g-to-sql-server","tag-creating-a-database-link-from-oracle-to-sql-server","tag-creating-a-dblink-from-oracle-to-sql-server","tag-database-link-from-oracle-to-sql-server","tag-from-oracle-to-sql-server","tag-heterogeneous-connection","tag-heterogeneous-connection-from-oracle-to-sql-server","tag-heterogeneous-connectivity","tag-heterogeneous-database-connections","tag-how-do-i-create-a-database-link-between-oracle-and-sql-server","tag-how-do-i-create-a-database-link-from-oracle-to-sql-server","tag-making-a-connection-from-oracle-to-sql-server","tag-oracle-mssql-dblink","tag-oracle-to-mssql","tag-oracle-to-mssql-connection","tag-oracle-to-mssql-database-link","tag-oracle-to-mssql-dblink","tag-oracle-to-sql-server","tag-oracle-to-sql-server-dblink"],"aioseo_notices":[],"a3_pvc":{"activated":true,"total_views":868,"today_views":0},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Heterogeneous Connection From Oracle to SQL Server - Database Tutorials<\/title>\n<meta name=\"description\" content=\"Heterogeneous Connection From Oracle to SQL Server\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Heterogeneous Connection From Oracle to SQL Server - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"Heterogeneous Connection From Oracle to SQL Server\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-27T06:58:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-27T11:05:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png\" \/>\n\t<meta property=\"og:image:width\" content=\"593\" \/>\n\t<meta property=\"og:image:height\" content=\"355\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mehmet \u00c7A\u011eDA\u015e SAYGILI\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mehmet \u00c7A\u011eDA\u015e SAYGILI\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/\"},\"author\":{\"name\":\"Mehmet \u00c7A\u011eDA\u015e SAYGILI\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/513cd28d8dd4b54669335ae91d8937b1\"},\"headline\":\"Heterogeneous Connection From Oracle to SQL Server\",\"datePublished\":\"2020-01-27T06:58:26+00:00\",\"dateModified\":\"2020-01-27T11:05:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/\"},\"wordCount\":549,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png\",\"keywords\":[\"Accessing SQL Server from Oracle\",\"Accessing SQL Server from Oracle with Database Gateway\",\"Configuring Oracle Database Gateway for SQL Server\",\"Connect to Oracle From PostgreSQL\",\"Connect To Oracle From SQL Server\",\"Connect to SQL Server From PostgreSQL\",\"create a database link from linux oracle to sql server heterogeneous connectivity\",\"create a database link from oracle to sql server heterogeneous connectivity\",\"create database link between oracle and sql server\",\"create database link from oracle to sql server\",\"create database link oracle 11g to sql server\",\"Creating a \\\"database link\\\" from Oracle to SQL Server\",\"Creating a DBLINK from Oracle to SQL Server\",\"Database link from Oracle to SQL Server\",\"From Oracle to SQL Server\",\"Heterogeneous Connection\",\"Heterogeneous Connection From Oracle to SQL Server\",\"Heterogeneous Connectivity\",\"Heterogeneous Database connections\",\"How do I create a database link between Oracle and SQL Server?\",\"how do i create a database link from oracle to sql server\",\"Making a Connection from Oracle to SQL Server\",\"oracle mssql dblink\",\"oracle to mssql\",\"oracle to mssql connection\",\"oracle to mssql database link\",\"oracle to mssql dblink\",\"oracle to sql server\",\"oracle to sql server dblink\"],\"articleSection\":[\"ORACLE\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/\",\"name\":\"Heterogeneous Connection From Oracle to SQL Server - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png\",\"datePublished\":\"2020-01-27T06:58:26+00:00\",\"dateModified\":\"2020-01-27T11:05:23+00:00\",\"description\":\"Heterogeneous Connection From Oracle to SQL Server\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png\",\"width\":593,\"height\":355},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Heterogeneous Connection From Oracle to SQL Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/513cd28d8dd4b54669335ae91d8937b1\",\"name\":\"Mehmet \u00c7A\u011eDA\u015e SAYGILI\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/20819fc2b411edc22c026303f048558d9e60a52db16b0632d9871e2450ffce4c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/20819fc2b411edc22c026303f048558d9e60a52db16b0632d9871e2450ffce4c?s=96&d=mm&r=g\",\"caption\":\"Mehmet \u00c7A\u011eDA\u015e SAYGILI\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/cagdassaygili\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Heterogeneous Connection From Oracle to SQL Server - Database Tutorials","description":"Heterogeneous Connection From Oracle to SQL Server","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"Heterogeneous Connection From Oracle to SQL Server - Database Tutorials","og_description":"Heterogeneous Connection From Oracle to SQL Server","og_url":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/","og_site_name":"Database Tutorials","article_published_time":"2020-01-27T06:58:26+00:00","article_modified_time":"2020-01-27T11:05:23+00:00","og_image":[{"width":593,"height":355,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png","type":"image\/png"}],"author":"Mehmet \u00c7A\u011eDA\u015e SAYGILI","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mehmet \u00c7A\u011eDA\u015e SAYGILI","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/"},"author":{"name":"Mehmet \u00c7A\u011eDA\u015e SAYGILI","@id":"https:\/\/dbtut.com\/#\/schema\/person\/513cd28d8dd4b54669335ae91d8937b1"},"headline":"Heterogeneous Connection From Oracle to SQL Server","datePublished":"2020-01-27T06:58:26+00:00","dateModified":"2020-01-27T11:05:23+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/"},"wordCount":549,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png","keywords":["Accessing SQL Server from Oracle","Accessing SQL Server from Oracle with Database Gateway","Configuring Oracle Database Gateway for SQL Server","Connect to Oracle From PostgreSQL","Connect To Oracle From SQL Server","Connect to SQL Server From PostgreSQL","create a database link from linux oracle to sql server heterogeneous connectivity","create a database link from oracle to sql server heterogeneous connectivity","create database link between oracle and sql server","create database link from oracle to sql server","create database link oracle 11g to sql server","Creating a \"database link\" from Oracle to SQL Server","Creating a DBLINK from Oracle to SQL Server","Database link from Oracle to SQL Server","From Oracle to SQL Server","Heterogeneous Connection","Heterogeneous Connection From Oracle to SQL Server","Heterogeneous Connectivity","Heterogeneous Database connections","How do I create a database link between Oracle and SQL Server?","how do i create a database link from oracle to sql server","Making a Connection from Oracle to SQL Server","oracle mssql dblink","oracle to mssql","oracle to mssql connection","oracle to mssql database link","oracle to mssql dblink","oracle to sql server","oracle to sql server dblink"],"articleSection":["ORACLE"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/","url":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/","name":"Heterogeneous Connection From Oracle to SQL Server - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png","datePublished":"2020-01-27T06:58:26+00:00","dateModified":"2020-01-27T11:05:23+00:00","description":"Heterogeneous Connection From Oracle to SQL Server","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/11\/Ads\u0131z-82.png","width":593,"height":355},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2020\/01\/27\/heterogeneous-connection-from-oracle-to-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"Heterogeneous Connection From Oracle to SQL Server"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/513cd28d8dd4b54669335ae91d8937b1","name":"Mehmet \u00c7A\u011eDA\u015e SAYGILI","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/20819fc2b411edc22c026303f048558d9e60a52db16b0632d9871e2450ffce4c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/20819fc2b411edc22c026303f048558d9e60a52db16b0632d9871e2450ffce4c?s=96&d=mm&r=g","caption":"Mehmet \u00c7A\u011eDA\u015e SAYGILI"},"url":"https:\/\/dbtut.com\/index.php\/author\/cagdassaygili\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/14012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/486"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=14012"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/14012\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/14014"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=14012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=14012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=14012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}