In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Some time do not install oracle, feel a bit raw, so make a note, convenient later installation deployment, but also can share with you.
This installation is the process of deploying Oracle 11GR 2 under CentOs 6.4 (64bit)
You can go online to download the relevant package, oracle installation package is best to go to the official website to download, note: oracle installation package official website has two compressed files, after downloading need to extract in a folder inside to use oh--"Address:
www.oracle.com
First, check whether Linux is enough 1 G(here must pay special attention to a lot of students are not successful installation because of insufficient memory):
# grep MemTotal /proc/meminfo
MemTotal: 1250112 kB
Notice: The official documentation says
Minimum: 1 GB of RAM
Recommended: 2 GB of RAM or more
Check the size of the swap partition:
# grep SwapTotal /proc/meminfo
SwapTotal: 2523128 kB
Notice: The official documentation says
RAM
Swap Space
Between 1 GB and 2 GB
1.5 times the size of the RAM
Between 2 GB and 16 GB
Equal to the size of the RAM
More than 16 GB
16 GB
3. Check whether there is enough space for/tmp for 1 G:
# df -h /tmp
File system capacity used Available Used %% mount points
/dev/mapper/vg_studyserver-lv_root
50G 13G 35G 26% /
(As long as the/partition is large enough to be larger than 25GB,/tmp will be larger than 1 GB)
4. Check the version of Linux system, mainly to see whether it is 64bit or 32bit:
# cat /proc/version
Linux version 2.6.32-358.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 00:31:26 UTC 2013
5. Check the rpm package:
2、Oracle Database Package Requirements for Linux x86-64(64bit)
Operating System
Requirement
Oracle Linux 4 and Red Hat Enterprise Linux 4
The following packages (or later versions) must be installed:
binutils-2.15.92.0.2
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
expat-1.95.7
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-2.3.4-2.41 (32 bit)
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-0.3.105
libaio-0.3.105 (32 bit)
libaio-devel-0.3.105
libaio-devel-0.3.105 (32 bit)
libgcc-3.4.6
libgcc-3.4.6 (32-bit)
libstdc++-3.4.6
libstdc++-3.4.6 (32 bit)
libstdc++-devel 3.4.6
make-3.80
numactl-0.6.4.x86_64
pdksh-5.2.14
sysstat-5.0.5
Asianux Server 3, Oracle Linux 5, and Red Hat Enterprise Linux 5
The following packages (or later versions) must be installed:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
Oracle Linux 6 and Red Hat Enterprise Linux 6
The following packages (or later versions) must be installed:
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)
unixODBC-2.2.14-11.el6 (x86_64) or later
unixODBC-2.2.14-11.el6.i686 or later
unixODBC-devel-2.2.14-11.el6 (x86_64) or later
unixODBC-devel-2.2.14-11.el6.i686 or later
Command to see if this package is installed:
The tips are as follows:
# rpm -aq |grep binutils ---> Examples-> Find out if this package is installed
# ls -l compat-libstdc++*--> Example--> Find out if there is this rpm package in the mirror
# yum -y install unixODBC-devel-2.2.14-12.el6_3.i686 ----> Notice this example
If not installed, install yum or rpm.
The contents in the above table are copied from the official documentation. I use CentOs 6.4 X86_X64 here, which is the same as Red Hat Enterprise Linux 6.
VI. Configure IP and hostname:
1、
first configure
Static IP (must be static): this is to enable Linux to access the Internet
2、
modify the configuration file
Vi /etc/hosts
1. Configure static IP first (note that IP must be static), so that Linux and host machines under virtual machines ping each other;
2. Modify the configuration file
# vi /etc/hosts
The file/etc/hosts contains the following:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.111 oracle
#::1 localhost6.localdomain6 localhost6
Explanation: /ext/hosts only red useful---> 192.168.1.111 oracle where 192.168.1.111 is the Linux IP address, oracle is the Linux host name
You can check the host name by # hostname. If not, see the next step.
One more change (change Linux hostname):
#vi /etc/sysconfig/network
Change HOSTNAME= to oracle consistent with the oracle of/etc/hosts above;
VII. Confirm whether selinux and iptables are disabled:
# vi /etc/selinux/config
SELINUX=disabled This step must be set, otherwise there will be problems
service iptables stop Close firewall
Create the required operating system users and groups:
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd -g 502 dba
# /usr/sbin/useradd -u 502 -g oinstall -G dba oracle
# passwd oracle
Capture time of screen clip: Tuesday 9/24/2013 15:47
9. Create oracle base directory folder
# mkdir -pv /u01/app/oracle
# chown -R oracle:oinstall /u01/
# chmod -R 775 /u01/app/oracle
Edit environment variables (/home/oracle/.bash_profile)
# su - oracle
# vi .bash_profile (screenshot at the end)
Add the following:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export ORACLE_SID=orcl
export NLS_LANG=American_America.ZHS16GBK
export PATH=$PATH:$ORACLE_HOME/bin
export LANG=en_US
11. Restart once, and then:
Here you need to upload the oracle installation package to Linux using ssh secure and other tools, but remember: change the permissions of the decompressed installation package oracle:oinstall
# xhost +
access control disabled, clients can connect from any host
# su - oracle --> Then log in with oracle user
$ cd /u01/database ---> Then switch to oracle 11g r2 source file directory
$ ./ runInstaller ---》Execute./ runInstaller
Then you can install it. The installation process and the installation under window are almost the same. In the middle, you may need to execute several scripts.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.