亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 數據庫 > Oracle > 正文

CentOS命令行下裝oracle 12c的方法(命令行模式安裝)

2024-08-29 13:59:18
字體:
來源:轉載
供稿:網友

實驗環境:

CentOS,命令行,oracle

1:安裝oracle所需軟件包

Oracle 12c所需的rpm包如下:

binutils-2.20.51.0.2-5.11.el6 (x86_64)compat-libcap1-1.10-1 (x86_64)compat-libstdc++-33-3.2.3-69.el6 (x86_64)compat-libstdc++-33-3.2.3-69.el6 (i686)gcc-4.4.4-13.el6 (x86_64)gcc-c++-4.4.4-13.el6 (x86_64)glibc-2.12-1.7.el6 (i686)glibc-2.12-1.7.el6 (x86_64)glibc-devel-2.12-1.7.el6 (x86_64)glibc-devel-2.12-1.7.el6 (i686)kshlibgcc-4.4.4-13.el6 (i686)libgcc-4.4.4-13.el6 (x86_64)libstdc++-4.4.4-13.el6 (x86_64)libstdc++-4.4.4-13.el6 (i686)libstdc++-devel-4.4.4-13.el6 (x86_64)libstdc++-devel-4.4.4-13.el6 (i686)libaio-0.3.107-10.el6 (x86_64)libaio-0.3.107-10.el6 (i686)libaio-devel-0.3.107-10.el6 (x86_64)libaio-devel-0.3.107-10.el6 (i686)libXext-1.1 (x86_64)libXext-1.1 (i686)libXtst-1.0.99.2 (x86_64)libXtst-1.0.99.2 (i686)libX11-1.3 (x86_64)libX11-1.3 (i686)libXau-1.0.5 (x86_64)libXau-1.0.5 (i686)libxcb-1.5 (x86_64)libxcb-1.5 (i686)libXi-1.3 (x86_64)libXi-1.3 (i686)make-3.81-19.el6sysstat-9.0.4-11.el6 (x86_64)

[root@ser6-51 mongodb]# yum install binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel libXext libXtst libX11 libXau libxcb libXi make sysstat

Loaded plugins: fastestmirror, securityDetermining fastest mirrors * base: mirrors.163.com * extras: mirrors.aliyun.com * updates: mirrors.163.combase                      | 3.7 kB 00:00 extras                      | 3.4 kB 00:00 updates                      | 3.4 kB 00:00 updates/primary_db                    | 3.9 MB 00:04 Setting up Install ProcessPackage gcc-4.4.7-11.el6.x86_64 already installed and latest versionPackage gcc-c++-4.4.7-11.el6.x86_64 already installed and latest versionPackage libgcc-4.4.7-11.el6.x86_64 already installed and latest versionPackage libstdc++-4.4.7-11.el6.x86_64 already installed and latest versionPackage libstdc++-devel-4.4.7-11.el6.x86_64 already installed and latest versionPackage libaio-0.3.107-10.el6.x86_64 already installed and latest versionPackage libXau-1.0.6-4.el6.x86_64 already installed and latest versionPackage 1:make-3.81-20.el6.x86_64 already installed and latest versionResolving Dependencies--> Running transaction check---> Package binutils.x86_64 0:2.20.51.0.2-5.36.el6 will be updated---> Package binutils.x86_64 0:2.20.51.0.2-5.42.el6 will be an update---> Package compat-libcap1.x86_64 0:1.10-1 will be installed---> Package compat-libstdc++-33.x86_64 0:3.2.3-69.el6 will be installed---> Package glibc.x86_64 0:2.12-1.132.el6 will be updated--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-headers-2.12-1.132.el6.x86_64--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-common-2.12-1.132.el6.x86_64---> Package glibc.x86_64 0:2.12-1.149.el6_6.9 will be an update---> Package glibc-devel.x86_64 0:2.12-1.132.el6 will be updated---> Package glibc-devel.x86_64 0:2.12-1.149.el6_6.9 will be an update---> Package ksh.x86_64 0:20120801-21.el6_6.3 will be installed---> Package libX11.x86_64 0:1.5.0-4.el6 will be updated---> Package libX11.x86_64 0:1.6.0-2.2.el6 will be an update--> Processing Dependency: libX11-common = 1.6.0-2.2.el6 for package: libX11-1.6.0-2.2.el6.x86_64---> Package libXext.x86_64 0:1.3.1-2.el6 will be updated---> Package libXext.x86_64 0:1.3.2-2.1.el6 will be an update---> Package libXi.x86_64 0:1.6.1-3.el6 will be updated---> Package libXi.x86_64 0:1.7.2-2.2.el6 will be an update---> Package libXtst.x86_64 0:1.2.1-2.el6 will be updated---> Package libXtst.x86_64 0:1.2.2-2.1.el6 will be an update---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed---> Package libxcb.x86_64 0:1.8.1-1.el6 will be updated---> Package libxcb.x86_64 0:1.9.1-2.el6 will be an update---> Package sysstat.x86_64 0:9.0.4-22.el6 will be updated---> Package sysstat.x86_64 0:9.0.4-27.el6 will be an update--> Running transaction check---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be updated---> Package glibc-common.x86_64 0:2.12-1.149.el6_6.9 will be an update---> Package glibc-headers.x86_64 0:2.12-1.132.el6 will be updated---> Package glibc-headers.x86_64 0:2.12-1.149.el6_6.9 will be an update---> Package libX11-common.noarch 0:1.5.0-4.el6 will be updated---> Package libX11-common.noarch 0:1.6.0-2.2.el6 will be an update--> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================================================================= Package      Arch     Version       Repository     Size=========================================================================================================================================================================================================Installing: compat-libcap1     x86_64     1.10-1       base     17 k compat-libstdc++-33     x86_64     3.2.3-69.el6      base     183 k ksh       x86_64     20120801-21.el6_6.3     updates     758 k libaio-devel      x86_64     0.3.107-10.el6      base     13 kUpdating: binutils      x86_64     2.20.51.0.2-5.42.el6     base     2.8 M glibc       x86_64     2.12-1.149.el6_6.9     updates     3.8 M glibc-devel      x86_64     2.12-1.149.el6_6.9     updates     984 k libX11      x86_64     1.6.0-2.2.el6      base     586 k libXext      x86_64     1.3.2-2.1.el6      base     35 k libXi       x86_64     1.7.2-2.2.el6      base     37 k libXtst      x86_64     1.2.2-2.1.el6      base     19 k libxcb      x86_64     1.9.1-2.el6      base     110 k sysstat      x86_64     9.0.4-27.el6      base     233 kUpdating for dependencies: glibc-common      x86_64     2.12-1.149.el6_6.9     updates     14 M glibc-headers      x86_64     2.12-1.149.el6_6.9     updates     612 k libX11-common      noarch     1.6.0-2.2.el6      base     192 k Transaction Summary=========================================================================================================================================================================================================Install 4 Package(s)Upgrade 12 Package(s) Total download size: 24 MIs this ok [y/N]: yDownloading Packages:(1/16): binutils-2.20.51.0.2-5.42.el6.x86_64.rpm                 | 2.8 MB 00:02 (2/16): compat-libcap1-1.10-1.x86_64.rpm                  | 17 kB 00:00 (3/16): compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm                | 183 kB 00:00 (4/16): glibc-2.12-1.149.el6_6.9.x86_64.rpm                 | 3.8 MB 00:05 (5/16): glibc-common-2.12-1.149.el6_6.9.x86_64.rpm                | 14 MB 00:13 (6/16): glibc-devel-2.12-1.149.el6_6.9.x86_64.rpm                 | 984 kB 00:02 (7/16): glibc-headers-2.12-1.149.el6_6.9.x86_64.rpm                | 612 kB 00:01 (8/16): ksh-20120801-21.el6_6.3.x86_64.rpm                 | 758 kB 00:01 (9/16): libX11-1.6.0-2.2.el6.x86_64.rpm                  | 586 kB 00:01 (10/16): libX11-common-1.6.0-2.2.el6.noarch.rpm                 | 192 kB 00:00 (11/16): libXext-1.3.2-2.1.el6.x86_64.rpm                  | 35 kB 00:00 (12/16): libXi-1.7.2-2.2.el6.x86_64.rpm                  | 37 kB 00:00 (13/16): libXtst-1.2.2-2.1.el6.x86_64.rpm                  | 19 kB 00:00 (14/16): libaio-devel-0.3.107-10.el6.x86_64.rpm                 | 13 kB 00:00 (15/16): libxcb-1.9.1-2.el6.x86_64.rpm                  | 110 kB 00:00 (16/16): sysstat-9.0.4-27.el6.x86_64.rpm                  | 233 kB 00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total                     712 kB/s | 24 MB 00:35 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Updating : glibc-common-2.12-1.149.el6_6.9.x86_64                  1/28  Updating : glibc-2.12-1.149.el6_6.9.x86_64                   2/28  Updating : glibc-headers-2.12-1.149.el6_6.9.x86_64                  3/28  Updating : libxcb-1.9.1-2.el6.x86_64                    4/28  Updating : libX11-common-1.6.0-2.2.el6.noarch                   5/28  Updating : libX11-1.6.0-2.2.el6.x86_64                    6/28  Updating : libXext-1.3.2-2.1.el6.x86_64                    7/28  Updating : libXi-1.7.2-2.2.el6.x86_64                    8/28  Updating : libXtst-1.2.2-2.1.el6.x86_64                    9/28  Updating : glibc-devel-2.12-1.149.el6_6.9.x86_64                  10/28  Installing : compat-libcap1-1.10-1.x86_64                   11/28  Updating : sysstat-9.0.4-27.el6.x86_64                    12/28  Installing : ksh-20120801-21.el6_6.3.x86_64                   13/28  Installing : compat-libstdc++-33-3.2.3-69.el6.x86_64                  14/28  Updating : binutils-2.20.51.0.2-5.42.el6.x86_64                  15/28  Installing : libaio-devel-0.3.107-10.el6.x86_64                   16/28  Cleanup : glibc-devel-2.12-1.132.el6.x86_64                   17/28  Cleanup : libXtst-1.2.1-2.el6.x86_64                    18/28  Cleanup : glibc-headers-2.12-1.132.el6.x86_64                   19/28  Cleanup : libXi-1.6.1-3.el6.x86_64                    20/28  Cleanup : libXext-1.3.1-2.el6.x86_64                    21/28  Cleanup : libX11-1.5.0-4.el6.x86_64                    22/28  Cleanup : libxcb-1.8.1-1.el6.x86_64                    23/28  Cleanup : binutils-2.20.51.0.2-5.36.el6.x86_64                  24/28  Cleanup : sysstat-9.0.4-22.el6.x86_64                    25/28  Cleanup : libX11-common-1.5.0-4.el6.noarch                   26/28  Cleanup : glibc-common-2.12-1.132.el6.x86_64                   27/28  Cleanup : glibc-2.12-1.132.el6.x86_64                    28/28  Verifying : glibc-devel-2.12-1.149.el6_6.9.x86_64                  1/28  Verifying : libaio-devel-0.3.107-10.el6.x86_64                   2/28  Verifying : libX11-1.6.0-2.2.el6.x86_64                    3/28  Verifying : compat-libcap1-1.10-1.x86_64                    4/28  Verifying : libXext-1.3.2-2.1.el6.x86_64                    5/28  Verifying : glibc-2.12-1.149.el6_6.9.x86_64                   6/28  Verifying : sysstat-9.0.4-27.el6.x86_64                    7/28  Verifying : ksh-20120801-21.el6_6.3.x86_64                   8/28  Verifying : compat-libstdc++-33-3.2.3-69.el6.x86_64                  9/28  Verifying : glibc-headers-2.12-1.149.el6_6.9.x86_64                  10/28  Verifying : binutils-2.20.51.0.2-5.42.el6.x86_64                  11/28  Verifying : libXtst-1.2.2-2.1.el6.x86_64                   12/28  Verifying : libXi-1.7.2-2.2.el6.x86_64                    13/28  Verifying : glibc-common-2.12-1.149.el6_6.9.x86_64                  14/28  Verifying : libxcb-1.9.1-2.el6.x86_64                    15/28  Verifying : libX11-common-1.6.0-2.2.el6.noarch                   16/28  Verifying : glibc-2.12-1.132.el6.x86_64                    17/28  Verifying : glibc-devel-2.12-1.132.el6.x86_64                   18/28  Verifying : glibc-headers-2.12-1.132.el6.x86_64                   19/28  Verifying : glibc-common-2.12-1.132.el6.x86_64                   20/28  Verifying : binutils-2.20.51.0.2-5.36.el6.x86_64                  21/28  Verifying : libXi-1.6.1-3.el6.x86_64                    22/28  Verifying : libX11-common-1.5.0-4.el6.noarch                   23/28  Verifying : sysstat-9.0.4-22.el6.x86_64                    24/28  Verifying : libxcb-1.8.1-1.el6.x86_64                    25/28  Verifying : libXtst-1.2.1-2.el6.x86_64                    26/28  Verifying : libX11-1.5.0-4.el6.x86_64                    27/28  Verifying : libXext-1.3.1-2.el6.x86_64                    28/28  Installed: compat-libcap1.x86_64 0:1.10-1  compat-libstdc++-33.x86_64 0:3.2.3-69.el6  ksh.x86_64 0:20120801-21.el6_6.3  libaio-devel.x86_64 0:0.3.107-10.el6   Updated: binutils.x86_64 0:2.20.51.0.2-5.42.el6 glibc.x86_64 0:2.12-1.149.el6_6.9 glibc-devel.x86_64 0:2.12-1.149.el6_6.9 libX11.x86_64 0:1.6.0-2.2.el6 libXext.x86_64 0:1.3.2-2.1.el6  libXi.x86_64 0:1.7.2-2.2.el6  libXtst.x86_64 0:1.2.2-2.1.el6  libxcb.x86_64 0:1.9.1-2.el6   sysstat.x86_64 0:9.0.4-27.el6  Dependency Updated: glibc-common.x86_64 0:2.12-1.149.el6_6.9    glibc-headers.x86_64 0:2.12-1.149.el6_6.9    libX11-common.noarch 0:1.6.0-2.2.el6     Complete!

