oracle linux 4.8搭建本地源

简介:

  使用oracle linux 4.8安装oracle 10g rac时需要安装许多依赖包,一个一个比较麻烦.搭建个本地源比较简单,比以往的的oracle linux 5和6都要复杂一些.


1.下载安装createrepo软件

下载地址:http://rpm.pbone.net/index.php3/stat/4/idpl/3259698/dir/redhat_el_4/com/createrepo-0.4.6-1.el4.rf.noarch.rpm.html

[root@rac10g01 ~]# rpm -ivh createrepo-0.4.6-1.el4.rf.noarch.rpm

[root@rac10g01 ~]# mkdir /mnt/cdrom/

[root@rac10g01 ~]# mount /dev/hdc  /mnt/cdrom/

mount: block device /dev/hdc is write-protected, mounting read-only

[root@rac10g01 ~]# cd /mnt/

[root@rac10g01 mnt]# createrepo ./

[root@rac10g01 mnt]# ll 

total 12

dr-xr-xr-x  6 root root 4096 May 21  2009 cdrom

drwxr-xr-x  2 root root 4096 Nov 12 18:32 hgfs

drwxr-xr-x  2 root root 4096 Nov 12 18:18 repodata

[root@rac10g01 mnt]#


2.配置yum源文件

[root@rac10g01 ~]# vim /etc/yum.repos.d/tong.repo

[tong]

name=tong

baseurl=file:///mnt

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-oracle

gpgcheck=0

enabled=1

[root@rac10g01 ~]#


3.检查和安装软件

[root@rac10g01 ~]# yum list

[root@rac10g01 ~]# yum install gcc -y











本文转自 z597011036 51CTO博客,原文链接:http://blog.51cto.com/tongcheng/1872117,如需转载请自行联系原作者
目录
相关文章
|
4月前
|
负载均衡 Oracle 关系型数据库
Linux启动多个Oracle实例
Linux启动多个Oracle实例
44 0
|
5月前
|
Oracle 关系型数据库 Linux
windows 11 hyper-v中oracle linux虚拟机中添加硬盘
在windows 11自带的hyper-v虚拟机中添加硬盘,并分区
71 6
|
3天前
|
Oracle Java 关系型数据库
【服务器】python通过JDBC连接到位于Linux远程服务器上的Oracle数据库
【服务器】python通过JDBC连接到位于Linux远程服务器上的Oracle数据库
14 6
|
3天前
|
Oracle 关系型数据库 Linux
SuSE linux server 11通过SAP来安装oracle11g
SuSE linux server 11通过SAP来安装oracle11g
|
4月前
|
SQL Oracle 关系型数据库
Linux环境下oracle切换用户并查询数据库命令
Linux环境下oracle切换用户并查询数据库命令
|
11月前
|
Oracle 关系型数据库 MySQL
|
11月前
|
Oracle 关系型数据库 Linux
5分钟学会在Linux上安装Oracle和一条命令创建数据库
在Linux上安装Oracle软件的过程相当复杂,让很多初学者望而却步。但在Oracle 18c以后Oracle推出了使用rpm包安装Oracle数据库软件的安装方式
255 0
|
11月前
|
Oracle 关系型数据库 Linux
使用rpm包在Linux上安装Oracle软件和创建数据库
在Linux上安装Oracle软件的过程相当复杂,让很多初学者望而却步。但在Oracle 18c以后Oracle推出了使用rpm包安装Oracle数据库软件的安装方式,安装两个(预安装包和数据库安装包)rpm包即可完成整个Oracle数据库软件的安装。
270 0
使用rpm包在Linux上安装Oracle软件和创建数据库
|
11月前
|
Oracle 关系型数据库 Linux
5分钟学会在Linux上安装Oracle和一条命令创建数据库
在Linux上安装Oracle软件的过程相当复杂,让很多初学者望而却步。但在Oracle 18c以后Oracle推出了使用rpm包安装Oracle数据库软件的安装方式
206 0
|
12月前
|
Oracle 安全 关系型数据库
Linux的daemon进程对Oracle数据库的SGA使用大页内存的处理
Oracle对运行在机器内存超过32G上的数据库推荐使用HugePages 来容纳Oracle数据库的SGA,参见。
167 0