码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 更改服务名方法

时间:2020-02-28 20:44:58      阅读:422      评论:0      收藏:0      [点我收藏+]

标签:cli   host   ram   home   des   system   desc   parameter   lse   

1.运行db的sqlplus:sqlplus sys/sys as sysdba (sys/sys为“用户名”/“密码”)
   或配置client的监听后运行Client的sqlplus

2. (可省略)查看当前服务名:SQL> show parameter service_name

3. 修改服务名:SQL> alter system set service_names=‘orcl‘ scope=both;

4. 修改listener.ora(红色部分):
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = E:\Oracle10g)
      (PROGRAM = extproc)
    )
   (SID_DESC =
    (GLOBAL_DBNAME = ORCL)
    (ORACLE_HOME = E:\Oracle10g)
    (SID_NAME = ORCL)
    )
 )
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = onest)(PORT = 1521))
    )
  )

 

转自:https://blog.csdn.net/huronzhu/article/details/37047819

Oracle 更改服务名方法

标签:cli   host   ram   home   des   system   desc   parameter   lse   

原文地址:https://www.cnblogs.com/justlove/p/12379840.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!