91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

靜默安裝Oracle12.2數據庫

發布時間:2020-07-10 00:35:02 來源:網絡 閱讀:8398 作者:SEianG 欄目:數據庫


實驗環境:

操作系統:Redhat 6.4 64

數據庫:Oracle 12c R2

 

一、安裝前準備

1、  創建用戶和組

[root@wjq~]# groupadd -g1000 oinstall  

//oinstall組:是清單目錄組(Oracle Inventory group),用于管理清單目錄(Inventory)

[root@wjq~]# groupadd -g1001 dba       //dba組:用于數據庫管理

[root@wjq~]# useradd -u600 -g oinstall -G dba oracle

[root@wjq~]# passwdoracle

Changingpassword for user oracle.

Newpassword:

BADPASSWORD: it is based on a dictionary word

BADPASSWORD: is too simple

Retypenew password:

passwd:all authentication tokens updated successfully.

 

2、  創建目錄

[root@wjq~]# mkdir -p/u01/app/oracle/product/12.2.0/dbhome_1

[root@wjq~]# chown -Roracle:oinstall /u01

[root@wjq~]# chmod -R 775/u01/app/oracle

 

3、  查看物理內存、交換空間和文件系統大小

[root@wjq~]# free -m

             total       used       free    shared    buffers     cached

Mem:        3016        358       2657     0        19        158

-/+buffers/cache:          180       2835

Swap:        3023          0       3023

 [root@wjq ~]# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/mapper/vg_wjq-lv_root

                       26G  2.8G  22G  12% /

tmpfs                 1.5G   72K 1.5G   1% /dev/shm

/dev/sda1             485M   38M 423M   9% /boot

/dev/mapper/vg_wjq-lv_home

                      4.0G  137M  3.7G   4% /home

/dev/mapper/vg_wjq-lv_u01

                       66G  180M  62G   1% /u01


4、  查看操作系統架構

[root@wjq~]# cat/proc/version

