如何安装单机Oracle数据库静默
本篇内容介绍了“如何安装单机Oracle数据库静默”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
一、 环境介绍操作系统
Red Hat Enterprise Linux Server release 7.7 (Maipo)
数据库版本
Oracle database 19.3
主机名
adg19c
IP地址
192.168.84.99
安装目录
/DBSoft/oracle/product/19.3/dbhome_1
数据库名称
woo
字符集
AL32UTF8
二、 环境准备2.1. 关闭防火墙[root@adg19c~]#systemctlstopfirewalld[root@adg19c~]#systemctldisablefirewalldRemovedsymlink/etc/systemd/system/multi-user.target.wants/firewalld.service.Removedsymlink/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.2.2. 禁用NetworkManager服务
[root@adg19c~]#systemctlstopNetworkManager[root@adg19c~]#systemctldisableNetworkManager2.3. 禁用SELINUX
[root@adg19c~]#setenforce0setenforce:SELinuxisdisabled[root@adg19c~]#sed-i"/^SELINUX=/s#enforcing#disabled#"/etc/selinux/config2.4. 配置HOSTS解析
[root@adg19c~]#cat>>/etc/hosts<<EOF>>192.168.84.99adg19c>EOF2.5. 修改主机名
[root@adg19c~]#sed-i's#^HOSTNAME=.*$#HOSTNAME=db01#'/etc/sysconfig/network[root@adg19c~]#sed-i's#^NETWORKING_IPV6=.*$#NETWORKING_IPV6=no#'/etc/sysconfig/network2.6. 配置NOZEROCONFIG
[root@adg19c~]#cat>>/etc/sysconfig/network<<EOF>NOZEROCONF=yes>EOF2.7. 创建组和用户
#创建dba和onstall两个用户组[root@adg19c~]#groupadd-g501dba[root@adg19c~]#groupadd-g502oinstall#创建oracle用户[root@adg19c~]#useradd-u503-goinstall-Gdbaoracle#配置oracle用户密码[root@adg19c~]#echo"oracle"|passwd--stdinoracleChangingpasswordforuseroracle.passwd:allauthenticationtokensupdatedsuccessfully.2.8. 创建安装目录并赋权
#创建目录[root@adg19c~]#mkdir-p/DBSoft/oraInventory[root@adg19c~]#mkdir-p/DBSoft/oracle/product/19.3/dbhome_1#赋权[root@adg19c~]#chown-Roracle:oinstall/DBSoft[root@adg19c~]#chmod-R775/DBSoft2.9. 配置用户环境变量
[root@adg19c~]#cat>>/home/oracle/.bash_profile<<EOF>exportTMP=/tmp>exportTMPDIR=\$TMP>exportEDIT=vi>aliasvi=vim>exportORACLE_HOSTNAME=$HOST_NAME>exportORACLE_UNQNAME=woo>exportORACLE_BASE=/DBSoft/oracle>exportORACLE_HOME=\$ORACLE_BASE/product/19.3/dbhome_1>exportORACLE_SID=woo>exportORACLE_TERM=xterm>exportPATH=/usr/sbin:\$PATH>exportPATH=\$ORACLE_HOME/bin:\$PATH>exportLD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib>exportCLASSPATH=\$ORACLE_HOME/JRE:\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlib>exportNLS_LANG=AMERICAN_AMERICAAL32UTF16>umask022>EOF2.10. 配置系统环境变量
[root@adg19c~]#cat>>/etc/profile<<EOFif[\$USER="oracle"];thenif[\$SHELL="/bin/ksh"];thenulimit-p16384ulimit-n65536elseulimit-u16384-n65536fifiEOF2.11. 修改系统内核参数
[root@adg19c~]#cat>>/etc/sysctl.conf<<EOF>kernel.shmall=4294967296>kernel.sem=513065280510256>kernel.shmmni=4096>kernel.shmmax=549755813888#supportmaxTotalMemory512GB>net.ipv4.ip_local_port_range=900065500>net.core.rmem_default=1048576>net.core.rmem_max=4194304>net.core.wmem_default=262144>net.core.wmem_max=1048576>fs.file-max=6815744>fs.aio-max-nr=1048576>vm.swappiness=10>vm.dirty_background_ratio=20>vm.dirty_ratio=80>vm.dirty_expire_centisecs=500>vm.dirty_writeback_centisecs=100>net.ipv4.tcp_sack=0>net.ipv4.tcp_timestamps=0>net.ipv4.conf.default.rp_filter=0>net.ipv4.tcp_wmem=262144>net.ipv4.tcp_rmem=4194304>EOF[root@adg19c~]#/sbin/sysctl-pkernel.shmall=4294967296kernel.sem=513065280510256kernel.shmmni=4096kernel.shmmax=549755813888#supportmaxTotalMemory512GBnet.ipv4.ip_local_port_range=900065500net.core.rmem_default=1048576net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048576fs.file-max=6815744fs.aio-max-nr=1048576vm.swappiness=10vm.dirty_background_ratio=20vm.dirty_ratio=80vm.dirty_expire_centisecs=500vm.dirty_writeback_centisecs=100net.ipv4.tcp_sack=0net.ipv4.tcp_timestamps=0net.ipv4.conf.default.rp_filter=0net.ipv4.tcp_wmem=262144net.ipv4.tcp_rmem=41943042.12. 配置LIMITS限制参数
[root@adg19c~]#cat>>/etc/security/limits.conf<<EOF>oraclesoftnproc16384>oraclehardnproc16384>oraclesoftnofile65536>oraclehardnofile65536>oraclesoftmemlock3145728>oraclehardmemlock3145728>>EOF2.13. 配置PAM验证
[root@adg19c~]#cat>>/etc/pam.d/login<<EOF>sessionrequired/lib64/security/pam_limits.so>EOF2.14. 安装依赖包2.13.1 挂载系统介质
[root@adg19c~]#mount/dev/sr0/mnt/mount:/dev/sr0iswrite-protected,mountingread-only2.13.2 配置yum包
[root@adg19c~]#cat>/etc/yum.repos.d/local.repo<<EOF>[base]>name=base>baseurl=file:///mnt>enabled=1>gpgcheck=0>multilib_policy=all>EOF[root@adg19c~]#yumcleanallLoadedplugins:product-id,search-disabled-repos,subscription-managerThissystemisnotregisteredwithanentitlementserver.Youcanusesubscription-managertoregister.Cleaningrepos:base[root@adg19c~]#yummakecacheLoadedplugins:product-id,search-disabled-repos,subscription-managerThissystemisnotregisteredwithanentitlementserver.Youcanusesubscription-managertoregister.base|2.8kB00:00:00(1/4):base/group_gz|103kB00:00:00(2/4):base/primary|2.0MB00:00:00(3/4):base/filelists|3.1MB00:00:00(4/4):base/other|1.1MB00:00:00base5229/5229base5229/5229base5229/5229MetadataCacheCreated2.13.3 安装依赖包
[root@adg19c~]#yuminstall-ybcbinutilscompat-libcap1compat-libstdc++elfutils-libelfelfutils-libelf-develfontconfig-develglibcglibc-develkshlibaiolibaio-devellibX11libXaulibXilibXtstlibXrenderlibXrender-devellibgcclibstdc++libstdc++-devellibxcbmakenet-toolsnfs-utilspythonpython-configshellpython-rtslibpython-sixtargetclismartmontoolssysstatunzipvimLoadedplugins:product-id,search-disabled-repos,subscription-managerThissystemisnotregisteredwithanentitlementserver.Youcanusesubscription-managertoregister.base|2.8kB00:00:00(1/2):base/group_gz|103kB00:00:00(2/2):base/primary|2.0MB00:00:00base5229/5229Packagebinutils-2.27-41.base.el7.x86_64alreadyinstalledandlatestversionNopackagecompat-libstdc++available.Packageelfutils-libelf-0.176-2.el7.x86_64alreadyinstalledandlatestversionPackageglibc-2.17-292.el7.x86_64alreadyinstalledandlatestversionPackagelibaio-0.3.109-13.el7.x86_64alreadyinstalledandlatestversionPackagelibgcc-4.8.5-39.el7.x86_64alreadyinstalledandlatestversionPackagelibstdc++-4.8.5-39.el7.x86_64alreadyinstalledandlatestversionPackage1:make-3.82-24.el7.x86_64alreadyinstalledandlatestversionPackagepython-2.7.5-86.el7.x86_64alreadyinstalledandlatestversionPackagepython-six-1.9.0-2.el7.noarchalreadyinstalledandlatestversionResolvingDependencies-->Runningtransactioncheck--->Packagebc.x86_640:1.06.95-13.el7willbeinstalled--->Packagecompat-libcap1.x86_640:1.10-7.el7willbeinstalled--->Packageelfutils-libelf-devel.x86_640:0.176-2.el7willbeinstalled-->ProcessingDependency:pkgconfig(zlib)forpackage:elfutils-libelf-devel-0.176-2.el7.x86_64--->Packagefontconfig-devel.x86_640:2.13.0-4.3.el7willbeinstalled-->ProcessingDependency:fontconfig(x86-64)=2.13.0-4.3.el7forpackage:fontconfig-devel-2.13.0-4.3.el7.x86_64-->ProcessingDependency:pkgconfig(freetype2)>=20.0.14forpackage:fontconfig-devel-2.13.0-4.3.el7.x86_64-->ProcessingDependency:freetype-devel>=2.8-7forpackage:fontconfig-devel-2.13.0-4.3.el7.x86_64-->ProcessingDependency:pkgconfig(uuid)forpackage:fontconfig-devel-2.13.0-4.3.el7.x86_64-->ProcessingDependency:pkgconfig(expat)forpackage:fontconfig-devel-2.13.0-4.3.el7.x86_64-->ProcessingDependency:libfontconfig.so.1()(64bit)forpackage:fontconfig-devel-2.13.0-4.3.el7.x86_64--->Packageglibc-devel.x86_640:2.17-292.el7willbeinstalled-->ProcessingDependency:glibc-headers=2.17-292.el7forpackage:glibc-devel-2.17-292.el7.x86_64-->ProcessingDependency:glibc-headersforpackage:glibc-devel-2.17-292.el7.x86_64--->Packageksh.x86_640:20120801-139.el7willbeinstalled--->PackagelibX11.x86_640:1.6.7-2.el7willbeinstalled-->ProcessingDependency:libX11-common>=1.6.7-2.el7forpackage:libX11-1.6.7-2.el7.x86_64--->PackagelibXau.x86_640:1.0.8-2.1.el7willbeinstalled--->PackagelibXi.x86_640:1.7.9-1.el7willbeinstalled-->ProcessingDependency:libXext.so.6()(64bit)forpackage:libXi-1.7.9-1.el7.x86_64--->PackagelibXrender.x86_640:0.9.10-1.el7willbeinstalled--->PackagelibXrender-devel.x86_640:0.9.10-1.el7willbeinstalled-->ProcessingDependency:pkgconfig(renderproto)>=0.9forpackage:libXrender-devel-0.9.10-1.el7.x86_64-->ProcessingDependency:pkgconfig(xproto)forpackage:libXrender-devel-0.9.10-1.el7.x86_64-->ProcessingDependency:pkgconfig(x11)forpackage:libXrender-devel-0.9.10-1.el7.x86_64--->PackagelibXtst.x86_640:1.2.3-1.el7willbeinstalled--->Packagelibaio-devel.x86_640:0.3.109-13.el7willbeinstalled--->Packagelibstdc++-devel.x86_640:4.8.5-39.el7willbeinstalled--->Packagelibxcb.x86_640:1.13-1.el7willbeinstalled--->Packagenet-tools.x86_640:2.0-0.25.20131004git.el7willbeinstalled--->Packagenfs-utils.x86_641:1.3.0-0.65.el7willbeinstalled-->ProcessingDependency:libtirpc>=0.2.4-0.7forpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:gssproxy>=0.7.0-3forpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:rpcbindforpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:quotaforpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:libnfsidmapforpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:libeventforpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:keyutilsforpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:libtirpc.so.1()(64bit)forpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:libnfsidmap.so.0()(64bit)forpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64-->ProcessingDependency:libevent-2.0.so.5()(64bit)forpackage:1:nfs-utils-1.3.0-0.65.el7.x86_64--->Packagepython-configshell.noarch1:1.1.fb25-1.el7willbeinstalled-->ProcessingDependency:python-urwidforpackage:1:python-configshell-1.1.fb25-1.el7.noarch-->ProcessingDependency:pyparsingforpackage:1:python-configshell-1.1.fb25-1.el7.noarch--->Packagepython-rtslib.noarch0:2.1.fb69-3.el7willbeinstalled-->ProcessingDependency:python-kmodforpackage:python-rtslib-2.1.fb69-3.el7.noarch--->Packagesmartmontools.x86_641:7.0-1.el7willbeinstalled-->ProcessingDependency:mailxforpackage:1:smartmontools-7.0-1.el7.x86_64--->Packagesysstat.x86_640:10.1.5-18.el7willbeinstalled-->ProcessingDependency:libsensors.so.4()(64bit)forpackage:sysstat-10.1.5-18.el7.x86_64--->Packagetargetcli.noarch0:2.1.fb49-1.el7willbeinstalled--->Packageunzip.x86_640:6.0-20.el7willbeinstalled--->Packagevim-enhanced.x86_642:7.4.629-6.el7willbeinstalled-->Runningtransactioncheck--->Packageexpat-devel.x86_640:2.1.0-10.el7_3willbeinstalled--->Packagefontconfig.x86_640:2.13.0-4.3.el7willbeinstalled-->ProcessingDependency:fontpackages-filesystemforpackage:fontconfig-2.13.0-4.3.el7.x86_64-->ProcessingDependency:dejavu-sans-fontsforpackage:fontconfig-2.13.0-4.3.el7.x86_64--->Packagefreetype-devel.x86_640:2.8-14.el7willbeinstalled-->ProcessingDependency:pkgconfig(libpng)forpackage:freetype-devel-2.8-14.el7.x86_64--->Packageglibc-headers.x86_640:2.17-292.el7willbeinstalled-->ProcessingDependency:kernel-headers>=2.2.1forpackage:glibc-headers-2.17-292.el7.x86_64-->ProcessingDependency:kernel-headersforpackage:glibc-headers-2.17-292.el7.x86_64--->Packagegssproxy.x86_640:0.7.0-26.el7willbeinstalled-->ProcessingDependency:libini_config>=1.3.1-31forpackage:gssproxy-0.7.0-26.el7.x86_64-->ProcessingDependency:libverto-module-baseforpackage:gssproxy-0.7.0-26.el7.x86_64-->ProcessingDependency:libref_array.so.1(REF_ARRAY_0.1.1)(64bit)forpackage:gssproxy-0.7.0-26.el7.x86_64-->ProcessingDependency:libini_config.so.3(INI_CONFIG_1.2.0)(64bit)forpackage:gssproxy-0.7.0-26.el7.x86_64-->ProcessingDependency:libini_config.so.3(INI_CONFIG_1.1.0)(64bit)forpackage:gssproxy-0.7.0-26.el7.x86_64-->ProcessingDependency:libref_array.so.1()(64bit)forpackage:gssproxy-0.7.0-26.el7.x86_64-->ProcessingDependency:libini_config.so.3()(64bit)forpackage:gssproxy-0.7.0-26.el7.x86_64-->ProcessingDependency:libcollection.so.2()(64bit)forpackage:gssproxy-0.7.0-26.el7.x86_64-->ProcessingDependency:libbasicobjects.so.0()(64bit)forpackage:gssproxy-0.7.0-26.el7.x86_64--->Packagekeyutils.x86_640:1.5.8-3.el7willbeinstalled--->PackagelibX11-common.noarch0:1.6.7-2.el7willbeinstalled--->PackagelibX11-devel.x86_640:1.6.7-2.el7willbeinstalled-->ProcessingDependency:pkgconfig(xcb)>=1.11.1forpackage:libX11-devel-1.6.7-2.el7.x86_64-->ProcessingDependency:pkgconfig(xcb)forpackage:libX11-devel-1.6.7-2.el7.x86_64--->PackagelibXext.x86_640:1.3.3-3.el7willbeinstalled--->Packagelibevent.x86_640:2.0.21-4.el7willbeinstalled--->Packagelibnfsidmap.x86_640:0.25-19.el7willbeinstalled--->Packagelibtirpc.x86_640:0.2.4-0.16.el7willbeinstalled--->Packagelibuuid-devel.x86_640:2.23.2-61.el7willbeinstalled--->Packagelm_sensors-libs.x86_640:3.4.0-8.20160601gitf9185e5.el7willbeinstalled--->Packagemailx.x86_640:12.5-19.el7willbeinstalled--->Packagepyparsing.noarch0:1.5.6-9.el7willbeinstalled--->Packagepython-kmod.x86_640:0.9-4.el7willbeinstalled--->Packagepython-urwid.x86_640:1.1.1-3.el7willbeinstalled--->Packagequota.x86_641:4.01-19.el7willbeinstalled-->ProcessingDependency:quota-nls=1:4.01-19.el7forpackage:1:quota-4.01-19.el7.x86_64-->ProcessingDependency:tcp_wrappersforpackage:1:quota-4.01-19.el7.x86_64--->Packagerpcbind.x86_640:0.2.0-48.el7willbeinstalled--->Packagexorg-x11-proto-devel.noarch0:2018.4-1.el7willbeinstalled--->Packagezlib-devel.x86_640:1.2.7-18.el7willbeinstalled-->Runningtransactioncheck--->Packagedejavu-sans-fonts.noarch0:2.33-6.el7willbeinstalled-->ProcessingDependency:dejavu-fonts-common=2.33-6.el7forpackage:dejavu-sans-fonts-2.33-6.el7.noarch--->Packagefontpackages-filesystem.noarch0:1.44-8.el7willbeinstalled--->Packagekernel-headers.x86_640:3.10.0-1062.el7willbeinstalled--->Packagelibbasicobjects.x86_640:0.1.1-32.el7willbeinstalled--->Packagelibcollection.x86_640:0.7.0-32.el7willbeinstalled--->Packagelibini_config.x86_640:1.3.1-32.el7willbeinstalled-->ProcessingDependency:libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit)forpackage:libini_config-1.3.1-32.el7.x86_64-->ProcessingDependency:libpath_utils.so.1()(64bit)forpackage:libini_config-1.3.1-32.el7.x86_64--->Packagelibpng-devel.x86_642:1.5.13-7.el7_2willbeinstalled--->Packagelibref_array.x86_640:0.1.5-32.el7willbeinstalled--->Packagelibverto-libevent.x86_640:0.2.5-4.el7willbeinstalled--->Packagelibxcb-devel.x86_640:1.13-1.el7willbeinstalled-->ProcessingDependency:pkgconfig(xau)>=0.99.2forpackage:libxcb-devel-1.13-1.el7.x86_64--->Packagequota-nls.noarch1:4.01-19.el7willbeinstalled--->Packagetcp_wrappers.x86_640:7.6-77.el7willbeinstalled-->Runningtransactioncheck--->Packagedejavu-fonts-common.noarch0:2.33-6.el7willbeinstalled--->PackagelibXau-devel.x86_640:1.0.8-2.1.el7willbeinstalled--->Packagelibpath_utils.x86_640:0.2.1-32.el7willbeinstalled-->FinishedDependencyResolutionDependenciesResolved======================================================================================================================================PackageArchVersionRepositorySize======================================================================================================================================Installing:bcx86_641.06.95-13.el7base115kcompat-libcap1x86_641.10-7.el7base19kelfutils-libelf-develx86_640.176-2.el7base39kfontconfig-develx86_642.13.0-4.3.el7base138kglibc-develx86_642.17-292.el7base1.1Mkshx86_6420120801-139.el7base885klibX11x86_641.6.7-2.el7base607klibXaux86_641.0.8-2.1.el7base29klibXix86_641.7.9-1.el7base40klibXrenderx86_640.9.10-1.el7base26klibXrender-develx86_640.9.10-1.el7base17klibXtstx86_641.2.3-1.el7base20klibaio-develx86_640.3.109-13.el7base13klibstdc++-develx86_644.8.5-39.el7base1.5Mlibxcbx86_641.13-1.el7base214knet-toolsx86_642.0-0.25.20131004git.el7base306knfs-utilsx86_641:1.3.0-0.65.el7base412kpython-configshellnoarch1:1.1.fb25-1.el7base68kpython-rtslibnoarch2.1.fb69-3.el7base102ksmartmontoolsx86_641:7.0-1.el7base546ksysstatx86_6410.1.5-18.el7base316ktargetclinoarch2.1.fb49-1.el7base68kunzipx86_646.0-20.el7base170kvim-enhancedx86_642:7.4.629-6.el7base1.1MInstallingfordependencies:dejavu-fonts-commonnoarch2.33-6.el7base64kdejavu-sans-fontsnoarch2.33-6.el7base1.4Mexpat-develx86_642.1.0-10.el7_3base57kfontconfigx86_642.13.0-4.3.el7base254kfontpackages-filesystemnoarch1.44-8.el7base9.9kfreetype-develx86_642.8-14.el7base447kglibc-headersx86_642.17-292.el7base687kgssproxyx86_640.7.0-26.el7base110kkernel-headersx86_643.10.0-1062.el7base8.7Mkeyutilsx86_641.5.8-3.el7base54klibX11-commonnoarch1.6.7-2.el7base164klibX11-develx86_641.6.7-2.el7base981klibXau-develx86_641.0.8-2.1.el7base14klibXextx86_641.3.3-3.el7base39klibbasicobjectsx86_640.1.1-32.el7base26klibcollectionx86_640.7.0-32.el7base42klibeventx86_642.0.21-4.el7base214klibini_configx86_641.3.1-32.el7base64klibnfsidmapx86_640.25-19.el7base50klibpath_utilsx86_640.2.1-32.el7base28klibpng-develx86_642:1.5.13-7.el7_2base122klibref_arrayx86_640.1.5-32.el7base27klibtirpcx86_640.2.4-0.16.el7base89klibuuid-develx86_642.23.2-61.el7base92klibverto-libeventx86_640.2.5-4.el7base8.9klibxcb-develx86_641.13-1.el7base1.1Mlm_sensors-libsx86_643.4.0-8.20160601gitf9185e5.el7base42kmailxx86_6412.5-19.el7base245kpyparsingnoarch1.5.6-9.el7base94kpython-kmodx86_640.9-4.el7base57kpython-urwidx86_641.1.1-3.el7base654kquotax86_641:4.01-19.el7base179kquota-nlsnoarch1:4.01-19.el7base90krpcbindx86_640.2.0-48.el7base60ktcp_wrappersx86_647.6-77.el7base79kxorg-x11-proto-develnoarch2018.4-1.el7base279kzlib-develx86_641.2.7-18.el7base50kTransactionSummary======================================================================================================================================Install24Packages(+37Dependentpackages)Totaldownloadsize:24MInstalledsize:53MDownloadingpackages:--------------------------------------------------------------------------------------------------------------------------------------Total108MB/s|24MB00:00:00RunningtransactioncheckRunningtransactiontestTransactiontestsucceededRunningtransactionInstalling:xorg-x11-proto-devel-2018.4-1.el7.noarch1/61Installing:zlib-devel-1.2.7-18.el7.x86_642/61Installing:libcollection-0.7.0-32.el7.x86_643/61Installing:libXau-1.0.8-2.1.el7.x86_644/61Installing:libxcb-1.13-1.el7.x86_645/61Installing:libref_array-0.1.5-32.el7.x86_646/61Installing:libevent-2.0.21-4.el7.x86_647/61Installing:fontpackages-filesystem-1.44-8.el7.noarch8/61Installing:libbasicobjects-0.1.1-32.el7.x86_649/61Installing:libtirpc-0.2.4-0.16.el7.x86_6410/61Installing:rpcbind-0.2.0-48.el7.x86_6411/61Installing:dejavu-fonts-common-2.33-6.el7.noarch12/61Installing:dejavu-sans-fonts-2.33-6.el7.noarch13/61Installing:fontconfig-2.13.0-4.3.el7.x86_6414/61Installing:libverto-libevent-0.2.5-4.el7.x86_6415/61Installing:libXau-devel-1.0.8-2.1.el7.x86_6416/61Installing:libxcb-devel-1.13-1.el7.x86_6417/61Installing:2:libpng-devel-1.5.13-7.el7_2.x86_6418/61Installing:freetype-devel-2.8-14.el7.x86_6419/61Installing:expat-devel-2.1.0-10.el7_3.x86_6420/61Installing:mailx-12.5-19.el7.x86_6421/61Installing:1:quota-nls-4.01-19.el7.noarch22/61Installing:libnfsidmap-0.25-19.el7.x86_6423/61Installing:keyutils-1.5.8-3.el7.x86_6424/61Installing:libpath_utils-0.2.1-32.el7.x86_6425/61Installing:libini_config-1.3.1-32.el7.x86_6426/61Installing:gssproxy-0.7.0-26.el7.x86_6427/61Installing:python-kmod-0.9-4.el7.x86_6428/61Installing:python-rtslib-2.1.fb69-3.el7.noarch29/61Installing:python-urwid-1.1.1-3.el7.x86_6430/61Installing:libX11-common-1.6.7-2.el7.noarch31/61Installing:libX11-1.6.7-2.el7.x86_6432/61Installing:libXext-1.3.3-3.el7.x86_6433/61Installing:libXi-1.7.9-1.el7.x86_6434/61Installing:libX11-devel-1.6.7-2.el7.x86_6435/61Installing:libXrender-0.9.10-1.el7.x86_6436/61Installing:lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_6437/61Installing:tcp_wrappers-7.6-77.el7.x86_6438/61Installing:1:quota-4.01-19.el7.x86_6439/61Installing:pyparsing-1.5.6-9.el7.noarch40/61Installing:1:python-configshell-1.1.fb25-1.el7.noarch41/61Installing:kernel-headers-3.10.0-1062.el7.x86_6442/61Installing:glibc-headers-2.17-292.el7.x86_6443/61Installing:libuuid-devel-2.23.2-61.el7.x86_6444/61Installing:fontconfig-devel-2.13.0-4.3.el7.x86_6445/61Installing:glibc-devel-2.17-292.el7.x86_6446/61Installing:targetcli-2.1.fb49-1.el7.noarch47/61Installing:1:nfs-utils-1.3.0-0.65.el7.x86_6448/61Installing:sysstat-10.1.5-18.el7.x86_6449/61Installing:libXrender-devel-0.9.10-1.el7.x86_6450/61Installing:libXtst-1.2.3-1.el7.x86_6451/61Installing:1:smartmontools-7.0-1.el7.x86_6452/61Installing:elfutils-libelf-devel-0.176-2.el7.x86_6453/61Installing:libaio-devel-0.3.109-13.el7.x86_6454/61Installing:compat-libcap1-1.10-7.el7.x86_6455/61Installing:ksh-20120801-139.el7.x86_6456/61Installing:2:vim-enhanced-7.4.629-6.el7.x86_6457/61Installing:libstdc++-devel-4.8.5-39.el7.x86_6458/61Installing:net-tools-2.0-0.25.20131004git.el7.x86_6459/61Installing:bc-1.06.95-13.el7.x86_6460/61Installing:unzip-6.0-20.el7.x86_6461/61Verifying:libXext-1.3.3-3.el7.x86_641/61Verifying:libtirpc-0.2.4-0.16.el7.x86_642/61Verifying:libXi-1.7.9-1.el7.x86_643/61Verifying:libX11-devel-1.6.7-2.el7.x86_644/61Verifying:fontconfig-2.13.0-4.3.el7.x86_645/61Verifying:2:libpng-devel-1.5.13-7.el7_2.x86_646/61Verifying:libXrender-0.9.10-1.el7.x86_647/61Verifying:libuuid-devel-2.23.2-61.el7.x86_648/61Verifying:1:nfs-utils-1.3.0-0.65.el7.x86_649/61Verifying:kernel-headers-3.10.0-1062.el7.x86_6410/61Verifying:libbasicobjects-0.1.1-32.el7.x86_6411/61Verifying:unzip-6.0-20.el7.x86_6412/61Verifying:pyparsing-1.5.6-9.el7.noarch13/61Verifying:fontpackages-filesystem-1.44-8.el7.noarch14/61Verifying:bc-1.06.95-13.el7.x86_6415/61Verifying:fontconfig-devel-2.13.0-4.3.el7.x86_6416/61Verifying:tcp_wrappers-7.6-77.el7.x86_6417/61Verifying:zlib-devel-1.2.7-18.el7.x86_6418/61Verifying:xorg-x11-proto-devel-2018.4-1.el7.noarch19/61Verifying:dejavu-fonts-common-2.33-6.el7.noarch20/61Verifying:net-tools-2.0-0.25.20131004git.el7.x86_6421/61Verifying:libXtst-1.2.3-1.el7.x86_6422/61Verifying:libX11-1.6.7-2.el7.x86_6423/61Verifying:targetcli-2.1.fb49-1.el7.noarch24/61Verifying:libxcb-1.13-1.el7.x86_6425/61Verifying:freetype-devel-2.8-14.el7.x86_6426/61Verifying:lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_6427/61Verifying:libstdc++-devel-4.8.5-39.el7.x86_6428/61Verifying:libini_config-1.3.1-32.el7.x86_6429/61Verifying:libX11-common-1.6.7-2.el7.noarch30/61Verifying:libXrender-devel-0.9.10-1.el7.x86_6431/61Verifying:2:vim-enhanced-7.4.629-6.el7.x86_6432/61Verifying:python-urwid-1.1.1-3.el7.x86_6433/61Verifying:sysstat-10.1.5-18.el7.x86_6434/61Verifying:ksh-20120801-139.el7.x86_6435/61Verifying:libevent-2.0.21-4.el7.x86_6436/61Verifying:elfutils-libelf-devel-0.176-2.el7.x86_6437/61Verifying:libverto-libevent-0.2.5-4.el7.x86_6438/61Verifying:dejavu-sans-fonts-2.33-6.el7.noarch39/61Verifying:compat-libcap1-1.10-7.el7.x86_6440/61Verifying:libaio-devel-0.3.109-13.el7.x86_6441/61Verifying:1:python-configshell-1.1.fb25-1.el7.noarch42/61Verifying:libref_array-0.1.5-32.el7.x86_6443/61Verifying:rpcbind-0.2.0-48.el7.x86_6444/61Verifying:python-kmod-0.9-4.el7.x86_6445/61Verifying:glibc-devel-2.17-292.el7.x86_6446/61Verifying:libpath_utils-0.2.1-32.el7.x86_6447/61Verifying:1:quota-4.01-19.el7.x86_6448/61Verifying:libxcb-devel-1.13-1.el7.x86_6449/61Verifying:gssproxy-0.7.0-26.el7.x86_6450/61Verifying:libXau-1.0.8-2.1.el7.x86_6451/61Verifying:1:smartmontools-7.0-1.el7.x86_6452/61Verifying:libcollection-0.7.0-32.el7.x86_6453/61Verifying:keyutils-1.5.8-3.el7.x86_6454/61Verifying:libnfsidmap-0.25-19.el7.x86_6455/61Verifying:1:quota-nls-4.01-19.el7.noarch56/61Verifying:python-rtslib-2.1.fb69-3.el7.noarch57/61Verifying:mailx-12.5-19.el7.x86_6458/61Verifying:expat-devel-2.1.0-10.el7_3.x86_6459/61Verifying:glibc-headers-2.17-292.el7.x86_6460/61Verifying:libXau-devel-1.0.8-2.1.el7.x86_6461/61Installed:bc.x86_640:1.06.95-13.el7compat-libcap1.x86_640:1.10-7.el7elfutils-libelf-devel.x86_640:0.176-2.el7fontconfig-devel.x86_640:2.13.0-4.3.el7glibc-devel.x86_640:2.17-292.el7ksh.x86_640:20120801-139.el7libX11.x86_640:1.6.7-2.el7libXau.x86_640:1.0.8-2.1.el7libXi.x86_640:1.7.9-1.el7libXrender.x86_640:0.9.10-1.el7libXrender-devel.x86_640:0.9.10-1.el7libXtst.x86_640:1.2.3-1.el7libaio-devel.x86_640:0.3.109-13.el7libstdc++-devel.x86_640:4.8.5-39.el7libxcb.x86_640:1.13-1.el7net-tools.x86_640:2.0-0.25.20131004git.el7nfs-utils.x86_641:1.3.0-0.65.el7python-configshell.noarch1:1.1.fb25-1.el7python-rtslib.noarch0:2.1.fb69-3.el7smartmontools.x86_641:7.0-1.el7sysstat.x86_640:10.1.5-18.el7targetcli.noarch0:2.1.fb49-1.el7unzip.x86_640:6.0-20.el7vim-enhanced.x86_642:7.4.629-6.el7DependencyInstalled:dejavu-fonts-common.noarch0:2.33-6.el7dejavu-sans-fonts.noarch0:2.33-6.el7expat-devel.x86_640:2.1.0-10.el7_3fontconfig.x86_640:2.13.0-4.3.el7fontpackages-filesystem.noarch0:1.44-8.el7freetype-devel.x86_640:2.8-14.el7glibc-headers.x86_640:2.17-292.el7gssproxy.x86_640:0.7.0-26.el7kernel-headers.x86_640:3.10.0-1062.el7keyutils.x86_640:1.5.8-3.el7libX11-common.noarch0:1.6.7-2.el7libX11-devel.x86_640:1.6.7-2.el7libXau-devel.x86_640:1.0.8-2.1.el7libXext.x86_640:1.3.3-3.el7libbasicobjects.x86_640:0.1.1-32.el7libcollection.x86_640:0.7.0-32.el7libevent.x86_640:2.0.21-4.el7libini_config.x86_640:1.3.1-32.el7libnfsidmap.x86_640:0.25-19.el7libpath_utils.x86_640:0.2.1-32.el7libpng-devel.x86_642:1.5.13-7.el7_2libref_array.x86_640:0.1.5-32.el7libtirpc.x86_640:0.2.4-0.16.el7libuuid-devel.x86_640:2.23.2-61.el7libverto-libevent.x86_640:0.2.5-4.el7libxcb-devel.x86_640:1.13-1.el7lm_sensors-libs.x86_640:3.4.0-8.20160601gitf9185e5.el7mailx.x86_640:12.5-19.el7pyparsing.noarch0:1.5.6-9.el7python-kmod.x86_640:0.9-4.el7python-urwid.x86_640:1.1.1-3.el7quota.x86_641:4.01-19.el7quota-nls.noarch1:4.01-19.el7rpcbind.x86_640:0.2.0-48.el7tcp_wrappers.x86_640:7.6-77.el7xorg-x11-proto-devel.noarch0:2018.4-1.el7zlib-devel.x86_640:1.2.7-18.el7Complete![root@adg19c~]#2.13.4 安装compat-libstdc++
[root@adg19c~]#rpm-ivh/home/oracle/compat-libstdc++-33-3.2.3-69.el6.x86_64.rpmwarning:/home/oracle/compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,keyIDec551f03:NOKEYPreparing...#################################[100%]Updating/installing...1:compat-libstdc++-33-3.2.3-69.el6#################################[100%]
备注:这个包在RHEL 7的系统盘里面没有,需要单独下载后手工安装。
2.13.5 检查已安装依赖包[root@adg19c~]#rpm-q--qf'%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n'bcbinutilscompat-libcap1compat-libstdc++elfutils-libelfelfutils-libelf-develfontconfig-develglibcglibc-develkshlibaiolibaio-devellibX11libXaulibXilibXtstlibXrenderlibXrender-devellibgcclibstdc++libstdc++-devellibxcbmakenet-toolsnfs-utilspythonpython-configshellpython-rtslibpython-sixtargetclismartmontoolssysstatunzipvimbc-1.06.95-13.el7(x86_64)binutils-2.27-41.base.el7(x86_64)compat-libcap1-1.10-7.el7(x86_64)packagecompat-libstdc++isnotinstalled--只要安装了这个报错没有关系。elfutils-libelf-0.176-2.el7(x86_64)elfutils-libelf-devel-0.176-2.el7(x86_64)fontconfig-devel-2.13.0-4.3.el7(x86_64)glibc-2.17-292.el7(x86_64)glibc-devel-2.17-292.el7(x86_64)ksh-20120801-139.el7(x86_64)libaio-0.3.109-13.el7(x86_64)libaio-devel-0.3.109-13.el7(x86_64)libX11-1.6.7-2.el7(x86_64)libXau-1.0.8-2.1.el7(x86_64)libXi-1.7.9-1.el7(x86_64)libXtst-1.2.3-1.el7(x86_64)libXrender-0.9.10-1.el7(x86_64)libXrender-devel-0.9.10-1.el7(x86_64)libgcc-4.8.5-39.el7(x86_64)libstdc++-4.8.5-39.el7(x86_64)libstdc++-devel-4.8.5-39.el7(x86_64)libxcb-1.13-1.el7(x86_64)make-3.82-24.el7(x86_64)net-tools-2.0-0.25.20131004git.el7(x86_64)nfs-utils-1.3.0-0.65.el7(x86_64)python-2.7.5-86.el7(x86_64)python-configshell-1.1.fb25-1.el7(noarch)python-rtslib-2.1.fb69-3.el7(noarch)python-six-1.9.0-2.el7(noarch)targetcli-2.1.fb49-1.el7(noarch)smartmontools-7.0-1.el7(x86_64)sysstat-10.1.5-18.el7(x86_64)unzip-6.0-20.el7(x86_64)三、 安装软件3.1. 解压数据库软件
[oracle@adg19c~]$unzip-qLINUX.X64_193000_db_home.zip-d$ORACLE_HOME[oracle@adg19c~]$du-sh$ORACLE_HOME6.5G/DBSoft/oracle/product/19.3/dbhome_13.2. 开始安装数据库软件
# 编写相应文件
[oracle@adg19c~]$cat19c_db_install.rsporacle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0oracle.install.option=INSTALL_DB_SWONLYUNIX_GROUP_NAME=oinstallINVENTORY_LOCATION=/DBSoft/oracle/oraInventoryORACLE_BASE=/DBSoft/oracleORACLE_HOME=/DBSoft/oracle/product/19.3/dbhome_1oracle.install.db.InstallEdition=EEoracle.install.db.OSDBA_GROUP=dbaoracle.install.db.OSOPER_GROUP=operoracle.install.db.OSBACKUPDBA_GROUP=backupdbaoracle.install.db.OSDGDBA_GROUP=dgdbaoracle.install.db.OSKMDBA_GROUP=kmdbaoracle.install.db.OSRACDBA_GROUP=racdbaoracle.install.db.rootconfig.executeRootScript=trueoracle.install.db.rootconfig.configMethod=ROOT
# 运行安装命令
[oracle@adg19c~]$$ORACLE_HOME/runInstaller-silent-force-noconfig-ignorePrereq-responseFile/home/oracle/19c_db_install.rspLaunchingOracleDatabaseSetupWizard...[WARNING][INS-32055]TheCentralInventoryislocatedintheOraclebase.ACTION:OraclerecommendsplacingthisCentralInventoryinalocationoutsidetheOraclebasedirectory.Enterpasswordfor'root'user:[WARNING][INS-13014]Targetenvironmentdoesnotmeetsomeoptionalrequirements.CAUSE:Someoftheoptionalprerequisitesarenotmet.Seelogsfordetails.installActions2020-03-12_08-38-48AM.logACTION:Identifythelistoffailedprerequisitechecksfromthelog:installActions2020-03-12_08-38-48AM.log.Theneitherfromthelogfileorfrominstallationmanualfindtheappropriateconfigurationtomeettheprerequisitesandfixitmanually.Theresponsefileforthissessioncanbefoundat:/DBSoft/oracle/product/19.3/dbhome_1/install/response/db_2020-03-12_08-38-48AM.rspYoucanfindthelogofthisinstallsessionat:/tmp/InstallActions2020-03-12_08-38-48AM/installActions2020-03-12_08-38-48AM.logSuccessfullySetupSoftwarewithwarning(s).Movedtheinstallsessionlogsto:/DBSoft/oracle/oraInventory/logs/InstallActions2020-03-12_08-38-48AM备注:该过程非常快,整个运行不到1分钟,中途会提示输入root用户密码用于自动执行root.sh脚本四、 创建监听
# 编写监听配置文件
[oracle@adg19c~]$cat19c_netca.rsp[GENERAL]RESPONSEFILE_VERSION="19.3"CREATE_TYPE="CUSTOM"[oracle.net.ca]INSTALLED_COMPONENTS={"server","net8","javavm"}INSTALL_TYPE=""typical""LISTENER_NUMBER=1LISTENER_NAMES={"LISTENER"}LISTENER_PROTOCOLS={"TCP;1521"}LISTENER_START=""LISTENER""NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}NSN_NUMBER=1NSN_NAMES={"EXTPROC_CONNECTION_DATA"}NSN_SERVICE={"PLSExtProc"}NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}
# 静默配置监听
[oracle@adg19c~]$netca/silent/responsefile/home/oracle/19c_netca.rspParsingcommandlinearguments:Parameter"silent"=trueParameter"responsefile"=/home/oracle/19c_netca.rspDoneparsingcommandlinearguments.OracleNetServicesConfiguration:Profileconfigurationcomplete.OracleNetListenerStartup:RunningListenerControl:/DBSoft/oracle/product/19.3/dbhome_1/bin/lsnrctlstartLISTENERListenerControlcomplete.Listenerstartedsuccessfully.Listenerconfigurationcomplete.OracleNetServicesconfigurationsuccessful.Theexitcodeis0
# 编写数据库创建相应文件
[oracle@adg19c~]$cat19c_dbca.rsp[CREATEDATABASE]templateNameGeneral_Purpose.dbcgdbnamewoosidwoocreateAsContainerDatabaseTRUEnumberOfPDBs1pdbNamewoopdb1pdbAdminPasswordwoosysPasswordwoo-systemPasswordwoodatafileDestination'/DBSoft/oracle/oradata'recoveryAreaDestination'/DBSoft/oracle/flash_recovery_area'redoLogFileSize120storageTypeFScharactersetAL32UTF8-nationalCharacterSetAL16UTF16sampleSchematruetotalMemory2048databaseTypeOLTPemConfigurationNONE
# 静默创建数据库
dbca-silent-createDatabase-responseFile/home/oracle/19c_dbca.rsp六、 创建一个PDBs
[oracle@adg19c~]$sqlplus/assysdbaSQL*Plus:Release19.0.0.0.0-ProductiononThuMar1206:43:252020Version19.3.0.0.0Copyright(c)1982,2019,Oracle.Allrightsreserved.Connectedto:OracleDatabase19cEnterpriseEditionRelease19.0.0.0.0-ProductionVersion19.3.0.0.0SQL>showpdbs;CON_IDCON_NAMEOPENMODERESTRICTED------------------------------------------------------------2PDB$SEEDREADONLYNO3PDBREADWRITENOSQL>createpluggabledatabasepdbwoofrompdbfile_name_convert=('pdb/','pdbwoo/');Pluggabledatabasecreated.SQL>showpdbs;CON_IDCON_NAMEOPENMODERESTRICTED------------------------------------------------------------2PDB$SEEDREADONLYNO3PDBREADWRITENO4PDBWOOMOUNTEDSQL>alterpluggabledatabaseallsavestate;Pluggabledatabasealtered.SQL>showpdbs;CON_IDCON_NAMEOPENMODERESTRICTED------------------------------------------------------------2PDB$SEEDREADONLYNO3PDBREADWRITENO4PDBWOOREADWRITENO七、 检查监听注册状态
[oracle@adg19c~]$lsnrctlstatusLSNRCTLforLinux:Version19.0.0.0.0-Productionon12-MAR-202006:53:55Copyright(c)1991,2019,Oracle.Allrightsreserved.Connectingto(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=adg19c)(PORT=1521)))STATUSoftheLISTENER------------------------AliasLISTENERVersionTNSLSNRforLinux:Version19.0.0.0.0-ProductionStartDate12-MAR-202006:17:19Uptime0days0hr.36min.36secTraceLeveloffSecurityON:LocalOSAuthenticationSNMPOFFListenerParameterFile/DBSoft/oracle/product/19.3/dbhome_1/network/admin/listener.oraListenerLogFile/DBSoft/oracle/diag/tnslsnr/adg19c/listener/alert/log.xmlListeningEndpointsSummary...(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=adg19c)(PORT=1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=adg19c)(PORT=5500))(Security=(my_wallet_directory=/DBSoft/oracle/admin/woo/xdb_wallet))(Presentation=HTTP)(Session=RAW))ServicesSummary...Service"86b637b62fdf7a65e053f706e80a27ca"has1instance(s).Instance"woo",statusREADY,has1handler(s)forthisservice...Service"a09cefc7b6a2b892e0536354a8c08331"has1instance(s).Instance"woo",statusREADY,has1handler(s)forthisservice...Service"a09cfefe92a3b95de0536354a8c024a2"has1instance(s).Instance"woo",statusREADY,has1handler(s)forthisservice...Service"pdb"has1instance(s).Instance"woo",statusREADY,has1handler(s)forthisservice...Service"pdbwoo"has1instance(s).Instance"woo",statusREADY,has1handler(s)forthisservice...Service"woo"has1instance(s).Instance"woo",statusREADY,has1handler(s)forthisservice...Service"wooXDB"has1instance(s).Instance"woo",statusREADY,has1handler(s)forthisservice...Thecommandcompletedsuccessfully
“如何安装单机Oracle数据库静默”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注亿速云网站,小编将为大家输出更多高质量的实用文章!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。