| Property | Description |
|---|---|
| Parameter type | String |
| Syntax | INSTANCE_NAME = instance_id |
| Default value |
The instance's SID
Note: The SID identifies the instance's shared memory on a host, but may not uniquely distinguish this instance from other instances. |
| Modifiable | No |
| Range of values | Any alphanumeric characters and the underscore (_) character |
| Basic | No |
In a Real Application Clusters environment, multiple instances can be associated with a single database service. Clients can override Oracle's connection load balancing by specifying a particular instance by which to connect to the database. INSTANCE_NAME specifies the unique name of this instance.
In a single-instance database system, the instance name is usually the same as the database name.
可以看到,在RAC环境中,不同的实例用于连接不同的数据库服务,INSTANCE_NAME标志了一个唯一的实例名。| Property | Description |
|---|---|
| Parameter type | String |
| Syntax | DB_NAME = database_name |
| Default value | There is no default value. |
| Modifiable | No |
| Basic | Yes |
| Oracle RAC | You must set this parameter for every instance. Multiple instances must have the same value, or the same value must be specified in the STARTUP OPEN SQL*Plus command or the ALTER DATABASE MOUNT SQL statement. |
DB_NAME specifies a database identifier of up to 8 characters. This parameter must be specified and must correspond to the name specified in the CREATE DATABASE statement.
If you have multiple databases, the value of this parameter should match the Oracle instance identifier of each one to avoid confusion with other databases running on the system. The value of DB_NAME should be the same in both the standby and production initialization parameter files.
The database name specified in either the STARTUP command or the ALTER DATABASE ... MOUNT statement for each instance of the cluster database must correspond to the DB_NAME initialization parameter setting.
The following characters are valid in a database name: alphanumeric characters, underscore (_), number sign (#), and dollar sign ($). No other characters are valid. Oracle removes double quotation marks before processing the database name. Therefore you cannot use double quotation marks to embed other characters in the name. The database name is case insensitive.
可以看到,如果你的系统上运行着多个数据库,那么通过DB_NAME这个参数,就可以找到对应的数据库数据文件日志文件等而不会造成混淆。来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29800581/viewspace-1307517/ ,如需转载,请注明出处,否则将追究法律责任。