Linuxversion 2.6.32-358.el6.x86_64 (mockbuild@x86-022.build.eng.bos.redhat.com) (gccversion 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST2013

 [root@wjq ~]# lsb_release -a

LSBVersion:   :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

DistributorID: RedHatEnterpriseServer

Description:    Red Hat Enterprise Linux Server release 6.4(Santiago)

Release:        6.4

Codename:       Santiago

[root@wjq~]# uname -r

2.6.32-358.el6.x86_64

 

5、  安裝軟件包

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
ksh
libgcc-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.el6
sysstat-9.0.4-11.el6 (x86_64)

 

6、  禁用SELinux和防火墻

[root@wjqsofrware]# vim/etc/selinux/config

# Thisfile controls the state of SELinux on the system.

#SELINUX= can take one of these three values:

#     enforcing - SELinux security policy isenforced.

#     permissive - SELinux prints warningsinstead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=disabled

#SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes areprotected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

 

SELinux 的不正確配置會影響網絡

(1)enforcing--- SELinux security policy is enforced.代表記錄警告且阻止可疑行為
(2)permissive --- SELinux prints warnings instead of
代表僅記錄安全警告但不阻止可疑行為
(3)disabled --- SELinux is fully disabled.SELinux
被禁用

SELINUXTYPE
設置
(1)targeted
代表僅針對預制的幾種網絡服務和訪問請求使用 SELinux 保護,
(2)strict
代表所有網絡服務和訪問請求都要經過 SELinux

 

查看當前系統的安全策略

[root@wjq~]# sestatus 

SELinuxstatus:                 disabled

[root@wjq~]# getenforce

Disabled

 

[root@wjqsofrware]#service iptables stop

iptables:Flushing firewall rules:                        [  OK  ]

iptables:Setting chains to policy ACCEPT: filter            [ OK  ]

iptables:Unloading modules:                           [  OK  ]

[root@wjqsofrware]# chkconfigiptables off

 

7、  解壓安裝包,設置環境變量

[root@wjqsofrware]#unziplinuxx64_12201_database.zip

[oracle@wjq~]$ vim.bash_profile

exportORACLE_BASE=/u01/app/oracle

exportORACLE_HOME=$ORACLE_BASE/product/12.2.0/dbhome_1

exportORACLE_SID=seiang

exportORACLE_OWNER=oracle

exportORACLE_TERM=vt100

exportPATH=$PATH:$ORACLE_HOME/bin:$HOME/bin

exportPATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH

exportBASE_PATH=/usr/sbin:$PATH; export BASE_PATH

exportPATH=$ORACLE_HOME/bin:$BASE_PATH

exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib

exportORACLE_HOSTNAME=wjq.comsys.com

exportDB_UNIQUE_NAME=prod

exportCVUQDISK_GRP=oinstall

umask022

[oracle@wjq~]$ source.bash_profile

 

8、  設置內核參數

[root@wjqsofrware]# vim/etc/sysctl.conf

fs.aio-max-nr= 1048576

fs.file-max= 6815744

kernel.shmall= 2097152

kernel.shmmax= 1349242060

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

[root@wjqsofrware]# sysctl–a   //讓內核參數文件立即生效

 

shmmax=物理內存*80%*80%,單位是字節
kernel.shmmax
:表示單個共享內存段的最大值,以字節為單位,此值一般為物理內存的一半,不過大一點也沒關系,這里設定的為4GB,即“4294967295/1024/1024/1024=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  
:表示發送套接字緩沖區大小的最大值(以字節為單位)。

 

9、  修改資源控制文件

[root@wjqsofrware]# vim/etc/security/limits.conf

oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536

 

資源限制是針對單個進程的限制,不是針對整個系統總的設置
修改limits.conf以后,將馬上生效。但是,如果用戶已經登錄系統,那么對于該用戶的限制將在下一次用戶重新登錄以后才生效。如果要讓對該用戶的限制生效,只能讓該用戶注銷然后重新登錄就可以了。
/etc/security/limits.conf
    core -
限制內核文件的大小
date - 最大數據大小
fsize - 最大文件大小
memlock - 最大鎖定內存地址空間
nofile - 打開文件的最大數目
rss - 最大持久設置大小
stack - 最大棧大小
cpu - 以分鐘為單位的最多 CPU 時間
noproc - 進程的最大數目
as - 地址空間限制
maxlogins - 此用戶允許登錄的最大數目

nofile - 打開文件的最大數目,該值不能等于/proc/sys/fs/file-max,如果等于file-max且打開的文件句柄的數量達到file-max,用戶將不能登陸操作系統。

 


二、安裝Oracle軟件

1、  相應文件模板的存放位置

[root@wjqsofrware]# find/ -name *.rsp

/u01/sofrware/database/response/netca.rsp

/u01/sofrware/database/response/db_install.rsp

/u01/sofrware/database/response/dbca.rsp

 

2、  瀏覽響應文件內容,并編輯響應文件

[root@wjqresponse]# ll

total64

drwxr-xr-x2 root root  4096 Jul  5 16:32 backup.rsp

-rwxrwxr-x1 root root 25502 Jan  5 14:00 dbca.rsp

-rw-rw-r--1 root root 22924 Jan 26 21:44 db_install.rsp

-rwxrwxr-x1 root root  6209 Jun 20  2016 netca.rsp

 

瀏覽響應文件內容

[oracle@wjqdatabase]$ sed-n '/^[^#]/p' response/db_install.rsp

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.2.0

oracle.install.option=

UNIX_GROUP_NAME=

INVENTORY_LOCATION=

ORACLE_HOME=

ORACLE_BASE=

oracle.install.db.InstallEdition=

oracle.install.db.OSDBA_GROUP=

oracle.install.db.OSOPER_GROUP=

oracle.install.db.OSBACKUPDBA_GROUP=

oracle.install.db.OSDGDBA_GROUP=

oracle.install.db.OSKMDBA_GROUP=

oracle.install.db.OSRACDBA_GROUP=

oracle.install.db.rac.configurationType=

oracle.install.db.CLUSTER_NODES=

oracle.install.db.isRACOneInstall=false

oracle.install.db.racOneServiceName=

oracle.install.db.rac.serverpoolName=

oracle.install.db.rac.serverpoolCardinality=

oracle.install.db.config.starterdb.type=

oracle.install.db.config.starterdb.globalDBName=

oracle.install.db.config.starterdb.SID=

oracle.install.db.ConfigureAsContainerDB=

oracle.install.db.config.PDBName=

oracle.install.db.config.starterdb.characterSet=

oracle.install.db.config.starterdb.memoryOption=

oracle.install.db.config.starterdb.memoryLimit=

oracle.install.db.config.starterdb.installExampleSchemas=

oracle.install.db.config.starterdb.password.ALL=

oracle.install.db.config.starterdb.password.SYS=

oracle.install.db.config.starterdb.password.SYSTEM=

oracle.install.db.config.starterdb.password.DBSNMP=

oracle.install.db.config.starterdb.password.PDBADMIN=

oracle.install.db.config.starterdb.managementOption=

oracle.install.db.config.starterdb.omsHost=

oracle.install.db.config.starterdb.omsPort=

oracle.install.db.config.starterdb.emAdminUser=

oracle.install.db.config.starterdb.emAdminPassword=

oracle.install.db.config.starterdb.enableRecovery=

oracle.install.db.config.starterdb.storageType=

oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=

oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=

oracle.install.db.config.asm.diskGroup=

oracle.install.db.config.asm.ASMSNMPPassword=

MYORACLESUPPORT_USERNAME=

MYORACLESUPPORT_PASSWORD=

SECURITY_UPDATES_VIA_MYORACLESUPPORT=

DECLINE_SECURITY_UPDATES=

PROXY_HOST=

PROXY_PORT=

PROXY_USER=

PROXY_PWD=

COLLECTOR_SUPPORTHUB_URL=

 

編輯Oracle數據庫軟件響應文件db_install.rsp

[root@wjqresponse]# vimdb_install.rsp

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.2.0

oracle.install.option=INSTALL_DB_SWONLY

UNIX_GROUP_NAME=oinstall

INVENTORY_LOCATION=/u01/app/oraInventory

ORACLE_HOME=/u01/app/oracle/product/12.2.0/dbhome_1

ORACLE_BASE=/u01/app/oracle

oracle.install.db.InstallEdition=EE

oracle.install.db.OSDBA_GROUP=dba

oracle.install.db.OSOPER_GROUP=dba

oracle.install.db.OSBACKUPDBA_GROUP=dba

oracle.install.db.OSDGDBA_GROUP=dba

oracle.install.db.OSKMDBA_GROUP=dba

oracle.install.db.OSRACDBA_GROUP=dba

oracle.install.db.rac.configurationType=

oracle.install.db.CLUSTER_NODES=

oracle.install.db.isRACOneInstall=false

oracle.install.db.racOneServiceName=

oracle.install.db.rac.serverpoolName=

oracle.install.db.rac.serverpoolCardinality=

oracle.install.db.config.starterdb.type=

oracle.install.db.config.starterdb.globalDBName=

oracle.install.db.config.starterdb.SID=

oracle.install.db.ConfigureAsContainerDB=

oracle.install.db.config.PDBName=

oracle.install.db.config.starterdb.characterSet=

oracle.install.db.config.starterdb.memoryOption=

oracle.install.db.config.starterdb.memoryLimit=

oracle.install.db.config.starterdb.installExampleSchemas=

oracle.install.db.config.starterdb.password.ALL=

oracle.install.db.config.starterdb.password.SYS=

oracle.install.db.config.starterdb.password.SYSTEM=

oracle.install.db.config.starterdb.password.DBSNMP=

oracle.install.db.config.starterdb.password.PDBADMIN=

oracle.install.db.config.starterdb.managementOption=

oracle.install.db.config.starterdb.omsHost=

oracle.install.db.config.starterdb.omsPort=

oracle.install.db.config.starterdb.emAdminUser=

oracle.install.db.config.starterdb.emAdminPassword=

oracle.install.db.config.starterdb.enableRecovery=

oracle.install.db.config.starterdb.storageType=

oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=

oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=

oracle.install.db.config.asm.diskGroup=

oracle.install.db.config.asm.ASMSNMPPassword=

MYORACLESUPPORT_USERNAME=

MYORACLESUPPORT_PASSWORD=

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

DECLINE_SECURITY_UPDATES=true

PROXY_HOST=

PROXY_PORT=

PROXY_USER=

PROXY_PWD=

COLLECTOR_SUPPORTHUB_URL=

 

3、  獲取幫助,啟動靜默安裝

在靜默安裝Oracle軟件之前,如果沒有配置/etc/hosts文件,將會出現如五(1)的錯誤。

[oracle@wjqdatabase]$./runInstaller –help

[oracle@wjqdatabase]$./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile/u01/sofrware/database/response/db_install.rsp

StartingOracle Universal Installer...

 

CheckingTemp space: must be greater than 500 MB.  Actual 18788 MB    Passed

Checkingswap space: must be greater than 150 MB.  Actual 3023 MB    Passed

Preparingto launch Oracle Universal Installer from /tmp/OraInstall2017-07-06_02-07-35PM.Please wait ...[oracle@wjq database]$ You can find the log of this installsession at:

 /u01/app/oraInventory/logs/installActions2017-07-06_02-07-35PM.log

 

The installation of Oracle Database 12cwas successful.

Pleasecheck '/u01/app/oraInventory/logs/silentInstall2017-07-06_02-07-35PM.log' formore details.

 

As a root user, execute the followingscript(s):

       1. /u01/app/oraInventory/orainstRoot.sh

       2. /u01/app/oracle/product/12.2.0/dbhome_1/root.sh

 

Successfully Setup Software.

 

-silent           表示靜默安裝
-noconfig         
表示只安裝軟件
-responseFile     
指定響應文件

 

4、  監控安裝過程所產生的日志

[root@wjqresponse]# tail-f /u01/app/oraInventory/logs/installActions2017-07-06_02-07-35PM.log

INFO:Using paramFile: /u01/sofrware/database/install/oraparam.ini

INFO:

INFO:

INFO: CheckingTemp space: must be greater than 500 MB.  Actual 18788 MB    Passed

INFO:Checking swap space: must be greater than 150 MB.   Actual 3023 MB    Passed

INFO:

INFO:The commandline for unzip:

INFO:/u01/sofrware/database/install/unzip -qqqo ../stage/Components/oracle.jdk/1.8.0.91.0/1/DataFiles/\*.jar-d

/tmp/OraInstall2017-07-06_02-07-35PM

INFO:Using the umask value '022' available from oraparam.ini

INFO:INFO: Oracle Universal Installer Version 12.2.0.1.4

INFO:

INFO:Execvp of the child jre : the cmdline is/tmp/OraInstall2017-07-06_02-07-35PM/jdk/jre/bin/java, and the arg

v is

INFO:/tmp/OraInstall2017-07-06_02-07-35PM/jdk/jre/bin/java

INFO:-Doracle.installer.library_loc=/tmp/OraInstall2017-07-06_02-07-35PM/oui/lib/linux64

INFO:-Doracle.installer.oui_loc=/tmp/OraInstall2017-07-06_02-07-35PM/oui

INFO:-Doracle.installer.bootstrap=TRUE

INFO:-Doracle.installer.startup_location=/u01/sofrware/database/install

INFO:-Doracle.installer.jre_loc=/tmp/OraInstall2017-07-06_02-07-35PM/jdk/jre

INFO:-Doracle.installer.nlsEnabled="TRUE"

INFO:-Doracle.installer.prereqConfigLoc=

INFO:-Doracle.installer.unixVersion=2.6.32-358.el6.x86_64

………

………

INFO:Completed executing action at state <finish>

INFO:Waiting for completion of background operations

INFO:Completed background operations

INFO:Waiting for completion of background operations

INFO:Completed background operations

INFO:Moved to state <finish>

INFO:Waiting for completion of background operations

INFO:Completed background operations

INFO:Validating state <finish>

WARNING:Validation disabled for the state finish

INFO:Completed validating state <finish>

INFO:Terminating all background operations

INFO:Terminated all background operations

INFO:Successfully executed the flow in SILENT mode

INFO:Dispose the current Session instance

INFO:Dispose the install area control object

INFO:Update the state machine to STATE_CLEAN

INFO:Finding the most appropriate exit status for the current application

INFO:Exit Status is 0

INFO:Shutdown Oracle Database 12c Release 2 Installer

 

5、安裝過程,以root用戶運行相應的腳本

[root@wjq~]# /u01/app/oraInventory/orainstRoot.sh

Changingpermissions of /u01/app/oraInventory.

Addingread,write permissions for group.

Removingread,write,execute permissions for world.

 

Changinggroupname of /u01/app/oraInventory to oinstall.

Theexecution of the script is complete.

[root@wjq~]# /u01/app/oracle/product/12.2.0/dbhome_1/root.sh

Check/u01/app/oracle/product/12.2.0/dbhome_1/install/root_wjq.comsys.com_2017-07-06_14-23-00-707842960.logfor the output of root script

 

三、配置監聽器

1、  瀏覽Oracle監聽響應文件netca.rsp

[oracle@wjqdatabase]$ sed-n '/^[^#]/p' response/netca.rsp

[GENERAL]

RESPONSEFILE_VERSION="12.2"

CREATE_TYPE="CUSTOM"

[oracle.net.ca]

INSTALLED_COMPONENTS={"server","net8","javavm"}

INSTALL_TYPE=""typical""

LISTENER_NUMBER=1

LISTENER_NAMES={"LISTENER"}

LISTENER_PROTOCOLS={"TCP;1521"}

LISTENER_START=""LISTENER""

NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}

