VMware中安装的Centos610快照并克隆后网络配置

1.网卡配置

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
HWADDR=:0c::::
TYPE=Ethernet
#UUID=1b7a2a9f-e1b1-401f-aa16-e3761f8b74f6
ONBOOT=yes
NM_CONTROLLED=no
#BOOTPROTO=dhcp
BOOTPROTO=static IPADDR=192.168.125.150
NETMASK=255.255.255.0
GATEWAY=192.168.125.2
DNS1=192.168.125.2

2.重启服务

service network restart

3.删除网卡信息

rm -rf  /etc/udev/rules.d/70-persistent-net.rules

4.重命名系统

vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=centos610-nodesk-oracle-main
# oracle-rdbms-server-11gR2-preinstall : Add NOZEROCONF=yes

5.重启系统

reboot

ifconfig 查看网路新,如果提示Device eth0 does not seem to be present,delaying initialization

则vi /etc/udev/rules.d/70-persistent-net.rules ,把网卡名不等于 eth0以及多个等于eth0的网卡删掉保留一个,再次重启

此时Ok

6.oracle配置更新

监听修改

[oracle@centos610-nodesk-oracle-main ~]$ cat /home/oracle/app/oracle/product/11.2./dbhome_1/network/admin/listener.ora
# listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2./dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools. SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = /home/oracle/app/oracle/product/11.2./dbhome_1)
(SID_NAME = ORCL)
)
) LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.125.150)(PORT = ))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
) ADR_BASE_LISTENER = /home/oracle/app/oracle

外部连接监听IP配置

show parameter local_listener
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.125.150)(PORT=1521)(SID=ORCL))';
alter system register;

重启监听

LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.125.150)(PORT=)))
The command completed successfully
LSNRCTL> start
Starting /home/oracle/app/oracle/product/11.2./dbhome_1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 11.2.0.1. - Production
System parameter file is /home/oracle/app/oracle/product/11.2./dbhome_1/network/admin/listener.ora
Log messages written to /home/oracle/app/oracle/diag/tnslsnr/centos610-nodesk-oracle-main/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.125.150)(PORT=)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.125.150)(PORT=)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1. - Production
Start Date -OCT- ::
Uptime days hr. min. sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/oracle/product/11.2./dbhome_1/network/admin/listener.ora
Listener Log File /home/oracle/app/oracle/diag/tnslsnr/centos610-nodesk-oracle-main/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.125.150)(PORT=)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "ORCL" has instance(s).
Instance "ORCL", status UNKNOWN, has handler(s) for this service...
The command completed successfully

监听状态

LSNRCTL> [oracle@centos610-nodesk-oracle-main ~]$ clear
[oracle@centos610-nodesk-oracle-main ~]$ lsnrctl status LSNRCTL for Linux: Version 11.2.0.1. - Production on -OCT- :: Copyright (c) , , Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.125.150)(PORT=)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1. - Production
Start Date -OCT- ::
Uptime days hr. min. sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/oracle/product/11.2./dbhome_1/network/admin/listener.ora
Listener Log File /home/oracle/app/oracle/diag/tnslsnr/centos610-nodesk-oracle-main/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.125.150)(PORT=)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "ORCL" has instance(s).
Instance "ORCL", status UNKNOWN, has handler(s) for this service...
Instance "orcl", status READY, has handler(s) for this service...
The command completed successfully

7.重启

reboot

最新文章

  1. JavaScript高级编程 (2) - HTML 与 JavaScript
  2. pat甲级题解(更新到1013)
  3. ural 1071. Nikifor 2
  4. RDIFramework.NET ━ .NET快速信息化系统开发框架 V2.7 版本发布
  5. Android Service AIDL 远程调用服务 【简单音乐播放实例】
  6. android平台获取手机IMSI,IMEI ,序列号,和 手机号的方法
  7. 【转】ubuntu11.10 64bit 环境android编译错误
  8. Bzoj 2431 HAOI2009 逆序对数列
  9. iOS开源 框架
  10. xampp环境安装swoole
  11. 队列(FIFO)—循环队列、队列的链式存储
  12. 如何保证WebBrowser一直在页面内跳转
  13. Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
  14. 记录一次因代理Controller产生的404问题
  15. WebStorm中使用npm包管理器
  16. Q: Is Consul eventually or strongly consistent?
  17. Mac使用技巧总结-如何独立设置Mac触摸板方向和鼠标滚轮方向?
  18. BT5配置网络
  19. adb -s
  20. [库][c++]tinyxml2使用小结

热门文章

  1. strtotime中的一些坑
  2. C++-POJ2352-Stars[数据结构][树状数组]
  3. 2.7.1 元素定位:selenium消息框处理 (alert、confirm、prompt)
  4. DOJ1187 : 重建家园 (分数规划 && 二分 && kruskal)
  5. [CF]Round510
  6. css之变形(transform)
  7. Python,正则表达式 - (?:)示例
  8. 计算机网络 - TCP_NODELAY 和 TCP_CORK, TCP_NOPUSH
  9. 第二十四篇 玩转数据结构——队列(Queue)
  10. 建立Web Service 接口及调用