首先在edelivery中下载Oracle Linux 8.0

然后就默认安装系统

环境准备工具目前不支持OL8,所以需要手动安装,首先设置内核参数,在/etc/sysctl.conf追加

  1. [root@localhost ~]# cat /etc/sysctl.conf |grep -v ^#|grep -v ^$
  2. fs.file-max = 6815744
  3. kernel.sem = 250 32000 100 128
  4. kernel.shmmni = 4096
  5. kernel.shmall = 1073741824
  6. kernel.shmmax = 4398046511104
  7. kernel.panic_on_oops = 1
  8. net.core.rmem_default = 262144
  9. net.core.rmem_max = 4194304
  10. net.core.wmem_default = 262144
  11. net.core.wmem_max = 1048576
  12. net.ipv4.conf.all.rp_filter = 2
  13. net.ipv4.conf.default.rp_filter = 2
  14. fs.aio-max-nr = 1048576
  15. net.ipv4.ip_local_port_range = 9000 65500
  16. [root@localhost ~]#

sysctl -p使参数生效

然后/etc/security/limits.d/oracle-database-preinstall-19c.conf中添加

  1. [root@localhost limits.d]# cat /etc/security/limits.d/oracle-database-preinstall-19c.conf
  2. oracle soft nofile 1024
  3. oracle hard nofile 65536
  4. oracle soft nproc 16384
  5. oracle hard nproc 16384
  6. oracle soft stack 10240
  7. oracle hard stack 32768
  8. oracle hard memlock 134217728
  9. oracle soft memlock 134217728
  10. [root@localhost limits.d]#

安装依赖软件

  1. dnf install -y bc binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel ksh libaio libaio-devel libXrender libXrender-devel libX11 libXau libXi libXtst libgcc librdmacm-devel libstdc++ libstdc++-devel libxcb make net-tools nfs-utils python3 python3-configshell python3-rtslib python3-six targetcli smartmontools sysstat unixODBC libnsl libnsl.i686 libnsl2 libnsl2.i686

创建用户组和用户

  1. [root@localhost limits.d]# groupadd -g 1001 oinstall
  2. [root@localhost limits.d]# groupadd -g 1002 dba
  3. [root@localhost limits.d]# groupadd -g 1003 oper
  4. [root@localhost limits.d]# useradd -u 1001 -g oinstall -G dba,oper oracle
  5. [root@localhost limits.d]# passwd oracle
  6. Changing password for user oracle.
  7. New password:
  8. BAD PASSWORD: The password is shorter than 8 characters
  9. Retype new password:
  10. passwd: all authentication tokens updated successfully.
  11. [root@localhost limits.d]#

创建目录

  1. [root@localhost ~]# mkdir -p /u01/app/oraInventory
  2. [root@localhost ~]# mkdir -p /u01/app/oracle/product/19.3.0/dbhome_1
  3. [root@localhost ~]# chown -R oracle: /u01/app/oraInventory
  4. [root@localhost ~]# chown -R oracle: /u01/app/oracle
  5. [root@localhost ~]# su - oracle
  6. [oracle@localhost db]$ unzip -q /stage/db/V982063-01.zip -d /u01/app/oracle/product/19.3.0/dbhome_1/
  7. [oracle@localhost db]$