NSN_NUMBER=1

NSN_NAMES={"EXTPROC_CONNECTION_DATA"}

NSN_SERVICE={"PLSExtProc"}

NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}

 

2、  編輯監聽器配置響應文件netca.rsp

[oracle@wjqdatabase]$ vimresponse/netca.rsp

[GENERAL]

RESPONSEFILE_VERSION="12.2"

CREATE_TYPE="CUSTOM"

[oracle.net.ca]

INSTALLED_COMPONENTS={"server","net8","javavm"}

INSTALL_TYPE=""typical""

LISTENER_NUMBER=1

LISTENER_NAMES={"LISTENER"}

LISTENER_PROTOCOLS={"TCP;1521"}

LISTENER_START=""LISTENER""

NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}

NSN_NUMBER=1

NSN_NAMES={"EXTPROC_CONNECTION_DATA"}

NSN_SERVICE={"PLSExtProc"}

NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}

 

3、靜默安裝監聽器

[oracle@wjqdatabase]$ $ORACLE_HOME/bin/netca-silent -responsefile /u01/sofrware/database/response/netca.rsp

 

Parsingcommand line arguments:

    Parameter "silent" = true

    Parameter "responsefile" =/u01/sofrware/database/response/netca.rsp

Doneparsing command line arguments.

