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

Install oracle11g on centos6.6

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

1. Before installation, make sure that the oracle home directory and swap space are large enough, otherwise there will be an error during the later installation. 2. Modify the host name; [root@oracledb ~] # sed-I "s/HOSTNAME=localhost.localdomain/HOSTNAME=oracledb/g" / etc/sysconfig/network [root@oracledb ~] # hostname oracledb 3, add the corresponding record of the host name and IP, and directly add the IP and host name at the end when doing this step. [root@oracledb ~] # vim / etc/hosts 192.168.0.230 oracledb 4, install the dependency package (but my dependency package is still incomplete at this step, and will report that the package does not exist when loading the library later But it can be ignored later) [root@oracledb ~] # yum-y install gcc gcc-c++ make binutilscompat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-commonglibc-devel libaio libaio-devel libgcclibstdc++ libstdc++-devel unixODBC unixODBC-devel 5, Create users and groups [root@oracledb ~] # groupadd-g 251 oinstall [root@oracledb ~] # groupadd-g 252 dba [root@oracledb ~] # useradd-u 256-g oinstall-G dba-d / opt/oracle-s / bin/bash-m oracle [root@oracledb ~] # passwd oracle # change oracle password

Description:-g: specify the group to which the user belongs (initial group)-G: specify the additional group to which the user belongs-u: specify user ID-d: specify user home directory-s: specify user login shell-m: if the user home directory does not exist, it will be created automatically. If you finally change the password to oracle, the system will prompt that the password is too simple, don't worry about it at this time, enter enter again. 6. Modify the kernel parameter [root@oracledb ~] # vim / etc/sysctl.conf # and add the following at the end: net.ipv4.ip_local_port_range= 9000 65500 fs.file-max = 6815744 kernel.shmall = 10523004 kernel.shmmax = 6465333657 kernel.shmmni = 4096 kernel.sem = 25032000 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 7, Execute the following command to make the change effective [root@oracledb ~] # sysctl-p 8, and modify the system resource limit [root@oracledb ~] # vim / etc/security/limits.conf # add the following oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 at the end

[root@oracledb ~] # vim / etc/pam.d/login session required pam_namespace.so # add a session required pam_limits.so under this line

[root@oracledb ~] # vim / etc/profile # add if [$USER = "oracle"]; then if [$SHELL = "/ bin/ksh"] at the end of the file; then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fi fi

9. Set the oracle environment variable. Be very careful when setting this step. I always made a mistake on this step. At this time, set the parameters under the oracle user, and log in to root to make the parameters take effect. [oracle@oracledb ~] $vim ~ / .bash_profile (add some of the following parameters at the end) PATH=$PATH:$ORACLE_HOME/bin export ORACLE_BASE=/opt/oracle/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export PATH=$PATH:$ORACLE_HOME/bin export ORACLE_SID=orcl export PATH 10, switch to root to make the above parameters effective [root@oracledb ~] # source .bash _ profile 11, close Selinux [root@oracledb ~] # sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/selinux/config [root@oracledb ~] # setenforce 012, turn off firewall [root@oracledb vsftpd] # service iptables stop [root@oracledb vsftpd] # chkconfig iptables off 13, because I installed basic server when I installed centos at that time, there is no graphical interface, now install a graphical interface [root@oracledb ~] # yum groupinstall "X Window System"Desktop"-y [root@oracledb ~] # yum install-y libXp libXp-devel libXrender-devel libXtst-devel 14, decompress oracle package [root@oracledb ~] # unzip linux_11gR2_database_1of2.zip [root@oracledb ~] # unzip linux_11gR2_database_2of2.zip 15, launch X desktop directly using startx under root; [root@oracledb ~] # startx 16, after entering the graphical interface [root@oracledb ~] # xhost + 17. Because I used simplified Chinese when I installed centos at that time, the interface of oracle will appear garbled, and you can temporarily enter the English state by using the following method; [oracle@oracledb ~] $export LANG=en_CN [oracle@oracledb ~] $cd / tmp/oracleproduct/database [oracle@oracledb database] $. / runInstaller 18, then enter the oracle installation interface, and this will appear later. Execute these two scripts. Cd / opt/oracle/app/oraInventory and then [oracle@oraInventory ~] $. / orainstRoot.sh will appear Changing permissions of / usr/oracle/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of / usr/oracle/oraInventory to oinstall. The execution of the script is complete.

Then [oracle@dbhome_1] $. / root.sh will appear Running Oracle 11g root.sh script... The following environment variables are set as: 19, this will restart the system; 20, [oracle@oracledb ~] $sqlplus / as sysdba to see if it is connected

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