Comparison of dbms
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,911
On Slideshare
1,911
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
27
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • Triggers firing before the operation can modify the values specified in the insert or update statement.In addition, triggers can fire once for every row affected, or only one time to process all rows affected by the insert, update, or delete statement.

Transcript

  • 1. COMPARISON OF DBMS
  • 2. CONTENTS ORACL E3-Sep-12 MySQ 2
  • 3. PRODUCTS FROM MySQL• License: GPL or Proprietory Edition Price (1 year) Community edition Free Standard edition $2000 Enteprise edition $5000 Cluster CG Edition $100003-Sep-12 3
  • 4. PRODUCTS FROM ORACLE• License: Proprietory Edition Price Standard Edition $70 Enterprise edition $950 Express edition Free3-Sep-12 4
  • 5. ORACLE vs MySQLMax rows and columns• MySQL Rows = 65534 Columns = 3398• Oracle Rows = Unlimited Columns = 10003-Sep-12 5
  • 6. ORACLE vs MySQLDedicated web server• Database servers are dedicated computers that hold the actual databases and run only the DBMS and related software• MySQL = No• Oracle =Oracle WebDB, for simple Web applications Oracle Application Server (OAS) for professional, scalable Web applications3-Sep-12 6
  • 7. ORACLE vs MySQLPrivileages• MySQL : Table level , UPDATE,INSERT on selected columnsOracle: Table level, UPDATE,INSERT,REFERENCES on columnsGrouping the access:MySQL : NoOracle: Privileages can be grouped3-Sep-12 7
  • 8. ORACLE vs MySQLPlatform available• Both are available on major platforms such as Linux,Windows, OS/2Portability• MySQL: Copy MySQL file between platforms but with same floating point formats.• Oracle: Portable with import and3-Sep-12 8
  • 9. ORACLE vs MySQLAuthorization• MySQL : 3 parameters, User name, Password, Location• Oracle: 2 parameters , Username, Password.Stored procedures• MySQL: Available only from 5.x versions• Oracle: PL/SQL, JavaRollback and transaction• MySql = YES3-Sep-12 9
  • 10. ORACLE vs MySQL• Oracle database supports all three types of outer join and supports left and right outer joins.• MySQL supports left and right outer joins, but not full outer joins.• Without the support of full outer joins, MySQL queries requiring this functionality must use a UNION statement to concatenate the result set of3-Sep-12 query using a left 10
  • 11. ORACLE vs MySQLSequence• Sequence automatically generates unique numbers.• Sequences is to create a primary key value, which must be unique for each row. The sequence is generated and incremented by an internal Oracle routine.Auto-increment• Auto-increment allows a unique number to be generated when a new record is3-Sep-12 11
  • 12. ORACLE vs MySQLXML:• Extensible Markup Language (XML) is a standard file format used to transfer data between systems.• Oracle provides native support for XML with a custom XML data type and tools to query the data.• MySQL does not provide native XML support.3-Sep-12 12
  • 13. ORACLE vs MySQL• Both Oracle and MySQL have memory leaks problem.• Oracle is better with memory leaks and handles multiple threads.3-Sep-12 13
  • 14. ORACLE vs MySQLElementary Features:• Basic data types• SQL language features• Declarative integrity constraints• Programming abstractions3-Sep-12 14
  • 15. ORACLE vs MySQL Basic Data TypesAssessment: Product Grade MySQL Good Oracle Average3-Sep-12 15
  • 16. ORACLE vs MySQLCharacter, numeric and date/time data types:• MySQL:Broad subset of SQL92 types, including all SQL92 numeric types.MySQL supports the CHAR and VARCHAR type for character type with a length that is less than 65,535 bytes.• The CHAR type can have a maximum length of 255 bytes.3-Sep-12 16
  • 17. ORACLE vs MySQLCharacter, numeric and date/time data types:• Oracle:Subset of SQL92 types plus specific types. Some SQL92 types are mapped into Oracle types.• No boolean type nor equivalent.• Oracle supports four character types: CHAR, NCHAR, NVARCHAR2 and VARCHAR2.CHAR and NCHAR is 2,000 bytes, and for NVARCHAR2 and3-Sep-12 17
  • 18. ORACLE vs MySQL SQL Language FeaturesAssessment: Product Grade MySQL Average Oracle Good3-Sep-12 18
  • 19. ORACLE vs MySQL SQL Language FeaturesUser-defined data types• MySQL: No.• Oracle: User can define new complex data types.• Subqueries in SQL queryPossibility of using subqueries (nested queries) anywhere in SQL query.• MySQL:No. starting from 4.1 release.3-Sep-12 19
  • 20. ORACLE vs MySQL Declarative Integrity Constraints• Integrity constraints defined declaratively in SQL (e.g. in CREATE TABLE statement) and executed by DBMS.Assessment Product Grade MySQL Average3-Sep-12 Oracle Very good 20
  • 21. ORACLE vs MySQL Declarative Integrity ConstraintsPrimary key• MySQL :Yes.• Oracle:Yes.Unique key• MySQL :Yes.• Oracle:Yes.3-Sep-12 21
  • 22. ORACLE vs MySQL Declarative Integrity ConstraintsForeign key• MySQL :No. FOREIGN KEY clause is allowed for compatibility only and has no effect on database operation.• Oracle:Yes. ON DELETE CASCADE supportedCheck3-Sep-12 22
  • 23. ORACLE vs MySQL Programming AbstractionsVirtual SQL language structures as views and synonyms.Assessment Product Grade MySQL Poor Oracle Very good3-Sep-12 23
  • 24. ORACLE vs MySQL Programming AbstractionsViews:A view is a tailored presentation of the data contained in one or more tables (or other views). A view takes the output of a query and treats it as a table; therefore, a view can be thought of as a "stored query" or a "virtual table". It should be possible to use views in3-Sep-12 24
  • 25. ORACLE vs MySQL Programming AbstractionsUpdateable views:Updateable view is a view which can be used in DML (Data Manipulation Language) statements for modification of the data.MySQL :No.But updateable VIEWs based on single table or other updateable VIEWs available from MySql 5.0.1 release.3-Sep-12 25
  • 26. ORACLE vs MySQL Programming AbstractionsSynonymsA synonym is an alias for any table, view or other object in database.MySQL :No.Oracle :Yes.3-Sep-12 26
  • 27. ORACLE vs MySQLDefault Values For Columns:• In MySQL, for a column that does not allow NULL value and for which no data is provided for the column when data is inserted into the table, MySQL determines a default value for the column.• This default value is the implicit default value for the column data type.3-Sep-12 27
  • 28. ORACLE vs MySQLDefault Values For Columns:• In Oracle, when data is inserted into a table, data must be provided for all columns that do not allow NULL value.• Oracle does not generate a default value for columns that have the NOT NULL constraint.3-Sep-12 28
  • 29. ORACLE vs MySQLTriggers:• Triggers are stored procedures that automatically execute when a database event occurs or a table event occurs.• Database events that fire triggers include system startup and shutdown, object creation, and user logins and logouts.• Table events: insertion, update, or3-Sep-12 29
  • 30. ORACLE vs MySQLTriggers:• Oracle fires triggers for both database-level and table-level events.• MySQL does not support stored procedures, it also does not support triggers.3-Sep-12 30
  • 31. ORACLE vs MySQLTriggers:• Missing trigger capability is a major shortcoming of MySQL.• Database administrators rely heavily on database-level triggers to monitor database events.• Application developers utilize table-level triggers extensively to ensure that data meets the business requirements.3-Sep-12 31
  • 32. ORACLE vs MySQLSecurity:• Database security is a very important aspect of any database management system to protect access to the database operations and the data.3-Sep-12 32
  • 33. ORACLE vs MySQLSecurity:• Oracle implements security for both users and roles.• Roles provide a method of granting privileges to many users with a single GRANT statement, or revoking privileges from many users with a single REVOKE statement.3-Sep-12 33
  • 34. ORACLE vs MySQLSecurity:• MySQL uses the user name and host to lookup the user’s privileges in the system tables.• The user table stores database- level privileges to the user, and other tables maintain object-level privileges.• An administrator creates users by issuing GRANT statements, or by3-Sep-12 34
  • 35. ORACLE vs MySQLSecurity:• MySQL does not use roles or groups to grant and revoke privileges to multiple users in individual statements.• The absence of database roles is another major drawback of MySQL.• Without the ability to group users into roles, the database administrator will have do on3-Sep-12 35
  • 36. ORACLE vs MySQLReplication:• Replicating data is the process of copying data, synchronously or asynchronously, from one database into another database.• Oracle supports two-way replication whereas MySQL supports only one-way replication from the master to the replica by applying transaction log files to3-Sep-12 36
  • 37. ORACLE vs MySQLAuditing:• Oracle provides an auditing facility to track individual users, database statements, and object statements.• MySQL does not provide auditing capabilities.3-Sep-12 37
  • 38. ORACLE vs MySQLAdministration:• Oracle provides for both hot and cold backups, and includes the Recovery Manager (RMAN) utility to facilitate the backup process.• Since MySQL stores data in operating system files, administrators perform cold backups by simply copying the files.3-Sep-12 38
  • 39. CONCLUSION• Oracle and MySQL perform at similar levels in tests of response times and throughput.• But Oracle provides database clustering to achieve improved scalability and throughput, and MySQL does not provide clustering.3-Sep-12 39