OracleNet Services Configuration:

Profileconfiguration complete.

OracleNet Listener Startup:

    Running Listener Control:

     /u01/app/oracle/product/12.2.0/dbhome_1/bin/lsnrctl start LISTENER

    ListenerControl complete.

   Listener started successfully.

Listener configuration complete.

Oracle Net Services configurationsuccessful. The exit code is 0

 

4、查看監聽狀態,并啟動監聽器

[oracle@wjqdatabase]$ lsnrctlstatus

 

LSNRCTLfor Linux: Version 12.2.0.1.0 - Production on 06-JUL-2017 14:46:27

 

Copyright(c) 1991, 2016, Oracle.  All rightsreserved.

 

Connectingto (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=wjq.comsys.com)(PORT=1521)))

STATUSof the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version12.2.0.1.0 - Production

StartDate                06-JUL-2017 14:43:52

Uptime                    0 days 0 hr. 2 min. 34 sec

TraceLevel               off

Security                  ON: Local OS Authentication

SNMP                      OFF

ListenerParameter File  /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

ListenerLog File        /u01/app/oracle/diag/tnslsnr/wjq/listener/alert/log.xml

ListeningEndpoints Summary...

 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wjq.comsys.com)(PORT=1521)))

 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Thelistener supports no services

Thecommand completed successfully

 

