【原创】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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值