CentOS75 安装Oracle18c
2024-08-24 06:15:29
1. 参考地址
https://blog.csdn.net/u010257584/article/details/50902472
https://www.cnblogs.com/kerrycode/archive/2013/09/13/3319958.html
2. 验证需要的rpm包
rpm -q binutils compat-libcap1 compat-libstdc++- gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXext libXtst libX11 libXau libxcb libXi make sysstat
查询结果
binutils-2.27-.base.el7.x86_64
compat-libcap1-1.10-.el7.x86_64
package compat-libstdc++- is not installed
gcc-4.8.-.el7.x86_64
gcc-c++-4.8.-.el7.x86_64
glibc-2.17-.el7.x86_64
glibc-devel-2.17-.el7.x86_64
package ksh is not installed
libaio-0.3.-.el7.x86_64
package libaio-devel is not installed
libgcc-4.8.-.el7.x86_64
libstdc++-4.8.-.el7.x86_64
libstdc++-devel-4.8.-.el7.x86_64
libXext-1.3.-.el7.x86_64
libXtst-1.2.-.el7.x86_64
libX11-1.6.-.el7.x86_64
libXau-1.0.-2.1.el7.x86_64
libxcb-1.12-.el7.x86_64
libXi-1.7.-.el7.x86_64
make-3.82-.el7.x86_64
sysstat-10.1.-.el7.x86_64
安装没有安装的仨个包
yum install -y compat-libstdc++-
yum install -y libaio-devel
yum install -y ksh
3. 修改 系统配置
vi /etc/sysctl.conf
添加或修改下面参数 kernel.shmmax =
kernel.shmall = 10
kernel.shmmni =
kernel.sem =
net.core.rmem_default =
net.core.rmem_max =
net.core.wmem_default =
net.core.wmem_max = 1
net.ipv4.ip_local_port_range =
fs.file-max=70
fs.aio-max-nr=
修改
/etc/security/limits.conf
内容中添加如下配置。
oracle soft nproc
oracle hard nproc
oracle soft nofile
oracle hard nofile
oracle soft stack
oracle hard stack
关闭防火墙 关闭selinux
添加用户
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
修改密码
passwd oracle
创建oracle主目录
mkdir -p /u01/oracle
修改目录权限
chown -R oracle:oinstall /u01/oracle
chmod -R /u01/oracle
修改环境变量. 在/etc/profile.d目录下新增一个oracle.sh 增加内容为
ORACLE_BASE=/u01/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/18.3./db_1; export ORACLE_HOME ORACLE_SID=ora18c; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p ulimit -n else ulimit -u -n fi fi
重新登录 验证 环境变量正常
echo $ORACLE_HOME
echo $ORACLE_SID
4. 上传linux 的安装包文件
xftp或者其他方式
解压缩 修改 安装权限
修改host 关闭防火墙 关闭 selinux 等步骤不在复述
5. 进入 GUI 图形化安装
注意 18c 与之前的不一样 需要将 安装文件放到 oracle_home 路径下来执行安装 没有再选择 oracle_home的选项了
mkdir -p $ORACLE_HOME
mv -R * $ORACLE_HOME
6. dbca 建库
tips 本次安装与其他的区别
注意加黑与红色字体部分
这次安装失败了三次 才想到官网找解决方案.
. 下载地址
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
. 本次安装应用端的速度很快好像更改了部分地方
官网地址:
https://docs.oracle.com/en/database/oracle/oracle-database/18/ladbi/running-oracle-universal-installer-to-install-oracle-database.html#GUID-DD4800E9-C651-4B08-A6AC-E5ECCC6512B9 . Log in as the Oracle installation owner user account (oracle) that you want to own the software binaries.
Download the Oracle Database installation image files (db_home.zip) to a directory of your choice. For example, you can download the image files to the /tmp directory.
Create the Oracle home directory and extract the image files that you have downloaded in to this Oracle home directory. For example: $ mkdir -p /u01/app/oracle/product/18.0./dbhome_1
$ chgrp oinstall /u01/app/oracle/product/18.0./dbhome_1
$ cd /u01/app/oracle/product/18.0./dbhome_1
$ unzip -q /tmp/db_home.zip Note: . Oracle recommends that the Oracle home directory path you create is in compliance with the Oracle Optimal Flexible Architecture recommendations. Also, unzip the installation image files only in this Oracle home directory that you created.
From the Oracle home directory, run the runInstaller command to start the Oracle Database Setup Wizard. $ cd /u01/app/oracle/product/18.0.0/dbhome_1
$ ./runInstaller
Note: Run the runInstaller command from the Oracle home directory only. Do not run runInstaller from any other location. . In the Select Configuration Option screen, select Create and configure a single instance database. .Select your installation type.
Installation screens vary depending on the installation option you select. Respond to the configuration prompts as needed. Note: Click Help if you have any questions about the information you are asked to submit during installation.
最新文章
- python画柱状图
- iOS中的通知
- 解决thinkPHP构造函数__construct导致tp方法冲突问题
- 刷了OpenWrt Attitude Adjustment 12.09,很满意
- MySql执行多条语句
- knockout.js的简介和简单使用
- 前端开发之Chrome插件
- 个人常用iOS第三方库以及XCode插件介绍
- python数据类型之int用法
- springmvc使用pojo和servlet原生api作为参数
- 英文版Ubuntu 安装中文输入法
- Dynamics CRM The difference between UserId and InitiatingUserId in Plugin
- 中文代码示例之5分钟入门TypeScript
- adt安装----只为测试使用adb命令,故无需安装过于复杂
- python--BUG--python socket.error: [Errno 9] Bad file descriptor的解决办法
- android 解决小米手机上选择照片路径为null情况
- (GoRails) 用app/decorators来取代app/helpers; delegate()方法
- pandas空值处理与插值
- 【QRcode二维码】:使用JS前端插件QRcode.js生成二维码
- python网络编程--操作系统介绍
热门文章
- ipv6导致的域名解析慢,nslookup,lvs,hosts.conf
- 在openresty或nginx编译nginx-upsync-module&;nginx_upstream_check_module
- (二)基于阿里云的MQTT远程控制(购买阿里云,在云端安装MQTT,测试MQTT远程通信)
- drupal 7 连接多个数据库
- CentOS虚拟机如何设置共享文件夹,并在Windows下映射网络驱动器?
- SS、SP、BP寄存器
- 关于C#中async/await中的异常处理(下)-(转载)
- 2017-2018-2 20155231《网络对抗技术》实验五: MSF基础应用
- 20155333 《网络对抗》Exp3 免杀原理与实践
- Class does not Implement Equals——Code Correctness(代码正确性)