Web On the server Linux Generally, there is no graphical interface , All installed through the graphical interface Linux In a way that doesn't have a graphical interface Linux It doesn't work up there , The installation we're going to use is called Linux Of Silent installation . That is, in the absence of a graphical interface Linux The above installation .

1. Download address


download .tar.gz File can ,oracle stay Window There are quantiles on it , But in linux There are no points on it , Just download x-86-64 The version is just .

With ·tar.gz The extension is a compressed file , stay Linux and OSX Common ,Linux and OSX Can be directly decompressed using this compressed file .

Be careful :root Users can't use the installation ,root Users cannot install , Need to use root User creates a new user to install oracle.

2. Hardware detection :
Physical memory is not less than 1G
The hard disk can have no less than 5G
swap The partition space is not less than 2G
Support 256 Color up graphics card
cpu The main frequency is not less than 550mHZ

cat /etc/issue
uname -r ( edition )
grep MemTotal /proc/meminfo ( Memory size )
grep SwapTotal /proc/meminfo ( Swap size )
grep "model name" /proc/cpuinfo (CPU Information )
free ( Available memory )
3. Check that the installation depends on the system package
Specific packages that the operating system depends on , Please refer to the official installation documentation .
compat-libstdc++--3.2. ( bit)
glibc-2.5- ( bit)
glibc-devel-2.5 ( bit)
libaio-0.3. ( bit)
libaio-devel-0.3. ( bit)
libgcc-4.1. ( bit)
libstdc++-4.1. ( bit)
libstdc++-devel 4.1.
unixODBC-2.2. (-bit) or later
unixODBC-devel-2.2. (-bit) or later
unixODBC-2.2. (-bit) or later

Check dependency packages

rpm -q binutils compat-libstdc++- elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc-2.5 glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
If the package has a display is not installed( Not installed ), Just use yum install Command to install , Such as :

yum install compat-libstdc++-

4. Create the required operating system groups and users

 groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle

Set up oracle User password

passwd oracle
5. Modify kernel parameters
stay /sbin/sysctl.conf In file , Use a text editor or vi Command to add or modify the following parameters (vi /sbin/sysctl.conf)
fs.aio-max-nr =
fs.file-max =
kernel.shmall =
kernel.shmmax =
kernel.shmmni =
kernel.sem =
net.ipv4.ip_local_port_range =
net.core.rmem_default =
net.core.rmem_max =
net.core.wmem_default =
net.core.wmem_max =

After modification , Make settings effective

/sbin/sysctl -p
6. Modify user restrictions
stay /etc/security/limits.conf In file , Use a text editor or vi command
vi /etc/security/limits.conf 

Add the following parameters

oracle soft nproc
oracle hard nproc
oracle soft nofile
oracle hard nofile
oracle soft stack

stay /etc/pam.d/login In file , Use a text editor or vi Command to add or modify the following

session required /lib/security/pam_limits.so
session required pam_limits.so

stay /etc/profile In file , Use a text editor or vi Command to add or modify the following

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p
ulimit -n
ulimit -u -n

Make settings effective

source /etc/profile
 7. Create installation directory ( According to the situation , Select a directory with more space to create )
mkdir -p /usr/oracle
chown -R oracle:oinstall /usr/oracle
chmod -R /usr/oracle

8. establish /etc/oraInst.loc file , The contents are as follows


Change file permissions

chown oracle:oinstall /etc/oraInst.loc
chmod /etc/oraInst.loc

9. Set up oracle environment variable

su - oracle // Switch users to oracle
vi ~/.bash_profile // Access or create home/oracle Under directory .bash_profile file 

Add the following at the end

export ORACLE_BASE=/usr/oracle
export ORACLE_SID=orcl

Be careful , except ORACLE_BASE and ORACLE_SID,( /etc/profile and .bash_profile in ) Don't set anything oracle Related environment variables (ORACLE_HOME, PATH, LD_LIBRARY_PATH etc. ). Other environment variables will be configured after installation .

Make settings effective

source /home/oracle/.bash_profile

Check environment variables :