四、創建數據庫

1、  瀏覽Oracle數據庫響應文件dbca.rsp

[oracle@wjqdatabase]$ sed-n '/^[^#]/p' response/dbca.rsp

responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v12.2.0

gdbName=

sid=

databaseConfigType=

RACOneNodeServiceName=

policyManaged=

createServerPool=

serverPoolName=

cardinality=

force=

pqPoolName=

pqCardinality=

createAsContainerDatabase=

numberOfPDBs=

pdbName=

useLocalUndoForPDBs=

pdbAdminPassword=

nodelist=

templateName=

sysPassword=

systemPassword=

oracleHomeUserPassword=

emConfiguration=

emExpressPort=5500

runCVUChecks=

dbsnmpPassword=

omsHost=

omsPort=

emUser=

emPassword=

dvConfiguration=

dvUserName=

dvUserPassword=

dvAccountManagerName=

dvAccountManagerPassword=

olsConfiguration=

datafileJarLocation=

datafileDestination=

recoveryAreaDestination=

storageType=

diskGroupName=

asmsnmpPassword=

recoveryGroupName=

characterSet=

nationalCharacterSet=

registerWithDirService=

dirServiceUserName=

dirServicePassword=

walletPassword=

listeners=

variablesFile=

variables=

initParams=

