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

Install Oracle 11g on Red Hat Enterprise 6.5

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

Share

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

Before installation

Check hardware requirements

Check hardware requirements

The minimum memory is 1 GB. It is recommended to use free to view 2 GB or more.

Memory at least 1G, recommend 2G and above (use command free to check)

/ tmp at least 1G

/ tmp at least 1G

Operating system requirements (OS requirement):

# cat / proc/version

Asianux Server 3 SP2

Oracle Linux 4 Update 7

Oracle Linux 5 Update 2 (with Red Hat Compatible Kernel)

Oracle Linux 5 Update 5

Oracle Linux 6

Oracle Linux 6 (with Red Hat Compatible Kernel)

Red Hat Enterprise Linux 4 Update 7

Red Hat Enterprise Linux 5 Update 2

Red Hat Enterprise Linux 5 Update 5 (with the Oracle Unbreakable Enterprise Kernel for Linux)

Red Hat Enterprise Linux 6

Red Hat Enterprise Linux 6 (with the Oracle Unbreakable Enterprise Kernel for Linux)

SUSE Linux Enterprise Server 10 SP2

SUSE Linux Enterprise Server 11

Kernel requirements (kernel requirements):

# uname-r

On Oracle Linux 4 and Red Hat Enterprise Linux 4

2.6.9 or later

On Oracle Linux 5 Update 5

2.6.32-100.0.19 or later

On Oracle Linux 5 Update 2

2.6.18 or later (with Red Hat Compatible Kernel)

On Oracle Linux 6

2.6.32-100.28.5.el6.x86_64 or later

On Oracle Linux 6

2.6.32-71.el6.x86_64 or later (with Red Hat Compatible Kernel)

On Red Hat Enterprise Linux 5 Update 5 with the Oracle Unbreakable Enterprise Kernel for Linux

2.6.32 or later

On Red Hat Enterprise Linux 6 with the Oracle Unbreakable Enterprise Kernel for Linux

2.6.32-100.28.5.el6.x86_64 or later

On Red Hat Enterprise Linux 6

2.6.32-71.el6.x86_64 or later

On Asianux Server 3, Oracle Linux 5 Update 2, and Red Hat Enterprise Linux 5 Update 2

2.6.18 or later

On SUSE Linux Enterprise Server 10

2.6.16.21 or later

On SUSE Linux Enterprise Server 11

2.6.27.19 or later

Installation:

1. Modify the sysctl.conf file and insert it at the end of the file

Edit sysctl.conf file,at the end of file add in

Vi / etc/sysctl.conf

Fs.aio-max-nr = 1048576

Fs.file-max = 6815744

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

two。 Execute sysctl-p to ensure that the output is the same as the data in the first step

Enter sysctl-p, make sure the output is the same as step 1

3. Modify limits.conf to insert at the end of the file

Edit limits.conf file,at the end of file add in

Vi / etc/security/limits.conf

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle hard stack 10241

4. Close selinux and change enforcing to disabled

Turn off selinux, change enforcing to disabled

Vi / etc/sysconfig/selinux

Selinux=disabled

5. Turn off linux Firewall

Turn off iptables

Service iptables stop

Chkconfig iptables off

6. View firewall startup status

Check iptables status

7. Configure yum

Yum configuration

Mkdir / iso

Umount / dev/sr0

Mount / dev/sr0 / iso

Vi / etc/yum.repos.d/local.repo

[server]

Name=server

Baseurl= file:///iso

Enabled=1

Gpgcheck=0

8. Yum install

Create users and groups

Groupadd dba

Groupadd oinstall

Groupadd oper

Useradd oracle creates oracle users

/ usr/sbin/useradd-g oinstall-G dba,oper oracle

Usermod-g dba oracle adds oracle users to the dba group

Passwd oracle creates passwords for oracle users

10. Create an installation directory for oracle

Create install dirctory for oracle

Mkdir-p / u01/app/oracle

Chown-R oracle:dba / u01/app/oracle changes the file owner to oracle

Chmod-R 777 / u01/app/oracle changes file permissions to 777

11. Configure oracle user environment variables (home, base, sid, path, umask)

Configure oracle user's environment variable

Su-oracle

Vi / home/oracle/.bash_profile

ORACLE_BASE=/u01/app/oracle

ORACLE_SID=sales

ORACLE_HOME=$ORACLE_BASE/11.2.4/dbhome_1

Export ORACLE_BASE ORACLE_SID ORACLE_HOME

Export PATH=$ORACLE_HOME/bin:$PATH

(the ORACLE_HOME path must be the same as the installation path)

(ORACLE_HOME must be the same with install path)

twelve。 Make the new environment variable effective

Make new environment variables effective

13. Add / etc/hosts

Edit / etc/hosts

Su

Vi / etc/hosts

(write native ip and hostname)

(write your ip and username)

14. Reboot

15. Upload the oracle file to / U01 and extract it

Upload oracle files to / u01 and unzip

16. Switch to oracle user

Switch to oracle user

Dbca

NEXT

NEXT

NEXT

SID is consistent with SID in environment variables

SID here must be the same as SID in .bash _ profile

Do not check

Do not tick

Enter password

Enter password

NEXT

NEXT

Check this box to install the table used for the exercise. If you don't select it, it will be a blank database.

Tick this will have sample schemas, otherwise is empty database

The first is memory allocation, the second is process allocation, the third is character set, and the fourth is pga operation.

NEXT

NEXT

Build Monitoring (Listener configuration)

Netca

NEXT

NEXT

NEXT

NEXT

NEXT

NEXT

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