- 浏览: 1000580 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (529)
- 服务器 (8)
- jsp (1)
- java (6)
- AIX (1)
- solaris (3)
- linux学习 (53)
- javaScript (2)
- hibernate (1)
- 数据库 (74)
- sql语句 (8)
- oracle 学习 (75)
- oracle 案例 (42)
- oracle 管理 (42)
- Oracle RAC (27)
- oracle data guard (12)
- oracle 参数讲解 (14)
- Oracle 字符集 (8)
- oracle性能调优 (24)
- oracle备份与恢复 (12)
- oracle Tablespace (9)
- oracle性能诊断艺术 (1)
- oracle 11g学习 (5)
- oracle streams (1)
- oracle upgrade and downgrade (4)
- db2学习 (13)
- db2命令学习 (2)
- mysql (28)
- sql server (30)
- sql server 2008 (0)
- 工具 (10)
- 操作系统 (3)
- c++ (1)
- stock (1)
- 生活 (5)
- HADOOP (2)
最新评论
-
massjcy:
...
如何将ubuntu文件夹中文名改为英文 -
skypiea:
谢谢。。。
终于解决了。。。
Oracle 10.2.0.4(5)EM不能启动的解决方案(Patch 8350262) -
qwe_rt:
引用vi /etc/sysconfig/network 请问 ...
Linux操作系统下配置静态IP上网 -
liuqiang:
sudo killall -9 apache2
ps 和 kill 命令详解 -
dazuiba:
引用*绝杀 kill -9 PID 当使用此命令时,一定要通过 ...
ps 和 kill 命令详解
修改网卡规则:先关闭网络服务,修改配置文件网卡的HWADDR值和/etc/udev/rules.d/70-persistent-net.rules文件中网卡的ATTR值一致,然后再修改/etc/udev/rules.d/70-persistent-net.rules中对应的网卡名称,最后再关闭和重启udev-post服务,再启动网卡,名称就会变成你修改的名称
[root@rac02 network-scripts]# ifconfig
eth4 Link encap:Ethernet HWaddr 08:00:27:AF:C3:39
inet addr:192.168.1.109 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:feaf:c339/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4685 errors:0 dropped:0 overruns:0 frame:0
TX packets:3676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:862105 (841.8 KiB) TX bytes:526539 (514.1 KiB)
eth5 Link encap:Ethernet HWaddr 08:00:27:16:DE:44
inet addr:10.10.10.2 Bcast:10.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe16:de44/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:902 (902.0 b) TX bytes:4874 (4.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:138 errors:0 dropped:0 overruns:0 frame:0
TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23382 (22.8 KiB) TX bytes:23382 (22.8 KiB)
[root@rac02 network-scripts]# service network stop
Shutting down loopback interface: [ OK ]
[root@rac02 network-scripts]# more ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.1.109
PREFIX=24
GATEWAY=192.168.1.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=591e15c2-facf-4d92-bcc8-e27cb5137e0b
ONBOOT=yes
HWADDR=08:00:27:AF:C3:39
[root@rac02 network-scripts]# more ifcfg-eth1
TYPE=Ethernet
BOOTPROTO=none
IPADDR=10.10.10.2
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"
UUID=79604f5c-c552-4289-9565-56669263a6de
ONBOOT=yes
HWADDR=08:00:27:16:DE:44
GATEWAY=192.168.1.1
[root@rac02 network-scripts]# vi /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x100e (e1000) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:3e:83:3c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:c8:77:9d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:1b:21:05", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:5d:10:5b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:af:c3:39", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:16:de:44", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
~
"/etc/udev/rules.d/70-persistent-net.rules" 11L, 585C written
[root@rac02 network-scripts]# source /etc/udev/rules.d/70-persistent-net.rules
-bash: ATTR{address}==08:00:27:af:c3:39,: command not found
-bash: ATTR{address}==08:00:27:16:de:44,: command not found
[root@rac02 network-scripts]# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:af:c3:39", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:16:de:44", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
修改完毕以后
然后关闭udev服务,从新启动udev服务
service udev-post stop
service udev-post start
然后再从新启动网卡
ifup eth0
ifup eth1
[root@rac02 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:AF:C3:39
inet addr:192.168.1.109 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4926 errors:0 dropped:0 overruns:0 frame:0
TX packets:3864 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:885817 (865.0 KiB) TX bytes:551779 (538.8 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:16:DE:44
inet addr:10.10.10.2 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:902 (902.0 b) TX bytes:7629 (7.4 KiB)
[root@rac02 ~]#
发表评论
-
自动sqlldr导入脚本
2012-08-31 17:52 1698自己写的通用的sqlldr导入脚本,配置在crontab 里面 ... -
centos 编译 安装 protobuf
2012-08-15 17:01 8599yum -y install gcc+ gcc-c++ yu ... -
linux下删除文件后没有释放空间(转)
2012-08-08 11:07 1924问题 文件被删除后,空间没有被释放 原因 在Linux或者 ... -
red hat/Centos/Oracle linux禁用单用户模式
2012-07-26 23:55 2001目的是禁用red hat/Centos/Oracle linu ... -
centos6.0配置本地yum
2012-07-25 23:54 930centos6.0配置本地yum 使用vm虚拟机安装的cen ... -
Connection activation failed Device not managed by NetworkManager
2012-07-22 20:26 1433系统中有两个服务在管理网络,所以需要停掉一个, 1. Re ... -
warning: waiting for transaction lock on /var/lib/rpm/__db.000
2012-06-06 12:03 1157故障现象:[root@localhost Mysql4.1.1 ... -
Linux 查看目录大小及文件数量命令
2012-04-10 10:29 1188查看当前目录大小: [root@21andy.com]# ... -
linux /dev/shm的用途
2011-11-22 10:36 335331.linux下的/dev/shm是什么? /dev/shm ... -
configure/make/make install的作用
2011-08-12 01:10 860这些都是典型的使用GNU的AUTOCONF和AUTOMAKE产 ... -
执行脚本出现bin/bash: bad interpreter: No such file or directory
2011-07-27 16:50 722错误原因之一很有可能是你的脚本文件是DOS格式的, 即每一行的 ... -
Ubuntu下Oracle的自动启动
2011-07-06 23:38 2444一、使用root用户修改/etc/oratab 文件: $ ... -
如何将ubuntu文件夹中文名改为英文
2011-03-07 02:10 8533ubuntu对中文的支持越来越好,这自然是好事。不过在终端下输 ... -
Ubuntu 10.04下的搭建SUN JAVA开发环境
2011-03-07 00:53 923下面是Ubuntu 10.04下的搭 ... -
Ubuntu Server 安装图形桌面环境
2011-03-07 00:43 11631.准备环境首先得安装好ubuntu-10.04-server ... -
ubuntu安装SSH,支持开启sftp服务
2011-03-06 23:55 2695ubuntu安装SSH 安装 SSH(Secure Shel ... -
ubuntu终端乱码问题解决方案
2011-03-05 23:12 1814解决方法: 一. Ubuntu默认的中文字符编 ... -
linux使用sar命令进行系统监视优化
2011-01-23 01:30 3915了解如何将用户抱怨与 ... -
Linux启动过程简介
2011-01-22 23:56 1073Bootloader 在Alpha/AXP平台 ... -
Linux下很全面的监控工具dstat
2011-01-17 02:02 12411) 工具说明dstat是一个用来替换 vmstat,ios ...
相关推荐
oracle linux 6.0 iso下载地址,网上资源比较少,现分享一个
为广大寻找Oracle_Linux 6.0/6.1的朋友提供个高速下载链接(官网封了中国IP)
linux6.0 安装 oracle11g 完全安装手册, 都是自己截图的。
Oracle.Linux.6.0系统镜像和源文件的种子,因为官方好像已经封了国内的IP,所以不能下载,总共6个文件,下载速度很快。
Oracle Linux6.8 64位下载,完美匹配安装Oracle数据库
安装Oracle专用Linux操作系统 安装过程中,可以省去很多不必要的坑 OracleLinux-R6-U5-Server-x86_64-dvd.[V41362-01].iso
linux CentOS 6.0下安装 Oracle10g,有详细的说明,有配置自动启动服务说明。
EMCPower.LINUX-6.0.1.00.00-043.OL6.x86_64 适用于oracle linux 6 上。亲测可用。EMC多路径软件。
Oracle Linux更新Yum源还是挺方便的,比Red Hat省事很多,而且在6.3的版本中,默认已经有重新编译可用的Yum了。
Oracle Enterprise Linux是由Oracle公司提供支持的企业级Linux发行。据项目网站称,Oracle以Red Hat Linux做为起始,移除了Red Hat的商标,然后加入了Linux的错误修正。Oracle Enterprise Linux现在是,并旨在保持为...
oracle linux 7 自已总结和根据官方文档方法的双网卡绑定。还有注意事项。 !
OracleLinux6.9安装详细图解
oracle安装教程之Linux更换yum源
RedHat Linux6.0安装Oracle 11g,亲测成功
Oracle Linux Server release 6.3安装 Oracle 11gR2 RAC总结
按文档一步一步操作,执行安装成功。包括准备工作,安装,配置,实际操作。
Red Hat linux 6.0下安装Oracle 11g
Oracle Linux,全称为Oracle Enterprise Linux,简称OEL,是Oracle公司在2006年初发布第一个版本,Linux发行版本之一,以对Oracle软件和硬件支持较好见长。OEL,一般人通常叫法为Oracle企业版Linux,由于Oracle提供...
linux启动oracle方法linux启动oracle方法linux启动oracle方法linux启动oracle方法linux启动oracle方法linux启动oracle方法linux启动oracle方法linux启动oracle方法linux启动oracle方法linux启动oracle方法linux启动...
oracle jdbc6.0 oracle jdbc6.0