Difference between oracle_sid and instance_name

Source: Internet
Author: User

Oracle_sid:

1, Used to mark system processes

2, Oracle_sidThe parameter is an operating system environment variable used to interact with the operating system. This parameter correspondsOracle_base,ORACLE_HOMESame usage

3, Oracle_sidSpecifies the name of the database parameter file.

$ Oracle_base/admin/db_name/pfile/init $ oracle_sid.ora

$ Oracle_base/admin/db_name/pfile/spfile $ oracle_sid.ora

4,

Instance_name:

1, Indicates a database instance.

2, The database instance name is used for external connection with the operating system.OracleListener(Listener)In the configuration fileSid_nameIs fromInstance_nameThe relationship between database names and instance names is generally a one-to-one correspondence. A database name has an Instance name. If you create two databases on a server, there are two database names, two database instance names are used to identify a database. The user and instance are connected.

OS <----------------> OracleDatabase<-------- (Instance_name (Instance name))

instance_name and oracle_sid is the same by default. In fact, oracle_sid and instance_name it does not matter. oracle_sid , when the external connection is used for database interaction, instance_name is used. When multiple databases are installed on the same server, the operating system uses oracle_sid to differentiate processes of different instances, when we connect to different databases on this server, instance_name is used to determine the database to be linked.

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.