08448380779 Call Girls In Civil Lines Women Seeking Men
Oracle - SQL Server Integration
1. Oracle / SQL Server Integration
Alexandru Tică
alexandru.tica@gmail.com
DBA Lounge: 2013-06-06
2. Meet the Lovers
http://juliekoesmarno.deviantart.com/
www.mssqlgirl.com
My name is Julie Koesmarno. I am a
Microsoft Certified Solution Expert in Data
Platform and a Microsoft Certified Solution
Expert in Business Intelligence for SQL
Server 2012.
http://blog.tanelpoder.com/about-2/
I started my professional career as a part-
time C developer at age 16 (was not too
good at it though because lack of software
engineering experience back then). I got
introduced to Unix though, which gave me
good foundation for understanding Oracle
and enterprise-class applications when I
started working for a consulting company at
age 19.
Would you
marry me?
3. CONNECT BY PRIOR ?...
What? Pervert!
Let's be polite and talk in TSQL.
PL what? Pervert!
Send me a picture of you!
select blob_img
from profile;
BLOB type?
You're stupid man!
WHAT?
Do you mean PLSQL?
Let's Know Each Other Better
4. What to Do?
Tanel is sad!
He likes Julie a lot!
What can he do?
He asks his collegues for help!
5. Good & Bad News
● Oracle provides good integration with MSQL Server
● You speak Oracle and the transformation
is transparently done on the fly
● The conectivity agent may reside on any host,
regardless of the OS
● You may take advantage of the Oracle optimizer
even in connection with MSQL tables (kind of)
● The integration is working in PLSQL as well
● Support for resultsets
Good news!
Bad news!
● Separate license (just ODBC is free)
Great! I will evaluate this
technology!
7. Playground
bee.fits.ro
● Oracle Database
● MSql Gateway
● Tanel is here
Employee
Table
roiassw2k3dtfs.fits.ro
● SQL Server 2005
● A DUMMY database
● Julie is here
Departments
Table
Oracle DB Link
@msql
9. Wanna Know Everything About You!
Gateway
automatic dictionary
conversionDon't expect much
from the Oracle
optimizer.
Dictionary transparency
(not fully implemented)
10. Dialect Translation
Tanel first try
WTF?
Documented limitation: if the remote table has LONG RAW columns then
all tables from the query should reside on the remote site.
Oracle
Syntax
Case
sensitive!
12. If there's no Other Way...
DON'T!
COMMIT
here using
Oracle 2PC
Fake package! Don't
try to grant privs for
it. It can be used just
through the dblink.
Always
through
db link
13. Is Oracle Optimizer Smart Enough?
count: ~10000 records
Stupid query: Find all employees which have their ID matching a
department ID.
select e."first_name" from departments d, all_emp_ever@msql e
where d.id = e."id";
16. Other Forms of Integrations
Accessing Oracle from
SQL Server
Replicating Oracle data
to SQL Server
17. The Moment of Truth
PROS CONS
SQL / PLSQL Transparency for
simple tasks
The Oracle optimizer is not so
smart if remote SQL Server
tables are involved (MVs for
small tables?)
Support for TSQL resultset
procedures
Money, money, money....
Cross platform agent Weird data type conversions
Quite many limitations
Julie is NOT
disappointed!
She didn't like
Tanel anyway!