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快捷版(一)的更多相关文章

  1. 安装oracleXE快捷版(二)

    -bash-3.2$ 是oracle用户下的提示符 [root@localhost ~]# 是root用户下的提示符 #用root去修改oracle用户的密码123456[root@localhost ...

  2. Oracle 免费的数据库--Database 快捷版 11g 安装使用与"SOD框架"对Oracle的CodeFirst支持

    一.Oracle XE 数据库与连接工具安装使用 Oracle数据库历来以价格昂贵出名,当然贵有贵的道理,成为一个Oracle DBA也是令人羡慕的事情,如果程序员熟悉Oracle使用也有机会接触到大 ...

  3. Oracle Database 快捷版 安装 连接

    Oracle Database 快捷版 11g 第 2 版 下载地址:http://www.oracle.com/technetwork/cn/database/database-technologi ...

  4. oracle 11g快捷版的安装与使用

    oracle 11g快捷版的安装与使用 [oracle 11g 下载地址(]https://www.oracle.com/technetwork/cn/database/enterprise-edit ...

  5. Oracle XE快捷版(速成版)的限制

    1.CPU上限:无论把数据库安装在多少核的服务器上,都只会提供一个CPU核心的运算能力 2.安装和执行限制:只能安装一个实例且只能运行一个实例 3.用户数据上限:最大11G的用户数据 4.内存使用上限 ...

  6. Ubuntu 16.04安装QQ国际版图文详细教程

            因工作需要,我安装了Ubuntu 16.04,但是工作上的很多事情需要QQ联系,然而在Ubuntu上的WebQQ很是不好用,于是在网上搜索了好多个Linux版本的QQ,然而不是功能不全 ...

  7. Windows 7安装解压版MySQL 5.6(不包含配置文件优化)

    到官网下载MySQL5.6 下载地址:http://dev.mysql.com/downloads/mysql/5.6.html, 提供了 .exe版本 和 .zip解压版,因为我的操作系统是64位的 ...

  8. Sass安装(windows版)

    Sass安装(windows版) 在 Windows 平台下安装 Ruby 需要先有 Ruby 安装包,大家可以到 Ruby 的官网(http://rubyinstaller.org/download ...

  9. XAMPP 的安装配置(Linux 版)

    --姜庭华  msn: jaimejth@live.cn --博客:http://blog.csdn.net/jaimejth 软件下载在以下网站 http://www.apachefriends.o ...

随机推荐

  1. Selenium多窗口切换代码

    # #!/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2020/7/31 16:05 # @Author : Gengwu # @FileNam ...

  2. linux之shell基本认知操作和简单shell练习

    shell编程: 1.Shell的作用 命令解释器,“翻译官”.介于操作系统内核与用户之间,负责解释命令行. shell功能非常强大,除负责解释名另外,还可以将多个命令组合起来,完成复杂的任务,这就是 ...

  3. CF1349F 【Slime and Sequences】part1

    由于本文过长,\(\LaTeX\) 炸了,分两篇,part2 题目描述 定义一个正整数序列为好序列,当且仅当如果某个数 \(k\) 出现过,那么一定有 \(k-1\) 在最后一个 \(k\) 的前面出 ...

  4. Python爬虫开发:反爬虫措施以及爬虫编写注意事项

  5. JavaScript package.json里添加git-cz

    git-cz官网 0.目的 => 替代git commit, 丰富提交的内容 1.安装包 npm install commitizen cz-conventional-changelog --s ...

  6. 在.NET Core中使用MongoDB明细教程(1):驱动基础及文档插入

    MongoDB,被归类为NoSQL数据库,是一个以类JSON格式存储数据的面向文档的数据库系统.MongoDB在底层以名为bson的二进制编码格式表示JSON文档,MongoDB bson实现是轻量级 ...

  7. docker基础入门理解

    本文简单的介绍了一下docker的一些优点,以及使用方法 1. 理解docker 1.1 docker是什么? 1.2 为什么要使用Docker? 2. docker安装 3. docker-容器,镜 ...

  8. 第四周:卷积神经网络 part 3

    第四周:卷积神经网络 part 3 视频学习 语义分割中的自注意力机制和低秩重建 语义分割(Semantic Segmentation) 概念:语义分割是在像素级别上的分类,属于同一类的像素都要被归为 ...

  9. es数据库基本操作

    1.es建立索引: curl -XPUT 'http://10.xx.xx.xx:9200/索引名称' 2.es查询所有索引: curl -XGET 'http://10.xx.xx.xx:9200/ ...

  10. CSAPP =1= 计算机系统漫游

    思维导图 预计阅读时间:15min 阅读书籍 <深入理解计算机系统> 参考视频 [精校中英字幕]2015 CMU 15-213 CSAPP 深入理解计算机系统 课程视频 参考文章 < ...