| 1. |
启动具有 OEL5GA 的 DVD 或 disc1(CD) 的计算机。
|
| 2. |
在“boot:”提示符下按 ENTER 键。
注:如果您在 60 秒之内没有按 ENTER 键,那么安装程序将 自动转至下一步。这没问题!
|
| 3. |
屏幕显示:“Welcome to Enterprise Linux”“CD Found”
按 Tab 键,高亮显示“Skip”。 按 Enter 键。
|
| 4. |
屏幕显示:“Welcome to Enterprise Linux”GUI
单击 Next。
|
| 5. |
屏幕显示:“Language Selection”
选择相应语言。 单击 Next。
|
| 6. |
屏幕显示:“Keyboard Configuration”
选择相应键盘。 单击 Next。
|
| 7. |
屏幕显示:“Warning”。阅读警告。
单击 Yes。
注:如果目标硬件中已有 Linux 系统,将在“Install Enterprise Linux”或“Upgrade an existing Installation”间给出一个选项。
|
| 8. |
屏幕显示:“Disk Partitioning”
选中 Review and Modify partitioning layout。 单击 Next。
|
| 9. |
屏幕显示:“Warning”
针对每个警告单击 Yes。
注:每一定义的磁盘都将出现该警告。
|
| 10. |
屏幕显示:“Disk Partitioning”
使用右边的滑动条查看磁盘配置。
单击 Next。
|
| 11. |
屏幕显示:“Boot Loader Configuration”
单击 Next。
|
| 12. |
屏幕显示:“Network Configuration”
从 Network Devices 选择 eth0。 选中 Active on Boot。 单击 Edit。
|
| 13. |
屏幕显示:“Edit Interface eth0”
取消选中 Use dynamic IP configuration (DHCP) 取消选择 Enable IPv6 support IP 地址:192.168.203.11 子网掩码:255.255.255.0 单击 OK。
|
| 14. |
屏幕显示:“Network Configuration”
在“Hostname”/ Set the hostname: 下 选择 manually 输入主机名:stctestbox01.us.oracle.com
在“Miscellaneous Settings”下 Gateway:192.168.203.2 Primary DNS:144.20.190.70 Secondary DNS: 138.2.202.15
单击 Next。
|
| 15. |
屏幕显示:“Time Zone Selection”
选择相应时区。 单击 Next。
|
| 16. |
屏幕显示:“Set Root Password”
输入一个安全的口令。
|
| 17. |
选中 Software Development 旁边的框。选择 Customize now。单击 Next。
|
| 18. |
选择 Development。选中 Legacy Software Development 旁边的框。
|
| 19. |
选择 Base System。选中 Legacy Software Development 旁边的框。单击 Optional packages。
|
| 20. |
选中 compat-db 旁边的框。单击 Close。
|
| 21. |
选择 Base System。选中 System Tools 旁边的框。单击 Optional packages。
|
| 22. |
向下滑动,选中 sysstat 旁边的框。单击 Close。
|
| 23. |
单击 Next。
|
| 24. |
单击 Next。
|
| 25. |
安装程序包。
|
| 26. |
单击 Reboot。
|
| 27. |
单击 Forward。
|
| 28. |
阅读许可协议。如果同意,选择 Yes,I agress to the License Agreement。
单击 Forward。
|
| 29. |
单击 Firewall 下拉菜单,选择 Disabled。单击 Forward。
|
| 30. |
阅读警告。单击 Yes。
|
| 31. |
单击 SELinux Setting 下拉菜单,选择 Disabled。单击 Forward。
|
| 32. |
阅读警告。单击 Yes。
|
| 33. |
单击 Forward。
|
| 34. |
设置正确的日期和时间。单击 Forward。
|
| 35. |
单击 Forward。
|
| 36. |
阅读警告。单击 Continue。
|
| 37. |
单击 Forward。
|
| 38. |
单击 Finished。单击 OK。
|
| 39. |
操作系统安装完成。
登录。用户 root。口令 oracle。
|
| 40. |
打开一个终端窗口。打开终端窗口的两种方法:
1. 右键单击桌面,选择 Open Terminal。
2. 从菜单栏中选择 Applications -> Accessories -> Terminal。
|
| 41. |
安装其他 Oracle 数据库安装所需的 RPM。
放入操作系统安装介质。
在打开的终端窗口中,执行以下命令:
mkdir /media/cdrom
mount -t iso9660 -o ro /dev/cdrom /media/cdrom
cd /media/cdrom/Server
|
| 42. |
安装 RPM libaio-devel。
执行:
rpm -ivh libaio-devel*rpm
|
| 43. |
安装 RPM unixODBC 和 unixODBC-devel。
执行:
rpm -ivh unixODBC-2*rpm unixODBC-devel-2*rpm
|
| 1. |
以 root 身份打开终端窗口,执行以下步骤:
编辑 /etc/hosts。文件应当包含类似以下的文本:
127.0.0.1 localhost.localdomain localhost
192.168.203.11 stctestbox01.us.oracle.com stctestbox01
|
| 2. |
现在检查 /etc/hosts 了解网络设置是否正确。
在终端窗口中执行以下命令 hostname cat /etc/hosts | grep `eval hostname`
注:上面在 eval 前和 hostname 后的字符不是单引号,而是一个重音符。在标准 US 键盘上,重音符键位于左上角,与代字号位于同一键上。
结果应类似如下所示:
stctestbox01.us.oracle.com
192.168.203.11 stctestbox01.us.oracle.com stctestbox01
|
| 3. |
配置内核。
编辑 /etc/sysctl.conf。
将以下内容添加至文件:
# Kernel paramaters required by Oracle 11gR1
fs.file-max = 6553600 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144
|
| 4. |
要使 /etc/sysctl.conf 更改立即生效,执行以下命令。
sysctl -p
|
| 5. |
编辑 /etc/security/limits.conf。
添加以下行:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
|
| 6. |
编辑 /etc/pam.d/login。
添加以下行:
session required /lib/security/pam_limits.so
session required pam_limits.so
|
| 7. |
编辑 /etc/profile。
添加以下行:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
|
| 8. |
创建操作系统用户,作为软件安装和支持组的拥有者。
groupadd oinstall
groupadd dba
groupadd oper
useradd oracle
usermod -g oinstall -G dba,oper,oracle oracle
passwd oracle
|
| 9. |
编辑 /home/oracle/.bash_profile。
添加以下行:
umask 022
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:$PATH
export PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID
|
| 10. |
创建软件安装目录。
mkdir -p /u01/app
chown root:oinstall /u01/app
|