记录我的生活和学习历程

[Oracle]oracle安装琐碎命令

2012-05-30

我实在不想挨个敲了,记录在此,以后直接复制粘贴!

/sbin/iscsiadm -m discovery -t sendtargets -p 192.168.0.2
/sbin/iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:target0 -p 192.168.0.2 -l
/sbin/iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:target1 -p 192.168.0.2 -l
/sbin/iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:target2 -p 192.168.0.2 -l
/sbin/iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:target3 -p 192.168.0.2 -l
/sbin/iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:target4 -p 192.168.0.2 -l
/sbin/iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:target5 -p 192.168.0.2 -l
/sbin/iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:target6 -p 192.168.0.2 -l
/sbin/iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:target7 -p 192.168.0.2 -l

/bin/raw /dev/raw/raw1 /dev/sdb1
/bin/raw /dev/raw/raw2 /dev/sdc1
/bin/raw /dev/raw/raw3 /dev/sdd1
/bin/raw /dev/raw/raw4 /dev/sde1
/bin/raw /dev/raw/raw5 /dev/sdf1
/bin/raw /dev/raw/raw6 /dev/sdg1
/bin/raw /dev/raw/raw7 /dev/sdh1
/bin/raw /dev/raw/raw8 /dev/sdi1

ACTION==”add”, KERNEL==”sdb1″, RUN+=”/bin/raw /dev/raw/raw1 %N”
ACTION==”add”, KERNEL==”sdc1″, RUN+=”/bin/raw /dev/raw/raw2 %N”
ACTION==”add”, KERNEL==”sdd1″, RUN+=”/bin/raw /dev/raw/raw3 %N”
ACTION==”add”, KERNEL==”sde1″, RUN+=”/bin/raw /dev/raw/raw4 %N”
ACTION==”add”, KERNEL==”sdf1″, RUN+=”/bin/raw /dev/raw/raw5 %N”
ACTION==”add”, KERNEL==”sdg1″, RUN+=”/bin/raw /dev/raw/raw6 %N”
ACTION==”add”, KERNEL==”sdh1″, RUN+=”/bin/raw /dev/raw/raw7 %N”
ACTION==”add”, ENV{MAJOR}==”8″, ENV{MINOR}==”17″, RUN+=”/bin/raw
/dev/raw/raw1 %M %m”
ACTION==”add”, ENV{MAJOR}==”8″, ENV{MINOR}==”33″, RUN+=”/bin/raw
/dev/raw/raw2 %M %m”
ACTION==”add”, ENV{MAJOR}==”8″, ENV{MINOR}==”49″, RUN+=”/bin/raw
/dev/raw/raw3 %M %m”
ACTION==”add”, ENV{MAJOR}==”8″, ENV{MINOR}==”65″, RUN+=”/bin/raw
/dev/raw/raw4 %M %m”
ACTION==”add”, ENV{MAJOR}==”8″, ENV{MINOR}==”65″, RUN+=”/bin/raw
/dev/raw/raw5 %M %m”
ACTION==”add”, ENV{MAJOR}==”8″, ENV{MINOR}==”81″, RUN+=”/bin/raw
/dev/raw/raw6 %M %m”
ACTION==”add”, ENV{MAJOR}==”8″, ENV{MINOR}==”113″, RUN+=”/bin/raw
/dev/raw/raw7 %M %m”

chown root:oinstall /dev/raw/raw1
chown root:oinstall /dev/raw/raw2
chown oracle:oinstall /dev/raw/raw3
chown oracle:oinstall /dev/raw/raw4
chown oracle:oinstall /dev/raw/raw5
chown oracle:dba /dev/raw/raw6
chown oracle:dba /dev/raw/raw7
chmod 640 /dev/raw/raw1
chmod 640 /dev/raw/raw2
chmod 644 /dev/raw/raw3
chmod 644 /dev/raw/raw4
chmod 644 /dev/raw/raw5
chmod 660 /dev/raw/raw6
chmod 660 /dev/raw/raw7

vi /etc/udev/rules.d/99-raw-perms.rules

KERNEL==”raw1″, MODE=”0640″, GROUP=”oinstall”, OWNER=”root”
KERNEL==”raw2″, MODE=”0640″, GROUP=”oinstall”, OWNER=”root”
KERNEL==”raw3″, MODE=”0644″, GROUP=”oinstall”, OWNER=”oracle”
KERNEL==”raw4″, MODE=”0644″, GROUP=”oinstall”, OWNER=”oracle”
KERNEL==”raw5″, MODE=”0644″, GROUP=”oinstall”, OWNER=”oracle”
KERNEL==”raw6″, MODE=”0660″, GROUP=”dba”, OWNER=”oracle”
KERNEL==”raw7″, MODE=”0660″, GROUP=”dba”, OWNER=”oracle”

/bin # ./oifcfg setif -global eth0/192.168.0.12:public
/bin # ./oifcfg setif -global eth1/192.168.0.13:cluster_interconnect

作者:swappy | Categories:Oracle | Tags:

一条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注