/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 505 asmoper
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
/usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
mkdir /oracle
mkdir /oracle/app
chown -R grid:oinstall /oracle/app/
chown -R 775 /oracle/app/
mkdir -p /oracle/app/oraInventory
chmod -R 775 /oracle/app/oraInventory/
mkdir -p /oracle/app/grid
mkdir -p /oracle/app/oracle
chown -R grid:oinstall /oracle/app/grid/
chown -R oracle:oinstall /oracle/app/oracle/
chown -R 775 /oracle/app/oracle/
chown -R 775 /oracle/app/grid/
passwd oracle
passwd grid
rac1,rac2电脑,oracle用户,登陆,增加下面的内容到.bash_profile
export PATH
TMP=/tmp;
TMPDIR=$TMP;
ORACLE_SID=asm1;
ORACLE_BASE=/oracle/app/oracle;
ORACLE_HOME=/oracle/app/grid/product/11.2.0;
NLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS";
THREADS_FLAG=native;
ORACLE_HOME_LISTENER=$ORACLE_HOME;
export THREADS_FLAG
export NLS_DATE_FORMAT
export ORACLE_HOME
export ORACLE_BASE
export ORACLE_SID
export TMPDIR
PATH=$ORACLE_HOME/bin:$PATH;
export PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
ASMLIB下载地址
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
login as: root
root@192.168.33.12's password:
Access denied
root@192.168.33.12's password:
Last login: Wed Apr 25 20:23:40 2012
Usage: groupadd [options] group
Options:
-f, --force force exit with success status if the specified
group already exists
-r, create system account
-g, --gid GID use GID for the new group
-h, --help display this help message and exit
-K, --key KEY=VALUE overrides /etc/login.defs defaults
-o, --non-unique allow create group with duplicate
(non-unique) GID
/usr/sbin/groupadd -g 506 asmddmin,asmdba,asmoper,oper,dba,grid
groupadd:asmddmin,asmdba,asmoper,oper,dba,grid 不是有效的组名
/usr/sbin/useradd -g oinstall -G dba,asmdba,oper,oracle
useradd:未知的组 oracle
/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 505 asmoper
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/groupadd -g 506 dba
/usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
/usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid grid
mkdir /oracle
mkdir /oracle/app
chown -R grid:oinstall /oracle/app/
chown -R 775 /oracle/app/
mkdir -p /oracle/app/OraInventory
rm -rf /oracle/app/OraInventory/
mkdir -p /oracle/app/oraInventory
chmod -R 775 /oracle/app/oraInventory/
mkdir -p /oracle/app/grid
mkdir -p /oracle/app/oracle
chown -R grid:oinstall /oracle/app/grid/
chown -R oracle:oinstall /oracle/app/oracle/
chown -R 775 /oracle/app/oracle/
chown -R 775 /oracle/app/grid/
passwd grid
passwd oracle
lsb release -a
-bash: lsb: command not found
lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64 :graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:prin ting-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.7 (Final)
Release: 5.7
Codename: Final
uname -a
Linux rac1 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
last
root pts/5 192.168.33.110 Wed Apr 25 20:55 still logged in
root pts/4 :0.0 Wed Apr 25 20:37 still logged in
root pts/3 :0.0 Wed Apr 25 20:36 still logged in
root pts/2 :0.0 Wed Apr 25 20:23 still logged in
root :0 Wed Apr 25 20:23 still logged in
root :0 Wed Apr 25 20:23 - 20:23 (00:00)
root pts/1 192.168.33.6 Wed Apr 25 20:12 still logged in
reboot system boot 2.6.18-274.el5 Wed Apr 25 18:55 (02:26)
root pts/1 :0.0 Wed Apr 25 18:51 - down (00:03)
root :0 Wed Apr 25 17:11 - down (01:42)
root :0 Wed Apr 25 17:11 - 17:11 (00:00)
reboot system boot 2.6.18-274.el5 Wed Apr 25 17:05 (01:48)
root pts/2 :0.0 Wed Apr 25 17:02 - down (00:01)
root pts/1 :0.0 Wed Apr 25 16:53 - down (00:10)
root :0 Wed Apr 25 16:53 - down (00:10)
root :0 Wed Apr 25 16:53 - 16:53 (00:00)
reboot system boot 2.6.18-274.el5 Wed Apr 25 16:52 (00:11)
reboot system boot 2.6.18-274.el5 Wed Apr 25 16:44 (00:07)
wtmp begins Wed Apr 25 16:44:17 2012
vi /etc/security/limits.conf
vi /etc/pam.d/login
vi /etc/sysctl.conf
/sbin/service ntpd stop
关闭 ntpd: [确定]
chkconfig ntpd off
ll /etc/ntp
ntp/ ntp.conf
mv /etc/ntp.conf /etc/ntp.conf.org
vi /dev/shm
vi /dev/
Display all 193 possibilities? (y or n)
vi /etc/fstab
ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7400836e 4259840 root 600 4 0
0x00000000 4620289 root 644 80 2
0x7400836d 4227074 root 600 4 0
0x00000000 4653059 root 644 16384 2
0x00000000 4685828 root 644 280 2
0x00000000 4751365 root 600 393216 2 dest
0x00000000 4784134 root 600 393216 2 dest
0x00000000 4816903 root 600 393216 2 dest
0x00000000 4849672 root 600 393216 2 dest
0x00000000 4882441 root 600 393216 2 dest
0x00000000 4915210 root 600 393216 2 dest
0x00000000 4947979 root 600 393216 2 dest
0x00000000 4980748 root 600 393216 2 dest
0x00000000 5013517 root 600 393216 2 dest
0x00000000 5046286 root 600 393216 2 dest
0x00000000 5079055 root 600 393216 2 dest
0x00000000 5111824 root 600 393216 2 dest
------ Semaphore Arrays --------
key semid owner perms nsems
0x000000a7 0 root 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
ipcrm
df -h /dev/shm
文件系统 容量 已用 可用 已用% 挂载点
tmpfs 2.0G 0 2.0G 0% /dev/shm
su - grid
[grid@rac1 ~]$ vi .bash_profile
[grid@rac1 ~]$ vi .bash_profile
[grid@rac1 ~]$ su - oracle
口令:
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ ping rac2
PING rac2 (192.168.33.13) 56(84) bytes of data.
64 bytes from rac2 (192.168.33.13): icmp_seq=1 ttl=64 time=0.532 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=2 ttl=64 time=0.204 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=3 ttl=64 time=0.137 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=4 ttl=64 time=0.132 ms
--- rac2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 0.132/0.251/0.532/0.164 ms
[oracle@rac1 ~]$ ping rac2-eth0
PING rac2-eth0 (220.250.64.19) 56(84) bytes of data.
From rac1-priv (192.168.1.219) icmp_seq=1 Destination Host Unreachable
From rac1-priv (192.168.1.219) icmp_seq=2 Destination Host Unreachable
From rac1-priv (192.168.1.219) icmp_seq=3 Destination Host Unreachable
--- rac2-eth0 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4002ms
, pipe 3
[oracle@rac1 ~]$ ping rac2-eth1
PING rac2-eth1 (220.250.64.19) 56(84) bytes of data.
--- rac2-eth1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms
[oracle@rac1 ~]$ ping 192.168.3
PING 192.168.3 (192.168.0.3) 56(84) bytes of data.
--- 192.168.3 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[oracle@rac1 ~]$ ping rac2
PING rac2 (192.168.33.13) 56(84) bytes of data.
64 bytes from rac2 (192.168.33.13): icmp_seq=1 ttl=64 time=0.166 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=2 ttl=64 time=0.139 ms
--- rac2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.139/0.152/0.166/0.018 ms
[oracle@rac1 ~]$ mkdir ~/.ssh
[oracle@rac1 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
c5:6d:70:bf:b7:75:c1:8a:1f:f4:35:9c:bf:e0:59:ee oracle@rac1
[oracle@rac1 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
b7:ca:1a:14:5d:99:05:a4:c0:d7:ca:83:0a:2d:61:a1 oracle@rac1
[oracle@rac1 ~]$ cd .ssh
[oracle@rac1 .ssh]$ ls
id_dsa id_dsa.pub id_rsa id_rsa.pub
[oracle@rac1 .ssh]$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
The authenticity of host 'rac2 (192.168.33.13)' can't be established.
RSA key fingerprint is ce:bf:7f:23:52:20:d3:82:4d:09:a4:c6:d3:24:0f:d4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,192.168.33.13' (RSA) to the list of known hosts.
oracle@rac2's password:
Permission denied, please try again.
oracle@rac2's password:
[oracle@rac1 .ssh]$
login as: root
root@192.168.33.12's password:
Access denied
root@192.168.33.12's password:
Last login: Wed Apr 25 20:23:40 2012
[root@rac1 ~]# /usr/sbin/groupadd -g 501 oinstall
[root@rac1 ~]# /usr/sbin/groupadd -g 502 dba
[root@rac1 ~]# /usr/sbin/groupadd -g 503 oper
[root@rac1 ~]# /usr/sbin/groupadd -g 504 asdadmin
[root@rac1 ~]# /usr/sbin/groupadd -g 505 asmoper
[root@rac1 ~]# /usr/sbin/groupadd -g 506 asmdba
[root@rac1 ~]# /usr/sbin/groupadd -g 506 asmddmin,asmdba,asmoper,oper,dba grid
Usage: groupadd [options] group
Options:
-f, --force force exit with success status if the specified
group already exists
-r, create system account
-g, --gid GID use GID for the new group
-h, --help display this help message and exit
-K, --key KEY=VALUE overrides /etc/login.defs defaults
-o, --non-unique allow create group with duplicate
(non-unique) GID
[root@rac1 ~]# /usr/sbin/groupadd -g 506 asmddmin,asmdba,asmoper,oper,dba,grid
groupadd:asmddmin,asmdba,asmoper,oper,dba,grid 不是有效的组名
[root@rac1 ~]# /usr/sbin/useradd -g oinstall -G dba,asmdba,oper,oracle
useradd:未知的组 oracle
[root@rac1 ~]# /usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
[root@rac1 ~]# /usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
useradd:未知的组 asmadmin
[root@rac1 ~]# /usr/sbin/groupadd -g 504 asmadmin
groupadd:GID 504 并不唯一
[root@rac1 ~]# id 50\4
id: 504:无此用户
[root@rac1 ~]# id 504
id: 504:无此用户
[root@rac1 ~]# /usr/sbin/groupadd -g 504 asmadmin
groupadd:GID 504 并不唯一
[root@rac1 ~]# /usr/sbin/groupadd -g oinstall -G asmadmin,asmdba,asmoper,oper,db a grid
groupadd: invalid group ID 'oinstall'
[root@rac1 ~]# /usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
[root@rac1 ~]# id oracle
uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(as mdba)
[root@rac1 ~]# mkdir /oracle/app
mkdir: 无法创建目录 “/oracle/app”: 没有那个文件或目录
[root@rac1 ~]# mkidr /oracle
-bash: mkidr: command not found
[root@rac1 ~]# mkdir /oracle
[root@rac1 ~]# mkdir /oracle/app
[root@rac1 ~]# chown -R grid:oinstall /oracle/app/
[root@rac1 ~]# chown -R 775 /oracle/app/
[root@rac1 ~]# mkdir -p /oracle/app/OraInventory
[root@rac1 ~]# rm -rf /oracle/app/OraInventory/
[root@rac1 ~]# mkdir -p /oracle/app/oraInventory
[root@rac1 ~]# chmod -R 775 /oracle/app/oraInventory/
[root@rac1 ~]# mkdir -p /oracle/app/grid
[root@rac1 ~]# mkdir -p /oracle/app/oracle
[root@rac1 ~]# chown -R grid:oinstall /oracle/app/grid/
[root@rac1 ~]# chown -R oracle:oinstall /oracle/app/oracle/
[root@rac1 ~]# chown -R 775 /oracle/app/oracle/
[root@rac1 ~]# chown -R 775 /oracle/app/grid/
[root@rac1 ~]# passwd grid
Changing password for user grid.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@rac1 ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@rac1 ~]# lsb release -a
-bash: lsb: command not found
[root@rac1 ~]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64 :graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:prin ting-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.7 (Final)
Release: 5.7
Codename: Final
[root@rac1 ~]# uname -a
Linux rac1 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@rac1 ~]# last
root pts/5 192.168.33.110 Wed Apr 25 20:55 still logged in
root pts/4 :0.0 Wed Apr 25 20:37 still logged in
root pts/3 :0.0 Wed Apr 25 20:36 still logged in
root pts/2 :0.0 Wed Apr 25 20:23 still logged in
root :0 Wed Apr 25 20:23 still logged in
root :0 Wed Apr 25 20:23 - 20:23 (00:00)
root pts/1 192.168.33.6 Wed Apr 25 20:12 still logged in
reboot system boot 2.6.18-274.el5 Wed Apr 25 18:55 (02:26)
root pts/1 :0.0 Wed Apr 25 18:51 - down (00:03)
root :0 Wed Apr 25 17:11 - down (01:42)
root :0 Wed Apr 25 17:11 - 17:11 (00:00)
reboot system boot 2.6.18-274.el5 Wed Apr 25 17:05 (01:48)
root pts/2 :0.0 Wed Apr 25 17:02 - down (00:01)
root pts/1 :0.0 Wed Apr 25 16:53 - down (00:10)
root :0 Wed Apr 25 16:53 - down (00:10)
root :0 Wed Apr 25 16:53 - 16:53 (00:00)
reboot system boot 2.6.18-274.el5 Wed Apr 25 16:52 (00:11)
reboot system boot 2.6.18-274.el5 Wed Apr 25 16:44 (00:07)
wtmp begins Wed Apr 25 16:44:17 2012
[root@rac1 ~]# vi /etc/security/limits.conf
[root@rac1 ~]# vi /etc/pam.d/login
[root@rac1 ~]# vi /etc/sysctl.conf
[root@rac1 ~]# /sbin/service ntpd stop
关闭 ntpd: [确定]
[root@rac1 ~]# chkconfig ntpd off
[root@rac1 ~]# ll /etc/ntp
ntp/ ntp.conf
[root@rac1 ~]# mv /etc/ntp.conf /etc/ntp.conf.org
[root@rac1 ~]# vi /dev/shm
[root@rac1 ~]# vi /dev/
Display all 193 possibilities? (y or n)
[root@rac1 ~]# vi /etc/fstab
[root@rac1 ~]# ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7400836e 4259840 root 600 4 0
0x00000000 4620289 root 644 80 2
0x7400836d 4227074 root 600 4 0
0x00000000 4653059 root 644 16384 2
0x00000000 4685828 root 644 280 2
0x00000000 4751365 root 600 393216 2 dest
0x00000000 4784134 root 600 393216 2 dest
0x00000000 4816903 root 600 393216 2 dest
0x00000000 4849672 root 600 393216 2 dest
0x00000000 4882441 root 600 393216 2 dest
0x00000000 4915210 root 600 393216 2 dest
0x00000000 4947979 root 600 393216 2 dest
0x00000000 4980748 root 600 393216 2 dest
0x00000000 5013517 root 600 393216 2 dest
0x00000000 5046286 root 600 393216 2 dest
0x00000000 5079055 root 600 393216 2 dest
0x00000000 5111824 root 600 393216 2 dest
------ Semaphore Arrays --------
key semid owner perms nsems
0x000000a7 0 root 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
[root@rac1 ~]# ipcrm
[root@rac1 ~]# df -h /dev/shm
文件系统 容量 已用 可用 已用% 挂载点
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@rac1 ~]# su - grid
[grid@rac1 ~]$ vi .bash_profile
[grid@rac1 ~]$ vi .bash_profile
[grid@rac1 ~]$ su - oracle
口令:
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ ping rac2
PING rac2 (192.168.33.13) 56(84) bytes of data.
64 bytes from rac2 (192.168.33.13): icmp_seq=1 ttl=64 time=0.532 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=2 ttl=64 time=0.204 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=3 ttl=64 time=0.137 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=4 ttl=64 time=0.132 ms
--- rac2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 0.132/0.251/0.532/0.164 ms
[oracle@rac1 ~]$ ping rac2-eth0
PING rac2-eth0 (220.250.64.19) 56(84) bytes of data.
From rac1-priv (192.168.1.219) icmp_seq=1 Destination Host Unreachable
From rac1-priv (192.168.1.219) icmp_seq=2 Destination Host Unreachable
From rac1-priv (192.168.1.219) icmp_seq=3 Destination Host Unreachable
--- rac2-eth0 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4002ms
, pipe 3
[oracle@rac1 ~]$ ping rac2-eth1
PING rac2-eth1 (220.250.64.19) 56(84) bytes of data.
--- rac2-eth1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms
[oracle@rac1 ~]$ ping 192.168.3
PING 192.168.3 (192.168.0.3) 56(84) bytes of data.
--- 192.168.3 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[oracle@rac1 ~]$ ping rac2
PING rac2 (192.168.33.13) 56(84) bytes of data.
64 bytes from rac2 (192.168.33.13): icmp_seq=1 ttl=64 time=0.166 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=2 ttl=64 time=0.139 ms
--- rac2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.139/0.152/0.166/0.018 ms
[oracle@rac1 ~]$ mkdir ~/.ssh
[oracle@rac1 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
c5:6d:70:bf:b7:75:c1:8a:1f:f4:35:9c:bf:e0:59:ee oracle@rac1
[oracle@rac1 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
b7:ca:1a:14:5d:99:05:a4:c0:d7:ca:83:0a:2d:61:a1 oracle@rac1
[oracle@rac1 ~]$ cd .ssh
[oracle@rac1 .ssh]$ ls
id_dsa id_dsa.pub id_rsa id_rsa.pub
[oracle@rac1 .ssh]$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
The authenticity of host 'rac2 (192.168.33.13)' can't be established.
RSA key fingerprint is ce:bf:7f:23:52:20:d3:82:4d:09:a4:c6:d3:24:0f:d4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,192.168.33.13' (RSA) to the list of known hosts.
oracle@rac2's password:
Permission denied, please try again.
oracle@rac2's password:
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
scp: /home/oracle/.ssh/authorized_keys: No such file or directory
[oracle@rac1 .ssh]$ scp authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
scp: /home/oracle/.ssh/authorized_keys: No such file or directory
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
scp: /home/oracle/.ssh/authorized_keys: No such file or directory
[oracle@rac1 .ssh]$ scp -r ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
scp: /home/oracle/.ssh/authorized_keys: No such file or directory
[oracle@rac1 .ssh]$ scp -r ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
authorized_keys 100% 994 1.0KB/s 00:00
[oracle@rac1 .ssh]$ ssh rac2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ ssh rac2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
authorized_keys 100% 1988 1.9KB/s 00:00
[oracle@rac1 .ssh]$ ssh rac1
The authenticity of host 'rac1 (192.168.33.12)' can't be established.
RSA key fingerprint is 73:46:50:dc:82:c7:12:be:54:70:53:f4:41:e0:56:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,192.168.33.12' (RSA) to the list of known hosts.
-bash: /home/oracle/.bash_profile: line 31: syntax error near unexpected token `then'
-bash: /home/oracle/.bash_profile: line 31: `if[$USER="oracle"]||[$USER="grid"]; then'
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
-bash: /home/oracle/.bash_profile: line 31: syntax error near unexpected token `then'
-bash: /home/oracle/.bash_profile: line 31: `if[ $USER = "oracle" ]||[ $USER = "grid" ]; then'
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
-bash: /home/oracle/.bash_profile: line 31: syntax error near unexpected token `then'
-bash: /home/oracle/.bash_profile: line 31: `if[ $USER = "oracle" ]||[ $USER = "grid" ];then'
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
su: 密码不正确
[oracle@rac1 ~]$ su - oracle
口令:
-bash: /home/oracle/.bash_profile: line 32: syntax error near unexpected token `then'
-bash: /home/oracle/.bash_profile: line 32: ` if[$SHELL = "/bin/ksh"];then'
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ ssh rac2
-bash: ulimit: max user processes: cannot modify limit: 不允许的操作
-bash: /home/oracle: is a directory
[oracle@rac2 ~]$ ssh rac1
The authenticity of host 'rac1 (192.168.33.12)' can't be established.
RSA key fingerprint is 73:46:50:dc:82:c7:12:be:54:70:53:f4:41:e0:56:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,192.168.33.12' (RSA) to the list of known hosts.
Last login: Thu Apr 26 01:10:16 2012 from rac1
[oracle@rac1 ~]$ ssh rac2
Last login: Thu Apr 26 01:23:17 2012 from rac1
-bash: ulimit: max user processes: cannot modify limit: 不允许的操作
-bash: /home/oracle: is a directory
[oracle@rac2 ~]$ vi /etc/security/limits.conf
[oracle@rac2 ~]$ su - rootr
su: 用户 rootr 不存在
[oracle@rac2 ~]$ su - root
口令:
[root@rac2 ~]# ssh rac1
The authenticity of host 'rac1 (192.168.33.12)' can't be established.
RSA key fingerprint is 73:46:50:dc:82:c7:12:be:54:70:53:f4:41:e0:56:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,192.168.33.12' (RSA) to the list of known hosts.
root@rac1's password:
Last login: Wed Apr 25 20:55:47 2012 from 192.168.33.110
[root@rac1 ~]# vi /etc/security/limits.conf
[root@rac1 ~]# vi /etc/security/limits.conf
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ pwd
/home/oracle
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ ssh rac2
Last login: Thu Apr 26 01:30:44 2012 from rac1
[oracle@rac2 ~]$
[oracle@rac2 ~]$
[oracle@rac2 ~]$ ssh rac1
Last login: Thu Apr 26 01:23:51 2012 from rac2
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ sshh rac1 date
-bash: sshh: command not found
[oracle@rac1 ~]$ ssh rac1 date
2012年 04月 26日 星期四 01:42:42 CST
[oracle@rac1 ~]$ ssh rac2 date
2012年 04月 26日 星期四 01:42:18 CST
[oracle@rac1 ~]$ ssh rac21priv date
[oracle@rac1 ~]$ ssh rac1priv date
ssh: connect to host rac1priv port 22: No route to host
[oracle@rac1 ~]$ vi /et/chosts
[oracle@rac1 ~]$ vi /etc/hosts
[oracle@rac1 ~]$ ssh rac1priv date
ssh: connect to host rac1priv port 22: No route to host
[oracle@rac1 ~]$ vi /etc/hosts
[oracle@rac1 ~]$ ssh rac1-priv date
The authenticity of host 'rac1-priv (192.168.1.219)' can't be established.
RSA key fingerprint is 73:46:50:dc:82:c7:12:be:54:70:53:f4:41:e0:56:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1-priv,192.168.1.219' (RSA) to the list of known hosts.
2012年 04月 26日 星期四 01:51:50 CST
[oracle@rac1 ~]$ ssh rac2-priv date
The authenticity of host 'rac2-priv (192.168.1.221)' can't be established.
RSA key fingerprint is ce:bf:7f:23:52:20:d3:82:4d:09:a4:c6:d3:24:0f:d4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2-priv,192.168.1.221' (RSA) to the list of known hosts.
2012年 04月 26日 星期四 01:51:43 CST
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - root
口令:
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ ifconfig
-bash: ifconfig: command not found
[oracle@rac1 ~]$ su - root
口令:
[root@rac1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:DD:95:86
inet addr:192.168.33.12 Bcast:192.168.33.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3539621 errors:0 dropped:0 overruns:0 frame:0
TX packets:1659292 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2785333226 (2.5 GiB) TX bytes:96890490 (92.4 MiB)
eth1 Link encap:Ethernet HWaddr 00:0C:29:DD:95:90
inet addr:192.168.1.219 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46176 errors:0 dropped:0 overruns:0 frame:0
TX packets:10951 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3171963 (3.0 MiB) TX bytes:464955 (454.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18055 errors:0 dropped:0 overruns:0 frame:0
TX packets:18055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10000940 (9.5 MiB) TX bytes:10000940 (9.5 MiB)
[root@rac1 ~]# cd /opt
[root@rac1 opt]# ls
oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5debug-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-support-2.1.7-1.el5.x86_64.rpm
[root@rac1 opt]# mv oracleasm-2.6.18-238.12.1.el5debug-2.0.5-1.el5.x86_64.rpm /
[root@rac1 opt]# mv oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm /
[root@rac1 opt]# ls
oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm oracleasm-support-2.1.7-1.el5.x86_64.rpm
[root@rac1 opt]# mv oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm /
[root@rac1 opt]# rpm -ivh *.rpm
warning: oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.18-238.12########################################### [ 67%]
3:oracleasmlib ########################################### [100%]
[root@rac1 opt]#
login as: root
root@192.168.33.12's password:
Access denied
root@192.168.33.12's password:
Last login: Wed Apr 25 20:23:40 2012
[root@rac1 ~]# /usr/sbin/groupadd -g 501 oinstall
[root@rac1 ~]# /usr/sbin/groupadd -g 502 dba
[root@rac1 ~]# /usr/sbin/groupadd -g 503 oper
[root@rac1 ~]# /usr/sbin/groupadd -g 504 asdadmin
[root@rac1 ~]# /usr/sbin/groupadd -g 505 asmoper
[root@rac1 ~]# /usr/sbin/groupadd -g 506 asmdba
[root@rac1 ~]# /usr/sbin/groupadd -g 506 asmddmin,asmdba,asmoper,oper,dba grid
Usage: groupadd [options] group
Options:
-f, --force force exit with success status if the specified
group already exists
-r, create system account
-g, --gid GID use GID for the new group
-h, --help display this help message and exit
-K, --key KEY=VALUE overrides /etc/login.defs defaults
-o, --non-unique allow create group with duplicate
(non-unique) GID
[root@rac1 ~]# /usr/sbin/groupadd -g 506 asmddmin,asmdba,asmoper,oper,dba,grid
groupadd:asmddmin,asmdba,asmoper,oper,dba,grid 不是有效的组名
[root@rac1 ~]# /usr/sbin/useradd -g oinstall -G dba,asmdba,oper,oracle
useradd:未知的组 oracle
[root@rac1 ~]# /usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
[root@rac1 ~]# /usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
useradd:未知的组 asmadmin
[root@rac1 ~]# /usr/sbin/groupadd -g 504 asmadmin
groupadd:GID 504 并不唯一
[root@rac1 ~]# id 50\4
id: 504:无此用户
[root@rac1 ~]# id 504
id: 504:无此用户
[root@rac1 ~]# /usr/sbin/groupadd -g 504 asmadmin
groupadd:GID 504 并不唯一
[root@rac1 ~]# /usr/sbin/groupadd -g oinstall -G asmadmin,asmdba,asmoper,oper,db a grid
groupadd: invalid group ID 'oinstall'
[root@rac1 ~]# /usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
[root@rac1 ~]# id oracle
uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(as mdba)
[root@rac1 ~]# mkdir /oracle/app
mkdir: 无法创建目录 “/oracle/app”: 没有那个文件或目录
[root@rac1 ~]# mkidr /oracle
-bash: mkidr: command not found
[root@rac1 ~]# mkdir /oracle
[root@rac1 ~]# mkdir /oracle/app
[root@rac1 ~]# chown -R grid:oinstall /oracle/app/
[root@rac1 ~]# chown -R 775 /oracle/app/
[root@rac1 ~]# mkdir -p /oracle/app/OraInventory
[root@rac1 ~]# rm -rf /oracle/app/OraInventory/
[root@rac1 ~]# mkdir -p /oracle/app/oraInventory
[root@rac1 ~]# chmod -R 775 /oracle/app/oraInventory/
[root@rac1 ~]# mkdir -p /oracle/app/grid
[root@rac1 ~]# mkdir -p /oracle/app/oracle
[root@rac1 ~]# chown -R grid:oinstall /oracle/app/grid/
[root@rac1 ~]# chown -R oracle:oinstall /oracle/app/oracle/
[root@rac1 ~]# chown -R 775 /oracle/app/oracle/
[root@rac1 ~]# chown -R 775 /oracle/app/grid/
[root@rac1 ~]# passwd grid
Changing password for user grid.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@rac1 ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@rac1 ~]# lsb release -a
-bash: lsb: command not found
[root@rac1 ~]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64 :graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:prin ting-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.7 (Final)
Release: 5.7
Codename: Final
[root@rac1 ~]# uname -a
Linux rac1 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@rac1 ~]# last
root pts/5 192.168.33.110 Wed Apr 25 20:55 still logged in
root pts/4 :0.0 Wed Apr 25 20:37 still logged in
root pts/3 :0.0 Wed Apr 25 20:36 still logged in
root pts/2 :0.0 Wed Apr 25 20:23 still logged in
root :0 Wed Apr 25 20:23 still logged in
root :0 Wed Apr 25 20:23 - 20:23 (00:00)
root pts/1 192.168.33.6 Wed Apr 25 20:12 still logged in
reboot system boot 2.6.18-274.el5 Wed Apr 25 18:55 (02:26)
root pts/1 :0.0 Wed Apr 25 18:51 - down (00:03)
root :0 Wed Apr 25 17:11 - down (01:42)
root :0 Wed Apr 25 17:11 - 17:11 (00:00)
reboot system boot 2.6.18-274.el5 Wed Apr 25 17:05 (01:48)
root pts/2 :0.0 Wed Apr 25 17:02 - down (00:01)
root pts/1 :0.0 Wed Apr 25 16:53 - down (00:10)
root :0 Wed Apr 25 16:53 - down (00:10)
root :0 Wed Apr 25 16:53 - 16:53 (00:00)
reboot system boot 2.6.18-274.el5 Wed Apr 25 16:52 (00:11)
reboot system boot 2.6.18-274.el5 Wed Apr 25 16:44 (00:07)
wtmp begins Wed Apr 25 16:44:17 2012
[root@rac1 ~]# vi /etc/security/limits.conf
[root@rac1 ~]# vi /etc/pam.d/login
[root@rac1 ~]# vi /etc/sysctl.conf
[root@rac1 ~]# /sbin/service ntpd stop
关闭 ntpd: [确定]
[root@rac1 ~]# chkconfig ntpd off
[root@rac1 ~]# ll /etc/ntp
ntp/ ntp.conf
[root@rac1 ~]# mv /etc/ntp.conf /etc/ntp.conf.org
[root@rac1 ~]# vi /dev/shm
[root@rac1 ~]# vi /dev/
Display all 193 possibilities? (y or n)
[root@rac1 ~]# vi /etc/fstab
[root@rac1 ~]# ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7400836e 4259840 root 600 4 0
0x00000000 4620289 root 644 80 2
0x7400836d 4227074 root 600 4 0
0x00000000 4653059 root 644 16384 2
0x00000000 4685828 root 644 280 2
0x00000000 4751365 root 600 393216 2 dest
0x00000000 4784134 root 600 393216 2 dest
0x00000000 4816903 root 600 393216 2 dest
0x00000000 4849672 root 600 393216 2 dest
0x00000000 4882441 root 600 393216 2 dest
0x00000000 4915210 root 600 393216 2 dest
0x00000000 4947979 root 600 393216 2 dest
0x00000000 4980748 root 600 393216 2 dest
0x00000000 5013517 root 600 393216 2 dest
0x00000000 5046286 root 600 393216 2 dest
0x00000000 5079055 root 600 393216 2 dest
0x00000000 5111824 root 600 393216 2 dest
------ Semaphore Arrays --------
key semid owner perms nsems
0x000000a7 0 root 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
[root@rac1 ~]# ipcrm
[root@rac1 ~]# df -h /dev/shm
文件系统 容量 已用 可用 已用% 挂载点
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@rac1 ~]# su - grid
[grid@rac1 ~]$ vi .bash_profile
[grid@rac1 ~]$ vi .bash_profile
[grid@rac1 ~]$ su - oracle
口令:
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ ping rac2
PING rac2 (192.168.33.13) 56(84) bytes of data.
64 bytes from rac2 (192.168.33.13): icmp_seq=1 ttl=64 time=0.532 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=2 ttl=64 time=0.204 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=3 ttl=64 time=0.137 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=4 ttl=64 time=0.132 ms
--- rac2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 0.132/0.251/0.532/0.164 ms
[oracle@rac1 ~]$ ping rac2-eth0
PING rac2-eth0 (220.250.64.19) 56(84) bytes of data.
From rac1-priv (192.168.1.219) icmp_seq=1 Destination Host Unreachable
From rac1-priv (192.168.1.219) icmp_seq=2 Destination Host Unreachable
From rac1-priv (192.168.1.219) icmp_seq=3 Destination Host Unreachable
--- rac2-eth0 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4002ms
, pipe 3
[oracle@rac1 ~]$ ping rac2-eth1
PING rac2-eth1 (220.250.64.19) 56(84) bytes of data.
--- rac2-eth1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms
[oracle@rac1 ~]$ ping 192.168.3
PING 192.168.3 (192.168.0.3) 56(84) bytes of data.
--- 192.168.3 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[oracle@rac1 ~]$ ping rac2
PING rac2 (192.168.33.13) 56(84) bytes of data.
64 bytes from rac2 (192.168.33.13): icmp_seq=1 ttl=64 time=0.166 ms
64 bytes from rac2 (192.168.33.13): icmp_seq=2 ttl=64 time=0.139 ms
--- rac2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.139/0.152/0.166/0.018 ms
[oracle@rac1 ~]$ mkdir ~/.ssh
[oracle@rac1 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
c5:6d:70:bf:b7:75:c1:8a:1f:f4:35:9c:bf:e0:59:ee oracle@rac1
[oracle@rac1 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
b7:ca:1a:14:5d:99:05:a4:c0:d7:ca:83:0a:2d:61:a1 oracle@rac1
[oracle@rac1 ~]$ cd .ssh
[oracle@rac1 .ssh]$ ls
id_dsa id_dsa.pub id_rsa id_rsa.pub
[oracle@rac1 .ssh]$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
The authenticity of host 'rac2 (192.168.33.13)' can't be established.
RSA key fingerprint is ce:bf:7f:23:52:20:d3:82:4d:09:a4:c6:d3:24:0f:d4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,192.168.33.13' (RSA) to the list of known hosts.
oracle@rac2's password:
Permission denied, please try again.
oracle@rac2's password:
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
scp: /home/oracle/.ssh/authorized_keys: No such file or directory
[oracle@rac1 .ssh]$ scp authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
scp: /home/oracle/.ssh/authorized_keys: No such file or directory
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
scp: /home/oracle/.ssh/authorized_keys: No such file or directory
[oracle@rac1 .ssh]$ scp -r ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
scp: /home/oracle/.ssh/authorized_keys: No such file or directory
[oracle@rac1 .ssh]$ scp -r ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
authorized_keys 100% 994 1.0KB/s 00:00
[oracle@rac1 .ssh]$ ssh rac2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ ssh rac2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
authorized_keys 100% 1988 1.9KB/s 00:00
[oracle@rac1 .ssh]$ ssh rac1
The authenticity of host 'rac1 (192.168.33.12)' can't be established.
RSA key fingerprint is 73:46:50:dc:82:c7:12:be:54:70:53:f4:41:e0:56:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,192.168.33.12' (RSA) to the list of known hosts.
-bash: /home/oracle/.bash_profile: line 31: syntax error near unexpected token `then'
-bash: /home/oracle/.bash_profile: line 31: `if[$USER="oracle"]||[$USER="grid"]; then'
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
-bash: /home/oracle/.bash_profile: line 31: syntax error near unexpected token `then'
-bash: /home/oracle/.bash_profile: line 31: `if[ $USER = "oracle" ]||[ $USER = "grid" ]; then'
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
-bash: /home/oracle/.bash_profile: line 31: syntax error near unexpected token `then'
-bash: /home/oracle/.bash_profile: line 31: `if[ $USER = "oracle" ]||[ $USER = "grid" ];then'
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
su: 密码不正确
[oracle@rac1 ~]$ su - oracle
口令:
-bash: /home/oracle/.bash_profile: line 32: syntax error near unexpected token `then'
-bash: /home/oracle/.bash_profile: line 32: ` if[$SHELL = "/bin/ksh"];then'
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - oracle
口令:
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ ssh rac2
-bash: ulimit: max user processes: cannot modify limit: 不允许的操作
-bash: /home/oracle: is a directory
[oracle@rac2 ~]$ ssh rac1
The authenticity of host 'rac1 (192.168.33.12)' can't be established.
RSA key fingerprint is 73:46:50:dc:82:c7:12:be:54:70:53:f4:41:e0:56:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,192.168.33.12' (RSA) to the list of known hosts.
Last login: Thu Apr 26 01:10:16 2012 from rac1
[oracle@rac1 ~]$ ssh rac2
Last login: Thu Apr 26 01:23:17 2012 from rac1
-bash: ulimit: max user processes: cannot modify limit: 不允许的操作
-bash: /home/oracle: is a directory
[oracle@rac2 ~]$ vi /etc/security/limits.conf
[oracle@rac2 ~]$ su - rootr
su: 用户 rootr 不存在
[oracle@rac2 ~]$ su - root
口令:
[root@rac2 ~]# ssh rac1
The authenticity of host 'rac1 (192.168.33.12)' can't be established.
RSA key fingerprint is 73:46:50:dc:82:c7:12:be:54:70:53:f4:41:e0:56:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,192.168.33.12' (RSA) to the list of known hosts.
root@rac1's password:
Last login: Wed Apr 25 20:55:47 2012 from 192.168.33.110
[root@rac1 ~]# vi /etc/security/limits.conf
[root@rac1 ~]# vi /etc/security/limits.conf
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ pwd
/home/oracle
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ ssh rac2
Last login: Thu Apr 26 01:30:44 2012 from rac1
[oracle@rac2 ~]$
[oracle@rac2 ~]$
[oracle@rac2 ~]$ ssh rac1
Last login: Thu Apr 26 01:23:51 2012 from rac2
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ sshh rac1 date
-bash: sshh: command not found
[oracle@rac1 ~]$ ssh rac1 date
2012年 04月 26日 星期四 01:42:42 CST
[oracle@rac1 ~]$ ssh rac2 date
2012年 04月 26日 星期四 01:42:18 CST
[oracle@rac1 ~]$ ssh rac21priv date
[oracle@rac1 ~]$ ssh rac1priv date
ssh: connect to host rac1priv port 22: No route to host
[oracle@rac1 ~]$ vi /et/chosts
[oracle@rac1 ~]$ vi /etc/hosts
[oracle@rac1 ~]$ ssh rac1priv date
ssh: connect to host rac1priv port 22: No route to host
[oracle@rac1 ~]$ vi /etc/hosts
[oracle@rac1 ~]$ ssh rac1-priv date
The authenticity of host 'rac1-priv (192.168.1.219)' can't be established.
RSA key fingerprint is 73:46:50:dc:82:c7:12:be:54:70:53:f4:41:e0:56:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1-priv,192.168.1.219' (RSA) to the list of known hosts.
2012年 04月 26日 星期四 01:51:50 CST
[oracle@rac1 ~]$ ssh rac2-priv date
The authenticity of host 'rac2-priv (192.168.1.221)' can't be established.
RSA key fingerprint is ce:bf:7f:23:52:20:d3:82:4d:09:a4:c6:d3:24:0f:d4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2-priv,192.168.1.221' (RSA) to the list of known hosts.
2012年 04月 26日 星期四 01:51:43 CST
[oracle@rac1 ~]$ vi .bash_profile
[oracle@rac1 ~]$ su - root
口令:
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ ifconfig
-bash: ifconfig: command not found
[oracle@rac1 ~]$ su - root
口令:
[root@rac1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:DD:95:86
inet addr:192.168.33.12 Bcast:192.168.33.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3539621 errors:0 dropped:0 overruns:0 frame:0
TX packets:1659292 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2785333226 (2.5 GiB) TX bytes:96890490 (92.4 MiB)
eth1 Link encap:Ethernet HWaddr 00:0C:29:DD:95:90
inet addr:192.168.1.219 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46176 errors:0 dropped:0 overruns:0 frame:0
TX packets:10951 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3171963 (3.0 MiB) TX bytes:464955 (454.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18055 errors:0 dropped:0 overruns:0 frame:0
TX packets:18055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10000940 (9.5 MiB) TX bytes:10000940 (9.5 MiB)
[root@rac1 ~]# cd /opt
[root@rac1 opt]# ls
oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5debug-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-support-2.1.7-1.el5.x86_64.rpm
[root@rac1 opt]# mv oracleasm-2.6.18-238.12.1.el5debug-2.0.5-1.el5.x86_64.rpm /
[root@rac1 opt]# mv oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm /
[root@rac1 opt]# ls
oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm oracleasm-support-2.1.7-1.el5.x86_64.rpm
[root@rac1 opt]# mv oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm /
[root@rac1 opt]# rpm -ivh *.rpm
warning: oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.18-238.12########################################### [ 67%]
3:oracleasmlib ########################################### [100%]
[root@rac1 opt]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [FAILED]
[root@rac1 opt]# Initializing the Oracle ASMLib driver: [FAILED]
-bash: Initializing: command not found
[root@rac1 opt]# vi /etc/selinux/config
[root@rac1 opt]# cat /var/log/oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"
[root@rac1 opt]# ls /lib/modules/
2.6.18-128.el5 2.6.18-238.12.1.el5 2.6.18-238.el5 2.6.18-274.el5
[root@rac1 opt]# ll
总计 256
drwxr-xr-x 3 root root 4096 04-26 02:15 oracle
-rw-r--r-- 1 root root 137416 03-06 14:50 oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 14176 03-06 16:29 oracleasmlib-2.0.4-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 91430 03-06 16:29 oracleasm-support-2.1.7-1.el5.x86_64.rpm
[root@rac1 opt]# uname -a
Linux rac1 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@rac1 opt]# ll /
总计 2298298
drwxr-xr-x 2 root root 4096 04-25 18:20 bin
drwxr-xr-x 4 root root 1024 04-25 16:35 boot
drwxr-xr-x 12 root root 3920 04-26 02:17 dev
drwxr-xr-x 110 root root 12288 04-25 21:40 etc
drwxr-xr-x 4 root root 4096 04-25 21:01 home
drwxr-xr-x 11 root root 4096 04-25 18:19 lib
drwxr-xr-x 8 root root 12288 04-25 18:19 lib64
-rw-r--r-- 1 root root 1239269270 03-15 10:28 linux.x64_11gR2_database_1of2.zip
-rw-r--r-- 1 root root 1111416131 03-15 10:23 linux.x64_11gR2_database_2of2.zip
drwx------ 2 root root 16384 04-25 16:24 lost+found
drwxr-xr-x 2 root root 4096 2011-05-11 media
drwxr-xr-x 2 root root 0 04-25 18:55 misc
drwxr-xr-x 2 root root 4096 2011-05-11 mnt
drwxr-xr-x 2 root root 0 04-25 18:55 net
drwxr-xr-x 3 root root 4096 04-26 02:15 opt
drwxr-xr-x 3 root root 4096 04-25 21:12 oracle
-rw-r--r-- 1 root root 139534 03-06 14:49 oracleasm-2.6.18-238.12.1.el5debug-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 2831 03-06 14:49 oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 136828 03-06 14:49 oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm
dr-xr-xr-x 212 root root 0 04-25 18:54 proc
drwxr-x--- 16 root root 4096 04-25 20:59 root
drwxr-xr-x 2 root root 12288 04-25 18:20 sbin
drwxr-xr-x 2 root root 4096 04-25 16:24 selinux
drwxr-xr-x 2 root root 4096 2011-05-11 srv
drwxr-xr-x 11 root root 0 04-25 18:54 sys
drwxrwxrwt 11 root root 4096 04-26 02:17 tmp
drwxr-xr-x 15 root root 4096 04-25 16:27 usr
drwxr-xr-x 23 root root 4096 04-25 16:39 var
[root@rac1 opt]# ll /oracle
oracle/
oracleasm-2.6.18-238.12.1.el5debug-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm
[root@rac1 opt]# ll /oracle
oracle/
oracleasm-2.6.18-238.12.1.el5debug-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.rpm
[root@rac1 opt]# ll /oracleuname
[root@rac1 opt]# uname -a
Linux rac1 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@rac1 opt]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarc h:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.7 (Final)
Release: 5.7
Codename: Final
[root@rac1 opt]# ls
oracle oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm oracleasm-support-2.1.7-1.el5.x86_64.rpm
[root@rac1 opt]# rm -rf oracleasm*.*
[root@rac1 opt]# ll
总计 4
drwxr-xr-x 3 root root 4096 04-26 02:15 oracle
[root@rac1 opt]#
[root@rac1 opt]#
[root@rac1 opt]# mkdir oracelasm
[root@rac1 opt]# rm -rf /oracle
oracle/ oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5.
oracleasm-2.6.18-238.12.1.el5debug-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-238.12.1.el5xen-2.0.5-1.el5.x86_64.
[root@rac1 opt]# rm -rf /oracleasm-2.6.18-238.12.1.el5*.*
[root@rac1 opt]# ls
oracelasm oracle
[root@rac1 opt]# ll
总计 8
drwxr-xr-x 2 root root 4096 04-26 02:26 oracelasm
drwxr-xr-x 3 root root 4096 04-26 02:15 oracle
[root@rac1 opt]# cd oracelasm/
[root@rac1 oracelasm]# ls
oracleasm-2.6.18-274.18.1.el5-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-274.18.1.el5-debuginfo-2.0.5-1.el5.x86_6
oracleasm-2.6.18-274.18.1.el5debug-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-274.18.1.el5xen-2.0.5-1.el5.x86_64.rpm
[root@rac1 oracelasm]# rm -ivh *.rpm
rm:无效选项 -- h
请尝试执行“rm --help”来获取更多信息。
[root@rac1 oracelasm]# rpm -ivh *.rpm
warning: oracleasm-2.6.18-274.18.1.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
error: Failed dependencies:
kernel-debug = 2.6.18-274.18.1.el5 is needed by oracleasm-2.6.18-274.18.1.el5debug-2.0.5-1.el5.x86_64
kernel-xen = 2.6.18-274.18.1.el5 is needed by oracleasm-2.6.18-274.18.1.el5xen-2.0.5-1.el5.x86_64
[root@rac1 oracelasm]# rm -rf *.*
[root@rac1 oracelasm]# ls
[root@rac1 oracelasm]#
[root@rac1 oracelasm]#
[root@rac1 oracelasm]#
[root@rac1 oracelasm]# ls
[root@rac1 oracelasm]# rpm -ivh *.rpm
warning: oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
error: Failed dependencies:
kernel-debug = 2.6.18-274.el5 is needed by oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64
kernel-xen = 2.6.18-274.el5 is needed by oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64
[root@rac1 oracelasm]# yum install oracleasm
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 9083.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS (258 MB VSZ)
Started: Thu Apr 26 01:59:03 2012 - 32:29 ago
State : Sleeping, pid: 9083
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS (258 MB VSZ)
Started: Thu Apr 26 01:59:03 2012 - 32:31 ago
State : Sleeping, pid: 9083
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS (258 MB VSZ)
Started: Thu Apr 26 01:59:03 2012 - 32:33 ago
State : Sleeping, pid: 9083
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS (258 MB VSZ)
Started: Thu Apr 26 01:59:03 2012 - 32:35 ago
State : Sleeping, pid: 9083
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS (258 MB VSZ)
Started: Thu Apr 26 01:59:03 2012 - 32:37 ago
State : Sleeping, pid: 9083
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS (258 MB VSZ)
Started: Thu Apr 26 01:59:03 2012 - 32:39 ago
State : Sleeping, pid: 9083
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS (258 MB VSZ)
Started: Thu Apr 26 01:59:03 2012 - 32:41 ago
State : Sleeping, pid: 9083
Exiting on user cancel.
[root@rac1 oracelasm]# Another app is currently holding the yum lock; waiting for it to exit...
-bash: Another: command not found
-bash: waiting: command not found
[root@rac1 oracelasm]# kill 9083
[root@rac1 oracelasm]# yum install oracleasm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirror01.idc.hinet.net
http://mirrors.163.com/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2\x 4\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://mirror01.idc.hinet.net/CentOS/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe \x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://centos.mirror.cdnetworks.com/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6 x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://mirror.bit.edu.cn/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2 x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://mirrors.sin3.sg.voxel.net/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, ' xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://mirrors.btte.net/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2\ 84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
Current download cancelled, interrupt (ctrl-c) again within two seconds to exit.
http://ftp.stu.edu.tw/Linux/CentOS/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (97, '\xe5\x 8d\x8f\xe8\xae\xae\xe4\xb8\x8d\xe6\x94\xaf\xe6\x8c\x81\xe7\x9a\x84\xe5\x9c\xb0\xe5\x9d\x80\xe6\x97\x8f')>
Trying other mirror.
http://mirror.averse.net/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2 \xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://mirrors.ta139.com/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2 \xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://mirrors.stuhome.net/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\x b2\xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://mirror.neu.edu.cn/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2 \xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://centos.tt.co.kr/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2\xa1\xe6\ x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://ftp.tc.edu.tw/Linux/CentOS/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (97, '\xe5\x8 d\x8f\xe8\xae\xae\xe4\xb8\x8d\xe6\x94\xaf\xe6\x8c\x81\xe7\x9a\x84\xe5\x9c\xb0\xe5\x9d\x80\xe6\x97\x8f')>
Trying other mirror.
http://mirrors.grandcloud.cn/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6 \xb2\xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://ftp.isu.edu.tw/pub/Linux/CentOS/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\ xe6\xb2\xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://data.nicehosting.co.kr/os/CentOS/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, ' \xe6\xb2\xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://ftp.twaren.net/Linux/CentOS/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (97, '\xe5\x 8d\x8f\xe8\xae\xae\xe4\xb8\x8d\xe6\x94\xaf\xe6\x8c\x81\xe7\x9a\x84\xe5\x9c\xb0\xe5\x9d\x80\xe6\x97\x8f')>
Trying other mirror.
http://ftp.cs.pu.edu.tw/Linux/CentOS/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe 6\xb2\xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
http://ftp.nsysu.edu.tw/CentOS/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (97, '\xe5\x8d\x 8f\xe8\xae\xae\xe4\xb8\x8d\xe6\x94\xaf\xe6\x8c\x81\xe7\x9a\x84\xe5\x9c\xb0\xe5\x9d\x80\xe6\x97\x8f')>
Trying other mirror.
http://mirrors.163.com/centos/5.8/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2\xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
Exiting on user cancel
[root@rac1 oracelasm]#
[root@rac1 oracelasm]# ls
oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-274.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm
[root@rac1 oracelasm]# rpm -ivh oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
error: Failed dependencies:
kernel-xen = 2.6.18-274.el5 is needed by oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64
[root@rac1 oracelasm]# lb_release -a
-bash: lb_release: command not found
[root@rac1 oracelasm]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.7 (Final)
Release: 5.7
Codename: Final
[root@rac1 oracelasm]# uname -a
Linux rac1 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@rac1 oracelasm]# ls
oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-274.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm
[root@rac1 oracelasm]# rpm -ivh oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
error: Failed dependencies:
kernel-debug = 2.6.18-274.el5 is needed by oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64
[root@rac1 oracelasm]# yum install kernel-debug
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirror01.idc.hinet.net
http://mirrors.163.com/centos/5.8/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (113, '\xe6\xb2\xa1\xe6\x9c\x89\xe5\x88\xb0\xe4\xb8\xbb\xe6\x9c\xba\xe7\x9a\x84\xe8\xb7\xaf\xe7\x94\xb1')>
Trying other mirror.
Current download cancelled, interrupt (ctrl-c) again within two seconds to exit.
Exiting on user cancel
[root@rac1 oracelasm]# rpm -qa|grep kernel
kernel-2.6.18-274.el5
kernel-devel-2.6.18-274.el5
kernel-headers-2.6.18-274.el5
[root@rac1 oracelasm]# rpm -ivh oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracleasm-2.6.18-274.el########################################### [100%]
[root@rac1 oracelasm]# rpm -ivh oracleasm-2.6.18-274.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-274.el5-debuginfo-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracleasm-2.6.18-274.el########################################### [100%]
[root@rac1 oracelasm]# rpm -ivh oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
error: Failed dependencies:
kernel-debug = 2.6.18-274.el5 is needed by oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64
[root@rac1 oracelasm]# rpm -ivh oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
error: Failed dependencies:
kernel-xen = 2.6.18-274.el5 is needed by oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64
[root@rac1 oracelasm]# ll
总计 65744
-rw-r--r-- 1 root root 21793089 2011-08-13 kernel-debug-2.6.18-274.el5.x86_64.rpm
-rw-r--r-- 1 root root 5947924 2011-08-13 kernel-debug-devel-2.6.18-274.el5.x86_64.rpm
-rw-r--r-- 1 root root 5883974 2011-08-13 kernel-devel-2.6.18-274.el5.x86_64.rpm
-rw-r--r-- 1 root root 3412640 2011-08-13 kernel-doc-2.6.18-274.el5.noarch.rpm
-rw-r--r-- 1 root root 1335924 2011-08-13 kernel-headers-2.6.18-274.el5.x86_64.rpm
-rw-r--r-- 1 root root 22494018 2011-08-13 kernel-xen-2.6.18-274.el5.x86_64.rpm
-rw-r--r-- 1 root root 5895942 2011-08-13 kernel-xen-devel-2.6.18-274.el5.x86_64.rpm
-rw-r--r-- 1 root root 137329 2012-04-26 oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 139813 2012-04-26 oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 2807 2012-04-26 oracleasm-2.6.18-274.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 136688 2012-04-26 oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm
[root@rac1 oracelasm]# rpm -ivh kernel-debug-2.6.18-274.el5.x86_64.rpm
warning: kernel-debug-2.6.18-274.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:kernel-debug ########################################### [100%]
[root@rac1 oracelasm]# rpm -ivh oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracleasm-2.6.18-274.el########################################### [100%]
[root@rac1 oracelasm]# ls
kernel-debug-2.6.18-274.el5.x86_64.rpm kernel-headers-2.6.18-274.el5.x86_64.rpm oracleasm-2.6.18-274.el5debug-2.0.5-1.el5.x86_64.rpm
kernel-debug-devel-2.6.18-274.el5.x86_64.rpm kernel-xen-2.6.18-274.el5.x86_64.rpm oracleasm-2.6.18-274.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
kernel-devel-2.6.18-274.el5.x86_64.rpm kernel-xen-devel-2.6.18-274.el5.x86_64.rpm oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm
kernel-doc-2.6.18-274.el5.noarch.rpm oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm
[root@rac1 oracelasm]# rpm -ivh kernel-xen-*.rpm
warning: kernel-xen-2.6.18-274.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:kernel-xen-devel ########################################### [ 50%]
2:kernel-xen ########################################### [100%]
[root@rac1 oracelasm]# rpm -ivh kernel-doc-2.6.18-274.el5.noarch.rpm
warning: kernel-doc-2.6.18-274.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:kernel-doc ########################################### [100%]
[root@rac1 oracelasm]# rpm -ivh oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-274.el5xen-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracleasm-2.6.18-274.el########################################### [100%]
[root@rac1 oracelasm]#
相关内容推荐 |
CopyRight 1999-2011 itpub.net All Right Reserved. 北京皓辰网域网络信息技术有限公司版权所有 联系我们 网站律师 隐私政策 知识产权声明
京ICP证:060528号 北京市公安局海淀分局网监中心备案编号:1101082001 广播电视节目制作经营许可证:编号(京)字第1149号
回顶部
京ICP证:060528号 北京市公安局海淀分局网监中心备案编号:1101082001 广播电视节目制作经营许可证:编号(京)字第1149号