修改linux主機名後,oracle需要修改的檔案

2021-06-06 19:29:55 字數 940 閱讀 2162

背景:將主機名從dbt_a改為dbta

centos5.5  oracle11gr2

需要修改3個檔案。

[root@dbta ~]# vi /etc/hosts

# do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 dbta localhost

::1 localhost6.localdomain6 localhost6

# generated by oracle configuration tools.

listener =

(description_list =

(description =

(address = (protocol = ipc)(key = extproc1521))

(address = (protocol = tcp)(host = dbta)(port = 1521))))

# generated by oracle configuration tools.

orcl =

(description =

(address = (protocol = tcp)(host = dbta)(port = 1521))

(connect_data =

(server = dedicated)

(service_name = orcl)

))此外在此目錄下還會有原來主機名命名的檔案

有可能需要重啟系統。

Linux主機名修改

hostname命令可以臨時修改機器名 hostname 檢視機器名 hostname i 檢視本機器名對應的ip位址 hostname xx 修改機器名為xx 修改配置檔案實現修改機器名 vi etc sysconfig network 修改hostname xx vi etc hosts 把預設...

修改linux主機名

1.修改centos主機名稱配置檔案 etc sysconfig network vi etc sysconfig network 修改hostname配置為想要的名稱,例如 networking yes networking ipv6 no hostname roothomes 2.修改 etc ...

LINUX修改主機名

修改主機名要修改多處配置檔案。以centos6為例子,新的centos rhel7等採用systemctl修改。1.修改核心引數 本機原host名為 sysctl a grep hostname kernel.hostname orcl db nod1 cat etc sysctl.conf gre...