驗證 Oracle 所需要的系統依賴程序包是否完整。

[root@ser6-51 mongodb]# rpm -qa binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel libXext libXtst libX11 libXau libxcb libXi make sysstat

libgcc-4.4.7-11.el6.x86_64libstdc++-4.4.7-11.el6.x86_64gcc-c++-4.4.7-11.el6.x86_64glibc-2.12-1.149.el6_6.9.x86_64libX11-1.6.0-2.2.el6.x86_64glibc-devel-2.12-1.149.el6_6.9.x86_64compat-libstdc++-33-3.2.3-69.el6.x86_64make-3.81-20.el6.x86_64libaio-0.3.107-10.el6.x86_64libXau-1.0.6-4.el6.x86_64libstdc++-devel-4.4.7-11.el6.x86_64libXext-1.3.2-2.1.el6.x86_64libXtst-1.2.2-2.1.el6.x86_64compat-libcap1-1.10-1.x86_64ksh-20120801-21.el6_6.3.x86_64binutils-2.20.51.0.2-5.42.el6.x86_64gcc-4.4.7-11.el6.x86_64libxcb-1.9.1-2.el6.x86_64libXi-1.7.2-2.2.el6.x86_64sysstat-9.0.4-27.el6.x86_64libaio-devel-0.3.107-10.el6.x86_64

