Accessing SQL Server Data from Oracle on Linux. for FREE!



Similar documents
Institutional Data Integration Using ODBC with Oracle Heterogeneous ous Services. Mingguang Xu.

Installing Microsoft SQL Server Linux ODBC Driver For Use With Kognitio Analytical Platform

Querying Databases Using the DB Query and JDBC Query Nodes

Database Assessment. Vulnerability Assessment Course

Installing and Configuring MySQL as StoreGrid Backend Database on Linux

HYPERION ESSBASE SYSTEM 9

Architecting the Future of Big Data

Aradial Installation Guide

ODBC Driver User s Guide. Objectivity/SQL++ ODBC Driver User s Guide. Release 10.2

AWS Schema Conversion Tool. User Guide Version 1.0

Connecting LISTSERV to an Existing Database Management System (DBMS)

Connect to MySQL or Microsoft SQL Server using R

StoreGrid Backup Server With MySQL As Backend Database:

How to Configure Informix Connect and ODBC

Informatica Data Replication FAQs

FileMaker 11. ODBC and JDBC Guide

FileMaker 12. ODBC and JDBC Guide

Configuring an Alternative Database for SAS Web Infrastructure Platform Services

FileMaker 13. ODBC and JDBC Guide

Architecting the Future of Big Data

Connecting to SQL server

Architecting the Future of Big Data

EventSentry Overview. Part I Introduction 1 Part II Setting up SQL 2008 R2 Express 2. Part III Setting up IIS 9. Part IV Installing EventSentry 11

StreamServe Persuasion SP4

Installation and Configuration Guide Simba Technologies Inc.

PowerSchool Student Information System

How to gain direct access to SQL Server at Garching via SSH

BusinessObjects Enterprise XI Release 2 for Solaris

Incremental Replication from SQL Server to Oracle. Kane McKenzie Liberty University

PUBLIC Installation: SAP Mobile Platform Server for Linux

SimbaEngine SDK 9.4. Build a C++ ODBC Driver for SQL-Based Data Sources in 5 Days. Last Revised: October Simba Technologies Inc.

Setting up an MS SQL Server for IGSS

Connect to an SSL-Enabled Microsoft SQL Server Database from PowerCenter on UNIX/Linux

Installing Kaspersky Security Center 10.0 on Microsoft Windows Server 2012 Core Mode

AWS Schema Conversion Tool. User Guide Version 1.0

1.0 Hardware Requirements:

Installing The SysAidTM Server Locally

DB2 Connect for NT and the Microsoft Windows NT Load Balancing Service

Using Caché with ODBC

2015, André Melancia (Andy.PT) 1

SequeLink Server for ODBC Socket

SOLUTION BRIEF. Advanced ODBC and JDBC Access to Salesforce Data.

Consolidate by Migrating Your Databases to Oracle Database 11g. Fred Louis Enterprise Architect

Thoroughbred Basic TM ODBC Client Capability Customization Supplement

inforouter V8.0 Server & Client Requirements

4D v1x ODBC Driver INSTALLATION GUIDE

Sybase Replication Agent

Laptop Backup - Administrator Guide (Windows)

Real-time Data Replication

OpenScape Business V2

General Tips: Page 1 of 20. By Khaled Elshaer.

HP OO 10.X - SiteScope Monitoring Templates

Getting Started with Attunity CloudBeam for Azure SQL Data Warehouse BYOL

How To Install An Org Vm Server On A Virtual Box On An Ubuntu (Orchestra) On A Windows Box On A Microsoft Zephyrus (Orroster) 2.5 (Orner)

Creating a New Database and a Table Owner in SQL Server 2005 for exchange@pam

JDBC. It is connected by the Native Module of dependent form of h/w like.dll or.so. ex) OCI driver for local connection to Oracle

Windows Authentication on Microsoft SQL Server

FileMaker 14. ODBC and JDBC Guide

Cloudera ODBC Driver for Apache Hive Version 2.5.5

OpenLane 5.3 supports a distributed architecture with either an Oracle 8i SQL database or a Sybase database. Refer to: Oracle Integration on page 2.

FREQUENTLY ASKED QUESTIONS

WEB DATABASE PUBLISHING

StarSQL for UNIX User s Guide

Database Management Reference

Crystal Reports XI Release 2 for Windows Service Pack 3

How to Use? SKALICLOUD DEMO

Setting up SQL Translation Framework OBE for Database 12cR1

IceWarp Server Windows Installation Guide

Trusted RUBIX TM. Version 6. ODBC Guide. Revision 7 RELATIONAL DATABASE MANAGEMENT SYSTEM TEL Infosystems Technology, Inc.