开始安装,注意版本兼容问题要先设置环境变量export CV_ASSUME_DISTID=RHEL7.6

  1. [oracle@localhost ~]$ export CV_ASSUME_DISTID=RHEL7.6
  2. [oracle@localhost ~]$ /u01/app/oracle/product/19.3.0/dbhome_1/runInstaller -ignorePrereq -waitforcompletion -silent \
  3. > -responseFile /u01/app/oracle/product/19.3.0/dbhome_1/install/response/db_install.rsp \
  4. > oracle.install.option=INSTALL_DB_SWONLY \
  5. > .ORACLE_HOSTNAME=OL8.0_19C \
  6. > UNIX_GROUP_NAME=oinstall \
  7. > INVENTORY_LOCATION=/u01/app/oraInventory \
  8. > SELECTED_LANGUAGES=en,en_GB \
  9. > ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1 \
  10. > ORACLE_BASE=/u01/app/oracle \
  11. > oracle.install.db.InstallEdition=EE \
  12. > oracle.install.db.OSDBA_GROUP=dba \
  13. > oracle.install.db.OSBACKUPDBA_GROUP=dba \
  14. > oracle.install.db.OSDGDBA_GROUP=dba \
  15. > oracle.install.db.OSKMDBA_GROUP=dba \
  16. > oracle.install.db.OSRACDBA_GROUP=dba \
  17. > SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \
  18. > DECLINE_SECURITY_UPDATES=true
  19. Launching Oracle Database Setup Wizard...
  20.  
  21. The response file for this session can be found at:
  22. /u01/app/oracle/product/19.3.0/dbhome_1/install/response/db_2019-08-17_12-41-50PM.rsp
  23.  
  24. You can find the log of this install session at:
  25. /tmp/InstallActions2019-08-17_12-41-50PM/installActions2019-08-17_12-41-50PM.log
  26.  
  27. As a root user, execute the following script(s):
  28. 1. /u01/app/oraInventory/orainstRoot.sh
  29. 2. /u01/app/oracle/product/19.3.0/dbhome_1/root.sh
  30.  
  31. Execute /u01/app/oraInventory/orainstRoot.sh on the following nodes:
  32. [localhost]
  33. Execute /u01/app/oracle/product/19.3.0/dbhome_1/root.sh on the following nodes:
  34. [localhost]
  35.  
  36. Successfully Setup Software.
  37. Moved the install session logs to:
  38. /u01/app/oraInventory/logs/InstallActions2019-08-17_12-41-50PM
  39. [oracle@localhost ~]$ su - root
  40. Password:
  41. [root@localhost ~]# /u01/app/oraInventory/orainstRoot.sh
  42. Changing permissions of /u01/app/oraInventory.
  43. Adding read,write permissions for group.
  44. Removing read,write,execute permissions for world.
  45.  
  46. Changing groupname of /u01/app/oraInventory to oinstall.
  47. The execution of the script is complete.
  48. [root@localhost ~]# /u01/app/oracle/product/19.3.0/dbhome_1/root.sh
  49. Check /u01/app/oracle/product/19.3.0/dbhome_1/install/root_localhost.localdomain_2019-08-17_12-44-20-885851348.log for the output of root script
  50. [root@localhost ~]#

代码是

  1. /u01/app/oracle/product/19.3.0/dbhome_1/runInstaller -ignorePrereq -waitforcompletion -silent \
  2. -responseFile /u01/app/oracle/product/19.3.0/dbhome_1/install/response/db_install.rsp \
  3. oracle.install.option=INSTALL_DB_SWONLY \
  4. ORACLE_HOSTNAME=OL8.0_19C \
  5. UNIX_GROUP_NAME=oinstall \
  6. INVENTORY_LOCATION=/u01/app/oraInventory \
  7. SELECTED_LANGUAGES=en,en_GB \
  8. ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1 \
  9. ORACLE_BASE=/u01/app/oracle \
  10. oracle.install.db.InstallEdition=EE \
  11. oracle.install.db.OSDBA_GROUP=dba \
  12. oracle.install.db.OSBACKUPDBA_GROUP=dba \
  13. oracle.install.db.OSDGDBA_GROUP=dba \
  14. oracle.install.db.OSKMDBA_GROUP=dba \
  15. oracle.install.db.OSRACDBA_GROUP=dba \
  16. SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \
  17. DECLINE_SECURITY_UPDATES=true

