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

& # 8203nOracle installation notes

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

Share

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

Oracle installation notes

Change time only, enter: date-s 14:15:00

At the same time, modify the date and time, pay attention to add double quotation marks, there is a space between the date and time, enter: date-s "2015-08-03 14:15:00"

After modification, remember to enter: clock-w

Root user login

1. Exchange area check:

Grep MemTotal / proc/meminfo

Grep SwapTotal / proc/meminfo

2. Disk space condition

[root@localhost app] # df-h

Note that if the prompt for-bash-3.2$ appears when switching users su-oracle because of the problem of commenting out the first if statement of the oracle user. bash_profile, just let go.

System parameter modification

1. Modify the kernel

Add to / etc/sysctl.conf

# For Oracle Install

Fs.file-max = 6553600

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100 128

Net.ipv4.ip_local_port_range = 1024 65000

Net.core.rmem_default = 4194304

Net.core.rmem_max = 4194304

Net.core.wmem_default = 262144

Net.core.wmem_max = 262144

Configuration takes effect:

[root@localhost] # sysctl-p

2. Modify user resource limits

/ etc/security/limits.conf

# Oracle Install Add

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

3, login restrictions

/ etc/pam.d/login

Session required / lib/security/pam_limits.so

four,

Vim / etc/profile

If [$USER = "oracle"]; then

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

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

Installation package

1, install package check

Rpm-q gcc make binutils openmotif setarch compat-db compat-gcc\

> compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel

2, install

Rpm-Uvh compat-db-4.2.52-5.1.i386.rpm

Rpm-Uvh compat-db-4.2.52-5.1.x86_64.rpm

Rpm-Uvh libaio-0.3.106-5.i386.rpm

Rpm-Uvh libaio-0.3.106-5.x86_64.rpm

Rpm-Uvh libaio-devel-0.3.106-5.i386.rpm

Rpm-Uvh libaio-devel-0.3.106-5.x86_64.rpm

Rpm-Uvh compat-libstdc++-33-3.2.3-61.i386.rpm

Rpm-Uvh compat-libstdc++-33-3.2.3-61.x86_64.rpm

Rpm-Uvh glibc-kernheaders-2.4-9.1.98.EL.i386.rpm

Rpm-Uvh glibc-headers-2.5-49.x86_64.rpm

Rpm-Uvh glibc-devel-2.5-49.i386.rpm

Rpm-Uvh glibc-devel-2.5-49.x86_64.rpm

Rpm-Uvh compat-gcc-34-3.4.6-4.x86_64.rpm

Rpm-Uvh compat-gcc-34-c++-3.4.6-4.x86_64.rpm

Rpm-Uvh libXp-1.0.0-8.1.el5.i386.rpm

Rpm-Uvh libXp-1.0.0-8.1.el5.x86_64.rpm

Rpm-Uvh openmotif-2.3.1-2.el5_4.1.i386.rpm

Rpm-Uvh openmotif-2.3.1-2.el5_4.1.x86_64.rpm

Rpm-Uvh gcc-4.1.2-48.el5.x86_64.rpm

Rpm-Uvh gcc-c++-4.1.2-48.el5.x86_64.rpm

Rpm-Uvh glibc-2.5-49.i686.rpm

Rpm-Uvh glibc-2.5-49.x86_64.rpm

Rpm-Uvh libgomp-4.4.0-6.el5.i386.rpm

Rpm-Uvh libgomp-4.4.0-6.el5.x86_64.rpm

Rpm-Uvh binutils-2.17.50.0.6-14.el5.x86_64.rpm

Rpm-Uvh fontconfig-devel-2.4.1-7.el5.i386.rpm

Rpm-Uvh fontconfig-devel-2.4.1-7.el5.x86_64.rpm

Rpm-Uvh freetype-devel-2.2.1-21.el5_3.i386.rpm

Rpm-Uvh freetype-devel-2.2.1-21.el5_3.x86_64.rpm

Rpm-Uvh kernel-headers-2.6.18-194.el5.x86_64.rpm

Rpm-Uvh libstdc++44-devel-4.4.0-6.el5.x86_64.rpm

Rpm-Uvh libXmu-1.0.2-5.i386.rpm

Rpm-Uvh make-3.81-3.el5.x86_64.rpm

Rpm-Uvh setarch-2.0-1.1.x86_64.rpm

Rpm-Uvh sysstat-7.0.2-3.el5.x86_64.rpm

Rpm-Uvh zlib-devel-1.2.3-3.x86_64.rpm

Add user name

/ usr/sbin/groupadd oinstall

/ usr/sbin/groupadd dba

/ usr/sbin/useradd-m-g oinstall-G dba oracle

Id oracle

Passwd oracle

Modify variable

Modify the .bash _ profile file: this file is hidden in / home/oracle/.base_profile

Add the following:

# .bash _ profile

# Get the aliases and functions

If [- f ~ / .bashrc]; then

. ~ / .bashrc

Fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

Export PATH

# For Oracle Install

Export ORACLE_BASE=/home/oracle

Export ORACLE_HOME=$ORACLE_BASE/product/10g

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

Export ORACLE_OWNER=oracle

Export ORACLE_SID=mmkt11

Export NLS_LANG= "american_america.WE8ISO8859P1"

After the modification, do the following to make the settings take effect:

[root@localhost ~] # source / home/oracle/.bash_profile

Install the database

1. Create a new directory

[root@localhost /] # mkdir-p / U01

2. Assign permissions to the database installation directory

[root@localhost /] # chown-R oracle:oinstall / U01

3. Switch Oracle to enter the graphical interface and run in the installation directory.

. / instsllrun

Create database and configuration

1. Use the oracle user to enter the bin directory under the Oracle software directory and run dbca

2. Use the oracle user to enter the bin directory under the Oracle software directory and run netca

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