欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

修改Oracle 10g的端口并更改EM

程序员文章站 2023-12-30 23:44:22
...

修改Oracle10g的端口,需要修改两个文件即可。(red hat linux as4u6 修改通过)listener.ora 和tnsnames.ora

修改Oracle10g的端口,需要修改两个文件即可。(Red Hat linux as4u6 修改通过)

listener.ora 和tnsnames.ora

文件都在/opt/oracle10g/product/10.2.0.1/db_1/network/admin目录下

listener.ora 修改如下

--------------------------------------------


# listener.ora Network Configuration File: /opt/oracle10g/product/10.2.0.1/db_1/network/admin/listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = /opt/oracle10g/product/10.2.0.1/db_1)

(PROGRAM = extproc)

)

(SID_DESC =

(GLOBAL_DBNAME = SID名称)

(ORACLE_HOME = /opt/oracle10g/product/10.2.0.1/db_1)

(SID_NAME = SID名称)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

(ADDRESS = (PROTOCOL = TCP)(HOST = zz.net)(PORT = 新端口号))

)

)

---------------------------------------------
中间小字斜体为添加
;;;
tnsnames.ora
---------------------------------------------
# Generated by Oracle configuration tools.
BDHTDBSM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = zz.net)(PORT = 新端口号))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BDHTDBSMS)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
---------------------------------------------
由于EM(Enterprise Manager)连接的还是原来的资料,所以需要修改
emca -config dbcontrol db (运行重新配置即可,按要求输入新的端口号,,就可以了)

修改Oracle 10g的端口并更改EM

上一篇:

下一篇: