In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to install Oracle 11g in Linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install Oracle 11g in Linux.
Environment preparation before installation
Install the required software packages:
Yum install binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel\ ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make\ sysstat unixODBC-devel-yyum install binutils* compat-libcap1* compat-libstdc++* gcc gcc-c++ glibc glibc-devel* ksh libaio* libaio-devel libgcc libstdc++* libstdc++-devel libXi* libXtst make sysstat* unixODBC-devel-y
Create user groups and users:
Groupadd-g 502 dbagroupadd oinstallgroupadd-g 504 asmadmingroupadd-g 506 asmdbauseradd-u 502-g oinstall-G dba,asmdba oracle
Set the user password:
Passwd oracle
Modify the kernel resource limit by adding the following in / etc/security/limits.conf:
* soft nofile 4096 * hard nofile 65536oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
Add a line to the file / etc/pam.d/login file to configure the authentication login restrictions:
Session required pam_limits.so
Modify the kernel parameters by adding the following to the / etc/sysctl.conf file:
Fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 32000 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576net.ipv4.tcp_wmem = 262144 262144 262144net.ipv4.tcp_wmem = 4194304 4194304 4194304
Set to take effect:
Sysctl-p
Create an Oracle base directory:
Mkdir-p / data/app/oraclechown-R oracle:oinstall / data/app/oraclechmod-R 775 / data/app/oracle
Create a database file directory and a quick recovery area directory:
Data file directory
Mkdir / data/app/oracle/oradatachown oracle:oinstall / data/app/oracle/oradatachmod 775 / data/app/oracle/oradata/
Quick recovery area file directory
Mkdir / data/app/oracle/recovery_areachown oracle:oinstall / data/app/oracle/recovery_area/chmod 775 / data/app/oracle/recovery_area
Install library software
Download Oracle11g from the official website, which are two zip compressed files. After download, decompress the two files in the same directory, and a database directory will be generated. Graphical installation is used here. You need to configure the Xserver,Windows client locally. For more information on how to configure the client, please see this link: http://tryingstuff.blog.51cto.com/4603492/1958772
Switch to the oracle user and add the environment variable:
Export ORACLE_BASE=/data/app/oracle
Configuration X:
Export DISPLAY=192.168.20.171:0.0
Xhost +
Access control disabled, clients can connect from any host
Execute the following command to install:
# cd database/#. / runInstaller
Here, you can choose to install the application first and then create the database, or you can create the database at once. Install it first:
After selecting single instance and enterprise version, we will find the corresponding installation directory according to the environment variables we added:
If this error occurs in the installation, you need to modify the directory permissions:
Chown-R oracle:oinstall / data/app
Just modify the permissions.
If the installed packages do not meet the requirements, the following prompt appears, and you can force the installation by downloading these packages.
Install the missing packages one by one, and you can download the missing packages here: http://down.51cto.com/data/2339840
If you want to resolve the dependency, you can use the following command to force the installation:
Rpm-ivh-nodeps-force packagename.rpm
If this error occurs, you can ignore it first:
PRVF-7543: OS Kernel parameter "semmni" does not have proper value on node "hostname" [Expected = "128"; Found =" 0 "]. -Cause: Kernel parameter value does not meet the requirement. -Action: Modify the kernel parameter value to meet the requirement.
Generally speaking, an error occurs in the Link binaries step. In most cases, some system packages are not installed successfully and the required packages need to be reinstalled. You can use the following script to check whether the package is installed:
#! / bin/sh count=0 arr= (binutils-2* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-0.* elfutils-libelf-devel-static-0.* gcc-4.* gcc-c++-4* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2* kernel-headers-* ksh-* libaio-0.* libaio-devel-0.* libgcc-4.* libgomp-4.* libstdc++-4.* libstdc++-devel -* make-* numactl-devel-* sysstat-*) len=$ {# arr [@]} for ((iTun0) I
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.