SQL Server Vs Oracle
I have worked with both Oracle and SQL Server since 2009. In my previous position at Motorola Solutions, I had the great opportunity to work on both environment. Listed below are some of their key features but not the complete list.
SQL Server
- Utilizes TSQL Statement.
- One instance with multiple database.
- Utilizes Linked Server to other RDBMS and Excel which can allow limited PLSQL Statements when connecting to Oracle based platform .
- Has two types Triggers which are After and Instead.
- Data Manipulation can be extracted or altered using Datepart(), DateDiff(), DateAdd() or Getdate().
- User Defined Functions(UDF) can return datatype or table.
- Stored Procedures are executed.
- Tables can be created using the Create table statement or Select into Table_Name from Table_Name, view_Name or UDF_Name statements.
- Simple XML(SQL Server 2008) features ( XML AUTO, XML RAW , XML EXPLICIT etc) to transform data both structured and unstructured data.
- Identity column to generate unique number and Sequence(2012 ).
- Materialized views in Oracle is called indexed views. The major difference between indexed view and regular view is that in the view statement creation schema binding is included and after the view has been created, one or more columns are indexed.
Oracle (10g & 11g Releases )
- PLSQL Statement
- Oracle includes Flashback and Savepoint
- It is very case sensitive with objects name created wit double quotations.
- Utilizes Public Links to communicate to different RDBMS using ODBC or to other Other Oracle Database.
- Oracle allows one Instance per Database( 10g and 11g) but one instance may contain multiple tablespaces which can be allocated to various users or applications.
- Utilizes Tablespace to store data.
- Data Manipulation can be executed using To_Char, To_Number, To_Date, To_Timestamp to extract specific information from a table or System tables.
- Utilizes Not Null constraint to define specific condition for a table column.
- Constraints can be deferred for large data loading only if the data has been tested prior in staging environment with same rules to make sure they are no errors.
- Indexes created during the primary key creation in a table creation can be named using the Create Index statement.
- Utilizes Sequences to generate unique numbers.
- Tables can be created using the Table definition statement or Create table table_name as query statement.
- Conditional and unconditional multiple insert statements.
- Triggers ( Before, After , Instead)
- Records, Package, Oracle Application, Label and Oracle Security( Row level security etc).
- Identity based column for unique number generation were introduced with Oracle 12c
- BLOB, CLOB & NCLOB datatypes for large data storage.
Each platform has their limitations but can be best apply to any environment.
Comments
Post a Comment