Linux 如何安装 oracle-rdbms-server-11gR2-preinstall

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14692028/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 18:55:41  来源:igfitidea点击:

how to install oracle-rdbms-server-11gR2-preinstall

linuxoracle11g

提问by theuserkaps

just completed installing oracle linux 6 update 2on my virtual box and i have been trying to install oracle 11gr2on the same operating system i am following the installation guide but i have encountered some problems when i run this command on my terminal

刚刚oracle linux 6 update 2在我的虚拟机上完成安装,我一直在尝试oracle 11gr2在同一操作系统上安装我正在遵循安装指南但是当我在终端上运行此命令时遇到了一些问题

yum install oracle-rdbms-server-11gR2-preinstall

i am getting an error

我收到一个错误

no package oracle-rdbms-server-11gr2-preinstall available
error nothing to do

is there any way i am doing this wrongly??how can i install the oracle-rdbms-server-11gR2-preinstall

有什么办法我做错了吗??我怎样才能安装 oracle-rdbms-server-11gR2-preinstall

采纳答案by Satish

It seem you don't have oracle repository configured, do following:

您似乎没有配置 oracle 存储库,请执行以下操作:

As an authorized user (for example, root), retrieve the file that configures repository locations:

作为授权用户(例如,root),检索配置存储库位置的文件:

$sudo cd /etc/yum.repos.d

$sudo wget http://public-yum.oracle.com/public-yum-ol6.repo

Using a text editor, modify the file, changing the field enabled=0to enabled=1to reflect repositories that correspond to the machine's operating system release.

使用文本编辑器修改文件,将字段enabled=0更改enabled=1为反映与机器操作系统版本对应的存储库。

Next, install the oracle-rdbms-server-11gR2-preinstallRPM using the yum install command.

接下来,oracle-rdbms-server-11gR2-preinstall使用 yum install 命令安装RPM。

The output in Listing 1 shows how the installation checks dependencies and then downloads and installs the required packages.

清单 1 中的输出显示了安装如何检查依赖关系,然后下载并安装所需的包。

$sudo yum install oracle-rdbms-server-11gR2-preinstall

回答by user2764102

mv /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle-ol6.repo /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle.repo

回答by kkkk089

I've given :

我给了:

yum install oracle-rdbms-server-11gR2-preinstall.x86_64

and works perfectly

并且完美运行