2:對OS進行配置

2.1 創建相關用戶和用戶組
groupadd oinstall

groupadd oper

groupadd dba

useradd -g oinstall -G dba,oper oracle

 

2.2 修改oracle用戶的密碼
passwd oracle

 

2.3 修改系統參數
vi /etc/sysctl.conf

添加:

fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586

運行sysctl -p應用以上參數

/sbin/sysctl -p
 

2.4 修改用戶Limits
vi /etc/security/limits.conf

新增如下內容:

oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle stack nproc 10240
oracle stack nproc 10240
 

2.5 創建相關目錄

mkdir -p /u01/app/oracle/product/12c/db_1 
mkdir –p /u01/app/oracle/oradata
mkdir –p /u01/app/oracle/flash_recovery_area
mkdir -p /u01/app/oracle/archlog
chown -R oracle:oinstall /u01

2.6 配置環境變量
su - oracle

vi .bash_profile

添加:

# Oracle SettingsCOLUMNS=132; export COLUMNSLINES=47; export LINESEDITOR=vi; export EDITOR TMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/12c/db_1; export ORACLE_HOMEORACLE_SID=orcl; export ORACLE_SIDSHLIB_PATH=$LD_LIBRARY_PATH;export SHLIB_PATHNLS_LANG=American_America.zhs16gbk;export NLS_LANGORA_NLS10=$ORACLE_HOME/nls/data;export ORA_NLS10TNS_ADMIN=$ORACLE_HOME/network/admin;export TNS_ADMINORACLE_TERM=xterm; export ORACLE_TERMPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATHalias glance=/opt/perf/bin/glance:xalias gohome='cd /u01/app/oracle/product/10.2.0'alias cdb='cd /u01/app/oracle/admin/orcl/bdump'alias cdu='cd /u01/app/oracle/admin/orcl/udump'

--里面的內容可以根據實際情況進行改動,如可以改動ORACLE_SID.

修改完用:source .bash_profile生效。

2.7修改/etc/hosts
[oracle@ser6-51 ~]$ cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


[oracle@ser6-51 ~]$ hostname

ser6-51

把127.0.0.1那一行改為:127.0.0.1   ser6-51

2.8修改操作系統發行版本
由于 oracle 還沒有推出支持 CentOS 的安裝包,所以需要修改發行版本,以便通過 oracle 的安裝檢查。

vi /etc/redhat-release

把CentOS release 6.5 (Final) 注釋掉,前面加上一行redhat-4,當oracle安裝完成后,再修改回來。

如:

redhat-4
#CentOS release 6.5 (Final)

2.9 關閉SELINUX

vi /etc/selinux/config

將SELINUX那一行改成:

SELINUX=disabled

3:安裝

3.1 解壓安裝包
[root@ser6-51 download]# ls -ltr

-rw-r--r-- 1 root root 1014530602 Jul  6 15:07 linuxamd64_12102_database_2of2.zip
-rw-r--r-- 1 root root 1673544724 Jul  6 15:12 linuxamd64_12102_database_1of2.zip

[root@ser6-51 download]# unzip linuxamd64_12102_database_1of2.zip
[root@ser6-51 download]# unzip linuxamd64_12102_database_2of2.zip

 [root@ser6-51 download]# ls -ltr

drwxr-xr-x 7 root root       4096 Jul  7  2014 database
-rw-r--r-- 1 root root 1014530602 Jul  6 15:07 linuxamd64_12102_database_2of2.zip
-rw-r--r-- 1 root root 1673544724 Jul  6 15:12 linuxamd64_12102_database_1of2.zip

3.2 安裝oracle軟件

3.2.1 新建靜默安裝的應答文件
su - oracle
vi 12102db_install.rsp

添加:

