1.查看swap大小,若小于150M,需添加增加虚拟空间

dd if=/dev/zero of=/swapadd bs=1024 count=2006424
mkswap /swapadd
swapon /swapadd
重启系统虚拟空间会消失,除非打开/etc/fstab文件,加入
/swap swap swap default 0 0

2.查看操作系统信息

[root@docker ~]# uname -m
x86_64
[root@docker ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)

3.安装前的准备

a.修改主机名,linux7以上系统用:hostnamectl set-hostname hostname

 4.关闭selinux:vi /etc/selinux/config,设置如下,重启系统reboot;

 5.检查以下服务是否安装

binutils-2.23.52.0.-.el7.x86_64
compat-libcap1-1.10-.el7.x86_64
compat-libstdc++--3.2.-.el7.i686
compat-libstdc++--3.2.-.el7.x86_64
gcc-4.8.-.el7.x86_64
gcc-c++-4.8.-.el7.x86_64
glibc-2.17-.el7.i686
glibc-2.17-.el7.x86_64
glibc-devel-2.17-.el7.i686
glibc-devel-2.17-.el7.x86_64
ksh
libaio-0.3.-.el7.i686
libaio-0.3.-.el7.x86_64
libaio-devel-0.3.-.el7.i686
libaio-devel-0.3.-.el7.x86_64
libgcc-4.8.-.el7.i686
libgcc-4.8.-.el7.x86_64
libstdc++-4.8.-.el7.i686
libstdc++-4.8.-.el7.x86_64
libstdc++-devel-4.8.-.el7.i686
libstdc++-devel-4.8.-.el7.x86_64
libXi-1.7.-.el7.i686
libXi-1.7.-.el7.x86_64
libXtst-1.2.-.el7.i686
libXtst-1.2.-.el7.x86_64
make-3.82-.el7.x86_64
sysstat-10.1.-.el7.x86_64
unixODBC-2.3.-.el7.x86_64 or later
unixODBC-2.3.-.el7.i686 or later
unixODBC-devel-2.3.-.el7.x86_64 or later
unixODBC-devel-2.3.-.el7.i686 or later

若担心系统包比较旧可考虑先更新程序包:yum -y upgrade,(提示:等待时间比较长!)

用yum进行安装所需服务:

yum -y install binutils compat-libcap1 compat-libstdc++- compat-libstdc++-*i686 compat-libstdc++-*.devel compat-libstdc++- compat-libstdc++-*.devel gcc gcc-c++ glibc glibc*.i686 glibc-devel glibc-devel*.i686 ksh libaio libaio*.i686 libaio-devel libaio-devel*.devel libgcc libgcc*.i686 libstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.devel libXi libXi*.i686 libXtst libXtst*.i686 make sysstat unixODBC unixODBC*.i686 unixODBC-devel unixODBC-devel*.i686

检查31个包是否都有安装,版本号只能大于规定的版本,不能小于

rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst  make sysstat  unixODBC unixODBC-devel
[root@docker ~]# rpm -q binutils compat-libcap1 compat-libstdc++- gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst  make sysstat  unixODBC unixODBC-devel
binutils-2.23.52.0.-.el7.x86_64
compat-libcap1-1.10-.el7.x86_64
compat-libstdc++--3.2.-.el7.x86_64
compat-libstdc++--3.2.-.el7.i686
gcc-4.8.-.el7.x86_64
gcc-c++-4.8.-.el7.x86_64
glibc-2.17-.el7_2..x86_64
glibc-2.17-.el7_2..i686
glibc-devel-2.17-.el7_2..x86_64
glibc-devel-2.17-.el7_2..i686
ksh--.el7_1..x86_64
libaio-0.3.-.el7.x86_64
libaio-0.3.-.el7.i686
libaio-devel-0.3.-.el7.x86_64
libaio-devel-0.3.-.el7.i686
libgcc-4.8.-.el7.x86_64
libgcc-4.8.-.el7.i686
libstdc++-4.8.-.el7.x86_64
libstdc++-4.8.-.el7.i686
libstdc++-devel-4.8.-.el7.x86_64
libstdc++-devel-4.8.-.el7.i686
libXi-1.7.-2.1.el7.x86_64
libXi-1.7.-.el7.i686
libXtst-1.2.-2.1.el7.x86_64
libXtst-1.2.-2.1.el7.i686
make-3.82-.el7.x86_64
sysstat-10.1.-.el7.x86_64
unixODBC-2.3.-.el7.x86_64
unixODBC-2.3.-.el7.i686
unixODBC-devel-2.3.-.el7.x86_64
unixODBC-devel-2.3.-.el7.i686

 6.创建oinstall和dba组