sampleSchema=

memoryPercentage=

databaseType=

automaticMemoryManagement=

totalMemory=

 

2、  編輯響應文件dbca.rsp

[oracle@wjqdatabase]$ vim response/dbca.rsp        responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v12.2.0

gdbName=prod.comsys.com

sid=seiang

databaseConfigType=

RACOneNodeServiceName=

policyManaged=

createServerPool=

serverPoolName=

cardinality=

force=

pqPoolName=

pqCardinality=

createAsContainerDatabase=

numberOfPDBs=

pdbName=

useLocalUndoForPDBs=

pdbAdminPassword=

nodelist=

templateName=General_Purpose.dbc

sysPassword=oracle

systemPassword=oracle

oracleHomeUserPassword=oracle

emConfiguration=

emExpressPort=5500

runCVUChecks=

dbsnmpPassword=

omsHost=

omsPort=

emUser=

emPassword=

dvConfiguration=

dvUserName=

dvUserPassword=

dvAccountManagerName=

dvAccountManagerPassword=

olsConfiguration=

datafileJarLocation=

datafileDestination=

recoveryAreaDestination=

storageType=

diskGroupName=

asmsnmpPassword=

recoveryGroupName=

characterSet=

nationalCharacterSet=

registerWithDirService=

dirServiceUserName=

dirServicePassword=

walletPassword=

listeners=

variablesFile=

variables=

initParams=

sampleSchema=true

memoryPercentage=

databaseType=

automaticMemoryManagement=

totalMemory=

 

3、靜默創建數據庫

[oracle@wjqtemplates]$ $ORACLE_HOME/bin/dbca-silent -createDatabase -responseFile /u01/sofrware/database/response/dbca.rsp

[WARNING][DBT-06208] The 'SYS' password entered does not conform to the Oraclerecommended standards.

   CAUSE:

a.Oracle recommends that the password entered should be at least 8 characters inlength, contain at least 1 uppercase character, 1 lower case character and 1digit [0-9].

b.Thepassword entered is a keyword that Oracle does not recommend to be used aspassword

   ACTION: Specify a strong password. Ifrequired refer Oracle documentation for guidelines.

[WARNING][DBT-06208] The 'SYSTEM' password entered does not conform to the Oraclerecommended standards.

   CAUSE:

a.Oracle recommends that the password entered should be at least 8 characters inlength, contain at least 1 uppercase character, 1 lower case character and 1digit [0-9].

