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

Oracle 11g installation

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

Share

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

Hardware preparation: the physical memory is at least 1G. The Linux virtual machine has a capacity of 60G.

The cat / etc/redhat-release and uname-r commands check the kernel and version, and support linux5/6 2.6.32-xxxxxx and above. All the files needed during the installation are attached.

Installation steps:

Basic configuration

Configure ip to 10.0.0.1, use the setup command, and then restart the network service

Turn off the security mechanism:

[root@poem ~] # setenforce 0

[root@poem ~] # / etc/init.d/iptables stop

Modify hostname

[root@poem Desktop] # hostname jz

[root@poem Desktop] # vim / etc/sysconfig/network / / change it to jz after entering

[root@poem Desktop] # vim / etc/hosts? / / add 10.0.0.1 jz

[root@poem Desktop] # init 6 / / restart

Software installation

1. Configure yum Feed

two。 Install the following software:

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

Establish users and groups

[root@localhost ~] # groupadd oinstall

[root@localhost ~] # useradd dba

[root@localhost] # useradd-g oinstall-G dba oracle

[root@localhost ~] # passwd oracle / / password

5. Create an installation directory for oracle 11g

[root@localhost] # mkdir-p / u01Universe 11g

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

[root@localhost] # chmod-R 775 / U01

6. Set kernel parameters

[root@localhost ~] # vim / etc/sysctl.conf

[root@localhost ~] # tail-11 / etc/sysctl.conf / / add the following 11 lines at the end

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 = 1048586

And comment out or delete the following three lines

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

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

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

[root@localhost ~] # sysctl-p / / reload

7. Set environment variabl

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

[root@localhost ~] # tail / home/oracle/.bash_profile / / add the following 6 lines to the file

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

Export PATH

Export ORACLE_BASE=/u01/11g

Export ORACLE_HOME=$ORACLE_BASE/product/11.2.0

Export ORACLE_SID=ora11g

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

Export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

[root@localhost ~] # source / home/oracle/.bash_profile / / load configuration or oracle user

8. Set PAM resource limits

[root@localhost ~] # vim / etc/security/limits.conf

[root@localhost ~] # tail-5 / etc/security/limits.conf / / add the following five lines at the end

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle soft stack 10240

9. Install 0racle

1. Copy the software to the / home/oracle/ directory. If the space is not large enough, you can delete it after decompressing it.

[root@localhost ~] # pwd

/ root

[root@localhost ~] # cd / home/oracle/

[root@localhost oracle] # ll

Total 2295600

-rwxrw-rw-. 1 root root 1239269270 Sep 9 01:20 linux.x64_11gR2_database_1of2.zip

-rwxrw-rw-. 1 root root 1111416131 Sep 9 01:31 linux.x64_11gR2_database_2of2.zip

[root@localhost oracle] # unzip linux.x64_11gR2_database_1of2.zip / / decompress

[root@localhost oracle] # unzip linux.x64_11gR2_database_2of2.zip / / decompress

two。 Installation

[root@localhost database] # su-oracle

[oracle@localhost ~] $cd / home/oracle/database/

[oracle@localhost database] $. / runInstaller / / run

Starting Oracle Universal Installer...

If there is a problem: must be configured to display at least 256colors / / failed, you need to set 256colors

Then switch to root: su-root executes the following two commands

Xhost +

Xdpyinfo

If not, execute the following in the oracle directory

Export DISPLAY=:0.0

Xdpyinfo can be successful.

[oracle@localhost database] $. / runInstaller / / execute again

Enter the graphical interface, follow the prompts and see pdf. When the interface for executing the script appears, open another terminal

[root@localhost database] # cd / u01/oraInventory/

[root@localhost oraInventory] # ll

[root@localhost oraInventory] #. / orainstRoot.sh

[root@localhost oraInventory] # cd / u01/11g/product/11.2.0/

[root@localhost 11.2.0] # ll

[root@localhost 11.2.0] #. / root.sh

Click close to complete the installation 100% after the execution of the above command

test

[oracle@localhost ~] $sqlplus

Enter user-name: SYSTEM

Enter password:

Sql >

If there is a problem with the code [INS-20802] during installation, just click ok and reload it with Retry.

The first time to write a blog, a lot of forgiveness, thanks to the teachers who provided the documents.

May your efforts be rewarded at last.

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