|
- Connected.
- SQL> conn / as sysdba
- Connected.
- SQL> show parameter service
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- service_names string orcl.example.com
- SQL> alter system set service_names='orcl.example.com','serv1';
- System altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ lsnrctl services
- LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 14-AUG-2014 20:02:40
- Copyright (c) 1991, 2011, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=station90.example.com)(PORT=1521)))
- Services Summary...
- Service "+ASM" has 1 instance(s).
- Instance "+ASM", status READY, has 1 handler(s) for this service...
- Handler(s):
- "DEDICATED" established:101 refused:0 state:ready
- LOCAL SERVER
- Service "orcl.example.com" has 1 instance(s).
- Instance "orcl", status READY, has 1 handler(s) for this service...
- Handler(s):
- "DEDICATED" established:0 refused:0 state:ready
- LOCAL SERVER
- Service "orclXDB.example.com" has 1 instance(s).
- Instance "orcl", status READY, has 1 handler(s) for this service...
- Handler(s):
- "D000" established:0 refused:0 current:0 max:1022 state:ready
- DISPATCHER <machine: station90.example.com, pid: 7069>
- (ADDRESS=(PROTOCOL=tcp)(HOST=station90.example.com)(PORT=59787))
- Service "serv1.example.com" has 1 instance(s).
- Instance "orcl", status READY, has 1 handler(s) for this service...
- Handler(s):
- "DEDICATED" established:0 refused:0 state:ready
- LOCAL SERVER
- The command completed successfully
- [oracle@station90 ~]$
复制代码
|
|