Bo's Oracle Station

查看: 1146|回复: 0

第24次:2014-08-14-sqlplus1.sql

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2014-8-15 08:33:44 | 显示全部楼层 |阅读模式
  1. Connected.
  2. SQL> conn / as sysdba
  3. Connected.
  4. SQL> show parameter service

  5. NAME                                     TYPE         VALUE
  6. ------------------------------------ ----------- ------------------------------
  7. service_names                             string         orcl.example.com
  8. SQL> alter system set service_names='orcl.example.com','serv1';

  9. System altered.

  10. SQL> exit
  11. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  12. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
  13. and Real Application Testing options
  14. [oracle@station90 ~]$ lsnrctl services

  15. LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 14-AUG-2014 20:02:40

  16. Copyright (c) 1991, 2011, Oracle.  All rights reserved.

  17. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=station90.example.com)(PORT=1521)))
  18. Services Summary...
  19. Service "+ASM" has 1 instance(s).
  20.   Instance "+ASM", status READY, has 1 handler(s) for this service...
  21.     Handler(s):
  22.       "DEDICATED" established:101 refused:0 state:ready
  23.          LOCAL SERVER
  24. Service "orcl.example.com" has 1 instance(s).
  25.   Instance "orcl", status READY, has 1 handler(s) for this service...
  26.     Handler(s):
  27.       "DEDICATED" established:0 refused:0 state:ready
  28.          LOCAL SERVER
  29. Service "orclXDB.example.com" has 1 instance(s).
  30.   Instance "orcl", status READY, has 1 handler(s) for this service...
  31.     Handler(s):
  32.       "D000" established:0 refused:0 current:0 max:1022 state:ready
  33.          DISPATCHER <machine: station90.example.com, pid: 7069>
  34.          (ADDRESS=(PROTOCOL=tcp)(HOST=station90.example.com)(PORT=59787))
  35. Service "serv1.example.com" has 1 instance(s).
  36.   Instance "orcl", status READY, has 1 handler(s) for this service...
  37.     Handler(s):
  38.       "DEDICATED" established:0 refused:0 state:ready
  39.          LOCAL SERVER
  40. The command completed successfully
  41. [oracle@station90 ~]$
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-29 14:39 , Processed in 0.105865 second(s), 24 queries .

快速回复 返回顶部 返回列表