Relationship between Oracle instances and databases

Source: Internet
Author: User

Relationship between Oracle instances and databases

Databases are physical and physical storage of data. They consist of files stored on disks, including control files, data files, and redo log files;

The instance is logical and consists of the server shared memory and background processes, providing access to information in the database.

Oracle databases and instances:

An instance can only load and open one database during operation, but a database in RAC can be loaded and opened by many instances at the same time.

If the database is an island, the instance can be seen as a temporary floating bridge through the island. The two are linked through the pfile parameter file.

While DB2 can run multiple instances at the same time, and one instance can contain multiple databases. Different databases in the same instance are completely independent and have their own system cataloguing tables. A database only belongs to one instance.

Oracle_sid and instance_name in oracle:

Oracle_sid appears in the Oracle System as an environmental variable. When an oracle instance is started, the fork process on the operating system is created based on this oracle_sid. The names of background processes and parameter files are determined by oracle_sid.

The oracle database has an internal initialization parameter instance_name, which is used to indicate the name of the database instance. The default value is usually oracle_sid. However, the initialization parameters instance_name and oracle_sid can be different. Different instances can have the same instance_name.

An instance_name is also recorded in the database's internal view V $ INSTANCE, which is always consistent with oracle_sid. The default instance_name In the parameter file is dynamically obtained from the System View.

In addition to the Instance name, instance_name is also used to register with the listener when the listener is dynamically registered.

DB_NAME indicates the name of the database to be attached to the instance, which is related to a specific physical file. It is recorded in data files, log files, and control files.

-------------------------------------- Split line --------------------------------------

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

-------------------------------------- Split line --------------------------------------

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.