静默安装数据库,df -h先看看内存够不够,不够就调整参数大小或者mount -o remount,size=4G /dev/shm

  1. [root@localhost ~]# mount -o remount,size=4G /dev/shm
  2. [root@localhost ~]# su - oracle
  3. [oracle@localhost ~]$ /u01/app/oracle/product/19.3.0/dbhome_1/bin/dbca -silent -createDatabase \
  4. > -templateName General_Purpose.dbc \
  5. > -gdbname cdb1 -sid cdb1 -responseFile NO_VALUE \
  6. > -characterSet AL32UTF8 \
  7. > -sysPassword oracle \
  8. > -systemPassword oracle \
  9. > -createAsContainerDatabase true \
  10. > -numberOfPDBs 1 \
  11. > -pdbName pdb1 \
  12. > -pdbAdminPassword oracle \
  13. > -databaseType MULTIPURPOSE \
  14. > -automaticMemoryManagement false \
  15. > -totalMemory 2000 \
  16. > -storageType FS \
  17. > -datafileDestination "/u01/app/oracle/oradata" \
  18. > -redoLogFileSize 50 \
  19. > -emConfiguration NONE \
  20. > -ignorePreReqs
  21. [WARNING] [DBT-11209] Current available memory is less than the required available memory (2,000MB) for creating the database.
  22. CAUSE: Following nodes do not have required available memory :
  23. Node:localhost Available memory:1.8429GB (1932452.0KB)
  24.  
  25. [WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.
  26. CAUSE:
  27. a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
  28. b.The password entered is a keyword that Oracle does not recommend to be used as password
  29. ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
  30. [WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.
  31. CAUSE:
  32. a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
  33. b.The password entered is a keyword that Oracle does not recommend to be used as password
  34. ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
  35. [WARNING] [DBT-06208] The 'PDBADMIN' password entered does not conform to the Oracle recommended standards.
  36. CAUSE:
  37. a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
  38. b.The password entered is a keyword that Oracle does not recommend to be used as password
  39. ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
  40. Prepare for db operation
  41. 8% complete
  42. Copying database files
  43. 31% complete
  44. Creating and starting Oracle instance
  45. 32% complete
  46. 36% complete
  47. 40% complete
  48. 43% complete
  49. 46% complete
  50. Completing Database Creation
  51. 51% complete
  52. 53% complete
  53. 54% complete
  54. Creating Pluggable Databases
  55. 58% complete
  56. 77% complete
  57. Executing Post Configuration Actions
  58. 100% complete
  59. Database creation complete. For details check the logfiles at:
  60. /u01/app/oracle/cfgtoollogs/dbca/cdb1.
  61. Database Information:
  62. Global Database Name:cdb1
  63. System Identifier(SID):cdb1
  64. Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/cdb1/cdb1.log" for further details.
  65. [oracle@localhost ~]$

代码是

  1. /u01/app/oracle/product/19.3.0/dbhome_1/bin/dbca -silent -createDatabase \
  2. -templateName General_Purpose.dbc \
  3. -gdbname cdb1 -sid cdb1 -responseFile NO_VALUE \
  4. -characterSet AL32UTF8 \
  5. -sysPassword oracle \
  6. -systemPassword oracle \
  7. -createAsContainerDatabase true \
  8. -numberOfPDBs 1 \
  9. -pdbName pdb1 \
  10. -pdbAdminPassword oracle \
  11. -databaseType MULTIPURPOSE \
  12. -automaticMemoryManagement false \
  13. -totalMemory 2000 \
  14. -storageType FS \
  15. -datafileDestination "/u01/app/oracle/oradata" \
  16. -redoLogFileSize 50 \
  17. -emConfiguration NONE \
  18. -ignorePreReqs

修改/etc/oratab中默认的N为Y,以便让数据库随系统的启动一起启动

  1. [oracle@localhost ~]$ cat /etc/oratab |grep -v ^#|grep -v ^$
  2. cdb1:/u01/app/oracle/product/19.3.0/dbhome_1:Y
  3. [oracle@localhost ~]$

查看一下

  1. [oracle@localhost ~]$ export ORACLE_SID=cdb1
  2. [oracle@localhost ~]$ export ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1
  3. [oracle@localhost ~]$ export ORACLE_BASE=/u01/app/oracle/
  4. [oracle@localhost ~]$ export PATH=$PATH:$ORACLE_HOME/bin
  5. [oracle@localhost ~]$
  6. [oracle@localhost ~]$ sqlplus / as sysdba
  7.  
  8. SQL*Plus: Release 19.0.0.0.0 - Production on Sat Aug 17 14:20:38 2019
  9. Version 19.3.0.0.0
  10.  
  11. Copyright (c) 1982, 2019, Oracle. All rights reserved.
  12.  
  13. Connected to:
  14. Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
  15. Version 19.3.0.0.0
  16.  
  17. SQL> show pdbs;
  18.  
  19. CON_ID CON_NAME OPEN MODE RESTRICTED
  20. ---------- ------------------------------ ---------- ----------
  21. 2 PDB$SEED READ ONLY NO
  22. 3 PDB1 READ WRITE NO
  23. SQL> alter system set db_create_file_dest='/u01/app/oracle/oradata';
  24.  
  25. System altered.
  26.  
  27. SQL> alter pluggable database pdb1 save state;
  28.  
  29. Pluggable database altered.
  30.  
  31. SQL> exit;
  32. Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
  33. Version 19.3.0.0.0
  34. [oracle@localhost ~]$

ojbk,have fun!

OL8.0静默安装Oracle 19C的更多相关文章

  1. 【静默】在RHEL 6.5上静默安装Oracle 18c

    [静默]在RHEL 6.5上静默安装Oracle 18c Oracle 18c.18c其实就是12.2.0.2,19c就是12.2.0.3.db_home.zip 安装包大概4.25G,解压后有8.9 ...

  2. linux 之静默安装oracle

    Web服务器上面的Linux一般是不会有图形界面的,所有通过图形界面来安装Linux的方式在没有图形界面的Linux上面是行不通的,我们要使用的安装方式叫做Linux的静默安装.即在没有图形界面的Li ...

  3. CentOS 6.5下静默安装oracle

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

  4. CentOS 7静默安装Oracle 11g R2数据库软件

    之前安装Oracle 11g R2数据库软件都是建立在图形界面上的,不过现在大部分服务器上都没有安装图形界面.图形界面安装较为方便,安装选项清晰,步骤明确,但Oracle还支持另一种安装方式,就是通过 ...

  5. CentOS静默安装Oracle 11gR2(x64)

    环境 OS: CentOS 7.4; hosts: L134; IP: 192.168.1.134 DB: linux.x64_11gR2_database 安装依赖包 yum install -y ...

  6. Linux - 静默安装oracle数据库总结

    Web服务器上面的Linux一般是不会有图形界面的,所有通过图形界面来安装Linux的方式在没有图形界面的Linux上面是行不通的,我们要使用的安装方式叫做Linux的静默安装.即在没有图形界面的Li ...

  7. Linux静默安装Oracle

    打算在云服务器上装oracle服务,以前DBA美眉都是在图形化界面下安装,这次抓瞎了.赶紧上网查查,静默安装可以解决问题.于是乎赶紧开始部署,过程如下.安装环境:操作系统:CentOS 7内存:11G ...

  8. Oracle 静默安装oracle client

    静默安装oracle clint比较简单,修改instantclient.crsp文件的几个位置即可 [root@localhost ~]# vi /etc/oralnstloc inventory_ ...

  9. RHEL 8 安装 Oracle 19c 注意问题

    RedHat Enterprise Linux 8 版本静默安装 Oracle 数据库软件时,需注意的问题 来自博客园AskScuti 1. 提示缺少库文件 libnsl.so.1 2. 因着OS版本 ...

随机推荐

  1. Vue小练习(for循环,push方法,冒泡,if判断(以及与for循环的连用),按钮高亮,根据input框筛选数据)

    vue练习 ''' 1. 先有一下成绩单数据 scores = [ { name: 'Bob', math: 97, chinese: 89, english: 67 }, { name: 'Tom' ...

  2. Springboot 项目中 xml文件读取yml 配置文件

    <bean id="yamlProperties" class="org.springframework.beans.factory.config.YamlProp ...

  3. web框架--tornado框架之模板引擎

    使用Tornado实现一个简陋的任务表功能demo来讲解tornado框架模板引擎 一.demo目录结构 二.具体文件内容 2.1.commons.css .body{ margin: 0; back ...

  4. Codeforces Round #609 (Div. 2) 题解

    Equation Modulo Equality Long Beautiful Integer Domino for Young K Integers Equation \[ Time Limit: ...

  5. [LeetCode] 252. Meeting Rooms 会议室

    Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si ...

  6. Windows开机自动登陆 开/关:登录需按Ctrl+Alt+del的功能

    Win10.Win7.WinXP开机自动登录: Win+R组合键打开“运行”,输入“netplwiz” 在弹出的“用户帐户”窗口中,把取消勾选“要使用本机,用户必须输入用户名和密码”,然后“应用”. ...

  7. Data Science: An overview

    Week 1 Data Science: An overview Objective: 1.Is data science the same as statistics or analysis? st ...

  8. Python OpenCV 显示图片,图片分类

    def divide_image(path,g_path1,g_path0): img_lst = os.listdir(path) for i in img_lst: print('类别1,类别0' ...

  9. 【idea】【mysql】idea连接mysql

  10. IScroll在某些win10版本下的奇怪问题

    客户的电脑环境: win10版本 企业微信: useragent mozilla/5.0 (windows nt 6.2; wow64) applewebkit/537.36 (khtml, like ...