SlideShare a Scribd company logo
1 of 10
Running Head: ORACLE DATABASE VS. MICROSOFT SQL SERVER
1
Oracle Database vs. Microsoft SQL Server
Teresa J. Rothaar
Wilmington University
ORACLE DATABASE VS. MICROSOFT SQL SERVER
Oracle Database vs. Microsoft SQL Server
Introduction
Oracle and Microsoft SQL Server are competing relational database systems. Both are
proprietary packages, as opposed to open source systems such as MySQL. Oracle’s relational
database product dominates the database market, controlling more than 48% of the market as of
2010 (Hoffer, 2013, p. 246). However, Microsoft SQL Server gained 2,000 Enterprise customers
between 2010 and 2012, with its overall market share growing faster than that of its competitors
(Backaitis, 2014).
Oracle boasts the ability to run on a wide variety of platforms, including Windows, Mac,
and UNIX. Microsoft SQL Server is available only for Windows (Leiba, 2003), which limits the
latter’s potential customer base, which is possibly why SQL Server ranks third in the overall
database market (Hoffer, p. 246). However, unlike Oracle, Microsoft SQL Server has a large,
enthusiastic community of product evangelists, which is supported by Microsoft itself (McCown,
2008). The impact of product evangelism could explain SQL Server’s exponential growth
despite its vendor lock-in to the Windows OS.
This paper will explore some of the differences between Oracle and SQL Server, with a
focus on data types and other issues that are important for database administrators who work
with both systems to understand, especially in situations where data is being migrated from one
system to the other.
Database Architecture
An Oracle database is just that: one database, with all objects within it grouped by
schemas, and with the objects shared by all users and schemas. However, the database
administrator can set user privileges that allow access to some schemas and objects but not
2
ORACLE DATABASE VS. MICROSOFT SQL SERVER
others. SQL Server contains multiple databases, with each database having its own private,
unshared server file disk. All objects are assigned to a particular database, and users have
individual logins that grant access to a database and its corresponding objects (Stansfield, 2014).
This difference in architecture means that the concept of “logging onto the database”
means different things in each system. On SQL Server, a user who is logged onto the server can
execute the USE DATABASE_NAME command to switch to another database on that server, so
long as the user has access privileges allowing them to do so. Because an Oracle installation
contains only one database, there is no such thing as “switching databases.” There is only
viewing a different schema or object. To do that, the user executes a CONNECT command under
a different user name, or alternatively uses a SET ROLE command to change roles (Oracle
Corporation).
T-SQL vs. PL/SQL
Because they use different proprietary programming languages, Oracle and SQL Server
handle stored procedures quite differently. Oracle uses the PL/SQL programming language,
which is based on Ada, while Microsoft uses T-SQL, or Transactional SQL, which is based on
Sysbase (Burleson Consulting, 2011). In SQL Server, stored procedures are not compiled until
executed, which means any errors are not discovered until a procedure is actually run. There is
also is no ability to read or write from external files from a stored procedure (Leiba).
Oracle also offers a “black box” of certain stored procedures and functions that share all
input, output, and variables, called a “package.” Among other benefits, packages allow top-
down, object oriented design and performance improvement. Most of Oracle’s built-in functions
are part of a package. There is no equivalent to this in SQL Server, so when converting from
Oracle to SQL Server, the packages need to be broken down into multiple processes, user-
3
ORACLE DATABASE VS. MICROSOFT SQL SERVER
defined functions, and so on. When going from SQL Server to Oracle, the opposite occurs:
multiple processes, user-defined functions, and shared variables can be combined as part of an
Oracle package (Kline, 2005).
Oracle and Microsoft handle updates to their proprietary languages differently. While
Oracle releases new versions of PL/SQL separately from their RDBMS product—because
PL/SQL is used in other Oracle software—Microsoft updates T-SQL only when issuing a new
version of SQL Server. Therefore, every version of T-SQL is linked to a specific version of SQL
Server (Kline).
Reserved Words
Many words that can be used as column headings or object names in SQL Server, such as
DATE, are reserved words in Oracle, and thus these names cannot be directly transferred from
SQL Server to Oracle (Oracle Corporation, n.d.).
Date & Time Data Types
Although both databases store point-in-time values for DATE and TIME data types,
Oracle and SQL Server date and time ranges are very different. In Oracle, they range from 4712
B.C. to 4712 A.D., while the SQL Server date range is from 1753 A.D. to 9999 A.D. (Microsoft
Developer Network, n.d.). Additionally, the date/time precision in Microsoft SQL Server is
1/300th of a second, while Oracle’s data type TIMESTAMP is much more exacting, measuring
time in increments of 1/100000000th of a second (Oracle Corporation).
A few date and time data types have no direct equivalents between the two DBMSes,
such as DATE and TIME in SQL Server, which store each attribute as an individual component,
and the Oracle data types INTERVAL YEAR TO MONTH or INTERVAL DAY TO SECOND,
which are used for periods of time as opposed to specific dates and times (Snaidero, 2013).
4
ORACLE DATABASE VS. MICROSOFT SQL SERVER
When migrating from Oracle to SQL Server, columns of type DATE containing values
that are out of range for SQL Server are converted to type VARCHAR(19) (Microsoft Developer
Network). Conversely, Oracle uses its data type TIMESTAMP for data that requires finer date
and time precision than seconds, such as scientific applications, which may require values as tiny
as nanoseconds. If such precision is not required, Oracle’s DATE data type, which is accurate to
one second, may be used.
Numeric Data Types
SQL Server has several integer data types based on size: TINYINT, SMALLINT, INT
and BIGINT. Oracle simplifies things with its NUMBER(x, y) data type, where x specifies the
size (or precision) required, and y specifies the scale (the numbers to the right of the decimal
point). For an integer, NUMBER(x, 0), should be used, with x representing the size required,
with the scale set to 0 (Snaidero).
SQL Server data types DECIMAL[(x,[y])] and NUMERIC[(x,[y])] are equivalent to
NUMBER(x, y) in Oracle (Snaidero). However, the systems treat precision and scale of numbers
very differently, which can cause issues when migrating from Oracle to SQL Server. While
Oracle allows numbers to be defined with a scale greater than the precision, i.e., NUMBER(4,5),
SQL Server requires that the precision be greater than or equal to the scale, and it will correct
this by setting the precision and scale equal to each other during migration. Thus, NUMBER(4,5)
would be mapped to NUMERIC(5,5). Additionally, when encountering a NUMBER data type
with no scale or precision specified, SQL Server defaults to the maximum scale and precision,
mapping to NUMERIC(8,38) (Microsoft Developer Network). Microsoft therefore recommends
that, prior to the data being migrated, a specific scale and precision be specified in Oracle as to
protect data integrity.
5
ORACLE DATABASE VS. MICROSOFT SQL SERVER
SQL Server has two data types, MONEY and SMALLMONEY, specifically for currency
values (Snaidero). Oracle, however, assumes an international customer base where users do not
necessarily count money in U.S. Dollars, and currency values are mapped to the NUMBER data
type (Oracle Corporation).
Character String Data Types
The Oracle equivalent of SQL Server data type VARCHAR is CLOB (Microsoft
Developer Network). SQL Server data type CHAR maps directly to Oracle type CHAR, but with
a caveat: it maps directly only for CHAR sizes of 1 through 2000. CHAR data types sized from
2001 to 4000 are invalid in Oracle, and Oracle will convert CHAR types in this size range to
VARCHAR2 (Oracle Corporation). Conversely, an Oracle VARCHAR2 type will map to SQL
Server type VARCHAR (Microsoft Developer Network).
SQL Server type TEXT maps to Oracle type CLOB (Oracle Corporation), but CLOB is
mapped to SQL Server type VARCHAR(MAX) (Microsoft Developer Network).
Binary and XML Data Types
SQL Server types BINARY and VARBINARY map to Oracle type RAW or BLOB,
depending on size (Oracle Corporation). However, while Oracle can support up to 4GB of data,
SQL Server can support only 2GB, and any data above that amount is truncated (Microsoft
Developer Network).
Both systems support XML data types. Oracle has type XMLTYPE, and the SQL Server
equivalent is simply XML. However, while SQL Server can hold only 2GB of data, Oracle can
hold up to 6GB (Snaidero)
Boolean Values
The SQL Server data type BIT, used for Boolean values, has no direct equivalent in
6
ORACLE DATABASE VS. MICROSOFT SQL SERVER
Oracle. However, BIT can be mapped to either NUMBER(1) or CHAR, with PL/SQL functions
used to query the value (Oracle Corporation).
Conclusion
There are many other differences between Oracle and SQL Server, such as how each
RDBMS handles exceptions, the type of functions that can be called within each environment,
and how SQL statements such as CREATE and INSERT are handled. Multiple resources are
available online, from the manufacturers and each product’s user community, to aid database
administrators as they work with both systems.
7
ORACLE DATABASE VS. MICROSOFT SQL SERVER
References
Backaitis, V. (2014, March 18). Microsoft SQL Server Wins in a Big Data World. CMSWire.
Retrieved from http://www.cmswire.com/cms/big-data/microsoft-sql-server-wins-in-a-
big-data-world-024565.php
Burleson Consulting. (2011, December 27). Data Type Issues with Microsoft SQL Server 2000
and Oracle 10g. Retrieved from http://www.dba-
oracle.com/t_migrating_sql_server_vs_oracle_datatypes.htm
Hoffer, J. A., & Ramesh, V. (2013). Modern Database Management (11th ed.). Boston: Pearson.
Kline, K. (2005, June). Translating Procedural Statements Between Oracle and SQL Server:
White Paper. Retrieved from
http://www.quest.com/whitepapers/TranslatingProceduralStatements_Oracle_SQLServer.
pdf
Leiba, E. (May 2003). Oracle vs. SQL Server: Why Oracle wins. TechTarget. Retrieved from
http://searchoracle.techtarget.com/tip/Oracle-vs-SQL-Server-Why-Oracle-wins
McCown, S. (2008, March 19). The Real Difference Between SQL Server and Oracle.
InfoWorld. Retrieved from http://www.infoworld.com/d/data-management/real-
difference-between-sql-server-and-oracle-755
Microsoft Developer Network. (n.d.). Data Type Mapping for Oracle Publishers. Retrieved from
http://msdn.microsoft.com/en-us/library/ms151817.aspx
Oracle Corporation. (n.d.) Oracle® Database SQL Developer Supplementary Information for
Microsoft SQL Server Migrations, Release 1.2. Retrieved from
http://docs.oracle.com/cd/E10405_01/doc/appdev.120/e10379/ss_oracle_compared.htm#
BGBDEBFA
8
ORACLE DATABASE VS. MICROSOFT SQL SERVER
Snaidero, B. (2013, April 25). Comparing SQL Server and Oracle Data Types. MSSQLTips.com.
Retrieved from http://www.mssqltips.com/sqlservertip/2944/comparing-sql-server-and-
oracle-datatypes/
Stansfield, J. (2014, March 13). Microsoft SQL Server vs. Oracle: The Same, But Different?
Segue Technologies Blog. Retrieved from
http://www.seguetech.com/blog/2014/03/13/Microsoft-SQL-Server-versus-oracle
9
ORACLE DATABASE VS. MICROSOFT SQL SERVER
Snaidero, B. (2013, April 25). Comparing SQL Server and Oracle Data Types. MSSQLTips.com.
Retrieved from http://www.mssqltips.com/sqlservertip/2944/comparing-sql-server-and-
oracle-datatypes/
Stansfield, J. (2014, March 13). Microsoft SQL Server vs. Oracle: The Same, But Different?
Segue Technologies Blog. Retrieved from
http://www.seguetech.com/blog/2014/03/13/Microsoft-SQL-Server-versus-oracle
9