######################################################################## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.     ####         #### Specify values for the variables listed below to customize     #### your installation.        ####         #### Each variable is associated with a comment. The comment    #### can help to populate the variables with the appropriate     #### values.         ####         #### IMPORTANT NOTE: This file contains plain text passwords and    #### should be secured to have read permission only by oracle user     #### or db administrator who owns this installation.      ####         ######################################################################## #-------------------------------------------------------------------------------# Do not change the following system generated value.#-------------------------------------------------------------------------------oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0 #-------------------------------------------------------------------------------# Specify the installation option.# It can be one of the following:# - INSTALL_DB_SWONLY# - INSTALL_DB_AND_CONFIG# - UPGRADE_DB#------------------------------------------------------------------------------oracle.install.option=INSTALL_DB_SWONLY #-------------------------------------------------------------------------------# Specify the hostname of the system as set during the install. It can be used# to force the installation to use an alternative hostname rather than using the# first hostname found on the system. (e.g., for systems with multiple hostnames# and network interfaces)#-------------------------------------------------------------------------------ORACLE_HOSTNAME=ser6-51 #-------------------------------------------------------------------------------# Specify the Unix group to be set for the inventory directory. #-------------------------------------------------------------------------------UNIX_GROUP_NAME=oinstall #-------------------------------------------------------------------------------# Specify the location which holds the inventory files.# This is an optional parameter if installing on# Windows based Operating System.#-------------------------------------------------------------------------------INVENTORY_LOCATION=/u01/app/oraInventory #-------------------------------------------------------------------------------# Specify the languages in which the components will be installed.  ## en : English   ja : Japanese   # fr : French   ko : Korean   # ar : Arabic   es : Latin American Spanish # bn : Bengali   lv : Latvian   # pt_BR: Brazilian Portuguese lt : Lithuanian  # bg : Bulgarian  ms : Malay   # fr_CA: Canadian French  es_MX: Mexican Spanish  # ca : Catalan   no : Norwegian  # hr : Croatian   pl : Polish   # cs : Czech   pt : Portuguese  # da : Danish   ro : Romanian   # nl : Dutch   ru : Russian   # ar_EG: Egyptian   zh_CN: Simplified Chinese # en_GB: English (Great Britain) sk : Slovak   # et : Estonian   sl : Slovenian  # fi : Finnish   es_ES: Spanish   # de : German   sv : Swedish   # el : Greek   th : Thai   # iw : Hebrew   zh_TW: Traditional Chinese # hu : Hungarian  tr : Turkish   # is : Icelandic  uk : Ukrainian  # in : Indonesian  vi : Vietnamese  # it : Italian       ## all_langs : All languages## Specify value as the following to select any of the languages.# Example : SELECTED_LANGUAGES=en,fr,ja## Specify value as the following to select all the languages.# Example : SELECTED_LANGUAGES=all_langs #-------------------------------------------------------------------------------SELECTED_LANGUAGES=en #-------------------------------------------------------------------------------# Specify the complete path of the Oracle Home.#-------------------------------------------------------------------------------ORACLE_HOME=/u01/app/oracle/product/12c/db_1 #-------------------------------------------------------------------------------# Specify the complete path of the Oracle Base.#-------------------------------------------------------------------------------ORACLE_BASE=/u01/app/oracle #-------------------------------------------------------------------------------# Specify the installation edition of the component.   #        # The value should contain only one of these choices. # - EE : Enterprise Edition    # - SE : Standard Edition     # - SEONE : Standard Edition One# - PE : Personal Edition (WINDOWS ONLY)#-------------------------------------------------------------------------------oracle.install.db.InstallEdition=EE ##################################################################################           ## PRIVILEGED OPERATING SYSTEM GROUPS      ## ------------------------------------------          ## Provide values for the OS groups to which OSDBA and OSOPER privileges     ## needs to be granted. If the install is being performed as a member of the      ## group "dba", then that will be used unless specified otherwise below.      ##           ## The value to be specified for OSDBA and OSOPER group is only for UNIX based    ## Operating System.         ##           ################################################################################ #------------------------------------------------------------------------------# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.#-------------------------------------------------------------------------------oracle.install.db.DBA_GROUP=dba #------------------------------------------------------------------------------# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.# The value to be specified for OSOPER group is optional.#------------------------------------------------------------------------------oracle.install.db.OPER_GROUP=oper #------------------------------------------------------------------------------# The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges.#------------------------------------------------------------------------------oracle.install.db.BACKUPDBA_GROUP=dba #------------------------------------------------------------------------------# The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges.#------------------------------------------------------------------------------oracle.install.db.DGDBA_GROUP=dba #------------------------------------------------------------------------------# The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges.#------------------------------------------------------------------------------oracle.install.db.KMDBA_GROUP=dba #################################################################################          ##   Database Configuration Options    ##          ################################################################################# #-------------------------------------------------------------------------------# Specify the type of database to create.# It can be one of the following:# - GENERAL_PURPOSE/TRANSACTION_PROCESSING   # - DATA_WAREHOUSE    #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.type= #-------------------------------------------------------------------------------# Specify the Starter Database Global Database Name.#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.globalDBName= #-------------------------------------------------------------------------------# Specify the Starter Database SID.#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.SID= #-------------------------------------------------------------------------------# Specify whether the database should be configured as a Container database.#-------------------------------------------------------------------------------oracle.install.db.ConfigureAsContainerDB= #-------------------------------------------------------------------------------# Specify the Pluggable Database name for the pluggable database in Container Database.#-------------------------------------------------------------------------------oracle.install.db.config.PDBName= #-------------------------------------------------------------------------------# Specify the Starter Database character set.#      # One of the following# AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,# EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,# BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,# AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,# IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,# KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,# ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.characterSet= #------------------------------------------------------------------------------# This variable should be set to true if Automatic Memory Management# in Database is desired.# If Automatic Memory Management is not desired, and memory allocation# is to be done manually, then set it to false.#------------------------------------------------------------------------------oracle.install.db.config.starterdb.memoryOption= #-------------------------------------------------------------------------------# Specify the total memory allocation for the database. Value(in MB) should be# at least 256 MB, and should not exceed the total physical memory available# on the system.# Example: oracle.install.db.config.starterdb.memoryLimit=512#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.memoryLimit= ##################################################################################           ## Passwords can be supplied for the following four schemas in the       ## starter database:                 ## SYS          ## SYSTEM         ## DBSNMP (used by Enterprise Manager)       ##           ## Same password can be used for all accounts (not recommended)       ## or different passwords for each account can be provided (recommended)     ##           ################################################################################## #------------------------------------------------------------------------------# This variable holds the password that is to be used for all schemas in the# starter database.#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.ALL=oracle #-------------------------------------------------------------------------------# Specify the SYS password for the starter database.#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.SYS= #-------------------------------------------------------------------------------# Specify the SYSTEM password for the starter database.#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.SYSTEM= #-------------------------------------------------------------------------------# Specify the DBSNMP password for the starter database.#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.DBSNMP= #-------------------------------------------------------------------------------# Specify the PDBADMIN password required for creation of Pluggable Database in the Container Database.#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.PDBADMIN=#------------------------------------------------------------------------------# Specify whether user doesn't want to configure Security Updates.# The value for this variable should be true if you don't want to configure# Security Updates, false otherwise.## The value can be either true or false. If left blank it will be assumed# to be false.## Example : DECLINE_SECURITY_UPDATES=false#------------------------------------------------------------------------------DECLINE_SECURITY_UPDATES=true#------------------------------------------------------------------------------# Specify the auto-updates option. It can be one of the following:# - MYORACLESUPPORT_DOWNLOAD# - OFFLINE_UPDATES# - SKIP_UPDATES#------------------------------------------------------------------------------oracle.installer.autoupdates.option=SKIP_UPDATES

