Installing Oracle databases in Linux

Source: Internet
Author: User
Install Oracle Database in Linux: 1. Convention: linux system is Linux.5.4-server-x86_64, database is linux. x64_11gR1_database_1013linux

Install Oracle Database in Linux: 1. Convention: linux system is Linux.5.4-server-x86_64, database is linux. x64_11gR1_database_1013 linux

Install the Oracle database in Linux:

1. Convention: linux System for Linux.5.4-server-x86_64, database for linux. x64_11gR1_database_1013
When installing linux, select to install all packages.
2. Use the root user to modify the kernel parameters and add the following content to the file/etc/sysctl. conf.
# Vi/etc/sysctl. conf
# Controls the maximum number of shared memory segmets, in pages
Kernel. shmall = 2097152 -- the total number of shared memory segments that can be used by the system is in the unit of page
Kernel. shmmax = 2147483648 -- maximum size of a single shared memory segment, in bytes
Kernel. shmmni = 4096 -- maximum number of shared memory segments available to the system
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 4194304
Net. core. rmem_max = 41943044
Net. core. wmem_default = 262144
Net. core. wmem_max = 2621444
After modification, save and exit.
#/Sbin/sysctl-p -- make kernel parameters take effect
3. Add the following content at the end of the # vi/etc/security/limits. conf line.
# @ Student-maxlogins 4
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
# End of file
4. Add the following content at the end of the # vi/etc/pam. d/login line.
Session optional pam_keyinit.so force revoke
Session required pam_limits.so
5. # vi/etc/selinux/config, disable the firewall, and ensure that SELINUX = disabled
Disable SELIINUX
6. Add groups and users:
# Groupadd oinstall
# Groupadd dba
# Useradd-g oinstall-G dba oracle
# Passwd oracle (set a password for oracle Users)
7. Create an Oracle installation directory and grant permissions to oracle users:
# Mkdir-p/u01/app/oracle
# Chown-R oracle: oinstall/u01
# Chmod-R 775/u01
8. oracle user's environment variables are logged on as oracle and added to. bash_profile for downlink.
Add the following content:

$ Vi. bash_profile
# User specific environment and startuup programs
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/11.1.0/dbhome_1
Export ORACLE_SID = linux
Export PATH = $ PATH: $ ORACLE_HOME/bin
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
Export PATH
9. Decompress oracle 11g (linux. x64_11gR1_database_1013) and create a terminal,
# Xhost + (allow all clients to connect to x Server)
# Su-oracle (switch to the oracle user environment)
Run $./runInstaller
10. Some packages may be missing during the detection. You can download and install the package as prompted.
11. At the final stage of installation, a prompt will be prompted to execute the configuration script. Create a terminal, switch to the corresponding directory as the root user, and execute the Script:./orainstRoot. sh,./root. sh.
12. After executing the above two scripts, click "OK" to complete the installation.
13. In view of the time, the description is relatively simple, and the pictures of the corresponding installation are not displayed. Please forgive me.
14. At the end, all the above configurations are only used for personal Testing and Research, and the actual production database configuration is not suitable for use.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.