More Related Content

What's hot

Introducing the Snowflake Computing Cloud Data Warehouse
Introducing the Snowflake Computing Cloud Data WarehouseIntroducing the Snowflake Computing Cloud Data Warehouse
Introducing the Snowflake Computing Cloud Data WarehouseSnowflake Computing
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database systemphilipsinter
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMSkoolkampus
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureSinanPetrusToma
 
Cloud computing presentation
Cloud computing presentationCloud computing presentation
Cloud computing presentationPriyanka Sharma
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Jotham Gadot
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and modelssabah N
 
Disaster Recovery of on-premises IT infrastructure with AWS
Disaster Recovery of on-premises IT infrastructure with AWS Disaster Recovery of on-premises IT infrastructure with AWS
Disaster Recovery of on-premises IT infrastructure with AWS Amazon Web Services
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle ArchitectureNeeraj Singh
 
Difference between star schema and snowflake schema
Difference between star schema and snowflake schemaDifference between star schema and snowflake schema
Difference between star schema and snowflake schemaUmar Ali
 
Types of clouds in cloud computing
Types of clouds in cloud computingTypes of clouds in cloud computing
Types of clouds in cloud computingMahesh Chemmala
 
Assignment on Cloud Computing
Assignment on Cloud ComputingAssignment on Cloud Computing
Assignment on Cloud ComputingAl Shahriar
 

