Home  >  Article  >  Operation and Maintenance  >  Detailed explanation of new features of Oracle11g and Oracle12c

Detailed explanation of new features of Oracle11g and Oracle12c

WBOY
WBOYOriginal
2024-03-07 10:48:04930browse

Detailed explanation of new features of Oracle11g and Oracle12c

As the world's leading database management system, Oracle is constantly updated and upgraded to adapt to changing needs. In this article, I will introduce the new features of Oracle11g and Oracle12c in detail, and provide specific code examples to help readers better understand.

Detailed explanation of new features of Oracle 11g

Auto-tuning function

Oracle 11g has introduced an automatic tuning function, which can improve the system by analyzing database performance and automatically performing necessary adjustments. performance. The following is a simple code example that shows how to enable the automatic tuning feature:

ALTER SYSTEM SET optimizer_features_enable = '11.1.0.6';

Data Compression

Oracle 11g also introduces data compression capabilities, which can improve data access speed without affecting the speed of data access. Reduce storage space. The following is a sample code that shows how to enable data compression at the table space level:

ALTER TABLESPACE users COMPRESS;

Enhanced Security

Oracle 11g improves database security by introducing stricter security control mechanisms. The following is a sample code showing how to add new permission controls:

GRANT CREATE SESSION TO user1;

Detailed explanation of new features of Oracle 12c

Multi-tenant architecture

Oracle 12c introduces a multi-tenant architecture that allows Deploy multiple independent databases on a single database instance. The following is a sample code that shows how to create a new tenant in a multi-tenant environment:

CREATE PLUGGABLE DATABASE pdb2 ADMIN USER admin2 IDENTIFIED BY password2;

Support JSON data type

Oracle 12c begins to support the JSON data type, making it more convenient for developers to Process data in JSON format. The following is a sample code that shows how to use the JSON data type in a table:

CREATE TABLE employee (
    id NUMBER,
    info JSON
);

Fast Data Refresh

Oracle 12c introduces the Fast Data Refresh feature to restore the database to a previous state. The following is a sample code that shows how to use the fast data refresh function:

FLASHBACK TABLE employees TO TIMESTAMP (SYSTIMESTAMP - INTERVAL '1' HOUR);

Through the above detailed introduction and code examples of the new features of Oracle11g and Oracle12c, I believe that readers will have a better understanding of these two versions of database management systems. Deep understanding. In the field of constantly advancing technology, Oracle continues to update and optimize functions to provide users with more powerful and efficient database solutions.

The above is the detailed content of Detailed explanation of new features of Oracle11g and Oracle12c. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn