Oracle 更改服务名方法

前端之家收集整理的这篇文章主要介绍了Oracle 更改服务名方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Oracle 更改服务名方法

标签 oracle
2189人阅读 评论(0) 收藏 举报
文章已收录于:

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://www.f2er.com/oracle/213102.html

猜你在找的Oracle相关文章