What's hot (20)

Introducing the Snowflake Computing Cloud Data Warehouse
Introducing the Snowflake Computing Cloud Data WarehouseIntroducing the Snowflake Computing Cloud Data Warehouse
Introducing the Snowflake Computing Cloud Data Warehouse
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database system
 
AD FS Workshop | Part 2 | Deep Dive
AD FS Workshop | Part 2 | Deep DiveAD FS Workshop | Part 2 | Deep Dive
AD FS Workshop | Part 2 | Deep Dive
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
 
Cloud computing presentation
Cloud computing presentationCloud computing presentation
Cloud computing presentation
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and models
 
Data Models.ppt
Data Models.pptData Models.ppt
Data Models.ppt
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
Disaster Recovery of on-premises IT infrastructure with AWS
Disaster Recovery of on-premises IT infrastructure with AWS Disaster Recovery of on-premises IT infrastructure with AWS
Disaster Recovery of on-premises IT infrastructure with AWS
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
 
Difference between star schema and snowflake schema
Difference between star schema and snowflake schemaDifference between star schema and snowflake schema
Difference between star schema and snowflake schema
 
Types of clouds in cloud computing
Types of clouds in cloud computingTypes of clouds in cloud computing
Types of clouds in cloud computing
 
Rdbms
RdbmsRdbms
Rdbms
 
