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

How to install oracle10.2.0.1 on CentOS system as4.6

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

CentOS system as4.6 how to install oracle10.2.0.1, for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Before the CentOS system as4.6 installs oracle 10.2.0.1, we should install the Centos system first. General development tools should be installed without much explanation for Centos installation. You also need to install patch packs sysstat-5.0.5-14.rhel4.i386.rpm and libaio-0.3.105-2.i386.rpm after installation.

CentOS system creates oracle account

Su-root

Groupadd dba

Groupadd oinstall

Useradd-c oracle-g dba-G oinstall oracle

Passwd oracle

CentOS system creates oralce installation directory

Su-root

Mkdir-p / u01/app/oracle

Chown-R oracle.dba / U01

Mkdir / var/opt/oracle

Chown oracle.oinstall / var/opt/oracle

Chmod 755 / var/opt/oracle

1. Modify the / etc/sysctl.conf file by adding the following:

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 = 102465 000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144

The four parameters of sem are SEMMSL (semaphores per user) and SEMMNS (system semaphores).

SEMOPM (operands per semopm system call); SEMMNI (number of hardship sets of the system).

Shmmax * * shared memory 2GB physical memory can be set to 536870912 if small.

Shmmni minimum shared memory 4096KB.

Shmall all memory sizes.

Run / sbin/sysctl-p to set core parameters

two。 Modify / etc/security/limits.conf join

Oraclesoft nproc2047

Oraclehard nproc16384

Oraclesoft nofile 1024

Oraclehard nofile 65536

3. Modify / etc/pam.d/login, add

Session required pam_limits.so

4. Modify / etc/profile, add

If [$USER = "oracle"]; then if [$SHELL = "/ bin/ksh"]; then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fi fi

5.oracle login modification .bash _ profile

# .bash _ profile # Get the aliases and functions if [- f ~ / .bashrc]; then. ~ / .bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/binexport PATH unset USERNAME # Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9, # RHEL AS 3 And RHEL AS 4! # Use the "Linuxthreads with floating stacks" implementation instead of NPTL: export LD_ASSUME_KERNEL=2.6.9-55.EL # for RHEL AS 4 # Oracle Environment export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/10.0.2/db_1 export ORACLE_SID=your'sSID # export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. Are not in $ORACLE_HOME/network/admin export NLS_LANG=American_America.UTF8 Export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export LD_LIBRARY_PATH # Set shell search paths export PATH=$PATH:$ORACLE_HOME/bin

6. Modify / etc/oratab file

Modify $ORACLE_HOME dbstart

$cd $ORACLE_HOME/dbs $sqlplus / nolog SQL > connect / as sysdba connected SQL > Create pfile from spfile

Dbora content

# Set ORA_HOME to be equivalent to the ORACLE_HOME # from which you wish to execute dbstart and # dbshut # set ORA_OWNER to the user id of the owner of the # Oracle database in ORA_HOME ORA_HOME=/u01/app/oracle/product/10.0.2/db_1 ORA_OWNER=oracle case "$1" in 'start_msg') echo "startup oracle10g database and listener";;' stop_msg') echo "shutdown oracle10g database and listener" 'start') # Start the Oracle database: su-$ORA_OWNER-c $ORA_HOME/bin/dbstart # start the Oracle dbconsole:;;' stop') # Stop the Oracle database: su-$ORA_OWNER-c "emctl stop dbconsole" su-$ORA_OWNER-c $ORA_HOME/bin/dbshut # Stop the Oracle listener: su-$ORA_OWNER-c "lsnrctl stop listener" Esac 1#cp dbora / etc/init.d 2#cd / etc/init.d 3#chmod 777 dbora 4#cd rc2.d # ln-s.. / init.d/dbora S80ora 5#cd.. / rc3.d # ln-s.. / init.d/dbora S80ora 6#cd.. / rc0.d # ln-s.. / init.d/dbora K80ora 7#cd.. / rc4.d # ln-s.. / Init.d/dbora S80ora # ln-s.. / init.d/dbora K80ora 8#cd.. / rc5.d # ln-s.. / init.d/dbora S80ora # ln-s.. / init.d/dbora K80ora

According to the above steps, we have finished installing oracle 10.2.0.1 on the CentOS system as4.6.

This is the answer to the question about how to install oracle10.2.0.1 in CentOS system as4.6. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

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

Servers

  • A small hole in the Django template.

    Navigation bar

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report