ORACLE_DBをX86_64のOLE6.0-R1にインストールしようとしたがインストレーションガイドのメモリ要件で4GBを要求された。X86の32bitであれば1GBで要件を満たすのでLinuxからインストールしなおすことに決定!
| RAM | スワップ領域 |
| 1~2GB | RAMのサイズの1.5倍 |
| 2~16GB | RAMのサイズと同じ |
| 16GB超 | 16GB |
# mkdir -p /u01/app/oracle # chown -R oracle:oinstall /u01/app/oracle # chmod -R 775 /u01/app/oracle
$ ORACLE_BASE=/u01/app/oracle $ ORACLE_SID=orcl $ export ORACLE_BASE ORACLE_SID
$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#2011/11/12 ORACLE install
ORACLE_BASE=/u01/app/oracle
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_SID
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH$ unzip linux_11gR2_database_1of2.zip $ unzip linux_11gR2_database_2of2.zip
$ sh ./runInstaller Oracle Universal Installerを起動中です... 一時領域の確認中: 80MBを超えている必要があります. 実際 13724MB 問題なし スワップ領域の確認中: 150MBを超えている必要があります. 実際 2303MB 問題なし モニターの確認中: 少なくとも256色表示するよう設定されている必要があります. 実際 16777216 問題なし Oracle Universal Installerの起動を準備中 /tmp/OraInstall2011-11-13_01-58-02AM. お待ちください... $
#ref(): File not found: "DB_0156.JPG" at page "ORACLE/5_OracleInstallMain"
#ref(): File not found: "DB_0157.JPG" at page "ORACLE/5_OracleInstallMain"
# sh /u01/app/oraInventory/orainstRoot.sh 権限を変更中 /u01/app/oraInventory. グループの読取り/書込み権限を追加中。 全ユーザーの読取り/書込み/実行権限を削除中。 グループ名の変更 /u01/app/oraInventory 宛先 oinstall. スクリプトの実行が完了しました。
# sh /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#2011/11/12 ORACLE install
ORACLE_BASE=/u01/app/oracle
ORACLE_SID=orcl
ORACLE_OWNER=oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
NLS_LANG=Japanese_Japan.JA16SJIS
export ORACLE_BASE ORACLE_SID ORACLE_OWNER ORACLE_HOME NLS_LANG
# User specific environment and startup programs
##PATH=$PATH:$HOME/bin
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/u01/app/oracle/product/11.2.0/dbhome_1/OPatch
export PATH