Assignment on Cloud Computing
Assignment on Cloud ComputingAssignment on Cloud Computing
Assignment on Cloud Computing
 
Office 365 vs. Google Apps
Office 365 vs. Google AppsOffice 365 vs. Google Apps
Office 365 vs. Google Apps
 
Cloud Computing Architecture
Cloud Computing ArchitectureCloud Computing Architecture
Cloud Computing Architecture
 

Viewers also liked

Difference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleDifference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleSteve Johnson
 
Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2Mohsen B
 
Oracle mysql comparison
Oracle mysql comparisonOracle mysql comparison
Oracle mysql comparisonArun Sharma
 
Developing Web Services With Oracle Web Logic Server
Developing Web Services With Oracle Web Logic ServerDeveloping Web Services With Oracle Web Logic Server
Developing Web Services With Oracle Web Logic ServerGaurav Sharma
 
MySQL Features & Implementation
MySQL Features & ImplementationMySQL Features & Implementation
MySQL Features & ImplementationOSSCube
 

Viewers also liked (8)

Difference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleDifference Between Sql - MySql and Oracle
Difference Between Sql - MySql and Oracle
 
Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2
 
Oracle mysql comparison
Oracle mysql comparisonOracle mysql comparison
Oracle mysql comparison
 
Oracle vs. sql server terminado
Oracle vs. sql server   terminadoOracle vs. sql server   terminado
Oracle vs. sql server terminado
 
MySQL Features
MySQL FeaturesMySQL Features
MySQL Features
 
Developing Web Services With Oracle Web Logic Server
Developing Web Services With Oracle Web Logic ServerDeveloping Web Services With Oracle Web Logic Server
Developing Web Services With Oracle Web Logic Server
 
MySQL Features & Implementation
MySQL Features & ImplementationMySQL Features & Implementation
MySQL Features & Implementation
 
Oracle
OracleOracle
Oracle
 

Similar to Oracle vs. MS SQL Server

Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Databasepuja_dhar
 
DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3YOGESH SINGH
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreTIB Academy
 
SQL PPT.pptx
SQL PPT.pptxSQL PPT.pptx
SQL PPT.pptxKulbir4
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentationkaashiv1
 
Introduction to sql server
Introduction to sql serverIntroduction to sql server
Introduction to sql serverVinay Thota
 
What does PL_SQL stand for and what is the functioning of PL_SQL.docx
What does PL_SQL stand for and what is the functioning of PL_SQL.docxWhat does PL_SQL stand for and what is the functioning of PL_SQL.docx
What does PL_SQL stand for and what is the functioning of PL_SQL.docxshivanikaale214
 
Introduction to SQL, SQL*Plus
Introduction to SQL, SQL*PlusIntroduction to SQL, SQL*Plus
Introduction to SQL, SQL*PlusChhom Karath
 
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...mahdi ahmadi
 
SQL vs NoSQL deep dive
SQL vs NoSQL deep diveSQL vs NoSQL deep dive
SQL vs NoSQL deep diveAhmed Shaaban
 

Similar to Oracle vs. MS SQL Server (20)

oracle
oracleoracle
oracle
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
 
NoSQL
NoSQLNoSQL
NoSQL
 
My sql vs sql
My sql vs sqlMy sql vs sql
My sql vs sql
 
Sybase To Oracle Migration for Developers
Sybase To Oracle Migration for DevelopersSybase To Oracle Migration for Developers
Sybase To Oracle Migration for Developers
 
SQL PPT.pptx
SQL PPT.pptxSQL PPT.pptx
SQL PPT.pptx
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentation
 
Sql
SqlSql
Sql
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 
Artigo no sql x relational
Artigo no sql x relationalArtigo no sql x relational
Artigo no sql x relational
 
Introduction to sql server
Introduction to sql serverIntroduction to sql server
Introduction to sql server
 
Oracle's history
Oracle's historyOracle's history
Oracle's history
 
What does PL_SQL stand for and what is the functioning of PL_SQL.docx
What does PL_SQL stand for and what is the functioning of PL_SQL.docxWhat does PL_SQL stand for and what is the functioning of PL_SQL.docx
What does PL_SQL stand for and what is the functioning of PL_SQL.docx
 