INFORMIX - Data Director for Visual Basic. Version 3.5

Quick Note 052. Connecting to Digi Remote Manager SM Through Web Proxy

Migrating helpdesk to a new server

LockView 4.2 CompX Database & Network Configuration & Installation Manual

Kony MobileFabric. Sync Windows Installation Manual - WebSphere. On-Premises. Release 6.5. Document Relevance and Accuracy

KonyOne Server Prerequisites _ MS SQL Server

Enterprise Manager. Version 6.2. Installation Guide

Crystal Reports XI Release 1 for Windows

DB2 Application Development and Migration Tools

How to Connect to CDL SQL Server Database via Internet

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

LockView CompX Database & Network Configuration & Installation Manual

Using SAS ACCESS to retrieve and store data in relational database management systems

Converting InfoPlus.21 Data to a Microsoft SQL Server 2000 Database

LISTSERV Maestro 6.0 Installation Manual for Solaris. June 8, 2015 L-Soft Sweden AB lsoft.com

How-to configure Auditing for IDENTIKEY Authentication Server 3.2 to a remote Oracle Database on a standalone Microsoft machine.

UNISYS. Business Information Server. MRI Administration and User s Guide. Printed in USA May

Configuring an Etherspeak SIP Trunk in Microsoft Lync 2013

IBM Lotus Enterprise Integrator (LEI) for Domino. Version August 17, 2010

Failover Support. DataDirect Connect for ODBC Drivers. Introduction. Connection Failover

<Insert Picture Here> Move to Oracle Database with Oracle SQL Developer Migrations

<Insert Picture Here> Introducing Data Modeling and Design with Oracle SQL Developer Data Modeler

DBX. SQL database extension for Splunk. Siegfried Puchbauer

ODBC Overview and Information

Installation Instruction STATISTICA Enterprise Small Business

RSA Security Analytics

Crystal Reports XI Release 2 - Service Pack 6

