Difference: 1. Oracle is a large database, while Mysql is a small and medium-sized database; 2. Mysql is open source, while Oracle is paid; 3. Mysql does not support transactions by default, while Oracle does Fully supported; 4. Oracle requires manual submission by default, and Mysql automatically submits by default.
The difference between MySQL and Oracle
1. Macroscopically:
1. Oracle is Large databases, while Mysql is a small and medium-sized database; Mysql is open source, Oracle is paid and expensive. 2. Oracle supports large concurrency and large access volume, and is the best tool for OLTP. 3. The memory occupied by the installation is also different. After the Mysql installation is completed, the memory occupied is much smaller than the memory occupied by Oracle, and the more Oracle is used, the more memory it will occupy.2. Microscopic view:
1. Support for transactions
Mysql for transactions It is not supported by default, but some storage engines such as innodb can support it; Oracle fully supports things.2. Data persistence
Oracle guarantees that submitted transactions can be recovered, because Oracle writes the submitted sql operation line into the online online log file. Save it to disk. If the database or host restarts abnormally, restarting Oracle can restore the data submitted by the customer based on the online log. Mysql submits sql statements by default, but if there is a db or host restart problem during the update process, data may also be lost.3. Transaction isolation level
MySQL is the isolation level of repeatable read, while Oracle is the isolation level of read committed, and both support serializable serialized transactions. Isolation level, the highest level that can be achieved. Read consistency. Only after each session is submitted can other sessions see the submitted changes. Oracle achieves read consistency by constructing multi-version data blocks in the undo table space. When each session is queried, if the corresponding data block changes, Oracle will construct the old data for this session in the undo table space when it is queried. piece. MySQL does not have a mechanism to construct multi-version data blocks similar to Oracle, and only supports the isolation level of read committed. When one session reads data, other sessions cannot change the data, but they can insert data at the end of the table. When a session updates data, an exclusive lock must be added, and other sessions cannot access the data4. Submission method
Oracle does not automatically submit by default and needs to be submitted manually. Mysql automatically commits by default.5. Logical backup
Mysql logical backup requires locking data to ensure that the backed up data is consistent and affects normal business DML (Data Manipulation Language) Language) is used; Oracle does not lock data during logical backup, and the backed up data is consistent.6. Flexibility of sql statements
Mysql has many very practical and convenient extensions to sql statements, such as the limit function (paging), insert can insert multiple items at one time Row data; Oracle feels more stable and traditional in this regard. Oracle's paging is completed through pseudo columns and subqueries, and data can only be inserted row by row.7. Data replication
MySQL: The replication server configuration is simple, but when there is a problem with the main database, the cluster database may lose a certain amount of data. And you need to manually switch the plex library to the main library. Oracle: There are both push or pull traditional data replication and dataguard’s dual-machine or multi-machine disaster recovery mechanism. If there is a problem with the main database, the standby database can be automatically switched to the main database, but the configuration management is complicated. complex.8. Partitioned tables and partitioned indexes
MySQL’s partitioned table is not yet mature and stable; Oracle’s partitioned table and partitioned index functions are very mature and can improve user access. db experience.9. After-sales and fees
Oracle charges a fee. If you have any problems, please contact customer service; Mysql is free and open source. If you have problems, you can solve them yourself.10. Permissions and security
Oracle’s permissions and security concepts are relatively traditional and quite satisfactory; MySQL’s users are related to the host, which feels meaningless, and it is easier to be There are opportunities for counterfeiting hosts and IPs.11. Performance diagnosis
Oracle has various mature performance diagnosis and tuning tools, which can realize many automatic analysis and diagnosis functions. For example, awr, addm, sqltrace, tkproof, etc.; MySQL has few diagnostic and tuning methods, mainly slow query logs. [Related recommendations:mysql video tutorial]
The above is the detailed content of What is the difference between oracle and mysql. For more information, please follow other related articles on the PHP Chinese website!

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version
God-level code editing software (SublimeText3)