b.Thepassword entered is a keyword that Oracle does not recommend to be used aspassword

   ACTION: Specify a strong password. Ifrequired refer Oracle documentation for guidelines.

Copyingdatabase files

1%complete

2%complete

18% complete

33%complete

Creatingand starting Oracle instance

35%complete

40%complete

44%complete

49%complete

53%complete

54%complete

55%complete

58%complete

CompletingDatabase Creation

59%complete

60%complete

61%complete

64%complete

68%complete

69%complete

ExecutingPost Configuration Actions

100%complete

Look atthe log file "/u01/app/oracle/cfgtoollogs/dbca/prod/prod.log" forfurther details.

 

3、測試實例是否注冊成功和能否登錄到數據庫

[oracle@wjqdatabase]$lsnrctl status

 

LSNRCTLfor Linux: Version 12.2.0.1.0 - Production on 07-JUL-2017 15:05:17

 

Copyright(c) 1991, 2016, Oracle.  All rightsreserved.

 

Connectingto (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=wjq.comsys.com)(PORT=1521)))

STATUSof the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version12.2.0.1.0 - Production

StartDate                06-JUL-2017 14:43:52

Uptime                    1 days 0 hr. 21 min. 25 sec

TraceLevel               off

Security                  ON: Local OS Authentication

SNMP                      OFF

ListenerParameter File  /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

ListenerLog File        /u01/app/oracle/diag/tnslsnr/wjq/listener/alert/log.xml

ListeningEndpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wjq.comsys.com)(PORT=1521)))

 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

ServicesSummary...

Service"prod.comsys.com" has 1 instance(s).

  Instance "seiang", status READY,has 1 handler(s) for this service...

Service"seiangXDB.comsys.com" has 1 instance(s).

  Instance "seiang", status READY,has 1 handler(s) for this service...

Thecommand completed successfully

 

[oracle@wjqdatabase]$ sqlplus/ as sysdba

 

SQL*Plus:Release 12.2.0.1.0 Production on Fri Jul 7 15:06:40 2017

 

Copyright(c) 1982, 2016, Oracle.  All rightsreserved.

 

 

Connectedto:

OracleDatabase 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

 

SQL>

SQL>select status from v$instance;

 

STATUS

------------

OPEN

 

至此,靜態安裝Oracle12.2結束,其他復雜參數的配置請參考Oracle官方文檔!

 

 

五、遇到的錯誤以及解決方法


1、安裝Oracle軟件時報錯:PRVF-0002 : Could not retrieve local nodename.

查看日志信息

[root@wjq~]# tail -f /tmp/OraInstall2017-07-06_01-49-38PM/installActions2017-07-06_01-49-38PM.log

INFO:Setting value for the property:configcmds in the bean:configcmdmappings

SEVERE:[FATAL] PRVF-0002: could not retrieve local node name.

Referassociated stacktrace#oracle.install.commons.util.exception.AbstractErrorAdvisor:37

INFO:Advice is ABORT

SEVERE:Unconditional Exit

INFO:Adding ExitStatus FAILURE to the exit status set

WARNING:A log of this session is currently saved as:/tmp/OraInstall2017-07-06_01-49-38PM/installActions2017-07-06_01-49-38PM.log.Oracle recommends that if you want to keep this log, you should move it fromthe temporary location.

INFO:Finding the most appropriate exit status for the current application

INFO:Exit Status is -1

INFO:Shutdown Oracle Database 12c Release 2 Installer

 

猜測是找不到主機名的對應ip

 

解決辦法:

修改了下/etc/hosts

[root@wjq~]# vim/etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4localhost4.localdomain4

::1         localhost localhost.localdomainlocalhost6 localhost6.localdomain6

  1. 10.1.1.45      wjq.comsys.com   wjq

 

 

2、安裝Oracle軟件時報錯:Invalid My Oracle Supportcredentials. Specify the correct email address and password that you use to login to My Oracle Support.

 

查看日志信息

