Home  >  Article  >  Database  >  How to install oracle on centos6.5

How to install oracle on centos6.5

PHPz
PHPzOriginal
2023-04-17 16:36:42594browse

CentOS 6.5 is a very stable and excellent server operating system that is widely used in enterprise-level applications. Oracle is a world-famous database system that is widely used in enterprise-level applications. Combining CentOS 6.5 with Oracle can build an efficient and stable database system to meet the needs of enterprise-level applications. This article will introduce the steps and precautions for installing Oracle on CentOS 6.5.

1. System installation

1. Download the CentOS 6.5 system image file, which can be downloaded from the Linux official website or the CentOS official website.

2. Use the installation CD or USB flash drive to start the computer and enter the CentOS installation interface.

3. Select the required language in the installation interface to install.

4. Select time zone and date.

5. Partition management needs to be set according to the actual situation.

6. To set the server’s network connection, you need to set the IP address, gateway, DNS and other information.

7. Set the root user password and create an ordinary user. It is recommended to create an ordinary user with sudo permissions to improve the security of the system.

8. Wait for the system installation to be completed, and then restart the system.

2. Oracle installation

1. Set the system environment variables and add the following content to the /root/.bash_profile file:

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/ lib

2. Create the Oracle installation directory and set permissions:

mkdir /u01/app
mkdir /u01/app/oracle
chown -R oracle:oinstall /u01

3. Modify the system kernel parameters to improve the performance of the Oracle database. Add the following content to the /sysctl.conf file:

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

Execute the following command to make the configuration effective:

/sbin/sysctl -p

4. Create an Oracle installation user and unzip Oracle Installation file:

groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
unzip linux_11gR2_database_1of2.zip
unzip linux_11gR2_database_2of2.zip

5. Start Graphical interface mode, and run the Oracle installation file:

[root@localhost ~]# startx
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ cd /tmp /database
[oracle@localhost database]$ ./runInstaller

6. Installation process:

Select to install Oracle Database 11g Release 2

Select the installation type: Select Enterprise Edition, tools and examples do not need to be installed

Select the installation path and components of Oracle

You may encounter the problem of missing dependent libraries during the installation process. You can install the missing library files through yum, for example :

yum -y install binutils compat-libstdc -33 elfutils-libelf elfutils-libelf-devel gcc gcc-c glibc glibc-common glibc-devel ksh libaio libaio-devel libgcc libstdc libstdc -devel make sysstat unixODBC unixODBC -devel

7. After the installation is complete, you need to run the configuration wizard to complete the creation of the database instance:

su - oracle
/u01/app/oracle/product/11.2.0/ dbhome_1/bin/dbca

8. Configuration wizard process:

Select to create a database

Select a service: Select Oracle database here

Select a database configuration type: Select a typical configuration

Set the global database name and management password of the database

Select the character set and language

Select the storage location of the database

Select the network configuration

Confirm the information and wait for the creation of the database

3. Summary

Through the above steps, we can successfully install and configure the Oracle database. In order to ensure the performance and stability of the application, professional optimization and maintenance of the Oracle database is also required. In actual use, targeted adjustments need to be made based on actual conditions.

The above is the detailed content of How to install oracle on centos6.5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn