1、oracle下载地址
自行官网找吧!
若使用Oracle11g推荐安装11.2.0.4版本;
若使用Oracle12c推荐安装12.2.0.1版本或12.2.0.3;
若使用Oracle19c自行去研究吧;
Oracle 12.1.0.2数据库版本在进行流式批量更新操作LOB数据存在BUG,已收录于Oracle Bug 19703301
ORA-22275 “invalid lob locator specified” if fix for bug 14044260 present
https://support.oracle.com/knowledge/Oracle%20Database%20Products/2015052_1.html
本文的版本是12.2.0.1的版本,此版本没有上述版本bug问题。
2、解压缩

[root@shigj oracle12c]# unzip linuxx64_12201_database.zip

3、创建安装需要的组和用户

[root@shigj oracle12c]# groupadd oinstall
[root@shigj oracle12c]# groupadd dba
[root@shigj oracle12c]# groupadd oper
[root@shigj oracle12c]# useradd -g oinstall -G dba -s /bin/bash oracle
[root@shigj oracle12c]# gpasswd -a oracle dba
Adding user oracle to group dba
[root@shigj oracle12c]# gpasswd -a oracle oper
Adding user oracle to group oper
[root@shigj oracle12c]# gpasswd -a oracle oinstall
Adding user oracle to group oinstall

4、创建数据库安装目录

[root@shigj oracle12c]# mkdir -p /app/oracle/product/12c/dbhome_1
[root@shigj oracle12c]# mkdir -p /app/oraInventory

5、修改安装目录属主、初始化oracle用户密码

[root@shigj oracle12c]# chown -R oracle:oinstall /app
[root@shigj oracle12c]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.

6、修改Oracle用户环境变量

[oracle@shigj ~]$ vim .bash_profile
export ORACLE_BASE=/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12c/dbhome_1
export ORACLE_SID=oadb
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
[oracle@shigj ~]$ source .bash_profile

7、修改主机文件

[root@shigj ~]# echo '127.0.0.1  oadb' >> /etc/hosts
[root@oadb ~]# hostnamectl set-hostname oadb
[root@oadb ~]# hostnamectl
Static hostname: oadbIcon name: computer-vmChassis: vmMachine ID: 20220322150908035081894917625632Boot ID: a11c286fa7b4417ebbeea3d0c5418794Virtualization: kvmOperating System: CentOS Linux 7 (Core)CPE OS Name: cpe:/o:centos:centos:7Kernel: Linux 3.10.0-1160.59.1.el7.x86_64Architecture: x86-64[root@shigj ~]# chown -R oracle:oinstall /oracle19c/

8、开始安装

报错
[oracle@oadb oracle12c]$ ./runInstaller
ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.
/oracle19c/perl/bin/perl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
[oracle@oadb oracle19c]$ startx
xauth:  file /home/oracle/.serverauth.42206 does not exist
xauth:  file /home/oracle/.Xauthority does not exist
xauth:  file /home/oracle/.Xauthority does not exist
/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console
在root用户下执行xorg*的安装
[root@oadb ~]# yum -y install xorg*
其他另类报错
[oracle@oadb oracle12c]$ cd /tmp/OraInstall2022-04-16_01-53-48PM
- An internal error occurred within cluster verification framework The command executed was "/tmp/CVU_12.2.0.1.0_oracle//exectask.sh -getver". The output from the command was "/tmp/CVU_12.2.0.1.0_oracle/exectask: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory"
解决办法
Redhat/Fedora/CentOS下执行即可:
[root@oadb /]# yum -y install libaio






安装所需的包,CentOS7通过yum源都能直接安装
Package: compat-libcap1-1.10
Package: compat-libstdc+±33-3.2.3 (x86_64)
Package: libstdc+±devel-4.8.2 (x86_64)
Package: gcc-c+±4.8.2
Package: ksh
Package: libaio-0.3.109 (x86_64)
Package: libaio-devel-0.3.109 (x86_64)



通过root执行以下提示的脚本

[root@oadb oraInventory]# ls
ContentsXML  logs  oraInst.loc  orainstRoot.sh  oui
[root@oadb oraInventory]# ./orainstRoot.sh
Changing permissions of /app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.Changing groupname of /app/oraInventory to oinstall.
The execution of the script is complete.
[root@oadb oraInventory]# cd /app/oracle/product/19c/dbhome_1/
出现路径选择时,按回车键选择默认路径
[root@oadb dbhome_1]# ./root.sh
Performing root user operation.
The following environment variables are set as:ORACLE_OWNER= oracleORACLE_HOME=  /app/oracle/product/19c/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ...Copying oraenv to /usr/local/bin ...Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.

脚本运行完毕后,返回弹窗处,点击“OK”,完成Oracle数据库软件安装
9、数据库监听配置
以oracle用户身份登录,执行命令“netca”






[oracle@oadb ~]$ dbca




