In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to install Oracle11g silently in RedHat 7, which is very detailed and has certain reference value. Friends who are interested must finish it!
Installation environment:
Host: tide NF5270M4 CPU:2; MEM:128G
Operating system Red Hat Enterprise Linux Server release 7.2 (Maipo)
Installation media:
P13390677_112040_LINUX_1of7.zip
Database basic package
P13390677_112040_LINUX_2of7.zip
Database basic package
IP allocation:
Hostnam
Host IP
Crm_db
192.168.2.36
Installation directory:
Oracle software
/ home/app/oracle/11.2.0/db_1
Modify the / etc/hosts file:
[root@crm_db home] # vi / etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.2.36 crm_db
[root@crm_db home] # groupadd-g 1001 oinstall
[root@crm_db home] # groupadd-g 1100 dba
[root@crm_db home] # useradd-m-g oinstall-G dba-u 1200 oracle
[root@crm_db home] # passwd oracle
Zh;92YjrC
Create a directory:
[root@crm_db home] # mkdir-p / home/app/oracle/product/11.2.0/db_1
[root@crm_db home] # chown-R oracle:oinstall / app
# ORACLE SETTING
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Oracle soft memlock-1
Oracle hard memlock-1
#% PAM-1.0
Auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
Auth include system-auth
Account required pam_nologin.so
Account include system-auth
Password include system-auth
# pam_selinux.so close should be the first session rule
Session required pam_selinux.so close
Session required pam_loginuid.so
Session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
Session required pam_selinux.so open
Session required pam_namespace.so
Session optional pam_keyinit.so force revoke
Session include system-auth
-session optional pam_ck_connector.so
# ORACLE SETTING
# ORACLE SETTING
Fs.aio-max-nr = 1048576
Fs.file-max = 6815744
Kernel.shmall = 33554432
Kernel.shmmax = 89060441849
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 262144
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048586
Vm.nr_hugepages = 3876
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing-SELinux security policy is enforced.
# permissive-SELinux prints warnings instead of enforcing.
# disabled-No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted-Targeted processes are protected
# mls-Multi Level Security protection.
SELINUXTYPE=targeted
Turn off the firewall:
Systemctl stop firewalld.service
Systemctl disable firewalld
[root@crm_db home] # rpm-Q binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
Install the missing installation package:
Mount / dev/cdrom / mnt
[root@oracleserver1 u01] # cd / mnt
[root@oracleserver1 mnt] # cd Packages/
Rpm-ivh libaio-devel-0.3.107-10.el6.x86_64.rpm
# .bash _ profile
# Get the aliases and functions
If [- f ~ / .bashrc]; then
. ~ / .bashrc
Fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
Export PATH
ORACLE_SID=oracrm; export ORACLE_SID
ORACLE_BASE=/home/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_UNQNAME=oracleserver; export ORACLE_UNQNAME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
NLS_DATE_FORMAT= "yyyy-mm-dd HH24:MI:SS"; export NLS_DATE_FORMAT
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;export NLS_LANG
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11
THREADS_FLAG=native; export THREADS_FLAG
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
If [$USER = "oracle"] | | [$USER = "grid"]; then
If [$SHELL = "/ bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Umask 022
Fi
Restart the operating system
Shutdown-r now
Install database software without building libraries
1. To edit the db_install.rsp file, you can make a copy, clean up the original, and enter the following:
Oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
Oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=crm_db
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/home/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/home/app/oracle/product/11.2.0/db_1
ORACLE_BASE=/home/app/oracle
Oracle.install.db.InstallEdition=EE
Oracle.install.db.EEOptionsSelection=false
Oracle.install.db.DBA_GROUP=dba
Oracle.install.db.OPER_GROUP=oinstall
Oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
Oracle.install.db.config.starterdb.globalDBName=oracrm
Oracle.install.db.config.starterdb.SID=oracrm
Oracle.install.db.config.starterdb.characterSet=AL32UTF8
Oracle.install.db.config.starterdb.memoryOption=true
Oracle.install.db.config.starterdb.memoryLimit=40960
Oracle.install.db.config.starterdb.password.ALL=oracle
Oracle.installer.autoupdates.option=SKIP_UPDATES
# iSECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
2. After seeing the prompt for users with root to execute two scripts, finish executing the script, and the software installation is complete.
Create the database:
Editing
Dbca.rsp
Script:
[GENERAL]
RESPONSEFILE_VERSION = "11.2.0"
OPERATION_TYPE = "createDatabase"
[CREATEDATABASE]
GDBNAME = "oracrm"
SID = "oracrm"
TEMPLATENAME = "General_Purpose.dbc"
CHARACTERSET = "AL32UTF8"
Netca / silent / responseFile / home/oraclesoftware/netca.rsp
These are all the contents of the article "how to install Oracle11g silently in RedHat 7". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.