Oracle / SQL Server IntegrationAlexandru Ticăalexandru.firstname.lastname@example.orgDBA Lounge: 2013-06-06
Meet the Lovershttp://juliekoesmarno.deviantart.com/www.mssqlgirl.comMy name is Julie Koesmarno. I am aMicrosoft Certified Solution Expert in DataPlatform and a Microsoft Certified SolutionExpert in Business Intelligence for SQLServer 2012.http://blog.tanelpoder.com/about-2/I started my professional career as a part-time C developer at age 16 (was not toogood at it though because lack of softwareengineering experience back then). I gotintroduced to Unix though, which gave megood foundation for understanding Oracleand enterprise-class applications when Istarted working for a consulting company atage 19.Would youmarry me?
CONNECT BY PRIOR ?...What? Pervert!Lets be polite and talk in TSQL.PL what? Pervert!Send me a picture of you!select blob_imgfrom profile;BLOB type?Youre stupid man!WHAT?Do you mean PLSQL?Lets Know Each Other Better
What to Do?Tanel is sad!He likes Julie a lot!What can he do?He asks his collegues for help!
Good & Bad News● Oracle provides good integration with MSQL Server● You speak Oracle and the transformationis transparently done on the fly● The conectivity agent may reside on any host,regardless of the OS● You may take advantage of the Oracle optimizereven in connection with MSQL tables (kind of)● The integration is working in PLSQL as well● Support for resultsetsGood news!Bad news!● Separate license (just ODBC is free)Great! I will evaluate thistechnology!
If theres no Other Way...DONT!COMMIThere usingOracle 2PCFake package! Donttry to grant privs forit. It can be used justthrough the dblink.Alwaysthroughdb link
Is Oracle Optimizer Smart Enough?count: ~10000 recordsStupid query: Find all employees which have their ID matching adepartment ID.select e."first_name" from departments d, all_emp_ever@msql ewhere d.id = e."id";
Other LimitationsBleah!WTF? Yes, inSQL Server ispossible!Dont mess withNULLs.Guess!What?No support forSAVEPOINTs.
Other Forms of IntegrationsAccessing Oracle fromSQL ServerReplicating Oracle datato SQL Server
The Moment of TruthPROS CONSSQL / PLSQL Transparency forsimple tasksThe Oracle optimizer is not sosmart if remote SQL Servertables are involved (MVs forsmall tables?)Support for TSQL resultsetproceduresMoney, money, money....Cross platform agent Weird data type conversionsQuite many limitationsJulie is NOTdisappointed!She didnt likeTanel anyway!
EpilogSursa: http://www.horoscopdragoste.ro/potrivire-numeTanel took the rightdecision!