CentOS 5.2 install Oracle 10g notes

Source: Internet
Author: User

1. Install CentOS 5 and disable selinux (you can enable selinux after installing Oracle)
System-> Management-> Security Level and firewall-> Selinux-> disable

2. Check the installed software: rpm-qa | grep xxxxx
Binutils
Compat-libstdc ++
Elfutils-libelf
Elfutils-libelf-devel
Glibc
Glibc-common
Glibc-devel
Gcc
Gcc-c ++
Libaio
Libaio-devel
Libgcc
Libstdc ++
Libstdc ++-devel
Make
Sysstat
UnixODBC
UnixODBC-devel
Find these software directly from the installation CD
3. Create users and groups (root operation)
$ Su-
# Groupadd oinstall
# Groupadd dba
# Useradd-g oinstall-G dba oracle
# Passwd oracle
4. create directories and permissions (root operation)
# Mkdir/oracle
# Mkdir/oracle/10g
# Chown-R oracle: oinstall/oracle
5. Modify Environment Variables
1.
# Vi/etc/sysctl. conf
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144

2.
# Vi/etc/security/limits. conf

Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536

3.
Vi/etc/pam. d/login
Session required/lib/security/pam_limits.so
Session required pam_limits.so

4.
Vi/etc/profile
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
5.
Cd/home/oracle
Vi. bash_profile
ORACLE_BASE =/oracle
ORACLE_HOME = $ ORACLE_BASE/10g
ORACLE_SID = wilson
PATH = $ ORACLE_HOME/bin: $ PATH

Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH

6. Install libXp
Yum-y install libXp

7.
Vi/etc/RedHat-release
Change CentOS release 5 (Final) to redhat 4

6. Use oracle users to access linux
Enter Terminal
$ Cd oralce Installation File directory
$ LANG = en
$ Sh runInstaller
7. Start oracle after installation
$ Sqlpuls/nolog
$ SQL> conn sys/password as sysdba
$ SQL> startup
$ SQL> exit

Start the listener:
$ Cd/oracle/10g/bin
$./Lsnrctl start

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.