您的当前位置:首页修改Oracle10g的端口并更改EM

修改Oracle10g的端口并更改EM

2020-11-09 来源:乌哈旅游

修改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 (运行重新配置即可,按要求输入新的端口号,,就可以了)

linux

显示全文