3.2.2 靜默安裝軟件
[root@ser6-51 install]# su - oracle

[oracle@ser6-51 ~]$ cd /download/database/

[oracle@ser6-51 database]$ ./runInstaller -silent -responseFile /home/oracle/12102db_install.rsp

CentOS,命令行,oracle

/*

假如安裝過程中報錯了,已經在$ORACLE_HOME和/u01/app/oraInventory下生成了很多文件目錄。想再次安裝的話,需要先刪除這些文件:
[oracle@ser6-52 app]$ pwd
/u01/app
[oracle@ser6-52 app]$ rm -rf /u01/app/oraInventory

cd $ORACLE_HOME/
rm -rf *
*/

執行兩個腳本

[root@ser6-51 ~]# sh /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
root@ser6-51 ~]# sh /u01/app/oracle/product/12c/db_1/root.sh

Check /u01/app/oracle/product/12c/db_1/install/root_ser6-51_2015-07-06_19-00-11.log for the output of root script

3.3 建庫

3.3.1 建響應文件
v i /home/oracle/dbca.rsp

添加:

[GENERAL]RESPONSEFILE_VERSION = "12.1.2.0"OPERATION_TYPE = "createDatabase"[CREATEDATABASE]GDBNAME = "orcl"SID = "orcl"TEMPLATENAME = "New_Database.dbt"SYSPASSWORD = "orcl"SYSTEMPASSWORD = "orcl"SYSMANPASSWORD = "orcl"DBSNMPPASSWORD = "orcl"DATAFILEDESTINATION ="/u01/app/oracle/oradata"STORAGETYPE=FSCHARACTERSET = "ZHS16GBK"DATABASETYPE = "MULTIPURPOSE"AUTOMATICMEMORYMANAGEMENT = "FALSE"

3.3.2 執行命令
dbca -silent -responseFile /home/oracle/dbca.rsp

Creating and starting Oracle instance1% complete4% completeCreating database files5% complete9% completeCreating data dictionary views10% complete13% complete14% complete15% complete16% complete17% complete18% complete21% complete22% complete23% complete24% completeAdding Oracle JVM30% complete37% complete44% complete46% completeAdding Oracle Text47% complete48% complete50% complete51% completeAdding Oracle Multimedia52% complete65% completeAdding Oracle OLAP66% complete67% complete68% complete69% completeAdding Oracle Spatial70% complete78% completeAdding Oracle Application Express83% complete87% completeCompleting Database Creation89% complete90% complete91% complete95% complete100% complete

