Durante a instalação do pacote oracle-rdbms-server-12cR1-preinstall em um ambiente Red Hat Enterprise Linux 7, poderá ocorrer o erro
GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle"
[root@srvlamim01 yum.repos.d]# cd /etc/yum.repos.d
[root@srvlamim01 yum.repos.d]# wget http://public-yum.oracle.com/public-yum-ol7.repo
--2019-06-26 20:32:28-- http://public-yum.oracle.com/public-yum-ol7.repo
Resolving public-yum.oracle.com (public-yum.oracle.com)... 2.22.80.150
Connecting to public-yum.oracle.com (public-yum.oracle.com)|2.22.80.150|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16171 (16K) [text/plain]
Saving to: ‘public-yum-ol7.repo.1’
100%[====================================================================================>] 16,171 --.-K/s in 0.01s
2019-06-26 20:32:28 (1.13 MB/s) - ‘public-yum-ol7.repo.1’ saved [16171/16171]
[root@srvlamim01 yum.repos.d]# yum install oracle-rdbms-server-12cR1-preinstall
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-7.el7 will be installed
--> Processing Dependency: kernel-uek for package: oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64
--> Processing Dependency: ksh for package: oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64
--> Processing Dependency: libaio-devel for package: oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64
--> Processing Dependency: compat-libstdc++-33 for package: oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64
--> Running transaction check
---> Package compat-libstdc++-33.x86_64 0:3.2.3-72.el7 will be installed
---> Package kernel-uek.x86_64 0:4.14.35-1902.2.0.el7uek will be installed
---> Package ksh.x86_64 0:20120801-139.0.1.el7 will be installed
---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================
Installing:
oracle-rdbms-server-12cR1-preinstall x86_64 1.0-7.el7 ol7_latest 21 k
Installing for dependencies:
compat-libstdc++-33 x86_64 3.2.3-72.el7 ol7_latest 190 k
kernel-uek x86_64 4.14.35-1902.2.0.el7uek ol7_UEKR5 52 M
ksh x86_64 20120801-139.0.1.el7 ol7_latest 883 k
libaio-devel x86_64 0.3.109-13.el7 ol7_latest 12 k
Transaction Summary
==============================================================================================================================
Install 1 Package (+4 Dependent packages)
Total size: 53 M
Installed size: 61 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/ol7_UEKR5/packages/kernel-uek-4.14.35-1902.2.0.el7uek.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle"
[root@srvlamim01 yum.repos.d]#
Para contornar este problema, basta baixar o arquivo /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle através do comando:wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
E depois reexecutar o yum install oracle-rdbms-server-12cR1-preinstall, que será executado com sucesso.
[root@srvlamim01 yum.repos.d]# yum install oracle-rdbms-server-12cR1-preinstall
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-7.el7 will be installed
--> Processing Dependency: kernel-uek for package: oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64
--> Processing Dependency: ksh for package: oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64
--> Processing Dependency: libaio-devel for package: oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64
--> Processing Dependency: compat-libstdc++-33 for package: oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64
--> Running transaction check
---> Package compat-libstdc++-33.x86_64 0:3.2.3-72.el7 will be installed
---> Package kernel-uek.x86_64 0:4.14.35-1902.2.0.el7uek will be installed
---> Package ksh.x86_64 0:20120801-139.0.1.el7 will be installed
---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================
Installing:
oracle-rdbms-server-12cR1-preinstall x86_64 1.0-7.el7 ol7_latest 21 k
Installing for dependencies:
compat-libstdc++-33 x86_64 3.2.3-72.el7 ol7_latest 190 k
kernel-uek x86_64 4.14.35-1902.2.0.el7uek ol7_UEKR5 52 M
ksh x86_64 20120801-139.0.1.el7 ol7_latest 883 k
libaio-devel x86_64 0.3.109-13.el7 ol7_latest 12 k
Transaction Summary
==============================================================================================================================
Install 1 Package (+4 Dependent packages)
Total size: 53 M
Installed size: 61 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/ol7_UEKR5/packages/kernel-uek-4.14.35-1902.2.0.el7uek.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Importing GPG key 0xEC551F03:
Userid : "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>"
Fingerprint: 4214 4123 fecf c55b 9086 313d 72f9 7b74 ec55 1f03
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libaio-devel-0.3.109-13.el7.x86_64 1/5
Installing : compat-libstdc++-33-3.2.3-72.el7.x86_64 2/5
Installing : ksh-20120801-139.0.1.el7.x86_64 3/5
Installing : kernel-uek-4.14.35-1902.2.0.el7uek.x86_64 4/5
Installing : oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64 5/5
Verifying : kernel-uek-4.14.35-1902.2.0.el7uek.x86_64 1/5
Verifying : ksh-20120801-139.0.1.el7.x86_64 2/5
Verifying : compat-libstdc++-33-3.2.3-72.el7.x86_64 3/5
Verifying : libaio-devel-0.3.109-13.el7.x86_64 4/5
Verifying : oracle-rdbms-server-12cR1-preinstall-1.0-7.el7.x86_64 5/5
Installed:
oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-7.el7
Dependency Installed:
compat-libstdc++-33.x86_64 0:3.2.3-72.el7 kernel-uek.x86_64 0:4.14.35-1902.2.0.el7uek ksh.x86_64 0:20120801-139.0.1.el7
libaio-devel.x86_64 0:0.3.109-13.el7
Complete!
[root@srvlamim01 yum.repos.d]#
thanks ! saved my work !!!
ResponderExcluir:)
ExcluirComo eu consigo usar o pacote pre install do 12c em um Red Hat 8.4?
ResponderExcluirBoa Noite,
ExcluirVoce pode usar os rpms do Oracle Linux para instalar. Porém vale destacar que o 12c não é homologado para o Red Hat 8.