Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos7 install oracle 11G

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. View the system version number:

Uname-a

Linux node2 3.10.0-123.el7.x86_64 # 1 SMP Mon Jun 30 12:09:22 UTC 2014 x86 "64 GNU/Linux

Cat / etc/redhat-release

# CentOS Linux release 7.0.1406 (Core) comment out the previous version number

Redhat-7 add manually

two。 Establish users and groups

Groupadd oinstall

Groupadd dba

Useradd-g oinstall-g dba-m oracle

Passwd oracle

Create home directory, data directory and dictionary directory and authorize

Mkdir-p / 01/app/oracle/oraclebase

Mkdir / 01/app/oracle/oralnventory

Chown-R oracle.oinstall / 01/app/oracle/oraclebase/

Chown-R oracle.oinstall / 01/app/oracle/oralnventory/

3. Modify the system kernel

Cat / etc/sysctl.conf

Net.ipv4.icmp_echo_ignore_broadcasts = 1

Net.ipv4.conf.all.rp_filter = 1

Fs.file-max = 6815744 # set the maximum number of open files

Fs.aio-max-nr = 1048576

Kernel.shmall = 2097152 # total shared memory, 8G memory setting: 2097152*4k/1024/1024

Kernel.shmmax = 2147483648 # Segment size of maximum shared memory

Kernel.shmmni = 4096 # the maximum number of shared memory sides of the entire system

Kernel.sem = 250 32000 100 128

Net.ipv4.ip_local_port_range = 9000 65500 # range of IPv4 ports available

Net.core.rmem_default = 262144

Net.core.rmem_max= 4194304

Net.core.wmem_default= 262144

Net.core.wmem_max= 1048576

Save exit execute the following command to take effect

Sysctl-p

4. Set a limit on the number of open files for oracle users

Vim + / etc/security/limits.conf adds the following command to the last line of the file

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofie 65535

5. Modify user environment variables

Vim + / home/oracle/.bash_profile

Export ORACLE_BASE=/01/app/oracle/ # oracle database installation directory

Export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 # oracle database path

Export ORACLE_SID=orcl # oracle startup database instance name

Export ORACLE_TERM=xterm # xterm window mode installation

Export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH # add system environment variables

Export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib # add system environment variables

Export # prevent garbled during installation

Export NLS_LANG=AMERICAN_AMERICA.ZHS4GBK # sets the oracle client character set, which must be consistent with the character set set when oracle is installed.

Execute the following command after keeping exiting:

Source / home/oracle/.bash_profile takes effect immediately

6. Detect dependency packages

Binutils-2.23.52.0.1-12.el7.x86_64

Compat-libcap1-1.10-3.el7.x86_64

Gcc-4.8.2-3.el7.x86_64 gcc-c++-4.8.2-3.el7.x86_64

Glibc-2.17-36.el7.i686 glibc-2.17-36.el7.x86_64

Glibc-devel-2.17-36.el7.i686 glibc-devel-2.17-36.el7.x86_64

Ksh

Libaio-0.3.109-9.el7.i686 libaio-0.3.109-9.el7.x86_64

Libaio-devel-0.3.109-9.el7.i686

Libaio-devel-0.3.109-9.el7.x86_64

Libgcc-4.8.2-3.el7.i686 libgcc-4.8.2-3.el7.x86_64

Libstdc++-4.8.2-3.el7.i686

Libstdc++-4.8.2-3.el7.x86_64

Libstdc++-devel-4.8.2-3.el7.i686

Libstdc++-devel-4.8.2-3.el7.x86_64

LibXi-1.7.2-1.el7.i686 libXi-1.7.2-1.el7.x86_64

LibXtst-1.2.2-1.el7.i686

LibXtst-1.2.2-1.el7.x86_64

Make-3.82-19.el7.x86_64

Sysstat-10.1.5-1.el7.x86_64

Install the required packages

Yum install gcc* gcc-* gcc-c++-* glibc-devel-* glibc-headers-* compat-libstdc* libstdc* elfutils-libelf-devel* libaio-devel* sysstat* unixODBC-* pdksh-* binutils-y

Export DISPLAY=192.168.1.234:0.0 output screen

Because 64 packages are installed, installing i386 packages again will cause errors, but use rpm's-- force option to force installation to Linux learning, http:// linux.it.net.cn

# rpm-ivh-force libaio-0.3.106-5.i386.rpm

# rpm-ivh-- force compat-libstdc++-33-3.2.3-61.i386.rpm

# rpm-ivh-force libaio-devel-0.3.106-5.i386.rpm

# rpm-ivh-force libgcc-4.1.2-52.el5.i386.rpm

# rpm-ivh-force pdksh-5.2.14-37.el5.x86_64.rpm

# rpm-ivh-force unixODBC-libs-2.2.11-10.el5.i386.rpm

# rpm-ivh-force unixODBC-2.2.11-10.el5.i386.rpm

# rpm-ivh-force libstdc++-4.1.2-52.el5.i386.rpm

# rpm-ivh-force unixODBC-devel-2.2.11-10.el5.i386.rpm

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report