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

Centos6.5 install oracle 11G

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

Share

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

1. Installation environment: linux server: centos6.5 oracle version: 11g R2

two。 System requirements:

System requirements

Description

Memory

Must be higher than 1G of physical memory

Swap space

Generally, it is twice the size of memory. For example, 1G of memory can be set to 3G size for swap partition.

Hard disk

More than 5G

1, installation preparation and installation configuration.

Configure virtual machine network: (fixed ip address, delete HWADDR MAC address)

In the ifcfg-eth0 of / etc/sysconfig/network-scripts, restart the network service after modification.

2. Modify the hostname: (hostname queries the current hostname. After vi / etc/sysconfig/network is entered, the "I" key enters the editing state and modifies the current hostname to oracledb. Restart reboot after modification.

3. Add the corresponding relationship between the host and IP (if you do not add the following installation process, the error of Oracle Net Configuration Assisant failed may be reported)

Vi / etc/hosts

192.168.1.245 oracledb

4, create users and groups: groupadd-g 251 oinstall groupadd-g 252 dba

Useradd-u 256-g oinstall-G dba-d / opt/oracle-s / bin/bash-m oracle

Passwd oracle changes the password and enters the same password twice in a row.

5. Modify the kernel parameters: add the following at the end of vi / etc/sysctl.conf

Net.ipv4.ip_local_port_range= 9000 65500

Fs.file-max = 6815744

Kernel.shmall = 10523004

Kernel.shmmax = 6465333657

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100128

Net.core.rmem_default=262144

Net.core.wmem_default=262144

Net.core.rmem_max=4194304

Net.core.wmem_max=1048576

Fs.aio-max-nr= 1048576

Sysctl-p takes effect

6. Modify the system resource limit to add at the end of vi / etc/security/limits.conf

Oracle soft nproc 2047

Oracle hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

7,vi / etc/pam.d/login session

Session required pam_namespace.so # add a session required pam_limits.so below this line

Mkdir-p / opt/oracle/app/

Mkdir-p / opt/oracle/oradata/

Chmod 755 / opt/oracle/

Chmod 775 / opt/oracle/app/

Chown oracle.oinstall-R / opt/oracle/

9. Set the oracle environment variable and switch to the oracle user (su-oracle)

Vi / .bash_profile

Export ORACLE_BASE=/opt/oracle/app

Export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

Export PATH=$PATH:$ORACLE_HOME/bin

Export ORACLE_SID=orcl

Source .bash _ profile takes effect immediately.

10, download and install the dependency package

Yum-y install gcc gcc-c++ make binutilscompat-libstdc++-33elfutils-libelf elfutils-libelf-devel glibc glibc-commonglibc-devel libaiolibaio-devel libgcclibstdc++ libstdc++-devel unixODBC unixODBC-devel

11, download ftp

Yum-y install vsftpd

Start ftp:service vsftpd start

Configure ftp:vi / etc/vsftpd/vsftpd.conf

Remove comments:

Add oracle users to the chroot_list file (users in chroot_list can change to a different directory)

Vi chroot_list

Oracle

Service vsftpd restart

11, install oracle (log in with oracle user)

[oracle@oracledb~] # unzip linux.x64_11gR2_database_1of2.zip

[oracle@oracledb~] # unzip linux.x64_11gR2_database_2of2.zip

12. Find the unzipped installation file: run the runInstaller script under database and double-click the run button.

13. You can choose either a typical installation or an advanced installation (you can uniformly change the password) to install and choose the service version, mostly by default. When you encounter this step, it is because the version of the dependency package for the networking installation is too high, so just ignore it.

14. After about 30 minutes or so, the following screen appears, which prompts you to execute the following two scripts, log in with the root user, and execute the scripts in the following two directories.

When you switch to the root user at the terminal, run the two scripts prompted by the interface (the replacement option Y required by root.sh runtime can be overwritten):

15. After running the script, click ok to complete the installation, and test whether the oracle installation is successful:

[oracle@oracledb~] # sqlplus sys

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