【原创】10g参数文件中的instance_name参数设置问题

instance_name 参数用在向listener注册时候service联系到哪个instance,完全可以随意更改:

[@more@] Last login: Wed May 2 17:26:32 2007 from 10.1.5.243

[[oracle@tserver ~]$ lsnrctl

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 04-MAY-2007 18:07:19

Copyright (c) 1991, 2005, Oracle. All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 02-MAY-2007 17:31:48
Uptime 2 days 0 hr. 35 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /oraapp/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=tserver)(PORT=1521)))
Services Summary...
Service "test.sss.com.cn" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "testXDB.sss.com.cn" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "test_XPT.sss.com.cn" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> exit
[oracle@tserver ~]$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Fri May 4 18:08:12 2007

Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL> conn / as sysdba

Connected.
SQL> show parameter instance

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
active_instance_count integer
cluster_database_instances integer 1
instance_groups string
instance_name string test
instance_number integer 0
instance_type string RDBMS
open_links_per_instance integer 4
parallel_instance_group string
parallel_server_instances integer 1
SQL>
SQL>
SQL> alter system set instance_name='TEST1' scope=spfile;

System altered.

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup open;
ORACLE instance started.

Total System Global Area 167772160 bytes
Fixed Size 1218292 bytes
Variable Size 88082700 bytes
Database Buffers 71303168 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL> show parameter instance

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
active_instance_count integer
cluster_database_instances integer 1
instance_groups string
instance_name string TEST1
instance_number integer 0
instance_type string RDBMS
open_links_per_instance integer 4
parallel_instance_group string
parallel_server_instances integer 1
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@tserver ~]$ lsnrctl

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 04-MAY-2007 18:12:53

Copyright (c) 1991, 2005, Oracle. All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 02-MAY-2007 17:31:48
Uptime 2 days 0 hr. 41 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /oraapp/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=tserver)(PORT=1521)))
Services Summary...
Service "test.sss.com.cn" has 1 instance(s).
Instance "TEST1", status READY, has 1 handler(s) for this service...
Service "testXDB.sss.com.cn" has 1 instance(s).
Instance "TEST1", status READY, has 1 handler(s) for this service...
Service "test_XPT.sss.com.cn" has 1 instance(s).
Instance "TEST1", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7437037/viewspace-913337/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7437037/viewspace-913337/

你可能感兴趣的:(【原创】10g参数文件中的instance_name参数设置问题)