此处重点选择:如果你对12c之后引入容器数据库了解的很多,此处正常勾选;如果对容器数据还不明白,建议不要勾选,以免给自己徒增烦恼。







Linux下oracle12c数据库的安装相关推荐

  1. linux 进入redis 数据库,Linux下Redis数据库的安装方法与自动启动脚本分享

    安装Redis (1) 下载Redis wget http://redis.googlecode.com/files/redis-2.2.11.tar.gz tar xzvf redis-2.2.11 ...

  2. 在linux操作系统中启动oracle数据库程序,Linux系统下Oracle数据库的安装和启动关闭操作教程...

    这篇文章主要介绍了Linux系统下Oracle数据库的安装和启动关闭操作教程,并针对在sqlplus下所需执行的命令进行讲解,需要的朋友可以参考下 1.准备: df -H 查看空间剩余   一般准备最 ...

  3. linux下sybase配置文件,linux下SYBASE数据库安装后的配置

    如有你有帮助,请购买下载,谢谢! linux下SYBASE数据库安装后的配置 sybase的安装很简单,是rpm格式的,运行rpm -ivh **.rpm .bin的,直接执行./***.bin就安装 ...

  4. Linux下MySQL数据库主从同步配置

    操作系统:CentOS 6.x 64位 MySQL数据库版本:mysql-5.5.35 MySQL主服务器:192.168.21.128 MySQL从服务器:192.168.21.129 准备篇: 说 ...

  5. Linux 下 微擎 的安装使用

    Linux 下 微擎 的安装使用 我的小站.Github 微擎 是一款基于WEB2.0(PHP+Mysql)技术架构,免费开源的公众平台管理系统,提供公众号.微信小程序.支付宝小程序.百度熊掌号.移动 ...

  6. mysql5.7.20linux安装,linux下 mysql5.7.20安装(精华)

    在linux 系统中mysql配置文件的读取顺序为: /etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf 第一步 创 ...

  7. Linux下查看MySQL的安装路径

    Linux下查看mysql.apache是否安装,并卸载. 指令 ps -ef|grep mysql 得出结果 root     17659     1  0  2011 ?        00:00 ...

  8. mysql教程qt linux_一步步学Qt,第四天-Linux 下mysql数据库链接

    一步步学Qt,第四天-Linux 下mysql数据库链接 现在在linux系统下面,完成之前的qt-mysql连接工作,此次我新安装了新版的qt,也按照qtassistant对mysqldriver进 ...

  9. linux mysql常用基本操作,Linux下MySQL数据库常用基本操作 一

    Linux下MySQL数据库常用基本操作 一 0.登录数据库 mysql -u root -p 1.显示数据库 show databases; 2.选择数据库 use 数据库名; 3.显示数据库中的表 ...

最新文章

  1. [20170622]传输表空间与dblink.txt
  2. python2.7安装matplotlib_Python安装Numpy和matplotlib
  3. 东北农业大学网络教育计算机考试,THEOL网络教学综合平台-东北农业大学继续教育学院...
  4. matlab调用cst计算扫频,CST MWS I算法求解单站RCS是否可以进行扫频设置
  5. iView 一周年了,同时发布了 2.0 正式版,但这只是开始...
  6. SecureCRT连接linux时主机名,secureCRT连接linux方法
  7. 用python快速开发一个实用的socket服务器
  8. 自己对Java的一些认识
  9. js 正则匹配邮箱_比较正宗的验证邮箱的正则表达式js代码详解
  10. GIMP教程 1 图片剪裁
  11. android购物车计数器,Axure教程:计数器的实战应用场景 —— 商品购件数
  12. app的性能测试小工具Emmagee使用教程
  13. 基于stm32的无线多点温度采集系统设计
  14. 记一次Comparator.comparing(XXX::getStartTime).reversed()失效
  15. ARVR游戏开发中常用到的人物模型合集
  16. omi html转义,特殊字符读法
  17. 优恩-关于ESD管(ESD静电二极管)的产品特性
  18. 一起智慧课堂_聚焦课堂,提升质量——六盘水市钟山区第一小学“智慧”课堂校际交流活动...
  19. IDS--入侵检测系统的学习
  20. PyQt 记住上次打开路径

热门文章

  1. js学习与总结(包含了js中小型项目的截图和代码)(包含了Json、Ajax、Jquery等知识)
  2. 昆明理工大学计算机组成原理考试,昆工计科组成原理实验の计算机组成原理各部件实验.doc...
  3. 一文告诉你,“沉浸式夜游”为何不得不做?沉浸式夜游该如何做?
  4. 建立工资计算系统(2)
  5. 一次线上紧急事故的处理复盘
  6. 【2023校招刷题】第二期:数字IC笔试模拟题(3)详细解析版
  7. MediaPlayer播放歌曲
  8. js符号输入不可用_js控制文本框禁止输入特殊字符详解
  9. CSS参考手册_web前端开发参考手册系列
  10. R语言进阶之3:数据汇总/透视/提炼