/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba

 7.创建Oracle用户:

/usr/sbin/useradd -g oinstall -G dba oracle

设置oracle密码

passwd oracle

验证创建及所属组是否正确:id oracle

[root@docker ~]# id oracle
uid=(oracle) gid=(oinstall) groups=(oinstall),(dba)

8.配置内核参数

[root@docker ~]# vim /etc/sysctl.conf 

# System default settings live in /usr/lib/sysctl.d/-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf() and sysctl.d().
fs.aio-max-nr =
fs.file-max =
kernel.shmall =
kernel.shmmax = 7516192768 #7G
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 =

参数的值不能小于上面的配置,因为这是oracle官方建议的最小值,所以生产环境建议调整为这些参数,以优化系统性能。

注意:kernel.shmmax的值,#最低:536870912,最大值:比物理内存小1个字节的值,建议比物理内存小一点点就可以(过小的话后期会导致数据库实例无法启动或无法监听)

参数解释:

shmmax=物理内存*%*%,单位是字节
kernel.shmmax:表示单个共享内存段的最大值,以字节为单位,此值一般为物理内存的一半,不过大一点也没关系,这里设定的为4GB,即“///=4G”。
kernel.shmmin:表示单个共享内存段的最小值,默认为1byte
kernel.shmall:表示整个系统范围内可用共享内存页的总量,单位是页(page),在32位系统上一页等于4kB,也就是4096字节。计算公式是:shmmax/PAGE_SIZE
kernel.shmmni:表示整个系统范围内内存段的最大数量,一般为4096.
ip_local_port_range :表示端口的范围。在监听器帮助客户端进程和服务器进程建立连接时,会用到指定范围内的端口。
kernel.sem :表示设置的信号量,这4个参数内容大小固定。
net.core.rmem_default :表示接收套接字缓冲区大小的缺省值(以字节为单位)。
net.core.rmem_max :表示接收套接字缓冲区大小的最大值(以字节为单位)
net.core.wmem_default :表示发送套接字缓冲区大小的缺省值(以字节为单位)。
net.core.wmem_max :表示发送套接字缓冲区大小的最大值(以字节为单位)。

参数解释

修改后使之生效

/sbin/sysctl -p

 9.修改用户权限

vim  /etc/security/limits.conf

#在末尾添加
oracle soft nproc
oracle hard nproc
oracle soft nofile
oracle hard nofile
oracle soft stack
oracle hard stack

 10.在/etc/pam.d/login 文件中,使用文本编辑器或vi命令增加或修改以下内容

session required /lib64/security/pam_limits.so
session required pam_limits.so

 11.在/etc/profile 文件中,使用文本编辑器或vi命令增加或修改以下内容

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

使之生效:source /etc/profile

source /etc/profile

 12.创建安装目录

mkdir -p /data/oracle/app/
chown -R oracle:oinstall /data/oracle/app/
chmod -R /data/oracle/app/
#提示:图型化界面安装需创建 oraInventory目录
mkdir -p /data/oracle oraInventory
chown -R oracle:oinstall /data/oraInventory
chmod -R /data/oraInventory

 13.配置环境变量

[oracle@docker ~]$ vim ~/.bash_profile 

export ORACLE_BASE=/data/app/oracle
export ORACLE_SID=dbsrv2

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

PATH=$PATH:$ORACLE_HOME/bin

 

使之生效

source ~/.bash_profile

 14.解压oracle软件