[oracle@ser6-51 dbs]$ export ORACLE_SID=orcl
[oracle@ser6-51 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Wed Jul 8 09:29:16 2015

Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> select status from v$instance;

STATUS
------------
OPEN

3.4配監聽

3.4.1 建響應文件
vi 12102_netca.rsp

添加:

[GENERAL]RESPONSEFILE_VERSION="12.1"CREATE_TYPE="CUSTOM" #-------------------------------------------------------------------------------# Name : SHOW_GUI# Datatype : Boolean# Description: This variable controls appearance/suppression of the NetCA GUI,# Pre-req : N/A# Default : TRUE# Note:# This must be set to false in order to run NetCA in silent mode.# This is a substitute of "/silent" flag in the NetCA command line.# The command line flag has precedence over the one in this response file.# This feature is present since 10.1.0.3.#-------------------------------------------------------------------------------#SHOW_GUI=false #-------------------------------------------------------------------------------# Name : LOG_FILE# Datatype : String# Description: If present, NetCA will log output to this file in addition to the#  standard out.# Pre-req : N/A# Default : NONE# Note:# This is a substitute of "/log" in the NetCA command line.# The command line argument has precedence over the one in this response file.# This feature is present since 10.1.0.3.#-------------------------------------------------------------------------------#LOG_FILE=""/oracle12cHome/network/tools/log/netca.log"" [oracle.net.ca]#INSTALLED_COMPONENTS;StringList;list of installed components# The possible values for installed components are:# "net8","server","client","aso", "cman", "javavm"INSTALLED_COMPONENTS={"server","net8","javavm"} #INSTALL_TYPE;String;type of install# The possible values for install type are:# "typical","minimal" or "custom"INSTALL_TYPE=""typical"" #LISTENER_NUMBER;Number;Number of Listeners# A typical install sets one listenerLISTENER_NUMBER=1 #LISTENER_NAMES;StringList;list of listener names# The values for listener are:# "LISTENER","LISTENER1","LISTENER2","LISTENER3", ...# A typical install sets only "LISTENER"LISTENER_NAMES="LISTENER" #LISTENER_PROTOCOLS;StringList;list of listener addresses (protocols and parameters separated by semicolons)# The possible values for listener protocols are:# "TCP;1521","TCPS;2484","NMP;ORAPIPE","IPC;IPCKEY","VI;1521"# A typical install sets only "TCP;1521"LISTENER_PROTOCOLS="TCP;1521" #LISTENER_START;String;name of the listener to start, in double quotesLISTENER_START=""LISTENER"" #NAMING_METHODS;StringList;list of naming methods# The possible values for naming methods are:# LDAP, TNSNAMES, ONAMES, HOSTNAME, NOVELL, NIS, DCE# A typical install sets only: "TNSNAMES","ONAMES","HOSTNAMES"# or "LDAP","TNSNAMES","ONAMES","HOSTNAMES" for LDAPNAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"} #NOVELL_NAMECONTEXT;String;Novell Directory Service name context, in double quotes# A typical install does not use this variable.#NOVELL_NAMECONTEXT = ""NAMCONTEXT"" #SUN_METAMAP;String; SUN meta map, in double quotes# A typical install does not use this variable.#SUN_METAMAP = ""MAP"" #DCE_CELLNAME;String;DCE cell name, in double quotes# A typical install does not use this variable.#DCE_CELLNAME = ""CELL"" #NSN_NUMBER;Number;Number of NetService Names# A typical install sets one net service nameNSN_NUMBER=1 #NSN_NAMES;StringList;list of Net Service names# A typical install sets net service name to "EXTPROC_CONNECTION_DATA"NSN_NAMES="EXTPROC_CONNECTION_DATA" #NSN_SERVICE;StringList;Oracle12c database's service name# A typical install sets Oracle12c database's service name to "PLSExtProc"NSN_SERVICE="PLSExtProc"

3.4.2 執行命令
[oracle@ser6-51 ~]$ netca -silent -responseFile /home/oracle/12102_netca.rsp
 
Parsing command line arguments:
    Parameter "silent" = true
    Parameter "responsefile" = /home/oracle/12102_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/12c/db_1/bin/lsnrctl start LISTENER
    Listener Control complete.
    Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0
 
 
4:設置開機啟動
4.1 修改dbstart文件
假如執行/u01/app/oracle/product/12c/db_1/bin/dbstart報錯:
ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
Usage: /u01/app/oracle/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME
修改dbstart文件,將ORACLE_HOME_LISTNER=$1
修改為ORACLE_HOME_LISTNER=$ORACLE_HOME
 
4.2修改/etc/oratab
添加:
orcl:/u01/app/oracle/product/12c/db_1:Y
4.3修改/etc/rc.d/rc.local
添加一行:
su oracle -lc /u01/app/oracle/product/12c/db_1/bin/dbstart
--說明:/u01/app/oracle/product/12c/dbhome_1為oracle的安裝目錄,要根據實際情況進行修改。
 
reboot試驗下看是否能開機自動啟動。
 
5:開1521端口
如果防火墻開啟了的話,要開1521端口,允許遠程訪問。
vi /etc/sysconfig/iptables
直接在配置文件里已有的-A INPUT那些命令下面
添加一行:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1521-j ACCEPT
重啟防火墻
[root@ser6-52 mongodb]# /etc/init.d/iptables restart
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]
 
6:后續配置
#把操作系統版本改回原來的配置
[root@pc ~]# vi /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
修改后:
#redhat-4
CentOS release 6.5 (Final)
 
對應步驟2.8。

--靜默方式建庫參考這篇文章。

 

