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

How to configure the environment before oracle database installation

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

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to configure the environment before oracle database installation. I hope you will get something after reading this article. Let's discuss it together.

System version redhat5.6

1. Pre-installation environment configuration

View memory

Grep MemTotal / proc/meminfo

Grep SwapTotal / proc/meminfo

(or free-m checks both memory and swap space, which generally requires 2G of memory and 2G of swap space.)

Modify user's SHELL restrictions, modify / etc/security/limits.conf file

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle soft stack 10240

Modify / etc/pam.d/login file

Session required / lib/security/pam_limits.so

Session required pam_limits.so

Modify the linux kernel, modify the / etc/sysctl.conf file, enter the command: vi / etc/sysctl.conf

Fs.aio-max-nr = 1048576

Fs.file-max = 6815744

Kernel.shmall = 2097152

Kernel.shmmax = 4294967295

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100 128

Net.ipv4.ip_local_port_range = 9000 65500

Net.core.rmem_default = 262144

Net.core.rmem_max = 4194304

Net.core.wmem_default = 262144

Net.core.wmem_max = 1048576

Execute sysctl-p to make the sysctl.conf file effective

Edit / etc/profile to add the following to the file.

If [$USER = "oracle"]; then

If [$SHELL = "/ bin/ksh"]; then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

Create related users and groups

Groupadd-g 1000 oinstall

Groupadd-g 1001 dba

Groupadd-g 1002 oper

Useradd-u 1001 oracle-d / home/oracle-g oinstall-G dba,oper

Create a related directory and change the owner of the directory

Mkdir / u01

Chown-R oracle:oinstall / U01

Chmod-R 755 / U01

Set the environment variable .bash _ profile for oracle

Export ORACLE_BASE=/u01/app/oracle

Export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

Export ORACLE_SID=ORA11GR2

Export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

Install the lazy package under Linux (it is recommended to install it with rpm before trying to use yum)

Configure yum

/ etc/yum.repo.d/yum.repo

[redhat5u6]

Name=redhat5u6

Baseurl= file:///test/Server/

Enabled=1

Gpgcheck=0

Yum clean all

Yum list

Install as required by the official documentation

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

2. Installation process:

Unpack unzip

Generate a database folder

Configure the graphical interface

. / runInstaller--- > install software

Building database by dbca

After reading this article, I believe you have a certain understanding of "how to configure the environment before oracle database installation". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

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