[root@docker src]# unzip linux.x64_11gR2_database_1of2.zip
[root@docker src]# unzip linux.x64_11gR2_database_2of2.zip

 15.切换到Oracle用户,复制响应文件模板

[oracle@docker ~]$ mkdir etc
[oracle@docker ~]$ cp /usr/local/src/database/response/* /home/oracle/etc/
[oracle@docker ~]$ ls etc
dbca.rsp db_install.rsp netca.rsp

 16.设置响应文件权限

[oracle@docker ~]$ su - root

[root@docker ~]# chmod  /home/oracle/etc/*.rsp

 17.切换到oracle用户:su - oracle,修改安装Oracle软件的响应文件/home/oracle/etc/db_install.rsp

oracle.install.option=INSTALL_DB_SWONLY     // 安装类型
ORACLE_HOSTNAME=docker // 主机名称(hostname查询)
UNIX_GROUP_NAME=oinstall // 安装组
INVENTORY_LOCATION=/u01/app/oraInventory //INVENTORY目录(不填就是默认值)
SELECTED_LANGUAGES=en,zh_CN,zh_TW // 选择语言
ORACLE_HOME=/u01/app/oracle/product/11.2./db_1 //oracle_home
ORACLE_BASE=/u01/app/oracle //oracle_base
oracle.install.db.InstallEdition=EE     // oracle版本
oracle.install.db.EEOptionsSelection=false   //自定义安装,否,使用默认组件
oracle.install.db.DBA_GROUP=dba /  / dba用户组
oracle.install.db.OPER_GROUP=oinstall // oper用户组
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE //数据库类型
oracle.install.db.config.starterdb.globalDBName=orcl //globalDBName
oracle.install.db.config.starterdb.SID=dbsrv2 //SID
oracle.install.db.config.starterdb.memoryLimit= //自动管理内存的内存(M)
oracle.install.db.config.starterdb.password.ALL=oracle //设定所有数据库用户使用同一个密码
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false //(手动写了false)
DECLINE_SECURITY_UPDATES=true   //设置安全更新(貌似是有bug,这个一定要选true,否则会无限提醒邮件地址有问题,终止安装。PS:不管地址对不对)

 18.开始静默安装

[oracle@docker database]$ /data/software//database/runInstaller -silent -responseFile /home/oracle/etc/db_install.rsp

19.查看安装日志

tail -f /u01/app/oraInventory/logs/installActions2016--31_06--29PM.log

出现如下提示表示安装完成

[oracle@zyadmin ~]$ /data/software//database/runInstaller -silent -responseFile /home/oracle/etc/db_install.rsp
正在启动 Oracle Universal Installer... 检查临时空间: 必须大于 MB。 实际为 MB 通过
检查交换空间: 必须大于 MB。 实际为 MB 通过
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2018--18_03--11PM. 请稍候...[oracle@zyadmin ~]$ [WARNING] [INS-] 目标环境不满足一些可选要求。
原因: 不满足一些可选的先决条件。有关详细信息, 请查看日志。/tmp/OraInstall2018--18_03--11PM/installActions2018--18_03--11PM.log
操作: 从日志 /tmp/OraInstall2018--18_03--11PM/installActions2018--18_03--11PM.log 中确定失败的先决条件检查列表。然后, 从日志文件或安装手册中查找满足这些先决条件的适当配置, 并手动进行修复。
可以在以下位置找到本次安装会话的日志:
/data/u01/app/oraInventory/logs/installActions2018--18_03--11PM.log
^C
[oracle@zyadmin ~]$ tail /data/u01/app/oraInventory/logs/installActions2018--18_03--11PM.log
信息: 构建客户机共享库
信息: 此 make 操作的输出也可以在以下位置获得: '/data/u01/app/oracle/product/11.2.0/db_1/install/make.log'
信息: 信息: 开始从衍生进程输出:
信息: ----------------------------------
信息: 信息: /data/u01/app/oracle/product/11.2./db_1/bin/genclntsh [oracle@zyadmin ~]$ Oracle Database 11g 的 安装 已成功。
请查看 '/data/u01/app/oraInventory/logs/silentInstall2018-08-18_03-29-11PM.log' 以获取详细资料。 以 root 用户的身份执行以下脚本:
. /data/u01/app/oraInventory/orainstRoot.sh
. /data/u01/app/oracle/product/11.2./db_1/root.sh Successfully Setup Software.

 20.使用root用户执行脚本

su - root
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2./db_1/root.sh

常见报错解决办法:

(1)若没有生成orainstRoot.sh这个文件,解决办法:删除/etc/oraInst.loc文件

(2) 若重装Oracle提示:“系统标识符(SID)已经存在,请指定另一个SID”,

解决办法:把/etc/oratab里面对应的记录注释或者删除掉

(3)修改Oracle端口:

a.查看监听状态,停止监听

$lsnrctl status

$lsnrctl stop

b.修改配置文件

$vi $ORACLE_HOME/network/admin/listener.ora

(修改对应的端口为欲更改端口)

c.登陆并查看local_listener参数

$sqlplus / as sysdba

>show parameter local_listener

(此时value值是空的)

d.修改local_listener参数

>alter system set local_listener="(address=(protocol=tcp)(host=172.16.8.129)(port=1521))";

 (host后面加主机名或者IP,然后就可以查看local_listener参数了)

e.启动监听,查看状态

>lsnrctl start

>lsnrctl status

f.防火墙端口开放

# /sbin/iptables -l INPUT -p tcp --dport 端口 -j ACCEPT

# /etc/rc.d/init.d/iptables save

a.查看监听状态,停止监听

$lsnrctl status

$lsnrctl stop

b.修改配置文件

$vi $ORACLE_HOME/network/admin/listener.ora

(修改对应的端口为欲更改端口)

c.登陆并查看local_listener参数

$sqlplus / as sysdba

>show parameter local_listener

(此时value值是空的)

d.修改local_listener参数

>alter system set local_listener="(address=(protocol=tcp)(host=172.16.8.129)(port=1521))";

(host后面加主机名或者IP,然后就可以查看local_listener参数了)

e.启动监听,查看状态

>lsnrctl start

>lsnrctl status

f.防火墙端口开放

# /sbin/iptables -l INPUT -p tcp --dport 端口 -j ACCEPT

# /etc/rc.d/init.d/iptables save

 21.增加或修改oracle的环境变量

su  - oracle
vim ~/.bash_profile
#for oracle
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=dbsrv2
export ROACLE_PID=ora11g
#export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export ORACLE_HOME=/u01/app/oracle/product/11.2./db_1
export PATH=$PATH:$ORACLE_HOME/bin export LANG="zh_CN.UTF-8"
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'

 22.配置监听程序:netca /silent /responsefile /home/oracle/etc/netca.rsp

[oracle@docker ~]$ netca /silent /responsefile /home/oracle/etc/netca.rsp

Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = /home/oracle/etc/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
/u01/app/oracle/product/11.2./db_1/bin/lsnrctl start LISTENER
Listener Control complete.
Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is

23.启动监听程序:[oracle@docker ~]$ lsnrctl start

[oracle@docker ~]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1. - Production on -SEP- ::

Copyright (c) , , Oracle.  All rights reserved.

Starting /u01/app/oracle/product/11.2./db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1. - Production
System parameter file is /u01/app/oracle/product/11.2./db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/docker/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=docker)(PORT=))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1. - Production
Start Date -SEP- ::
Uptime days hr. min. sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2./db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/docker/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=docker)(PORT=)))
The listener supports no services
The command completed successfully

 24.静默dbca建库,编辑应答文件

[oracle@docker ~]$ vi etc/dbca.rsp
[GENERAL]
RESPONSEFILE_VERSION = "11.2.0"
OPERATION_TYPE = "createDatabase"
[CREATEDATABASE]
GDBNAME = "dbsrv2"
SID = "dbsrv2"
TEMPLATENAME = "General_Purpose.dbc"
CHARACTERSET = "AL32UTF8"

 25.建库:

[oracle@docker ~]$ dbca -silent -responseFile etc/dbca.rsp
[oracle@docker ~]$ dbca -silent -responseFile etc/dbca.rsp

Enter SYS user password: 

Enter SYSTEM user password: 

sh: /bin/ksh: No such file or directory
sh: /bin/ksh: No such file or directory
Copying database files
% complete
% complete
% complete
% complete
% complete
% complete
Creating and starting Oracle instance
% complete
% complete
% complete
% complete
% complete
% complete
% complete
% complete
Completing Database Creation
% complete
% complete
% complete
% complete
% complete
% complete
% complete
Look at the log file Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl11g/orcl11g.log" for further details.

至此数据库实例创建成功!

参考博客:https://www.cnblogs.com/zydev/p/5827207.html

官方支持:

https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCBCFDI

PS:

删除实例:

[oracle@docker ~]$ dbca -silent -deleteDatabase -sourcedb dbsrv2

oracle云在RedHat 6上的一些参数文件,内存是8G,供参考:

/etc/sysctl.conf

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, is disabled, is enabled. See sysctl() and
# sysctl.conf() for more details. # Controls IP packet forwarding
net.ipv4.ip_forward = # Controls source route verification
net.ipv4.conf.default.rp_filter = # Do not accept source routing
net.ipv4.conf.default.accept_source_route = # Controls the System Request debugging functionality of the kernel
kernel.sysrq = # Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = # Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = # Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables =
net.bridge.bridge-nf-call-iptables =
net.bridge.bridge-nf-call-arptables = # Controls the default maxmimum size of a mesage queue
kernel.msgmnb = # Controls the maximum size of a message, in bytes
kernel.msgmax = # Controls the maximum shared segment size, in bytes # Controls the maximum number of shared memory segments, in pages
kernel.shmall = # oracle-rdbms-server-12cR1-preinstall setting for fs.file-max is # oracle-rdbms-server-12cR1-preinstall setting for kernel.sem is '250 32000 100 128' # oracle-rdbms-server-12cR1-preinstall setting for kernel.shmmni is # oracle-rdbms-server-12cR1-preinstall setting for kernel.shmall is on x86_64 # oracle-rdbms-server-12cR1-preinstall setting for kernel.shmmax is on x86_64 # oracle-rdbms-server-12cR1-preinstall setting for kernel.panic_on_oops is per Orabug # oracle-rdbms-server-12cR1-preinstall setting for net.core.rmem_default is # oracle-rdbms-server-12cR1-preinstall setting for net.core.rmem_max is # oracle-rdbms-server-12cR1-preinstall setting for net.core.wmem_default is # oracle-rdbms-server-12cR1-preinstall setting for net.core.wmem_max is # oracle-rdbms-server-12cR1-preinstall setting for fs.aio-max-nr is # oracle-rdbms-server-12cR1-preinstall setting for net.ipv4.ip_local_port_range is kernel.panic =
xen.independent_wallclock = # oracle-rdbms-server-11gR2-preinstall setting for fs.file-max is
fs.file-max = # oracle-rdbms-server-11gR2-preinstall setting for kernel.sem is '250 32000 100 128'
kernel.sem = # oracle-rdbms-server-11gR2-preinstall setting for kernel.shmmni is
kernel.shmmni = # oracle-rdbms-server-11gR2-preinstall setting for kernel.shmall is on x86_64
# oracle-rdbms-server-11gR2-preinstall setting for kernel.shmall is on i386 # oracle-rdbms-server-11gR2-preinstall setting for kernel.shmmax is on x86_64
# oracle-rdbms-server-11gR2-preinstall setting for kernel.shmmax is on i386
kernel.shmmax = # oracle-rdbms-server-11gR2-preinstall setting for kernel.panic_on_oops is per Orabug
kernel.panic_on_oops = # oracle-rdbms-server-11gR2-preinstall setting for net.core.rmem_default is
net.core.rmem_default = # oracle-rdbms-server-11gR2-preinstall setting for net.core.rmem_max is
net.core.rmem_max = # oracle-rdbms-server-11gR2-preinstall setting for net.core.wmem_default is
net.core.wmem_default = # oracle-rdbms-server-11gR2-preinstall setting for net.core.wmem_max is
net.core.wmem_max = # oracle-rdbms-server-11gR2-preinstall setting for fs.aio-max-nr is
fs.aio-max-nr = # oracle-rdbms-server-11gR2-preinstall setting for net.ipv4.ip_local_port_range is
net.ipv4.ip_local_port_range = vm.nr_hugepages = net.ipv4.conf.all.accept_redirects =
net.ipv6.conf.all.accept_redirects =
net.ipv4.conf.all.send_redirects =

/etc/security/limits.conf

# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#<domain> <type> <item> <value>
#Where:
#<domain> can be:
# - a user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open file descriptors
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-, ]
# - rtprio - max realtime priority
#<domain> <type> <item> <value> #* soft core
#* hard rss
#@student hard nproc
#@faculty soft nproc
#@faculty hard nproc
#ftp hard nproc
# End of file # oracle-rdbms-server-11gR2-preinstall setting for nofile soft limit is
oracle soft nofile # oracle-rdbms-server-11gR2-preinstall setting for nofile hard limit is
oracle hard nofile # oracle-rdbms-server-11gR2-preinstall setting for nproc soft limit is
# refer orabug15971421 for more info.
oracle soft nproc # oracle-rdbms-server-11gR2-preinstall setting for nproc hard limit is
oracle hard nproc # oracle-rdbms-server-11gR2-preinstall setting for stack soft limit is 10240KB
oracle soft stack # oracle-rdbms-server-11gR2-preinstall setting for stack hard limit is 32768KB
oracle hard stack # oracle-rdbms-server-11gR2-preinstall setting for memlock hard limit is maximum of {128GB (x86_64) / 3GB (x86) or % of RAM}
oracle hard memlock # oracle-rdbms-server-11gR2-preinstall setting for memlock soft limit is maximum of {128GB (x86_64) / 3GB (x86) or % of RAM}
oracle soft memlock

~/.bashrc

# User specific aliases and functions
umask
ORACLE_HOME=/u01/app/oracle/product/11.2./dbhome_1; export ORACLE_HOME
OH=/u01/app/oracle/product/11.2./dbhome_1; export OH
ORACLE_UNQNAME=TESTDB; export ORACLE_UNQNAME
ORACLE_HOSTNAME=TESTDB.compute-gbsinsooft908.oraclecloud.internal; export ORACLE_HOSTNAME
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/u01/app/oracle/product/11.2./dbhome_1/bin:/u01/app/oracle/product/11.2./dbhome_1/OPatch; export PATH
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2./dbhome_1/lib; export LD_LIBRARY_PATH
EMKEY_LOCATION=/u02/app/oracle/oradata/admin/TESTDB/dbs; export EMKEY_LOCATION
ORACLE_SID=TESTDB; export ORACLE_SID
TFA_HOME=/var/opt/oracle/tfa; export TFA_HOME

Linux7静默安装Oracle11g教程,亲测实用有效!的更多相关文章

  1. Linux CentOS 6.5 64位 静默安装Oracle11g 云主机

    本例: 通过SSH远程连接云主机,上传oracle11g安装包,在centos6.5上无图形化界面静默安装oracle11g. 涉及工具及环境: 1.本地环境windows7+ssh远程连接工具xSh ...

  2. Eclipse4.5 Mars版本安装activiti插件 亲测可用

    Eclipse4.5 Mars版本安装activiti插件 亲测可用 学习使用activiti 在线安装一直,国内的网络真心的是 很苦 啊:在茫茫网络上面找到了很多插件的离线包 终于找到一个可以使用的 ...

  3. Navicat Premium 15 安装包&激活工具及安装教程(亲测可用)

    Navicat Premium 15 安装包及激活工具 网盘地址: 链接:https://pan.baidu.com/s/1GU9qgdG1dRCw9Un8H9Ba9A提取码:F1r9 开始安装 下载 ...

  4. 爬虫之手机APP抓包教程-亲测HTTP和HTTPS均可实现

    当下很多网站都有做自己的APP端产品,一个优秀的爬虫工程师,必须能够绕过难爬取点而取捷径,这是皆大欢喜的.但是在网上收罗和查阅了无数文档和资料,本人亲测无数次,均不能正常获取HTTPS数据,究其原因是 ...

  5. CentOS7静默安装oracle11g

    操作系统: [root@docker ~]# uname -m x86_64 [root@docker ~]# cat /etc/redhat-release CentOS Linux release ...

  6. 静默安装oracle11G

    1.操作系统及Oracle版本 Linux版本:CentOS release 5.5 (Final) Oracle版本:Oracle Database 11g Release 2 (11.2.0.1. ...

  7. centos下静默安装oracle11g

    一.安装依赖包 yum -y install gcc make binutils gcc-c++ compat-libstdc++-33 elfutils-libelf-devel elfutils- ...

  8. 【通过ssh oracle11g安装】centos6静默安装oracle11g

    转载链接:https://blog.csdn.net/u011391839/article/details/76566316 根据实际情况略作调整~ 博主参考了以上链接成功进行安装,列一下自己遇到的坑 ...

  9. Centos7 静默安装 Oracle11G

    1.准备安装包: 安装包官网下载地址:https://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-l ...

随机推荐

  1. [转]微信小程序(应用号)是什么,是否值得投入进来做?

    本文转自:http://www.woshipm.com/it/417887.html 距离张小龙的那场首次公开演讲已经有九个月了,而在那场演讲中备受关注的「应用号」在千呼万唤中终于以「小程序」的名字正 ...

  2. [转]在ASP.NET Core使用Middleware模拟Custom Error Page功能

    本文转自:http://www.cnblogs.com/maxzhang1985/p/5974429.html 阅读目录 一.使用场景 二..NET Core实现 三.源代码 回到目录 一.使用场景 ...

  3. [转]win7 如何升级PowerShell

    本文转自:http://www.cnblogs.com/wenBlog/p/6198354.html 背景: 开发的PowerShell 脚本需要使用Invoke-RestMethod命令,发现在老的 ...

  4. CentOS初使用命令总结

    最近买了一台aliyun(ECS服务器)用来学习使用,初次使用难免要走弯路.遇到一些问题好长时间解决不了,结果经人指点豁然开朗.于是乎,总结了一些新生上路经验. 首先要解决的问题是:通过PuTTY.S ...

  5. ThreadPoolExecutor(下篇)

    上篇写到了ThreadPoolExecutor构造方法前4个参数int corePoolSize.int maximumPoolSize,.long keepAliveTime.TimeUnit un ...

  6. 【数据库】4.0 MySQL入门学习(四)——linux系统环境下MySQL安装

    1.0 我的操作系统是CentOS Linux release 7.6.1810  (Core) 系统详细信息如下: Linux version 3.10.0-957.1.3.el7.x86_64 ( ...

  7. HTML字符实体名称/实体编号

    字符实体对英文的大小写敏感! 字符实体一: 显示结果 描述 实体名称 实体编号   空格     < 小于号 < < > 大于号 > > & 和号 & ...

  8. 《ArcGIS Runtime SDK for Android开发笔记》——(15)、要素绘制Drawtools3.0工具DEMO

    1.前言 移动GIS项目开发中点线面的要素绘制及编辑是最常用的操作,在ArcGIS Runtime SDK for iOS 自带AGSSketchLayer类可以帮助用户快速实现要素的绘制,图形编辑. ...

  9. dwr2.0版本的demo

        谈起DWR,这个东西在上学的时候接触过,但工作之后就再也没有用过.       对DWR的印象是不手写AJAX,使用JavaScript调用java后台的代码,就如同调用前台代码一样.     ...

  10. HCNA修改OSPF基准带宽

    1.拓扑图 2.R1配置ip开启OSPF The device is running! <Huawei>sysEnter system view, return user view wit ...