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

Linux silently installs Oracle

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

Share

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

Environmental preparation:

1. Hostname:

Vim / etc/sysconfig/network

2. Local domain name interpretation

Vim / etc/hosts

# necessary dependencies # #

Yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc- gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh ksh

1 、 yum install libaio-devel

2 、 cd / mnt/Packages/

Rpm-ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm

3 、 yum install elfutils-libelf-devel

4. Upload pdksh-5.2.14-37.el5_8.1.i386

Yum install pdksh-5.2.14-37.el5_8.1.i386.rpm

# # #

I.

Vim / etc/sysctl.conf

Fs.aio-max-nr = 1048576

Fs.file-max = 6815744

Kernel.shmall = 2097152

Kernel.shmmax = 2936870912

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

Net.ipv4.tcp_wmem = 262144 262144 262144

Net.ipv4.tcp_rmem = 4194304 4194304 4194304

Pay attention to commenting out

Disable netfilter on bridges.

# net.bridge.bridge-nf-call-ip6tables = 0

# net.bridge.bridge-nf-call-iptables = 0

# net.bridge.bridge-nf-call-arptables = 0

2. Modification:

Vim / etc/security/limits.conf

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle hard stack 10240

Restart the system

Fourth, create users

Userdel-r oracle

Groupadd-g 700 oinstall

Groupadd-g 701 dba

Useradd-g oinstall-G dba-u 700 oracle

Create a directory for the Oracle installation

Mkdir-p / u01/app/oracle

Chown-R oracle.dba / u01/app

Chmod-R 777 / u01/app

Mkdir / u01/app/oraInventory

Chown-R oracle:dba / u01/app/oraInventory

Chmod-R 775 / u01/app/oraInventory

VI. Setting user variables

Su-oracle

Vim / .bashrc

Export ORACLE_BASE=/u01/app/oracle

Export ORACLE_HOME=/u01/app/oracle/product/11.2.0.1/db_1

Export ORACLE_OWNER=oracle

Export ORACLE_SID=orcl

Export ORACLE_TERM=xterm

Export LD_LIBRARY_PATH=$ORACLE_HOME/lib

Export PATH=$ORACLE_HOME/bin:$PATH

Umask 022

7.

Vim / etc/pam.d/login

Session required / lib64/security/pam_limits.so

Session required pam_limits.so

8. Install oracle software

1. Upload

2. Installation

Start silent installation

. / runInstaller-silent-ignoreSysPrereqs-showProgress-responseFile / home/oracle/db_install.rsp

Execute the script as prompted

/ u01/app/oracle/oraInventory/orainstRoot.sh/u01/app/oracle/product/11.2.0.1/db_1/root.sh

Create a listener

Netca-silent-responsefile / home/oracle/netca.rsp

Create a database

Dbca-silent-responseFile / home/oracle/dbca.rsp

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