Home Database Mysql Tutorial Oracle 11g数据库软件静默安装

Oracle 11g数据库软件静默安装

Jun 07, 2016 pm 04:47 PM
o

一.准备文件 1. 拷贝文件 linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip 到 /Oracle目录下; 2. 解压(可

一.准备文件
 1. 拷贝文件 linux.x64_11gR2_database_1of2.zip
 linux.x64_11gR2_database_2of2.zip 到 /Oracle目录下;

2. 解压(可用鼠标右击解压,或用口令, cd /oracle)
[root@jyrac1 /]# uzip linux.x64_11gR2_database_1of2.zip
[root@jyrac1 /]# uzip linux.x64_11gR2_database_2of2.zip
 
3. 在/etc目录下创建一个名为 oraInst.loc 的文件,文件中的内容(两行代码)如下:
 inventory_loc=ORACLE_BASE/oraInventory
 inst_group= oinstall
[root@jyrac1 /]# vi /etc/oraInst.loc
nventory_loc=ORACLE_BASE/oraInventory
inst_group= oinstall
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/oraInst.loc" [New] 2L, 59C written
 
4. 输入下面的命令在oraInst.loc文件上设置合适的拥有者,组和权限:
[root@jyrac1 /]# cd /etc
[root@jyrac1 etc]# chown oracle:oinstall oraInst.loc
[root@jyrac1 etc]# chmod 664 oraInst.loc
 
二.检查硬件需求
 1. 查看系统物理内存,以下输出可以看出,有2G的内存,内存最低要求1G
[root@jyrac1 etc]# grep MemTotal /proc/meminfo
MemTotal:      2059568 kB
 
2. 查看交换空间大小,以下输出可以看出,,有2G的交换空间,交换空间的最优设置与你物理内存大小相关,详细说明请参考安装文档
[root@jyrac1 etc]# grep SwapTotal /proc/meminfo
SwapTotal:    2096472 kB
 
3.查看可用物理内存和交换空间
[root@jyrac1 etc]# free
            total      used      free    shared    buffers    cached
Mem:      2059568    856296    1203272          0      59336    574832
-/+ buffers/cache:    222128    1837440
Swap:      2096472    120740    1975732
 
4.查看挂载的临时分区空间情况
[root@jyrac1 etc]# df
Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/sda1            16246428  10361032  5046808  68% /
/dev/sda2              2030768  1124784    801160  59% /tmp
tmpfs                  1029784        0  1029784  0% /dev/shm
/dev/sdb              10321208    162284  9634636  2% /u01
 
三.检查软件需求
 1.查看Linux版本
[root@jyrac1 etc]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Kernel \r on an \m
 
2.查看内核版本
[root@jyrac1 etc]# uname -a
Linux jyrac1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
 
四.配置内核及其他参数
 1.vi /etc/sysctl.conf
kernel.shmall = 4294967296
kernel.shmmni=4096
kernel.sem=250 32000 100 128
fs.file-max=6815744
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 = 1048576
fs.aio-max-nr= 3145728
 
[root@jyrac1 /]# /sbin/sysctl -p

2.vi /etc/security/limits.conf
oracle soft nproc  2047
oracle hard nproc  16384
oracle soft nofile 1024
oracle hard nofile 65536
 
3.vi /etc/pam.d/login
session    required    pam_selinux.so open
session    optional    pam_keyinit.so force revoke
session required pam_limits.so
 
4. vi /etc/selinux/config
SELINUX=disabled
 
五.添加用户组和用户,并为oracle用户设置密码
[root@lym Server]# groupadd oinstall
[root@lym Server]# groupadd dba
[root@lym Server]# groupadd oper
[root@lym Server]# useradd -g oinstall -G dba oracle
[root@lym Server]# passwd oracle
Changing password for user oracle.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

 
六.创建安装Oracle的文件夹,并设置其相应权限给Oracle用户
[root@jyrac1 /]# mkdir -p  /u01/app/oracle/11.2.0/db
[root@jyrac1 /]# chown -R oracle.oinstall /u01
[root@jyrac1 /]# chmod 775 /u01
 
七.设置Oracle环境变量
[oracle@jyrac1 ~]$ vi .bash_profile
# .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
TEMP=/u01/tmp
TMPDIR=/u01/tmp
export TEMP TMPDIR
export LD_ASSUME_KERNEL=2.6.9
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/11.2.0/db
export ORACLE_SID=jycs
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
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
export PATH=$PATH:$ORACLE_HOME/bin
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export CLASSPATH
 
八.注销root用户,并登录oracle用户,在/home/oracle目录下建立一个名为enterprisejy.rsp的文件,里面的具体内容如下(参考/oracle/database/response目录下面的db_install.rsp文件.
 
[oracle@jyrac1 ~]$ vi enterprisejy.rsp
#以下参数不要更改
racle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
DECLINE_SECURITY_UPDATES=false
#以下参数根据实际情况更改
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/oraInventory
SELECTED_LANGUAGES=en,zh_CN,zh_TW
ORACLE_HOME=/u01/app/oracle/11.2.0/db
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=true
oracle.install.db.customComponents=oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oinstall
~
~
~
~
~
"enterprisejy.rsp" [New] 15L, 679C written

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Digital audio output interface on the motherboard-SPDIF OUT Digital audio output interface on the motherboard-SPDIF OUT Jan 14, 2024 pm 04:42 PM

SPDIFOUT connection line sequence on the motherboard. Recently, I encountered a problem regarding the wiring sequence of the wires. I checked online. Some information says that 1, 2, and 4 correspond to out, +5V, and ground; while other information says that 1, 2, and 4 correspond to out, ground, and +5V. The best way is to check your motherboard manual. If you can't find the manual, you can use a multimeter to measure it. Find the ground first, then you can determine the order of the rest of the wiring. How to connect motherboard VDG wiring When connecting the VDG wiring of the motherboard, you need to plug one end of the VGA cable into the VGA interface of the monitor and the other end into the VGA interface of the computer's graphics card. Please be careful not to plug it into the motherboard's VGA port. Once connected, you can

How to install and register the btc trading app? How to install and register the btc trading app? Feb 21, 2025 pm 07:09 PM

This article will provide a detailed introduction to how to install and register a Bitcoin trading application. The Bitcoin trading app allows users to manage and trade cryptocurrencies such as Bitcoin. The article guides users through the installation and registration process step by step, including downloading applications, creating accounts, performing identity verification, and first deposit. The goal of the article is to provide beginners with clear and easy-to-understand guidelines to help them easily enter the world of Bitcoin trading.

Top 10 global digital currency trading apps recommended (2025 currency trading software ranking) Top 10 global digital currency trading apps recommended (2025 currency trading software ranking) Mar 12, 2025 pm 05:48 PM

This article recommends the top ten digital currency trading apps in the world, including Binance, OKX, Huobi Global, Coinbase, Kraken, Gate.io, KuCoin, Bitfinex, Gemini and Bitstamp. These platforms have their own characteristics in terms of transaction pair quantity, transaction speed, security, compliance, user experience, etc. For example, Binance is known for its high transaction speed and extensive services, while Coinbase is more suitable for novices. Choosing a platform that suits you requires comprehensive consideration of your own needs and risk tolerance. Learn about the world's mainstream digital currency trading platforms to help you conduct digital asset trading safely and efficiently.

Which digital currency app trading software is the best? Digital currency trading software big spot Which digital currency app trading software is the best? Digital currency trading software big spot Mar 07, 2025 pm 06:45 PM

There is no single "best" digital currency trading app, and the choice depends on personal needs. 1. OKX has powerful functions and rich currency types; 2. Binance has high liquidity and diverse transaction types; 3. Gate.io provides unique functions such as staking mining; 4. Huobi Global has a friendly interface and multi-language support; 5. Kraken focuses on security; 6. Coinbase is suitable for beginners and focuses on user education. When choosing, you need to consider security, liquidity, handling fees, functions, user experience and other factors.

Ouyi Exchange Download Official Portal Ouyi Exchange Download Official Portal Feb 21, 2025 pm 07:51 PM

Ouyi, also known as OKX, is a world-leading cryptocurrency trading platform. The article provides a download portal for Ouyi's official installation package, which facilitates users to install Ouyi client on different devices. This installation package supports Windows, Mac, Android and iOS systems. Users can choose the corresponding version to download according to their device type. After the installation is completed, users can register or log in to the Ouyi account, start trading cryptocurrencies and enjoy other services provided by the platform.

Top 10 virtual digital currency trading platforms 2025 rankings, top ten virtual currency app exchanges Top 10 virtual digital currency trading platforms 2025 rankings, top ten virtual currency app exchanges Feb 21, 2025 pm 09:03 PM

This article introduces 10 mainstream cryptocurrency exchanges, covering basic information such as their establishment time, service scope, security, liquidity, transaction fees, etc. These exchanges include: OKX, Binance, Gate.io, Bitget, Coinbase, Huobi, KuCoin, Crypto.com, Gemini and Kraken.

Digital currency trading platform 2025 Digital currency trading platform 2025 Mar 04, 2025 pm 07:06 PM

Based on global information, this article compiles the rankings of the world's leading virtual digital currency trading platforms, including Binance, OKX, Gate.io, Huobi, Coinbase, Kraken, Crypto.com, bitget, KuCoin and Bitstamp. These platforms have their own characteristics in terms of user count, transaction volume, transaction types, security, compliance, etc. For example, Binance is known for its large user base and extensive trading options, while Coinbase is known for its leadership and ease of use in the US market. Choosing a suitable trading platform requires weighing factors such as security, fees, and trading products based on your own needs.

What is Ouyi Exchange? What is the use of Ouyi Exchange? What is Ouyi Exchange? What is the use of Ouyi Exchange? Feb 15, 2025 pm 08:57 PM

Ouyi Exchange, formerly known as Binance, is one of the world's leading cryptocurrency trading platforms. It was founded in 2017 by Zhao Changpeng and is headquartered in Hong Kong, China. Ouyi Exchange provides users with a wide range of cryptocurrency trading services, including spot trading, futures trading, over-the-counter trading and crypto asset management.

See all articles