oracle地址怎么设置 oracle更改ip地址

安装Oracle数据库的时候IP地址怎么配置了

1、直接修改\oracle\product\10.2.0\client_2\NETWORK\ADMIN\tnsnames的文件,直接添加

成都做网站、网站设计介绍好的网站是理念、设计和技术的结合。创新互联建站拥有的网站设计理念、多方位的设计风格、经验丰富的设计团队。提供PC端+手机端网站建设,用营销思维进行网站设计、采用先进技术开源代码、注重用户体验与SEO基础,将技术与创意整合到网站之中,以契合客户的方式做到创意性的视觉化效果。

TOPPROD = (DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.15)(PORT = 1521)) )

(CONNECT_DATA =

(SERVICE_NAME = topprod) ) )

2、一种图形界面,在安装的时候,将oracle所在服务器或电脑的IP加入

如何修改Oracle服务IP地址

你好,

oracle数据库所在的机器更改IP地址后,发现无法连接,

解决这个问题,需要修改一下对应的文件:

F:\app\zhaohe\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora

F:\app\zhaohe\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora

把其中对应的IP地址进行修改后再重新启动oracle就可以解决问题了;

注:重启实例服务、OracleOraDb11g_home1TNSListener后,稍等1分钟后即可。

listener.ora

# listener.ora Network Configuration File: F:\app\zhaohe\product\11.2.0\dbhome_1\network\admin\listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = CLRExtProc)

(ORACLE_HOME = F:\app\zhaohe\product\11.2.0\dbhome_1)

(PROGRAM = extproc)

(ENVS = "EXTPROC_DLLS=ONLY:F:\app\zhaohe\product\11.2.0\dbhome_1\bin\oraclr11.dll")

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.5)(PORT = 1521))

)

)

ADR_BASE_LISTENER = F:\app\zhaohe

tnsnames.ora

# tnsnames.ora Network Configuration File: F:\app\zhaohe\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora

# Generated by Oracle configuration tools.

ORACLR_CONNECTION_DATA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

)

(CONNECT_DATA =

(SID = CLRExtProc)

(PRESENTATION = RO)

)

)

LISTENER_ORCL =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.5)(PORT = 1521))

ORCL =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.5)(PORT = 1521))

)

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = orcl)

)

)

注意:HOST位置要用机器名或机器的网络IP(如192.168.1.5)

在linux上安装了Oracle,linux主机设置了ip,该如何设置Oracle的ip地址呢?

不管你本地是什么系统,要使用主机名连接oracle,都需要在hosts文件里面定义IP解析的条目,类似下面的内容。

dex-pc 10.77.89.19


网页标题:oracle地址怎么设置 oracle更改ip地址
URL链接:http://pwwzsj.com/article/hgshsj.html