注:相關教程知識閱讀請移步到oracle教程頻道。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
自拍亚洲一区欧美另类| 欧美裸体视频网站| 国产精品视频白浆免费视频| 亚洲欧美国产视频| 久久久久久有精品国产| 一本一本久久a久久精品综合小说| 欧美激情高清视频| 51色欧美片视频在线观看| 国产美女精品视频免费观看| 91视频免费在线| 中文字幕亚洲一区二区三区五十路| 成人综合国产精品| 欧美日韩人人澡狠狠躁视频| 成人激情视频免费在线| 欧美激情中文字幕在线| 久久精品国产亚洲7777| xxxxx91麻豆| 欧美精品久久一区二区| 播播国产欧美激情| 欧美高清在线视频观看不卡| 川上优av一区二区线观看| 亚洲第一精品夜夜躁人人躁| 欧美视频不卡中文| 国产精品久久久久国产a级| 精品视频一区在线视频| 中文字幕欧美精品在线| 欧美一级淫片videoshd| 国产成人精品视频| 久久精品一偷一偷国产| 中文字幕日韩在线观看| 国产91精品高潮白浆喷水| 日韩中文字幕国产| 国产91ⅴ在线精品免费观看| 欧美性xxxxx极品| 91手机视频在线观看| 日韩av在线免费观看| 国产精品久久久久久久9999| 国产精品高清在线观看| 欧美性猛交xxxx乱大交3| 久久久久久久国产精品视频| zzijzzij亚洲日本成熟少妇| 国产成人精品免费视频| 久久久精品久久| 欧美成人精品h版在线观看| 国产精品亚洲视频在线观看| 日韩精品在线观| 日韩精品视频观看| 欧美在线视频免费播放| 亚洲午夜性刺激影院| 日韩精品久久久久久久玫瑰园| 国产精品精品视频一区二区三区| 欧美一级片免费在线| 最新国产成人av网站网址麻豆| 亚洲最新av在线| 78色国产精品| 在线成人免费网站| 久久亚洲一区二区三区四区五区高| 亚洲热线99精品视频| 亚洲欧美中文在线视频| 国产精品视频专区| 精品成人在线视频| 欧美多人乱p欧美4p久久| 亚洲第一福利网| 久久久久久香蕉网| 日韩经典第一页| 亚洲女人被黑人巨大进入al| 136fldh精品导航福利| 亚洲综合中文字幕68页| 富二代精品短视频| 日韩在线观看成人| 中文字幕国产亚洲| 一区二区在线视频| 亚洲最大福利网站| xxxxx成人.com| 5566日本婷婷色中文字幕97| 北条麻妃一区二区在线观看| 国产成人精品免费久久久久| 亚洲精品福利在线| 欧美国产精品人人做人人爱| 日韩美女av在线免费观看| 欧美午夜精品久久久久久人妖| 国产成人一区二区三区| 亚洲精品一区av在线播放| 国产精品视频网址| 久久影视电视剧免费网站| 欧美剧在线观看| 亚洲精品午夜精品| 欧美成年人视频网站欧美| 高清视频欧美一级| 欧美一级免费视频| 国产精品成人国产乱一区| 北条麻妃在线一区二区| 在线观看国产精品日韩av| 国产91精品高潮白浆喷水| 欧美多人爱爱视频网站| 国产精品日韩精品| 中文国产成人精品久久一| 亚洲人午夜色婷婷| 成人黄色片网站| 91免费版网站入口| 中文字幕在线国产精品| 中文字幕亚洲无线码a| 亚洲一区二区三区在线视频| 欧美精品电影免费在线观看| 日韩av影视在线| 国内精品中文字幕| 欧美xxxx14xxxxx性爽| 亚洲色图校园春色| 在线播放日韩欧美| 日本高清久久天堂| 97视频在线看| 亚洲日韩欧美视频一区| 丝袜美腿精品国产二区| 国产视频在线观看一区二区| 亚洲视频在线观看免费| 九九视频直播综合网| 国产午夜精品全部视频播放| 欧美视频第一页| 久久久精品一区二区| 精品人伦一区二区三区蜜桃网站| 欧美在线视频观看免费网站| 欧美激情精品久久久久久免费印度| 国产亚洲激情在线| 国产专区欧美专区| 欧美日韩在线免费| 中文字幕亚洲欧美日韩2019| 日韩乱码在线视频| 亚洲人成亚洲人成在线观看| 亚洲激情在线观看视频免费| 欧美激情精品在线| 91网在线免费观看| 国产精品免费电影| 亚洲一区亚洲二区亚洲三区| 国产精品第一区| 国产欧洲精品视频| 国内外成人免费激情在线视频网站| 亚洲精品国产精品乱码不99按摩| 这里只有视频精品| 国产精品久在线观看| 国产视频久久久| 欧美亚洲成人免费| 欧美乱大交做爰xxxⅹ性3| 欧美黄色片视频| 在线看片第一页欧美| 国产精品久久久久999| 久久免费视频这里只有精品| 国产一区二区三区视频| 在线成人激情视频| 亚洲网在线观看| 久久天天躁夜夜躁狠狠躁2022| 成人乱人伦精品视频在线观看| 国产成人97精品免费看片| 日韩有码在线视频| 亚洲第一二三四五区| 一区二区亚洲欧洲国产日韩| 久久久国产精品视频| 亚洲精品国精品久久99热| 久久色精品视频| 66m—66摸成人免费视频| 国产精品电影网站| 久久激情五月丁香伊人| 久久久久久久久久久网站| 这里只有精品视频在线| 日韩在线视频二区|