Introduction to SQL, SQL*Plus
Introduction to SQL, SQL*PlusIntroduction to SQL, SQL*Plus
Introduction to SQL, SQL*Plus
 
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
 
SQL vs NoSQL deep dive
SQL vs NoSQL deep diveSQL vs NoSQL deep dive
SQL vs NoSQL deep dive
 
Why you should(n't) run your databases in the cloud
Why you should(n't) run your databases in the cloudWhy you should(n't) run your databases in the cloud
Why you should(n't) run your databases in the cloud
 
SQL.pptx
SQL.pptxSQL.pptx
SQL.pptx
 

More from Teresa Rothaar

Social Media Data Mining
Social Media Data MiningSocial Media Data Mining
Social Media Data MiningTeresa Rothaar
 
Decision-Making Analysis: Chord Buddy
Decision-Making Analysis: Chord BuddyDecision-Making Analysis: Chord Buddy
Decision-Making Analysis: Chord BuddyTeresa Rothaar
 
Analysis of an Information System: NamUs
Analysis of an Information System: NamUsAnalysis of an Information System: NamUs
Analysis of an Information System: NamUsTeresa Rothaar
 
Data Backup & Disaster Planning
Data Backup & Disaster PlanningData Backup & Disaster Planning
Data Backup & Disaster PlanningTeresa Rothaar
 
Comparison of the Waterfall, Spiral, and Prototype SDLC Models
Comparison of the Waterfall, Spiral, and Prototype SDLC ModelsComparison of the Waterfall, Spiral, and Prototype SDLC Models
Comparison of the Waterfall, Spiral, and Prototype SDLC ModelsTeresa Rothaar
 
IPv6: The New Internet Protocol
IPv6: The New Internet ProtocolIPv6: The New Internet Protocol
IPv6: The New Internet ProtocolTeresa Rothaar
 
The Automobile: Genesis to Revelation
The Automobile: Genesis to RevelationThe Automobile: Genesis to Revelation
The Automobile: Genesis to RevelationTeresa Rothaar
 
4 Models of Change for IT Environments
4 Models of Change for IT Environments4 Models of Change for IT Environments
4 Models of Change for IT EnvironmentsTeresa Rothaar
 
Avon's Catastrophic Promise Project
Avon's Catastrophic Promise ProjectAvon's Catastrophic Promise Project
Avon's Catastrophic Promise ProjectTeresa Rothaar
 
The Politics of Organizational Leadership
The Politics of Organizational LeadershipThe Politics of Organizational Leadership
The Politics of Organizational LeadershipTeresa Rothaar
 
Short Opinion Paper on Ethics vs. Legality
Short Opinion Paper on Ethics vs. LegalityShort Opinion Paper on Ethics vs. Legality
Short Opinion Paper on Ethics vs. LegalityTeresa Rothaar
 
Strategic IT Plan for PetSmart PetPerks
Strategic IT Plan for PetSmart PetPerksStrategic IT Plan for PetSmart PetPerks
Strategic IT Plan for PetSmart PetPerksTeresa Rothaar
 
Fictional Business Case for Car Dealership CRM
Fictional Business Case for Car Dealership CRMFictional Business Case for Car Dealership CRM
Fictional Business Case for Car Dealership CRMTeresa Rothaar
 
Data Management Project for Car Dealership
Data Management Project for Car DealershipData Management Project for Car Dealership
Data Management Project for Car DealershipTeresa Rothaar
 
Case Study: Google 2012
Case Study: Google 2012Case Study: Google 2012
Case Study: Google 2012Teresa Rothaar
 
Porter Five Forces Analysis of Whole Foods Market
Porter Five Forces Analysis of Whole Foods MarketPorter Five Forces Analysis of Whole Foods Market
Porter Five Forces Analysis of Whole Foods MarketTeresa Rothaar
 
PetSmart Financial Analysis
PetSmart Financial AnalysisPetSmart Financial Analysis
PetSmart Financial AnalysisTeresa Rothaar
 

More from Teresa Rothaar (20)

Social Media Data Mining
Social Media Data MiningSocial Media Data Mining
Social Media Data Mining
 
Decision-Making Analysis: Chord Buddy
Decision-Making Analysis: Chord BuddyDecision-Making Analysis: Chord Buddy
Decision-Making Analysis: Chord Buddy
 
Analysis of an Information System: NamUs
Analysis of an Information System: NamUsAnalysis of an Information System: NamUs
Analysis of an Information System: NamUs
 
Data Backup & Disaster Planning
Data Backup & Disaster PlanningData Backup & Disaster Planning
Data Backup & Disaster Planning
 
Comparison of the Waterfall, Spiral, and Prototype SDLC Models
Comparison of the Waterfall, Spiral, and Prototype SDLC ModelsComparison of the Waterfall, Spiral, and Prototype SDLC Models
Comparison of the Waterfall, Spiral, and Prototype SDLC Models
 
IPv6: The New Internet Protocol
IPv6: The New Internet ProtocolIPv6: The New Internet Protocol
IPv6: The New Internet Protocol
 
Net Neutrality
Net NeutralityNet Neutrality
Net Neutrality
 
The Automobile: Genesis to Revelation
The Automobile: Genesis to RevelationThe Automobile: Genesis to Revelation
The Automobile: Genesis to Revelation
 
4 Models of Change for IT Environments
4 Models of Change for IT Environments4 Models of Change for IT Environments
4 Models of Change for IT Environments
 
Why Projects Fail
Why Projects FailWhy Projects Fail
Why Projects Fail
 
Avon's Catastrophic Promise Project
Avon's Catastrophic Promise ProjectAvon's Catastrophic Promise Project
Avon's Catastrophic Promise Project
 
The Politics of Organizational Leadership
The Politics of Organizational LeadershipThe Politics of Organizational Leadership
The Politics of Organizational Leadership
 
Short Opinion Paper on Ethics vs. Legality
Short Opinion Paper on Ethics vs. LegalityShort Opinion Paper on Ethics vs. Legality
Short Opinion Paper on Ethics vs. Legality
 
Strategic IT Plan for PetSmart PetPerks
Strategic IT Plan for PetSmart PetPerksStrategic IT Plan for PetSmart PetPerks
Strategic IT Plan for PetSmart PetPerks
 
Fictional Business Case for Car Dealership CRM
Fictional Business Case for Car Dealership CRMFictional Business Case for Car Dealership CRM
Fictional Business Case for Car Dealership CRM
 
Data Management Project for Car Dealership
Data Management Project for Car DealershipData Management Project for Car Dealership
Data Management Project for Car Dealership
 
Case Study: Google 2012
Case Study: Google 2012Case Study: Google 2012
Case Study: Google 2012
 
Porter Five Forces Analysis of Whole Foods Market
Porter Five Forces Analysis of Whole Foods MarketPorter Five Forces Analysis of Whole Foods Market
Porter Five Forces Analysis of Whole Foods Market
 
PetSmart Financial Analysis
PetSmart Financial AnalysisPetSmart Financial Analysis
PetSmart Financial Analysis
 
The Dodd-Frank Act
The Dodd-Frank ActThe Dodd-Frank Act
The Dodd-Frank Act
 

Recently uploaded

Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...shambhavirathore45
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Recently uploaded (20)

Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

Oracle vs. MS SQL Server

  • 1. Running Head: ORACLE DATABASE VS. MICROSOFT SQL SERVER 1 Oracle Database vs. Microsoft SQL Server Teresa J. Rothaar Wilmington University
  • 2. ORACLE DATABASE VS. MICROSOFT SQL SERVER Oracle Database vs. Microsoft SQL Server Introduction Oracle and Microsoft SQL Server are competing relational database systems. Both are proprietary packages, as opposed to open source systems such as MySQL. Oracle’s relational database product dominates the database market, controlling more than 48% of the market as of 2010 (Hoffer, 2013, p. 246). However, Microsoft SQL Server gained 2,000 Enterprise customers between 2010 and 2012, with its overall market share growing faster than that of its competitors (Backaitis, 2014). Oracle boasts the ability to run on a wide variety of platforms, including Windows, Mac, and UNIX. Microsoft SQL Server is available only for Windows (Leiba, 2003), which limits the latter’s potential customer base, which is possibly why SQL Server ranks third in the overall database market (Hoffer, p. 246). However, unlike Oracle, Microsoft SQL Server has a large, enthusiastic community of product evangelists, which is supported by Microsoft itself (McCown, 2008). The impact of product evangelism could explain SQL Server’s exponential growth despite its vendor lock-in to the Windows OS. This paper will explore some of the differences between Oracle and SQL Server, with a focus on data types and other issues that are important for database administrators who work with both systems to understand, especially in situations where data is being migrated from one system to the other. Database Architecture An Oracle database is just that: one database, with all objects within it grouped by schemas, and with the objects shared by all users and schemas. However, the database administrator can set user privileges that allow access to some schemas and objects but not 2
  • 3. ORACLE DATABASE VS. MICROSOFT SQL SERVER others. SQL Server contains multiple databases, with each database having its own private, unshared server file disk. All objects are assigned to a particular database, and users have individual logins that grant access to a database and its corresponding objects (Stansfield, 2014). This difference in architecture means that the concept of “logging onto the database” means different things in each system. On SQL Server, a user who is logged onto the server can execute the USE DATABASE_NAME command to switch to another database on that server, so long as the user has access privileges allowing them to do so. Because an Oracle installation contains only one database, there is no such thing as “switching databases.” There is only viewing a different schema or object. To do that, the user executes a CONNECT command under a different user name, or alternatively uses a SET ROLE command to change roles (Oracle Corporation). T-SQL vs. PL/SQL Because they use different proprietary programming languages, Oracle and SQL Server handle stored procedures quite differently. Oracle uses the PL/SQL programming language, which is based on Ada, while Microsoft uses T-SQL, or Transactional SQL, which is based on Sysbase (Burleson Consulting, 2011). In SQL Server, stored procedures are not compiled until executed, which means any errors are not discovered until a procedure is actually run. There is also is no ability to read or write from external files from a stored procedure (Leiba). Oracle also offers a “black box” of certain stored procedures and functions that share all input, output, and variables, called a “package.” Among other benefits, packages allow top- down, object oriented design and performance improvement. Most of Oracle’s built-in functions are part of a package. There is no equivalent to this in SQL Server, so when converting from Oracle to SQL Server, the packages need to be broken down into multiple processes, user- 3
  • 4. ORACLE DATABASE VS. MICROSOFT SQL SERVER defined functions, and so on. When going from SQL Server to Oracle, the opposite occurs: multiple processes, user-defined functions, and shared variables can be combined as part of an Oracle package (Kline, 2005). Oracle and Microsoft handle updates to their proprietary languages differently. While Oracle releases new versions of PL/SQL separately from their RDBMS product—because PL/SQL is used in other Oracle software—Microsoft updates T-SQL only when issuing a new version of SQL Server. Therefore, every version of T-SQL is linked to a specific version of SQL Server (Kline). Reserved Words Many words that can be used as column headings or object names in SQL Server, such as DATE, are reserved words in Oracle, and thus these names cannot be directly transferred from SQL Server to Oracle (Oracle Corporation, n.d.). Date & Time Data Types Although both databases store point-in-time values for DATE and TIME data types, Oracle and SQL Server date and time ranges are very different. In Oracle, they range from 4712 B.C. to 4712 A.D., while the SQL Server date range is from 1753 A.D. to 9999 A.D. (Microsoft Developer Network, n.d.). Additionally, the date/time precision in Microsoft SQL Server is 1/300th of a second, while Oracle’s data type TIMESTAMP is much more exacting, measuring time in increments of 1/100000000th of a second (Oracle Corporation). A few date and time data types have no direct equivalents between the two DBMSes, such as DATE and TIME in SQL Server, which store each attribute as an individual component, and the Oracle data types INTERVAL YEAR TO MONTH or INTERVAL DAY TO SECOND, which are used for periods of time as opposed to specific dates and times (Snaidero, 2013). 4
  • 5. ORACLE DATABASE VS. MICROSOFT SQL SERVER When migrating from Oracle to SQL Server, columns of type DATE containing values that are out of range for SQL Server are converted to type VARCHAR(19) (Microsoft Developer Network). Conversely, Oracle uses its data type TIMESTAMP for data that requires finer date and time precision than seconds, such as scientific applications, which may require values as tiny as nanoseconds. If such precision is not required, Oracle’s DATE data type, which is accurate to one second, may be used. Numeric Data Types SQL Server has several integer data types based on size: TINYINT, SMALLINT, INT and BIGINT. Oracle simplifies things with its NUMBER(x, y) data type, where x specifies the size (or precision) required, and y specifies the scale (the numbers to the right of the decimal point). For an integer, NUMBER(x, 0), should be used, with x representing the size required, with the scale set to 0 (Snaidero). SQL Server data types DECIMAL[(x,[y])] and NUMERIC[(x,[y])] are equivalent to NUMBER(x, y) in Oracle (Snaidero). However, the systems treat precision and scale of numbers very differently, which can cause issues when migrating from Oracle to SQL Server. While Oracle allows numbers to be defined with a scale greater than the precision, i.e., NUMBER(4,5), SQL Server requires that the precision be greater than or equal to the scale, and it will correct this by setting the precision and scale equal to each other during migration. Thus, NUMBER(4,5) would be mapped to NUMERIC(5,5). Additionally, when encountering a NUMBER data type with no scale or precision specified, SQL Server defaults to the maximum scale and precision, mapping to NUMERIC(8,38) (Microsoft Developer Network). Microsoft therefore recommends that, prior to the data being migrated, a specific scale and precision be specified in Oracle as to protect data integrity. 5
  • 6. ORACLE DATABASE VS. MICROSOFT SQL SERVER SQL Server has two data types, MONEY and SMALLMONEY, specifically for currency values (Snaidero). Oracle, however, assumes an international customer base where users do not necessarily count money in U.S. Dollars, and currency values are mapped to the NUMBER data type (Oracle Corporation). Character String Data Types The Oracle equivalent of SQL Server data type VARCHAR is CLOB (Microsoft Developer Network). SQL Server data type CHAR maps directly to Oracle type CHAR, but with a caveat: it maps directly only for CHAR sizes of 1 through 2000. CHAR data types sized from 2001 to 4000 are invalid in Oracle, and Oracle will convert CHAR types in this size range to VARCHAR2 (Oracle Corporation). Conversely, an Oracle VARCHAR2 type will map to SQL Server type VARCHAR (Microsoft Developer Network). SQL Server type TEXT maps to Oracle type CLOB (Oracle Corporation), but CLOB is mapped to SQL Server type VARCHAR(MAX) (Microsoft Developer Network). Binary and XML Data Types SQL Server types BINARY and VARBINARY map to Oracle type RAW or BLOB, depending on size (Oracle Corporation). However, while Oracle can support up to 4GB of data, SQL Server can support only 2GB, and any data above that amount is truncated (Microsoft Developer Network). Both systems support XML data types. Oracle has type XMLTYPE, and the SQL Server equivalent is simply XML. However, while SQL Server can hold only 2GB of data, Oracle can hold up to 6GB (Snaidero) Boolean Values The SQL Server data type BIT, used for Boolean values, has no direct equivalent in 6
  • 7. ORACLE DATABASE VS. MICROSOFT SQL SERVER Oracle. However, BIT can be mapped to either NUMBER(1) or CHAR, with PL/SQL functions used to query the value (Oracle Corporation). Conclusion There are many other differences between Oracle and SQL Server, such as how each RDBMS handles exceptions, the type of functions that can be called within each environment, and how SQL statements such as CREATE and INSERT are handled. Multiple resources are available online, from the manufacturers and each product’s user community, to aid database administrators as they work with both systems. 7
  • 8. ORACLE DATABASE VS. MICROSOFT SQL SERVER References Backaitis, V. (2014, March 18). Microsoft SQL Server Wins in a Big Data World. CMSWire. Retrieved from http://www.cmswire.com/cms/big-data/microsoft-sql-server-wins-in-a- big-data-world-024565.php Burleson Consulting. (2011, December 27). Data Type Issues with Microsoft SQL Server 2000 and Oracle 10g. Retrieved from http://www.dba- oracle.com/t_migrating_sql_server_vs_oracle_datatypes.htm Hoffer, J. A., & Ramesh, V. (2013). Modern Database Management (11th ed.). Boston: Pearson. Kline, K. (2005, June). Translating Procedural Statements Between Oracle and SQL Server: White Paper. Retrieved from http://www.quest.com/whitepapers/TranslatingProceduralStatements_Oracle_SQLServer. pdf Leiba, E. (May 2003). Oracle vs. SQL Server: Why Oracle wins. TechTarget. Retrieved from http://searchoracle.techtarget.com/tip/Oracle-vs-SQL-Server-Why-Oracle-wins McCown, S. (2008, March 19). The Real Difference Between SQL Server and Oracle. InfoWorld. Retrieved from http://www.infoworld.com/d/data-management/real- difference-between-sql-server-and-oracle-755 Microsoft Developer Network. (n.d.). Data Type Mapping for Oracle Publishers. Retrieved from http://msdn.microsoft.com/en-us/library/ms151817.aspx Oracle Corporation. (n.d.) Oracle® Database SQL Developer Supplementary Information for Microsoft SQL Server Migrations, Release 1.2. Retrieved from http://docs.oracle.com/cd/E10405_01/doc/appdev.120/e10379/ss_oracle_compared.htm# BGBDEBFA 8
  • 9. ORACLE DATABASE VS. MICROSOFT SQL SERVER Snaidero, B. (2013, April 25). Comparing SQL Server and Oracle Data Types. MSSQLTips.com. Retrieved from http://www.mssqltips.com/sqlservertip/2944/comparing-sql-server-and- oracle-datatypes/ Stansfield, J. (2014, March 13). Microsoft SQL Server vs. Oracle: The Same, But Different? Segue Technologies Blog. Retrieved from http://www.seguetech.com/blog/2014/03/13/Microsoft-SQL-Server-versus-oracle 9
  • 10. ORACLE DATABASE VS. MICROSOFT SQL SERVER Snaidero, B. (2013, April 25). Comparing SQL Server and Oracle Data Types. MSSQLTips.com. Retrieved from http://www.mssqltips.com/sqlservertip/2944/comparing-sql-server-and- oracle-datatypes/ Stansfield, J. (2014, March 13). Microsoft SQL Server vs. Oracle: The Same, But Different? Segue Technologies Blog. Retrieved from http://www.seguetech.com/blog/2014/03/13/Microsoft-SQL-Server-versus-oracle 9