[root@wjq ~]# tail -f/tmp/OraInstall2017-07-06_01-57-21PM/installActions2017-07-06_01-57-21PM.log

INFO: Waiting for completion of backgroundoperations

INFO: Completed background operations

INFO: Validating state<getOCMDetails>

SEVERE: Invalid My Oracle Support credentials. Specify the correctemail address and password that you use to log in to My Oracle Support.

After 2 more incorrect attempts, the product will be registeredanonymously with the specified email address.

INFO: Adding ExitStatusVAR_VALIDATION_FAILURE to the exit status set

WARNING: A log of this session is currentlysaved as:/tmp/OraInstall2017-07-06_01-57-21PM/installActions2017-07-06_01-57-21PM.log.Oracle recommends that if you want to keep this log, you should move it fromthe temporary location.

INFO: Finding the most appropriate exitstatus for the current application

INFO: Exit Status is -2

INFO: Shutdown Oracle Database 12c Release2 Installer

 

原因所在:

相應文件db_install.rsp文件中的參數MYORACLESUPPORT_USERNAMEMYORACLESUPPORT_PASSWORD配置的有問題

 

解決辦法:

這兩個參數不進行設置

 

 

3、 靜默創建數據庫時報錯:[DBT-10503]Invalid template file specified.

出現這個報錯信息的原因是:dbcs.rsp響應文件中的參數templateName配置出現錯誤,下面的這個東西就是咱們在建庫的時候選擇的模板,general purpose還是Data warehouing還是custom。這個東西在該路徑下$ORACLE_HOME/assistants/dbca/templates

[oracle@wjq ~]$ cd $ORACLE_HOME/assistants/dbca/templates

[oracle@wjq templates]$ ll

total 411616

-rw-r----- 1 oracle oinstall      4697 Jan 26 15:38 Data_Warehouse.dbc

//數據倉庫的模板

-rw-r----- 1 oracle oinstall      4577 Jan 26 15:38 General_Purpose.dbc

//標準的模板

-rw-r----- 1 oracle oinstall     10578 Jun 10  2016 New_Database.dbt 

//自定義的模板

-rw-r----- 1 oracle oinstall 121667584 Jan26 15:30 pdbseed.dfb

-rw-r----- 1 oracle oinstall      6685 Jan 26 15:30 pdbseed.xml

-rw-r----- 1 oracle oinstall  18726912 Jan 26 15:37 Seed_Database.ctl

//這個就是恢復的種子數據庫的控制文件

-rw-r----- 1 oracle oinstall 281059328 Jan26 15:37 Seed_Database.dfb

//這個就是種子數據庫的備份片,加上控制文件就能恢復出一個數據庫來

 

解決方法:

dbca.rsp響應文件中的參數按照如下的方式進行設置:templateName=General_Purpose.dbc

 

 

4、其他錯誤

特別要注意的是,等號兩邊不能有空格:
oracle.install.option=INSTALL_DB_SWONLY
 
DECLINE_SECURITY_UPDATES
要設置成true
INFO: Adding ExitStatus VAR_VALIDATION_FAILURE to the exit status set

 

 

作者:SEian.G(苦練七十二變,笑對八十一難)

◇本文在ITPUBhttp://blog.itpub.net/31015730/

      51CTOhttp://seiang.blog.51cto.com/上有同步更新

◇本文itpub地址:http://blog.itpub.net/31015730/viewspace-2137909/

◇本文51CTO地址:http://seiang.blog.51cto.com/10819863/1946087


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

理塘县| 霸州市| 凯里市| 灵寿县| 桐梓县| 瑞丽市| 枝江市| 奈曼旗| 青神县| 宁城县| 潮安县| 泸水县| 富锦市| 灵武市| 赣州市| 揭东县| 新竹县| 宁陵县| 莫力| 财经| 静安区| 泸溪县| 石首市| 米林县| 景东| 新竹市| 米脂县| 商南县| 平塘县| 余庆县| 长垣县| 梁山县| 宁晋县| 玛曲县| 宜宾县| 连江县| 奇台县| 稻城县| 钦州市| 杨浦区| 乐山市|