meanwhile , Check when using silent installation DISPLAY Set up , If you often say inspection DISPLAY No words , To root Execute under the user “xhost + Yours ip:0.0“

10. decompression oracle The installation files

unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip

11. Copy the response file template

mkdir etc
cp /home/oracle/database/response/* /home/oracle/etc/

Set response file permissions

su - root
chmod /home/oracle/etc/*.rsp( Pay attention to the owner ,oinstall)

12. Silent installation Oracle Software

Switching users

su - oracle
  Modify the installation Oracle Software response file /home/oracle/etc/db_install.rsp

vi /home/oracle/etc/db_install.rsp

Add something

oracle.install.option=INSTALL_DB_SWONLY // Installation type 
ORACLE_HOSTNAME=db // Host name (hostname Inquire about )
UNIX_GROUP_NAME=oinstall // Installation group
INVENTORY_LOCATION=/usr/oracle/oraInventory //INVENTORY Catalog ( If you don't fill it in, it will be the default value )
SELECTED_LANGUAGES=en,zh_CN,zh_TW // Choice language
ORACLE_HOME=/usr/oracle/product/11.2./db_1 // oracle_home
ORACLE_BASE=/usr/oracle // oracle_base
oracle.install.db.InstallEdition=EE // oracle edition
oracle.install.db.isCustomInstall=false // Custom installation , no , Use the default component
oracle.install.db.DBA_GROUP=dba // dba User group
oracle.install.db.OPER_GROUP=oinstall // oper User group
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE // Database type
oracle.install.db.config.starterdb.globalDBName=orcl //globalDBName
oracle.install.db.config.starterdb.SID=orcl //SID
oracle.install.db.config.starterdb.memoryLimit= // Automatic memory management (M)
oracle.install.db.config.starterdb.password.ALL=oracle // Set all database users to use the same password
DECLINE_SECURITY_UPDATES=true // Set up security updates ( There seems to be bug, This must be chosen true, Otherwise, there will be unlimited reminders of email address problems , Terminate installation .PS: Whether the address is right or not )

Other variables are not configured or default .

Start silent installation

cd database
./runInstaller -silent -responseFile /home/oracle/etc/db_install.rsp

Installing , If you are prompted [WARNING] Don't pay any attention to , At this point, the installation program is still in progress , If appear [FATAL], The installation program has stopped .

Check the installation log information to see the installation progress
cd $ORACLE_BASE/oraInventory/logs
tail -f installActions*.log

A prompt similar to the following appears installation is complete
To execute the configuration scripts:
1. Open a terminal window 
2. Log in as "root" 
3. Run the scripts 
4. Return to this window and hit "Enter" key to continue
Successfully Setup Software.

Use root User execution script

Here are two scripts to execute , Just run

su - root

increase oracle environment variable

su - oracle
vi ~/.bash_profile

Add the following at the end

export ORACLE_HOME=$ORACLE_BASE/product/11.2./db_1
export TNS_ADMIN=$ORACLE_HOME/network/admin
export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin
export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export ORACLE_OWNER=oracle
export ORA_NLS10=$ORACLE_HOME/nls/data

Make settings effective

source /home/oracle/.bash_profile

Come here ,oracle11g The database instance of is installed .

have access to sqlplus Log in to the database to see if the database is installed successfully !

sqlplus user name / password ( Optional : Connect IP) as sysdba

thank : Thank you for your patience in reading !

linux Silent installation of oracle More articles about

  1. Linux Platform silent installation Oracle client

    demand :Linux platform , Install the full version Oracle client Tips: If you just use sqlldr,sqlplus function , You can refer to <Linux On oracle Thin client quick deployment > Rapid deployment of thin Edition : if necessary ...

  2. Linux - Silent installation oracle Database summary

    Web On the server Linux Generally, there is no graphical interface , All installed through the graphical interface Linux In a way that doesn't have a graphical interface Linux It doesn't work up there , The installation we're going to use is called Linux Silent installation of . That is, in the absence of a graphical interface Li ...

  3. Linux Silent installation Oracle

    I'm going to install oracle service , before DBA Meimei is installed under the graphical interface , I'm blind this time . Check on the Internet , Silent installation can solve the problem . So we started to deploy , The process is as follows . Installation environment : operating system :CentOS 7 Memory :11G ...

  4. CentOS 6.5 Next silent installation oracle

    This case : adopt SSH Remote connection to virtual machine , Upload oracle11g Installation package , stay centos6.5 Silent installation without graphical interface on oracle11g. It involves tools and environment : 1. The local environment windows7+ssh Remote connection tools xSh ...

  5. CentOS 7 Silent installation Oracle 11g R2 Database software

    Before the installation Oracle 11g R2 Database software is built on a graphical interface , Now, however, most servers don't have a graphical interface installed . The graphical interface is easy to install , Clear installation options , Steps to clear , but Oracle There is also support for another installation , It is through ...

  6. CentOS Silent installation Oracle 11gR2(x64)

    Environmental Science OS: CentOS 7.4; hosts: L134; IP: DB: linux.x64_11gR2_database Install dependency packages yum install -y ...

  7. stay Ubuntu and Linux Mint Installation on Oracle JDK

    stay Ubuntu and Linux Mint Installation on Oracle JDK Use the following command to install , It just takes a little time , It will download a lot of files , So you have to make sure your network environment is good : sudo add-apt-repository ...

  8. 【 silent 】 stay RHEL 6.5 Silent installation on Oracle 18c

    [ silent ] stay RHEL 6.5 Silent installation on Oracle 18c Oracle 18c.18c In fact, that is,19c Namely The installation package is about 4.25G, After decompression 8.9 ...

  9. Oracle Silent installation oracle client

    Silent installation oracle clint Relatively simple , modify instantclient.crsp Just a few places in the file [root@localhost ~]# vi /etc/oralnstloc inventory_ ...

Random recommendation

  1. ES6 Modular import and export Usage Summary

    ES6 There was before js Module loading scheme , The main thing is CommonJS and AMD standard .commonjs The former is mainly used in servers , Realize synchronous loading , Such as nodejs.AMD The specification applies to browsers , Such as requirejs, For asynchronous ...

  2. unset It can't be cleaned up on the local computer cookie Of , be used for session Can ( After a long time, it turned out to be like this )

    unset($_COOKIE["historyWord[$wordId]"]); This is not going to work ,unset Just unregister the variable when the script runs , however cookie It's written on the client side , Next time it's OK ...

  3. emacs Shortcut notes

    C-d C-aM-aC-eM-e=== Copy and paste M-d    kill-wordM-del     backward-kill-wordM-k     kill-sentenceC-x del back ...

  4. spring autoWire annotation

    1.autowire annotation , It can be used to get applicationContext,ResourceLoader,BeanFactory The injection of autoWire You'll get the resources 2.autoWire Annotations can also be used ...

  5. Android Unit of measurement px,in,mm,pt,dp,dip,sp And get screen size and density

    ###########################################Android Unit of measurement ########################################### px ...

  6. hdu 2438

    Problem Description Mr. West bought a new car! So he is travelling around the city. One day he comes ...

  7. java The fourth design mode is the builder mode (Builder)

    Factory class pattern provides the pattern of creating a single class , And the builder model is to put all kinds of products together for management , Used to create composite objects , A compound object is a class that has different properties , In fact, the builder mode is the former abstract factory mode and the last Test Combine to get ...

  8. PHP Generate random watermark image

    be based on PHP Of GD Graphics library , Make a picture of yourself . Just for the first time GD library , Case study . One . demand The layout of the website is similar to the MOOC course list , Every course is a banner chart , Below is the title and introduction . Because of the large number of courses, there is no need to ...

  9. Android Studio How to choose to view the specified process log?

    Today, let's talk about a simple thing , About Android Studio stay logcat How to view the specified process in log. About filtering your own applications log. In this article :Android Studio How to give log Add filter items ( ...

  10. Vue.js Basic grammar

    interpolation Html Use v-html Instructions are used to output html Code : <div id="app"> <div v-html="message"& ...