Install Oracle11g R2 on Linux AS4.7 x86-64bit
下載
Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86-64 | ||||||||
![]() |
linux.x64_11gR2_database_1of2.zip (1,239,269,270 bytes) (cksum - 3152418844) | |||||||
![]() |
linux.x64_11gR2_database_2of2.zip (1,111,416,131 bytes) (cksum - 3669256139) 如果要安裝11g client 及 clusterware , 那麼需要下載: Oracle Database 11g Release 2 Client (11.2.0.1.0) for Linux x86-64
|
1. Check the Linux kernel version .
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
2. Modify hostname of the server .
[root@localhost sysconfig]# pwd
/etc/sysconfig
[root@localhost sysconfig]# vi network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=dbtest
3. Modify timezone , server time, service and disable firewall (#setup).
4. Check NIC Card configuration
[root@localhost network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@localhost sysconfig]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:15:17:1D:E0:0D
inet addr:10.161.24.133 Bcast:10.161.27.255 Mask:255.255.252.0
inet6 addr: fe80::215:17ff:fe1d:e00d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2998719 errors:0 dropped:0 overruns:0 frame.:0
TX packets:1420751 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4147211452 (3.8 GiB) TX bytes:97296719 (92.7 MiB)
Memory:fdce0000-fdd00000
[root@localhost network-scripts]# more ifcfg-eth0
# Intel Corporation 82572EI Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:15:17:1d:e0:0d
ONBOOT=yes
NETMASK=255.255.252.0
IPADDR=10.161.24.133
GATEWAY=10.161.24.1
TYPE=Ethernet
5. Check hard disk free space (for example , install in the directory /u01)
[root@localhost network-scripts]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 2.0G 427M 1.5G 23% /
/dev/sda9 494M 11M 458M 3% /home
/dev/sda6 3.9G 73M 3.7G 2% /tmp
/dev/sda5 9.7G 4.9G 4.4G 53% /usr
/dev/sda3 38G 177M 36G 1% /u01
/dev/sda2 57G 3.6G 51G 7% /data
/dev/sda1 494M 17M 453M 4% /boot
tmpfs 1001M 0 1001M 0% /dev/shm
/data/rhel-server-5.4-x86_64-dvd.iso
3.4G 3.4G 0 100% /mnt
6. Check system requirement : Memory , Swap, HD .. .
7. Check rpm package required by Oracle installation .
The following or later version of packages for Asianux 2, Oracle Enterprise Linux 4, and Red Hat Enterprise Linux 4 should be installed:
• binutils-2.15.92.0.2-18
• compat-libstdc++-33.2.3-47.3
• elfutils-libelf-0.97-5
• elfutils-libelf-devel-0.97-5
• glibc-2.3.4-2.19
• glibc-common-2.3.4-2.19
• glibc-devel-2.3.4-2.19
• glibc-headers-2.3.4-2.19
• gcc-3.4.5-2
• gcc-c++-3.4.5-2
• libaio-devel-0.3.105-2
• libaio-0.3.105-2
• libgcc-3.4.5
• libstdc++-3.4.5-2
• libstdc++-devel-3.4.5-2
• make-3.80-5
• numactl-0.6.4.i386
• sysstat-5.0.5
The following or later version of packages for Asianux 3, Oracle Enterprise Linux 5, and Red Hat Enterprise Linux 5 should be installed:
• binutils-2.17.50.0.6-2.el5
• compat-libstdc++-33-3.2.3-61
• elfutils-libelf-0.125-3.el5
• elfutils-libelf-devel-0.125
• glibc-2.5-12
• glibc-common-2.5-12
• glibc-devel-2.5-12
• glibc-headers-2.5-12
• gcc-4.1.1-52
• gcc-c++-4.1.1-52
• libaio-0.3.106
• libaio-devel-0.3.106
• libgcc-4.1.1-52
• libstdc++-4.1.1
• libstdc++-devel-4.1.1-52.e15
• make-3.81-1.1
• numactl-devel-0.9.8.i386
• sysstat-7.0.0
For example , you can key In “rpm -q” to check above all packages .
[root@dbtest Server]# rpm -qa | grep compat-libstdc++
compat-libstdc++-296-2.96-138
compat-libstdc++-33-3.2.3-61
compat-libstdc++-33-3.2.3-61
OR you can check these packages by YUM .
[root@dbtest Server]# yum list |grep glibc-headers | more
This system is not registered with RHN.
RHN support will be disabled.
compat-glibc-headers.x86_64 1:2.3.4-2.26 installed
glibc-headers.x86_64 2.5-42 installed
When I installed these packages , and found that the below packages need to be installed :
• libaio-devel-0.3.106
• numactl-devel-0.9.8.i386
• sysstat-7.0.0
OK, we will mount Linux ISO or mount CD-ROM to find these rpm packages .
[root@dbtest dev]# cd /data/
[root@dbtest data]# ls
lost+found rhel-server-5.4-x86_64-dvd.iso
[root@dbtest data]# mount /data/rhel-server-5.4-x86_64-dvd.iso /mnt -o loop
[root@dbtest data]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 2.0G 420M 1.5G 23% /
/dev/sda9 494M 11M 458M 3% /home
/dev/sda6 3.9G 73M 3.7G 2% /tmp
/dev/sda5 9.7G 4.9G 4.4G 53% /usr
/dev/sda3 38G 177M 36G 1% /u01
/dev/sda2 57G 3.6G 51G 7% /data
/dev/sda1 494M 17M 453M 4% /boot
tmpfs 1001M 0 1001M 0% /dev/shm
/data/rhel-server-5.4-x86_64-dvd.iso
3.4G 3.4G 0 100% /mnt
[root@dbtest data]# cd /mnt/
We start to find these rpm packages (Notes: maybe the version is not same).
• libaio-devel-0.3.106
• numactl-devel-0.9.8.i386
• sysstat-7.0.0
Fox example :
[root@dbtest Server]# ls -alrth libaio-devel*
-r--r--r-- 333 root root 12K Jan 19 2007 libaio-devel-0.3.106-3.2.i386.rpm
-r--r--r-- 141 root root 11K Jan 19 2007 libaio-devel-0.3.106-3.2.x86_64.rpm
[root@dbtest Server]# rpm -ivh libaio-devel-0.3.106-3.2.i386.rpm
warning: libaio-devel-0.3.106-3.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libaio-devel ########################################### [100%]
[root@dbtest Server]# rpm -ivh libaio-devel-0.3.106-3.2.x86_64.rpm
warning: libaio-devel-0.3.106-3.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libaio-devel ########################################### [100%]
[root@dbtest Server]# ls -alrht numactl-devel*
-r--r--r-- 135 root root 17K Mar 18 2009 numactl-devel-0.9.8-8.el5.x86_64.rpm
-r--r--r-- 317 root root 17K Mar 18 2009 numactl-devel-0.9.8-8.el5.i386.rpm
[root@dbtest Server]# rpm -ivh numactl-devel-0.9.8-8.el5.i386.rpm
warning: numactl-devel-0.9.8-8.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:numactl-devel ########################################### [100%]
[root@dbtest Server]# rpm -ivh numactl-devel-0.9.8-8.el5.x86_64.rpm
warning: numactl-devel-0.9.8-8.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:numactl-devel ########################################### [100%]
[root@dbtest Server]# ls -alhrt sysstat*
-r--r--r-- 141 root root 175K Sep 19 2008 sysstat-7.0.2-3.el5.x86_64.rpm
[root@dbtest Server]# rpm -ivh sysstat-7.0.2-3.el5.x86_64.rpm
warning: sysstat-7.0.2-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sysstat ########################################### [100%]
8. Disable Firewall and SELinux .
[root@dbtest etc]# setup -- to disable firewall and SElinux
9. Add group and user for Oracle Installation .
[root@dbtest etc]# groupadd dba
[root@dbtest etc]# groupadd oper
[root@dbtest etc]# useradd -g dba -G oper oracle
[root@dbtest etc]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@dbtest etc]#
10. Modify the owner of “/u01” (Oracle Installation directory)
[root@dbtest /]# chown -R oracle.dba /u01
drwxr-xr-x 4 oracle dba 4.0K Aug 20 09:13 u01
11. Configure Linux kernel parameters (Physical Mem=2G)
# Configure parameters for Oracle application
kernel.shmall=524288
kernel.shmmax=2147483648
kernel.shmmni=4096
kernel.sem=250 32000 100 128
fs.file-max=200000
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
12. Add the below lines to shell limit .
[root@dbtest etc]# cd /etc/security/
[root@dbtest security]# vi limits.conf
oracle soft nproc 2047
oracle hard nproc 32768
oracle soft nofile 1024
oracle hard nofile 250000
13. Add one line to “/etc/pam.d/login”
session required pam_limits.so
14. Configure environment variable for user “oracle” .
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin
BASH_ENV=$HOME/.BASHRC
export BASH_ENV PATH
unset USERNAME
# Set Oracle Environment
ORACLE_HOME=/u01/product/oracle;export ORACLE_HOME
ORACLE_SID=test; export ORACLE_SID
ORACLE_OWNER=oracle;export ORACLE_OWNER
ORACLE_BASE=/u01/product;export ORACLE_BASE
ORACLE_TERM=vt100;export ORACLE_TERM
#NLS_LANG=' Simplified Chinese_china'. ZHS16GBK; export NLS_LANG
LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH
ORA_CRS_HOME=/u01/product/crs; export ORA_CRS_HOME
set -u
#PS1=`hostname`'$';export PS1
PS1=`hostname`'$';export PS1
EDITOR=/bin/vi; export EDITOR
JAVA_HOME=/usr/local/java;export JAVA_HOME
ORA_NLS33=/u01/product/oracle/ocommon/nls/admin/data;export ORA_NLS33
CLASSPATH=/u01/product/oracle/jdbc/lib/classesl11.zip:/usr/local/java;
export DISPLAY=127.0.0.1:0.0
# export LD_ASSUME_KERNEL=2.6.9
export LD_ASSUME_KERNEL=2.6.18
PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORA_CRS_HOME/bin:$JAVA_HOME/bin:$PATH:.;export PATH
alias ll='ls -l';
alias ls='ls --color';
alias his='history';
umask 022
15. Copy Oracle11g R2 software to local server .
dbtest$ls -alhrt
total 2.2G
drwxr-xr-x 4 oracle dba 4.0K Aug 20 09:13 ..
-rw-r--r-- 1 oracle dba 1.2G Aug 21 09:39 linux.x64_11gR2_database_1of2.zip
drwxr-xr-x 2 oracle dba 4.0K Aug 21 09:39 .
-rw-r--r-- 1 oracle dba 1.1G Aug 21 09:42 linux.x64_11gR2_database_2of2.zip
16. Login XWindow with VNC tool (Please check firewall if VNC does not work).
17. UNZIP Oracle software .
dbtest$unzip linux.x64_11gR2_database_1of2.zip
dbtest$unzip linux.x64_11gR2_database_2of2.zip
18. Start to install Oracle software .
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-672538/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Mysql 5.7.21 install for LinuxMySqlLinux
- 八、Oracle11g R2客戶端安裝圖文詳解過程Oracle客戶端
- linux之--install超時Linux
- 02. Install redis on LinuxRedisLinux
- Install linux mint apt to Ubuntu 18.04 LTSLinuxAPTUbuntu
- Linux下python pip install失敗LinuxPython
- install java javac on kali linux, raspberry piJavaLinux
- linux環境下解除安裝oracle11gLinuxOracle
- SQLServer2017_Install_for_CentOS Linux release 7.5SQLServerCentOSLinux
- Oracle Linux 7.1 silent install 19cOracleLinux
- Oracle Linux 7.1 silent install 19C RACOracleLinux
- Linux下利用指令碼靜默安裝Oracle11GLinux指令碼Oracle
- linux下使用npm install報EACCES的解決方法LinuxNPM
- Linux安裝Redis 6.0.5 ./install_server.sh報錯LinuxRedisServer
- oracle11g在linux7的靜默安裝指令碼OracleLinux指令碼
- go install: no install location for directory outside GOPATHGoIDE
- semantic-ui@2.4.2 install: `gulp install`UI
- 【DG】Oracle11g異構平臺之Linux To Windows DataGuard安裝配置--duplicateOracleLinuxWindows
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError
- 如何處理錯誤訊息Please install the Linux kernel header filesLinuxHeader
- install qdrant
- Install clickhouse
- habitat install
- Python:conda install 和pip install的區別Python
- Oracle11g解除安裝Oracle
- oracle11g dataguard切換Oracle
- Docker安裝Oracle11gDockerOracle
- before install octave package you must be install gcc-fortranPackageGC
- Linux環境安裝Oracle11g(一)——配置檢查及依賴項安裝LinuxOracle
- mvn install 命令
- KubeSphere 3.3.2 install
- kubernetes 1.25.9 install
- openwrt install lsblk
- pip install METIS
- postgreSQL install pgvectorSQL
- etcd install & configuration
- Deepin Qt InstallQT
- 《CMake實踐》筆記二:INSTALL/CMAKE_INSTALL_PREFIX筆記
- Linux環境安裝Oracle11g(四)——軟體安裝及引數最佳化LinuxOracle