Oracle Business Intelligence Publisher. 1 Oracle Business Intelligence Publisher Certification. Certification Information 10g Release 3 (

Copyright. Copyright. Arbutus Software Inc Roberts Street Burnaby, British Columbia Canada V5G 4E1

Transcription:

Accessing SQL Server Data from Oracle on Linux for FREE! COUG 15-NOV-2012 Wayne Linton

Wayne Linton OCP, I.S.P. Over 40 years in IT More than half that as an Oracle DBA 35 years at Shell Canada Limited SAIT Instructor Past-President COUG Presenter at OOW, Oracle Days, COUG Published in Oracle Magazine, Select Journal (... and I enjoy photography)

Established 1999 Remote and on-site DBA support Application Express Design/Development Training Clients in Canada and the U.S.

Why do this? Companies may have a number of databases on different platforms and DBMS offerings Vendor software might only run on MSSQL Want a central 'truth' of data to pull from Want a central warehouse to represent all data Connect ODBC-compliant databases

Open Database Connectivity OS independent, vendor neutral API Mainly used to access Databases via SQL Built in early '90s by Microsoft, in concert with Oracle, Apple, Sun, DEC, Sybase, Tandem, Lotus and others ISO Standard Unix community picked up ODBC when MS moved its focus to OLE-DB (JDBC is java equivalent )

ODBC Commonly used in Windows with Excel and Access database OS provides driver manager (unixodbc) DBMS driver typically supplied by vendor Vendor drivers available at cost such as: Oracle gateway products (dg4msql) easysoft DataDirect

ODBC Driver Translation layer between SQL and DBMS Large subset of standard SQL functionality 3rd Party vendors sell better drivers Available for Oracle, MySQL, MSSQL, DB2, Progress, Sybase, etc. Some even work on csv flat-files

ODBC Driver Manager Delivered with OS Loads ODBC Driver appropriate to DBMS data source Free Open Source implementation on 'nix systems - unixodbc

SQL Server Driver Released in the spring of 2012 Available on 64-bit Linux v5 or v6 only Free to use SQL Server 2008 R2, and SQL Server 2012 Download at: Microsoft SQL Server ODBC Driver 1.0 for Linux

Demo Environment Laptop, 8gb, 64-bit, Windows 7 VirtualBox, Win7, SQL Server 2012 (PC7C) VirtualBox, CentOS 5.8, 64-bit, Oracle 11.2.0.3EE, 11gXE (PC6VB2)

SQL Server (PC7C) TCP/IP ODBC Driver /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0 /etc/odbcinst.ini ODBC Manager unixodbc v2.3.0 /etc/odbc.ini dg4odbc sqlcmd isql Oracle Net SQL*Plus select * from <tab>@<alias> (PC6VB2) HS Oracle

dg4odbc Oracle Net SQL*Plus select * from <tab>@<alias> HS Oracle Database Gateway For ODBC Oracle Database Gateway for ODBC User's Guide 11g Release 2 (11.2) Comes installed with database $ORACLE_HOME/hs/lib/dg4odbc.o Connects Oracle to ODBC via Heterogeneous Services (HS) Oracle Database Heterogeneous Connectivity User s Guide11g Release 2 (11.2) Oracle Database Gateway Installation and Configuration Guide Other gateways available for cost (dg4mssql)

Installation Driver Manager Download the MS SQL Server ODBC file (detailed instructions on the download site) Login as root tar xvf sqlncli-11.0.1790.0.tar.gz yum remove unixodbc cd./sqlncli-11.0.1790.0./build_dm.sh (this will download unixodbc v2.3.0)

Installation ODBC Driver Still logged in as root... cd./sqlncli-11.0.1790.0./install.sh verify./install.sh install odbcinst -q -d -n "SQL Server Native Client 11.0" Test the driver against the SQL Server database: sqlcmd -S<ip address> -U<user> -P<password> -Q select * from information_schema.schemata

SQL Server (PC7C) TCP/IP ODBC Driver /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0 /etc/odbcinst.ini ODBC Manager unixodbc v2.3.0 /etc/odbc.ini sqlcmd (PC6VB2) isql

Configure odbcinst.ini Defines the ODBC Driver settings Should be created by the install process /etc/odbcinst.ini [SQL Server Native Client 11.0] Description=Microsoft SQL Server ODBC Driver V1.0 for Linux Driver=/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0 Threading=1 UsageCount=1

Configure odbc.ini Defines Data Source Name connection /etc/odbc.ini (local ~/.odbc.ini) [<dsn>] Driver = SQL Server Native Client 11.0 Server = tcp:<mssql hostname or IP address>,1433 Test the odbc settings: isql <dsn> <user> <passwd> select * from information_schema.schemata; quit;

SQL Server (PC7C) TCP/IP ODBC Driver /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0 /etc/odbcinst.ini ODBC Manager unixodbc v2.3.0 /etc/odbc.ini dg4odbc sqlcmd isql Oracle Net SQL*Plus select * from <tab>@<alias> (PC6VB2) HS Oracle

dg4odbc Oracle Net SQL*Plus select * from <tab>@mssql HS Oracle Configure HS in $ORACLE_HOME/hs/admin Filename init<dsn>.ora (case matters!) # Database Gateway for ODBC # # HS init parameters # HS_FDS_CONNECT_INFO = <dsn> HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P15 HS_FDS_PROC_IS_FUNC = TRUE HS_FDS_RESULTSET_SUPPORT = TRUE # Environment variables required for the non-oracle system # set LD_LIBRARY_PATH=/opt/microsoft/sqlncli/lib64:/usr/lib64: /u01/app/oracle/product/11.2.0/dbhome_1 /lib # #HS_FDS_TRACE_LEVEL = debug

dg4odbc SQL*Plus select * from <tab>@<alias> Oracle Net HS Oracle Connection to database HS is done via Oracle Net Oracle Listener configured like: (SID_DESC = (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1) (SID_NAME = <dsn>) (PROGRAM = dg4odbc) (ENVS = "LD_LIBRARY_PATH=/opt/microsoft/sqlncli/lib64:/usr/lib64: /u01/app/oracle/product/11.2.0/dbhome_1/lib") ) Bounce the listener...

dg4odbc Oracle Net SQL*Plus select * from <tab> @<alias> HS Oracle Tnsnames entry such as: <alias> = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = <oracle db host>) (PORT = 1521)) (CONNECT_DATA = (SID = <dsn>)) (HS = OK)... one last step

Database Link create public database link <dblink> connect to <user> identified by <pswd> using '<alias>'; You can not connect directly to SQL Server via Oracle Net... now we are ready to go!

Demos... isql, sqlcmd DML and some functions DDL handling HS views V$ views

HS Data Dictionary Views

Dynamic Performance Views V$HS_PARAMETER V$HS_SESSION V$HS_AGENT

Some Gotchas DDL Datatype conversion issues Special variables like SYSDATE Date arithmetic, different functions Optimizer statistics, execution plans No rowid

Summary ODBC-compliant databases can exchange data Free drivers available Doesn't do everything, but probably 'good enough'! Viable solution for bringing in data from other sources into one central database/warehouse (oh, and yes it works with 11gXE)

Questions? Accessing SQL Server Data from Oracle on Linux for FREE! COUG 15-NOV-2012 Wayne Linton wayne.linton@oradba.ca