株のポジショントレード(数週間~数ヵ月)、ブックビルディングの記録。でしたが、今はoracleの備忘録。
×
[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
・Linuxのcvuqdiskパッケージのインストール
[root@db01eth0 ~]# rpm -qi cvuqdisk
パッケージ cvuqdisk はインストールされていません。
[root@db01eth0 ~]# export CVUQDISK_GRP=dba
[root@db01eth0 ~]# printenv CVUQDISK_GRP
dba
[root@db01eth0 ~]# cd /tmp
[root@db01eth0 tmp]# ls -l cvu*
-rwxr-xr-x 1 root root 5339 8月 4 2007 cvuqdisk-1.0.1-1.rpm
[root@db01eth0 tmp]# rpm -iv cvuqdisk-1.0.1-1.rpm
パッケージインストールの準備中...
cvuqdisk-1.0.1-1
[root@db01eth0 tmp]# rpm -qi cvuqdisk
Name : cvuqdisk Relocations: (not relocatable)
Version : 1.0.1 Vendor: Oracle Corp.
Release : 1 Build Date: 2005年06月03日 07時21分38秒
Install Date: 2009年12月27日 09時39分50秒 Build Host: stacs27.us.oracle.com
Group : none Source RPM: cvuqdisk-1.0.1-1.src.rpm
Size : 4168 License: Oracle Corp.
Signature : (none)
Summary : RPM file for cvuqdisk
Description :
This package contains the cvuqdisk program required by CVU.
cvuqdisk is a binary that assists CVU in finding scsi disks.
To install this package, you must first become 'root' and then set the
environment variable 'CVUQDISK_GRP' to the group that will own cvuqdisk.
If the CVUQDISK_GRP is not set, by default "oinstall" will be the owner group
of cvuqdisk.
[root@db01eth0 tmp]#
※2号機も同様に設定。
・すべてのクラスタ・ノードでのSSHの構成
[oracle@db01eth0 ~]$ pgrep sshd
2532
[oracle@db01eth0 ~]$ id
uid=200(oracle) gid=500(dba) 所属グループ=500(dba)
[oracle@db01eth0 ~]$ id oracle
uid=200(oracle) gid=500(dba) 所属グループ=500(dba)
[oracle@db01eth0 ~]$ cd
[oracle@db01eth0 ~]$ mkdir ~/.ssh
[oracle@db01eth0 ~]$ chmod 700 ~/.ssh
[oracle@db01eth0 ~]$ /usr/bin/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:
79:53:c5:ee:98:d0:0e:35:1f:3a:a1:90:ff:52:0d:d3 oracle@db01eth0
[oracle@db01eth0 ~]$ ls -l .ssh/
合計 8
-rw------- 1 oracle dba 1671 12月 27 10:00 id_rsa
-rw-r--r-- 1 oracle dba 397 12月 27 10:00 id_rsa.pub
[oracle@db01eth0 ~]$
※2号機も同様に設定。
[oracle@db01eth0 ~]$ cd .ssh
[oracle@db01eth0 .ssh]$ cat id_rsa.pub >> authorized_keys
[oracle@db01eth0 .ssh]$ ls
authorized_keys id_rsa id_rsa.pub
[root@db01eth0 ~]#
▽▽▽eth0をdhcpにしてネット接続に利用してたので、戻す▽▽▽
[oracle@db01eth0 .ssh]$ su -
パスワード:
[root@db01eth0 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
[root@db01eth0 ~]# service network restart
インターフェース eth0 を終了中: [ OK ]
インターフェース eth1 を終了中: [ OK ]
インターフェース eth2 を終了中: [ OK ]
ループバックインターフェースを終了中 [ OK ]
ループバックインターフェイスを呼び込み中 [ OK ]
インターフェース eth0 を活性化中: [ OK ]
インターフェース eth1 を活性化中: [ OK ]
インターフェース eth2 を活性化中: [ OK ]
[root@db01eth0 ~]# exit
logout
△△△eth0をdhcpにしてネット接続に利用してたので、戻す△△△
[oracle@db01eth0 .ssh]$ scp authorized_keys db02eth0:/home/oracle/.ssh/
The authenticity of host 'db02eth0 (192.168.130.2)' can't be established.
RSA key fingerprint is 72:fc:60:e6:65:dd:d7:32:23:9a:25:0a:d5:1c:ee:20.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'db02eth0,192.168.130.2' (RSA) to the list of known hosts.
oracle@db02eth0's password:
authorized_keys 100% 397 0.4KB/s 00:00
[oracle@db01eth0 .ssh]$
※Oracleマニュアルメモ
「プロンプトに従って、crsユーザーのパスワードを入力します。パスワードは、クラスタ内のすべてのノードで同じにする必要があります。」(crsユーザーというのは、この場合のoracleユーザ。)
[oracle@db01eth0 .ssh]$ ssh db02eth0
Last login: Sun Dec 27 09:54:06 2009
[oracle@db02eth0 ~]$ cd .ssh
[oracle@db02eth0 .ssh]$ ls -l
合計 12
-rw-r--r-- 1 oracle dba 397 12月 27 10:17 authorized_keys
-rw------- 1 oracle dba 1675 12月 27 10:04 id_rsa
-rw-r--r-- 1 oracle dba 397 12月 27 10:04 id_rsa.pub
[oracle@db02eth0 .ssh]$ cat id_rsa.pub >> authorized_keys
[oracle@db02eth0 .ssh]$ more authorized_keys
ssh-rsa AAAAB(省略)5Tw== oracle@db01eth0
ssh-rsa AAAAB(省略)RbQ== oracle@db02eth0
[oracle@db02eth0 .ssh]$
※これで、全ノードのpubファイルの中身がdb02eth0のauthorized_keysに書き込まれた。
(次に、このファイルをdb01eth0へ上書きコピーする。)
[oracle@db02eth0 .ssh]$ scp authorized_keys db01eth0:/home/oracle/.ssh/
The authenticity of host 'db01eth0 (192.168.130.1)' can't be established.
RSA key fingerprint is 3f:80:16:12:f2:d7:0e:ec:ee:7c:24:b4:4f:7c:19:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db01eth0,192.168.130.1' (RSA) to the list of known hosts.
oracle@db01eth0's password:
authorized_keys 100% 794 0.8KB/s 00:00
[oracle@db02eth0 .ssh]$ exit
logout
Connection to db02eth0 closed.
[oracle@db01eth0 .ssh]$ more authorized_keys
ssh-rsa AAAAB(省略)5Tw== oracle@db01eth0
ssh-rsa AAAAB(省略)RbQ== oracle@db02eth0
[oracle@db01eth0 .ssh]$
※全ホスト名の組み合わせでsshを行い、メッセージが出ないようにしておく。(1号機)
[oracle@db01eth0 .ssh]$ ssh db01eth0 date
The authenticity of host 'db01eth0 (192.168.130.1)' can't be established.
RSA key fingerprint is 3f:80:16:12:f2:d7:0e:ec:ee:7c:24:b4:4f:7c:19:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db01eth0,192.168.130.1' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:37:45 JST
[oracle@db01eth0 .ssh]$ ssh db01eth0.orbital date
The authenticity of host 'db01eth0.orbital (192.168.130.1)' can't be established.
RSA key fingerprint is 3f:80:16:12:f2:d7:0e:ec:ee:7c:24:b4:4f:7c:19:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db01eth0.orbital' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:38:07 JST
[oracle@db01eth0 .ssh]$ ssh db02eth0 date
2009年 12月 27日 日曜日 10:38:16 JST
[oracle@db01eth0 .ssh]$ ssh db02eth0.orbital date
The authenticity of host 'db02eth0.orbital (192.168.130.2)' can't be established.
RSA key fingerprint is 72:fc:60:e6:65:dd:d7:32:23:9a:25:0a:d5:1c:ee:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db02eth0.orbital' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:38:24 JST
[oracle@db01eth0 .ssh]$
※以下、再確認(1号機)
[oracle@db01eth0 .ssh]$ ssh db01eth0 date
2009年 12月 27日 日曜日 10:38:28 JST
[oracle@db01eth0 .ssh]$ ssh db01eth0.orbital date
2009年 12月 27日 日曜日 10:38:31 JST
[oracle@db01eth0 .ssh]$ ssh db02eth0 date
2009年 12月 27日 日曜日 10:38:35 JST
[oracle@db01eth0 .ssh]$ ssh db02eth0.orbital date
2009年 12月 27日 日曜日 10:38:38 JST
[oracle@db01eth0 .ssh]$
※全ホスト名の組み合わせでsshを行い、メッセージが出ないようにしておく。(2号機)
[oracle@db02eth0 ~]$ ssh db02eth0 date
The authenticity of host 'db02eth0 (192.168.130.2)' can't be established.
RSA key fingerprint is 72:fc:60:e6:65:dd:d7:32:23:9a:25:0a:d5:1c:ee:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db02eth0,192.168.130.2' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:39:25 JST
[oracle@db02eth0 ~]$ ssh db02eth0.orbital date
The authenticity of host 'db02eth0.orbital (192.168.130.2)' can't be established.
RSA key fingerprint is 72:fc:60:e6:65:dd:d7:32:23:9a:25:0a:d5:1c:ee:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db02eth0.orbital' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:39:32 JST
[oracle@db02eth0 ~]$ ssh db01eth0 date
2009年 12月 27日 日曜日 10:39:36 JST
[oracle@db02eth0 ~]$ ssh db01eth0.orbital date
The authenticity of host 'db01eth0.orbital (192.168.130.1)' can't be established.
RSA key fingerprint is 3f:80:16:12:f2:d7:0e:ec:ee:7c:24:b4:4f:7c:19:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db01eth0.orbital' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:39:43 JST
[oracle@db02eth0 ~]$
※以下、再確認(2号機)
[oracle@db02eth0 ~]$
[oracle@db02eth0 ~]$ ssh db02eth0 date
2009年 12月 27日 日曜日 10:39:46 JST
[oracle@db02eth0 ~]$ ssh db02eth0.orbital date
2009年 12月 27日 日曜日 10:39:48 JST
[oracle@db02eth0 ~]$ ssh db01eth0 date
2009年 12月 27日 日曜日 10:39:51 JST
[oracle@db02eth0 ~]$ ssh db01eth0.orbital date
2009年 12月 27日 日曜日 10:39:53 JST
[oracle@db02eth0 ~]$
※Oracleマニュアルのメモ「各ノードで、次のコマンドを入力してSSHエージェントを起動し、SSH鍵をメモリーにロードします。」とあるが、今回はSSHのパスフレーズを無しで行ったため不要。
[oracle@db01eth0 .ssh]$ xhost db01eth0
db01eth0 being added to access control list
[oracle@db01eth0 .ssh]$ echo $SHELL
/bin/bash
[oracle@db01eth0 .ssh]$ cd
[oracle@db01eth0 ~]$ vi .bash_profile
[oracle@db01eth0 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#for Oracle11gR1 RAC
umask 022
[oracle@db01eth0 ~]$ . ./.bash_profile
[oracle@db01eth0 ~]$ DISPLAY=db01eth0:0.0 ; export DISPLAY
[oracle@db01eth0 ~]$ umask
0022
[oracle@db01eth0 ~]$ printenv DISPLAY
db01eth0:0.0
[oracle@db01eth0 ~]$
※また、2号機も同様に。
[oracle@db02eth0 ~]$ xhost db02eth0
db02eth0 being added to access control list
[oracle@db02eth0 ~]$ echo $SHELL
/bin/bash
[oracle@db02eth0 ~]$ cd
[oracle@db02eth0 ~]$ vi .bash_profile
[oracle@db02eth0 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#for Oracle11gR1 RAC
umask 022
[oracle@db02eth0 ~]$ . ./.bash_profile
[oracle@db02eth0 ~]$ DISPLAY=db02eth0:0.0 ; export DISPLAY
[oracle@db02eth0 ~]$ umask
0022
[oracle@db02eth0 ~]$ printenv DISPLAY
db02eth0:0.0
[oracle@db02eth0 ~]$
※まだ続く
[oracle@db01eth0 ~]$ su -
パスワード:
[root@db01eth0 ~]#
[root@db01eth0 ~]# vi /etc/security/limits.conf
[root@db01eth0 ~]# tail -10 /etc/security/limits.conf
#ftp hard nproc 0
#@student - maxlogins 4
#for Oracle11gR1 RAC
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
# End of file
[root@db01eth0 ~]#
[root@db01eth0 ~]# vi /etc/pam.d/login
[root@db01eth0 ~]# tail -10 /etc/pam.d/login
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session include system-auth
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
#for Oracle11gR1 RAC
session required pam_limits.so
[root@db01eth0 ~]#
[root@db01eth0 ~]# vi /etc/profile
[root@db01eth0 ~]# tail -20 /etc/profile
. $i
else
. $i >/dev/null 2>&1
fi
fi
done
#for Oracle11gR1 RAC
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
unset i
unset pathmunge
[root@db01eth0 ~]#
※2号機も同様に。(コマンドは省略。)
[root@db01eth0 ~]# rpm -qi cvuqdisk
パッケージ cvuqdisk はインストールされていません。
[root@db01eth0 ~]# export CVUQDISK_GRP=dba
[root@db01eth0 ~]# printenv CVUQDISK_GRP
dba
[root@db01eth0 ~]# cd /tmp
[root@db01eth0 tmp]# ls -l cvu*
-rwxr-xr-x 1 root root 5339 8月 4 2007 cvuqdisk-1.0.1-1.rpm
[root@db01eth0 tmp]# rpm -iv cvuqdisk-1.0.1-1.rpm
パッケージインストールの準備中...
cvuqdisk-1.0.1-1
[root@db01eth0 tmp]# rpm -qi cvuqdisk
Name : cvuqdisk Relocations: (not relocatable)
Version : 1.0.1 Vendor: Oracle Corp.
Release : 1 Build Date: 2005年06月03日 07時21分38秒
Install Date: 2009年12月27日 09時39分50秒 Build Host: stacs27.us.oracle.com
Group : none Source RPM: cvuqdisk-1.0.1-1.src.rpm
Size : 4168 License: Oracle Corp.
Signature : (none)
Summary : RPM file for cvuqdisk
Description :
This package contains the cvuqdisk program required by CVU.
cvuqdisk is a binary that assists CVU in finding scsi disks.
To install this package, you must first become 'root' and then set the
environment variable 'CVUQDISK_GRP' to the group that will own cvuqdisk.
If the CVUQDISK_GRP is not set, by default "oinstall" will be the owner group
of cvuqdisk.
[root@db01eth0 tmp]#
※2号機も同様に設定。
・すべてのクラスタ・ノードでのSSHの構成
[oracle@db01eth0 ~]$ pgrep sshd
2532
[oracle@db01eth0 ~]$ id
uid=200(oracle) gid=500(dba) 所属グループ=500(dba)
[oracle@db01eth0 ~]$ id oracle
uid=200(oracle) gid=500(dba) 所属グループ=500(dba)
[oracle@db01eth0 ~]$ cd
[oracle@db01eth0 ~]$ mkdir ~/.ssh
[oracle@db01eth0 ~]$ chmod 700 ~/.ssh
[oracle@db01eth0 ~]$ /usr/bin/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:
79:53:c5:ee:98:d0:0e:35:1f:3a:a1:90:ff:52:0d:d3 oracle@db01eth0
[oracle@db01eth0 ~]$ ls -l .ssh/
合計 8
-rw------- 1 oracle dba 1671 12月 27 10:00 id_rsa
-rw-r--r-- 1 oracle dba 397 12月 27 10:00 id_rsa.pub
[oracle@db01eth0 ~]$
※2号機も同様に設定。
[oracle@db01eth0 ~]$ cd .ssh
[oracle@db01eth0 .ssh]$ cat id_rsa.pub >> authorized_keys
[oracle@db01eth0 .ssh]$ ls
authorized_keys id_rsa id_rsa.pub
[root@db01eth0 ~]#
▽▽▽eth0をdhcpにしてネット接続に利用してたので、戻す▽▽▽
[oracle@db01eth0 .ssh]$ su -
パスワード:
[root@db01eth0 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
[root@db01eth0 ~]# service network restart
インターフェース eth0 を終了中: [ OK ]
インターフェース eth1 を終了中: [ OK ]
インターフェース eth2 を終了中: [ OK ]
ループバックインターフェースを終了中 [ OK ]
ループバックインターフェイスを呼び込み中 [ OK ]
インターフェース eth0 を活性化中: [ OK ]
インターフェース eth1 を活性化中: [ OK ]
インターフェース eth2 を活性化中: [ OK ]
[root@db01eth0 ~]# exit
logout
△△△eth0をdhcpにしてネット接続に利用してたので、戻す△△△
[oracle@db01eth0 .ssh]$ scp authorized_keys db02eth0:/home/oracle/.ssh/
The authenticity of host 'db02eth0 (192.168.130.2)' can't be established.
RSA key fingerprint is 72:fc:60:e6:65:dd:d7:32:23:9a:25:0a:d5:1c:ee:20.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'db02eth0,192.168.130.2' (RSA) to the list of known hosts.
oracle@db02eth0's password:
authorized_keys 100% 397 0.4KB/s 00:00
[oracle@db01eth0 .ssh]$
※Oracleマニュアルメモ
「プロンプトに従って、crsユーザーのパスワードを入力します。パスワードは、クラスタ内のすべてのノードで同じにする必要があります。」(crsユーザーというのは、この場合のoracleユーザ。)
[oracle@db01eth0 .ssh]$ ssh db02eth0
Last login: Sun Dec 27 09:54:06 2009
[oracle@db02eth0 ~]$ cd .ssh
[oracle@db02eth0 .ssh]$ ls -l
合計 12
-rw-r--r-- 1 oracle dba 397 12月 27 10:17 authorized_keys
-rw------- 1 oracle dba 1675 12月 27 10:04 id_rsa
-rw-r--r-- 1 oracle dba 397 12月 27 10:04 id_rsa.pub
[oracle@db02eth0 .ssh]$ cat id_rsa.pub >> authorized_keys
[oracle@db02eth0 .ssh]$ more authorized_keys
ssh-rsa AAAAB(省略)5Tw== oracle@db01eth0
ssh-rsa AAAAB(省略)RbQ== oracle@db02eth0
[oracle@db02eth0 .ssh]$
※これで、全ノードのpubファイルの中身がdb02eth0のauthorized_keysに書き込まれた。
(次に、このファイルをdb01eth0へ上書きコピーする。)
[oracle@db02eth0 .ssh]$ scp authorized_keys db01eth0:/home/oracle/.ssh/
The authenticity of host 'db01eth0 (192.168.130.1)' can't be established.
RSA key fingerprint is 3f:80:16:12:f2:d7:0e:ec:ee:7c:24:b4:4f:7c:19:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db01eth0,192.168.130.1' (RSA) to the list of known hosts.
oracle@db01eth0's password:
authorized_keys 100% 794 0.8KB/s 00:00
[oracle@db02eth0 .ssh]$ exit
logout
Connection to db02eth0 closed.
[oracle@db01eth0 .ssh]$ more authorized_keys
ssh-rsa AAAAB(省略)5Tw== oracle@db01eth0
ssh-rsa AAAAB(省略)RbQ== oracle@db02eth0
[oracle@db01eth0 .ssh]$
※全ホスト名の組み合わせでsshを行い、メッセージが出ないようにしておく。(1号機)
[oracle@db01eth0 .ssh]$ ssh db01eth0 date
The authenticity of host 'db01eth0 (192.168.130.1)' can't be established.
RSA key fingerprint is 3f:80:16:12:f2:d7:0e:ec:ee:7c:24:b4:4f:7c:19:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db01eth0,192.168.130.1' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:37:45 JST
[oracle@db01eth0 .ssh]$ ssh db01eth0.orbital date
The authenticity of host 'db01eth0.orbital (192.168.130.1)' can't be established.
RSA key fingerprint is 3f:80:16:12:f2:d7:0e:ec:ee:7c:24:b4:4f:7c:19:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db01eth0.orbital' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:38:07 JST
[oracle@db01eth0 .ssh]$ ssh db02eth0 date
2009年 12月 27日 日曜日 10:38:16 JST
[oracle@db01eth0 .ssh]$ ssh db02eth0.orbital date
The authenticity of host 'db02eth0.orbital (192.168.130.2)' can't be established.
RSA key fingerprint is 72:fc:60:e6:65:dd:d7:32:23:9a:25:0a:d5:1c:ee:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db02eth0.orbital' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:38:24 JST
[oracle@db01eth0 .ssh]$
※以下、再確認(1号機)
[oracle@db01eth0 .ssh]$ ssh db01eth0 date
2009年 12月 27日 日曜日 10:38:28 JST
[oracle@db01eth0 .ssh]$ ssh db01eth0.orbital date
2009年 12月 27日 日曜日 10:38:31 JST
[oracle@db01eth0 .ssh]$ ssh db02eth0 date
2009年 12月 27日 日曜日 10:38:35 JST
[oracle@db01eth0 .ssh]$ ssh db02eth0.orbital date
2009年 12月 27日 日曜日 10:38:38 JST
[oracle@db01eth0 .ssh]$
※全ホスト名の組み合わせでsshを行い、メッセージが出ないようにしておく。(2号機)
[oracle@db02eth0 ~]$ ssh db02eth0 date
The authenticity of host 'db02eth0 (192.168.130.2)' can't be established.
RSA key fingerprint is 72:fc:60:e6:65:dd:d7:32:23:9a:25:0a:d5:1c:ee:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db02eth0,192.168.130.2' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:39:25 JST
[oracle@db02eth0 ~]$ ssh db02eth0.orbital date
The authenticity of host 'db02eth0.orbital (192.168.130.2)' can't be established.
RSA key fingerprint is 72:fc:60:e6:65:dd:d7:32:23:9a:25:0a:d5:1c:ee:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db02eth0.orbital' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:39:32 JST
[oracle@db02eth0 ~]$ ssh db01eth0 date
2009年 12月 27日 日曜日 10:39:36 JST
[oracle@db02eth0 ~]$ ssh db01eth0.orbital date
The authenticity of host 'db01eth0.orbital (192.168.130.1)' can't be established.
RSA key fingerprint is 3f:80:16:12:f2:d7:0e:ec:ee:7c:24:b4:4f:7c:19:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db01eth0.orbital' (RSA) to the list of known hosts.
2009年 12月 27日 日曜日 10:39:43 JST
[oracle@db02eth0 ~]$
※以下、再確認(2号機)
[oracle@db02eth0 ~]$
[oracle@db02eth0 ~]$ ssh db02eth0 date
2009年 12月 27日 日曜日 10:39:46 JST
[oracle@db02eth0 ~]$ ssh db02eth0.orbital date
2009年 12月 27日 日曜日 10:39:48 JST
[oracle@db02eth0 ~]$ ssh db01eth0 date
2009年 12月 27日 日曜日 10:39:51 JST
[oracle@db02eth0 ~]$ ssh db01eth0.orbital date
2009年 12月 27日 日曜日 10:39:53 JST
[oracle@db02eth0 ~]$
※Oracleマニュアルのメモ「各ノードで、次のコマンドを入力してSSHエージェントを起動し、SSH鍵をメモリーにロードします。」とあるが、今回はSSHのパスフレーズを無しで行ったため不要。
[oracle@db01eth0 .ssh]$ xhost db01eth0
db01eth0 being added to access control list
[oracle@db01eth0 .ssh]$ echo $SHELL
/bin/bash
[oracle@db01eth0 .ssh]$ cd
[oracle@db01eth0 ~]$ vi .bash_profile
[oracle@db01eth0 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#for Oracle11gR1 RAC
umask 022
[oracle@db01eth0 ~]$ . ./.bash_profile
[oracle@db01eth0 ~]$ DISPLAY=db01eth0:0.0 ; export DISPLAY
[oracle@db01eth0 ~]$ umask
0022
[oracle@db01eth0 ~]$ printenv DISPLAY
db01eth0:0.0
[oracle@db01eth0 ~]$
※また、2号機も同様に。
[oracle@db02eth0 ~]$ xhost db02eth0
db02eth0 being added to access control list
[oracle@db02eth0 ~]$ echo $SHELL
/bin/bash
[oracle@db02eth0 ~]$ cd
[oracle@db02eth0 ~]$ vi .bash_profile
[oracle@db02eth0 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#for Oracle11gR1 RAC
umask 022
[oracle@db02eth0 ~]$ . ./.bash_profile
[oracle@db02eth0 ~]$ DISPLAY=db02eth0:0.0 ; export DISPLAY
[oracle@db02eth0 ~]$ umask
0022
[oracle@db02eth0 ~]$ printenv DISPLAY
db02eth0:0.0
[oracle@db02eth0 ~]$
※まだ続く
[oracle@db01eth0 ~]$ su -
パスワード:
[root@db01eth0 ~]#
[root@db01eth0 ~]# vi /etc/security/limits.conf
[root@db01eth0 ~]# tail -10 /etc/security/limits.conf
#ftp hard nproc 0
#@student - maxlogins 4
#for Oracle11gR1 RAC
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
# End of file
[root@db01eth0 ~]#
[root@db01eth0 ~]# vi /etc/pam.d/login
[root@db01eth0 ~]# tail -10 /etc/pam.d/login
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session include system-auth
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
#for Oracle11gR1 RAC
session required pam_limits.so
[root@db01eth0 ~]#
[root@db01eth0 ~]# vi /etc/profile
[root@db01eth0 ~]# tail -20 /etc/profile
. $i
else
. $i >/dev/null 2>&1
fi
fi
done
#for Oracle11gR1 RAC
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
unset i
unset pathmunge
[root@db01eth0 ~]#
※2号機も同様に。(コマンドは省略。)
PR

カレンダー
05 | 2025/06 | 07 |
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
最新コメント
最新記事
(02/26)
(02/26)
(02/16)
(02/14)
(02/11)
最新トラックバック
プロフィール
HN:
fool
性別:
男性
職業:
会社員
自己紹介:
・国内現物&信用取引の株式のみ。
----------
・株を始めた日:2001/03/16
・〜2004年:収支が±20万の間を動いただけ。
・2005年1月より本を購入する等して再スタート。
・2005年5月よりブックビルディングに参加。
・2009年夏、トータルでマイナスになり、休止。
・過程に満足せず、結果を出すことが目標。
----------
・株を始めた日:2001/03/16
・〜2004年:収支が±20万の間を動いただけ。
・2005年1月より本を購入する等して再スタート。
・2005年5月よりブックビルディングに参加。
・2009年夏、トータルでマイナスになり、休止。
・過程に満足せず、結果を出すことが目標。
ブログ内検索