安装oracleXE快捷版(一)
yum找不到包,参考了一些文章,用iso上的包安装了。在文章后面贴有我实际的操作(黑体)和日志。
更换yum源
https://www.cnblogs.com/zrxuexi/p/11587173.html
Red Hat Enteripse Linux5下配置yum源的方法
https://blog.csdn.net/liubo5005/article/details/3950556
RedHat5配置yum源 (把光驱挂载到/mnt下)
https://blog.csdn.net/qq_36784975/article/details/80923653
#把光驱挂载到/mnt下
[root@localhost yum.repos.d]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sr0 on /media/RHEL_5.7 x86_64 DVD type iso9660 (ro,nosuid,nodev,uid=0)
[root@localhost yum.repos.d]# mount /dev/sr0 /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@localhost yum.repos.d]#
#配置yum源为光驱
[root@localhost yebl]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
bak redhat.repo rhel-debuginfo.repo
[root@localhost yum.repos.d]# vim rhel-debuginfo.repo
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# cat rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
Cleaning up Everything
[root@localhost yum.repos.d]# yum makecache
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
rhel-debuginfo | 1.5 kB 00:00
rhel-debuginfo/filelists | 2.8 MB 00:00
rhel-debuginfo/other | 8.2 MB 00:00
rhel-debuginfo/group | 1.0 MB 00:00
rhel-debuginfo/primary | 913 kB 00:00
rhel-debuginfo 3261/3261
rhel-debuginfo 3261/3261
rhel-debuginfo 3261/3261
Metadata Cache Created
[root@localhost yum.repos.d]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
repo id repo name status
rhel-debuginfo Red Hat Enterprise Linux 5Server - x86_64 - Debug 3,261
repolist: 3,261
[root@localhost yum.repos.d]#
安装依赖
[root@localhost yum.repos.d]# yum install libaio libaio-devel bc -y
[root@localhost yum.repos.d]# rpm -qa|grep libaio
libaio-devel-0.3.106-5
libaio-0.3.106-5
libaio-devel-0.3.106-5
libaio-0.3.106-5
[root@localhost yum.repos.d]# rpm -qa|grep ^bc
bc-1.06-21
[root@localhost yum.repos.d]#
=============================================================
Oracle-1-安装
https://blog.csdn.net/aaronhadoop/article/details/45315287/
CentOS7 安装 oracleXE(快捷版)教程
https://blog.csdn.net/qq_26820293/article/details/78566063
[root@localhost yum.repos.d]# su - root
[root@localhost ~]# dd if=/dev/zero of=/swapfile bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB) copied, 4.49441 seconds, 239 MB/s
[root@localhost ~]# mkswap /swapfile
Setting up swapspace version 1, size = 1073737 kB
[root@localhost ~]# swapon /swapfile
[root@localhost ~]# date
Wed Jan 8 10:48:11 EST 2020
[root@localhost ~]# date -s "2020-01-08 21:39:35"
Wed Jan 8 21:39:35 EST 2020
[root@localhost ~]# cp /etc/fstab /etc/fstab.backup_$(date +%N)
[root@localhost ~]# echo '/swapfile swap swap defaults 0 0' /etc/fstab
/swapfile swap swap defaults 0 0 /etc/fstab
[root@localhost ~]# chown root:root /swapfile
[root@localhost ~]# chmod 0600 /swapfile
[root@localhost ~]# swapon -a
[root@localhost ~]# swapon -s
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 partition 2064376 124 -1
/swapfile file 1048568 0 -2
[root@localhost ~]#
安装包下载地址:http://www.oracle.com/technetwork/cn/database/database-technologies/express-edition/downloads/index.html
下载完之后上传到Linux系统
解压安装包
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
解压之后得到 Disk1 文件夹
[root@localhost Disk1]# rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
Preparing... ########################################### [100%]
1:oracle-xe ########################################### [100%]
Executing post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.
[root@localhost Disk1]# /etc/init.d/oracle-xe configure
Oracle Database 11g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 11g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]: 【回车】
Specify a port that will be used for the database listener [1521]:【回车】
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Password can't be null. Enter password:
Confirm the password:
Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y
Starting Oracle Net Listener...Done
Configuring database...Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
[root@localhost Disk1]#
我的Oracle密码123456
[root@localhost Disk1]# vi /etc/profile
环境profile文件末尾加入以下内容
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2./xe; export ORACLE_HOME
ORACLE_SID=XE; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
TNS_ADMIN=$ORACLE_HOME/network/admin
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$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
# oracle end
[root@localhost Disk1]# source /etc/profile
[root@localhost Disk1]# echo $ORACLE_BASE
/u01/app/oracle
[root@localhost Disk1]#
安装oracleXE快捷版(一)的更多相关文章
- 安装oracleXE快捷版(二)
-bash-3.2$ 是oracle用户下的提示符 [root@localhost ~]# 是root用户下的提示符 #用root去修改oracle用户的密码123456[root@localhost ...
- Oracle 免费的数据库--Database 快捷版 11g 安装使用与"SOD框架"对Oracle的CodeFirst支持
一.Oracle XE 数据库与连接工具安装使用 Oracle数据库历来以价格昂贵出名,当然贵有贵的道理,成为一个Oracle DBA也是令人羡慕的事情,如果程序员熟悉Oracle使用也有机会接触到大 ...
- Oracle Database 快捷版 安装 连接
Oracle Database 快捷版 11g 第 2 版 下载地址:http://www.oracle.com/technetwork/cn/database/database-technologi ...
- oracle 11g快捷版的安装与使用
oracle 11g快捷版的安装与使用 [oracle 11g 下载地址(]https://www.oracle.com/technetwork/cn/database/enterprise-edit ...
- Oracle XE快捷版(速成版)的限制
1.CPU上限:无论把数据库安装在多少核的服务器上,都只会提供一个CPU核心的运算能力 2.安装和执行限制:只能安装一个实例且只能运行一个实例 3.用户数据上限:最大11G的用户数据 4.内存使用上限 ...
- Ubuntu 16.04安装QQ国际版图文详细教程
因工作需要,我安装了Ubuntu 16.04,但是工作上的很多事情需要QQ联系,然而在Ubuntu上的WebQQ很是不好用,于是在网上搜索了好多个Linux版本的QQ,然而不是功能不全 ...
- Windows 7安装解压版MySQL 5.6(不包含配置文件优化)
到官网下载MySQL5.6 下载地址:http://dev.mysql.com/downloads/mysql/5.6.html, 提供了 .exe版本 和 .zip解压版,因为我的操作系统是64位的 ...
- Sass安装(windows版)
Sass安装(windows版) 在 Windows 平台下安装 Ruby 需要先有 Ruby 安装包,大家可以到 Ruby 的官网(http://rubyinstaller.org/download ...
- XAMPP 的安装配置(Linux 版)
--姜庭华 msn: jaimejth@live.cn --博客:http://blog.csdn.net/jaimejth 软件下载在以下网站 http://www.apachefriends.o ...
随机推荐
- K近邻算法(二)
def KNN_classify(k, X_train, y_train, x): assert 1 <= k <= X_train.shape[0], "k must be v ...
- springMVC 获取request参数
持续补充............ GET 常用的:@PathVariable @RequestParam request.getParameter POST 常用的:@ResponseBody ...
- 当Django模型迁移时,报No migrations to apply 问题时
前言:当更改model时在次迁移是不是经常报此类错误,解决以下两点便可以更新成功 1. 删除修改模型对应的app应用下的migrations中的生成文件 2. 进入数据库,找到django_migra ...
- C# Hello Word
不管学习什么语言,第一个例子绝对是一个经典的HelloWorld程序那么接下来我们使用 vs studio 2019 来创建一个 HelloWorld 程序 启动vs2019选择 文件-新建-项目-新 ...
- phpredis 扩展之操作 Redis,记下来记下来!
phpredis 是 redis 的 php 的一个扩展,效率是相当高有链表排序功能,对创建内存级的模块业务关系很有用 $redis = new Redis(); $redis->connect ...
- 获取异常具体信息 尤其是运行时异常例如NullPointerException 比e.getMessage()更详细
///打印异常信息 尤其是运行时异常 比getMessage()更详细public static String getMessageInfo(Exception e){ OutputStream op ...
- win10 安装msys2 和 ruby
1.选择自己的版本 https://rubyinstaller.org/downloads/ Ruby+Devkit 2.5.1-2 (x64) Ruby+Devkit 2.5.1-2 (x86) 2 ...
- TestLink使用指南
TestLink安装上之后,局域网内用户可以登陆使用,下面介绍本软件的使用方式. 1.TestLink简介 TestLink是基于Web的开源测试管理工具,用户可以使用这个工具创建测试项目和测试用例, ...
- 反制面试官 | 14张原理图 | 再也不怕被问 volatile!
反制面试官 | 14张原理图 | 再也不怕被问 volatile! 悟空 爱学习的程序猿,自主开发了Java学习平台.PMP刷题小程序.目前主修Java.多线程.SpringBoot.SpringCl ...
- 初入Shell
shell 第1章 Shell概述 大数据程序员为什么要学习Shell呢? 1)需要看懂运维人员编写的Shell程序. 2)偶尔会编写一些简单Shell程序来管理集群.提高开发效率. 第2章 Shel ...