• No results found

An Oracle Technical Article November Certification with Oracle Linux 6

N/A
N/A
Protected

Academic year: 2022

Share "An Oracle Technical Article November Certification with Oracle Linux 6"

Copied!
15
0
0

Loading.... (view fulltext now)

Full text

(1)

An Oracle Technical Article November 2015

Certification with Oracle Linux 6

(2)

Introduction ... 1

Comparing Oracle Linux 6 and Red Hat Enterprise Linux (RHEL) 6 ... 2

Checking the /etc/redhat-release File ... 2

Checking for the redhat-release Package ... 5

Checking the Version of the Distribution ... 8

Unbreakable Enterprise Kernel ... 9

Unbreakable Enterprise Kernel, Compatibility, and Third-Party Software .... 9

For ISVs That Also Check the Linux Kernel Version ... 10

Full, Verified kABI Compliance ... 12

Compatibility ... 12

Downloading Source Code and Binaries ... 12

Conclusion ... 12

For More Information ... 12

(3)

Oracle Technical Article—Certification with Oracle Linux 6

1

Introduction

This article describes the key points that ISVs should consider when installing and certifying their products on Oracle Linux 6.

Oracle Linux is fully compatible – both source and binary – with Red Hat Enterprise Linux (RHEL). Partners testing and certifying their applications on Oracle Linux will, at most, simply install their applications on Oracle Linux and verify the information described in this article.

Oracle Linux 6 ships with two sets of kernel packages:

Unbreakable Enterprise Kernel, which is installed and booted by default

Red Hat compatible kernel, which is installed by default

When using the Red Hat compatible kernel, Oracle Linux 6 is also fully kABI

compatible with RHEL.

(4)

Comparing Oracle Linux 6 and Red Hat Enterprise Linux (RHEL) 6

Applications that run on RHEL will run on Oracle Linux. In order to produce Oracle Linux from RHEL, source trademarks and logos have been removed from a small number of packages.

These are non-functional text or graphics changes that in no way affect any program code or application binary interfaces. Oracle has added its own text file, /etc/oracle-release, so support teams can easily identify that they obtained the code from Oracle.

Oracle’s simple text changes that an installer program might encounter are listed in the following sections.

Checking the /etc/redhat-release File

RHEL provides a text file called /etc/redhat-release, which contains a one-line string identifying the specific distribution release. This file is part of the redhat-release package.

Oracle Linux 6 also contains a text file called /etc/redhat-release, which is installed by a package called oraclelinux-release.

The following table shows the data that is present on the initial release of media of Oracle Linux 6. As of Oracle Linux 6, Oracle retains the Red Hat content within the file. Also shown is the file /etc/oracle-release, which contains Oracle content.

RHEL 6 ORACLE LINUX 6

# rpm –qf /etc/redhat-release

redhat-release-server-6Server-6.0.0.37

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.0 (Santiago)

# rpm –qf /etc/redhat-release oraclelinux-release-6Server-0.0.5

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.0 (Santiago)

# cat /etc/oracle-release Oracle Linux Server release 6.0

RHEL 6 UPDATE 1 ORACLE LINUX 6 UPDATE 1

# rpm –qf /etc/redhat-release

redhat-release-server-6Server-6.1.0.2

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.1 (Santiago)

# rpm –qf /etc/redhat-release oraclelinux-release-6Server-1.0.2

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.1 (Santiago)

(5)

# cat /etc/oracle-release Oracle Linux Server release 6.1

RHEL 6 UPDATE 2 ORACLE LINUX 6 UPDATE 2

# rpm –qf /etc/redhat-release

redhat-release-server-6Server-6.2.0.3

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.2 (Santiago)

# rpm –qf /etc/redhat-release oraclelinux-release-6Server-2.0.2

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.2 (Santiago)

# cat /etc/oracle-release Oracle Linux Server release 6.2

RHEL 6 UPDATE 3 ORACLE LINUX 6 UPDATE 3

# rpm –qf /etc/redhat-release

redhat-release-server-6Server-6.3.0.3

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.3 (Santiago)

# rpm –qf /etc/redhat-release oraclelinux-release-6Server-3.0.2

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.3 (Santiago)

# cat /etc/oracle-release Oracle Linux Server release 6.3

RHEL 6 UPDATE 4 ORACLE LINUX 6 UPDATE 4

# rpm –qf /etc/redhat-release

redhat-release-server-6Server-6.4.0.4

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.4 (Santiago)

# rpm –qf /etc/redhat-release oraclelinux-release-6Server-4.0.4

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.4 (Santiago)

# cat /etc/oracle-release Oracle Linux Server release 6.4

(6)

RHEL 6 UPDATE 5 ORACLE LINUX 6 UPDATE 5

# rpm –qf /etc/redhat-release

redhat-release-server-6Server-6.5.0.1

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.5 (Santiago)

# rpm –qf /etc/redhat-release oraclelinux-release-6Server-5.0.2

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.5 (Santiago)

# cat /etc/oracle-release Oracle Linux Server release 6.5

RHEL 6 UPDATE 6 ORACLE LINUX 6 UPDATE 6

# rpm –qf /etc/redhat-release

redhat-release-server-6Server-6.6.0.2

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.6 (Santiago)

# rpm –qf /etc/redhat-release oraclelinux-release-6Server-6.0.2

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.6 (Santiago)

# cat /etc/oracle-release Oracle Linux Server release 6.6

RHEL 6 UPDATE 7 ORACLE LINUX 6 UPDATE 7

# rpm –qf /etc/redhat-release

redhat-release-server-6Server-6.7.0.3

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.7 (Santiago)

# rpm –qf /etc/redhat-release oraclelinux-release-6Server-7.0.5

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.7 (Santiago)

# cat /etc/oracle-release Oracle Linux Server release 6.7

(7)

Checking for the redhat-release Package

Oracle Linux 6 does not include the redhat-release package. Oracle Linux 6 includes the oraclelinux-release package, which provides a set of files equivalent to those in the redhat-release package on RHEL.

RHEL 6 ORACLE LINUX 6

# rpm -qa | grep redhat-release-server- 6Server

redhat-release-server-6Server-6.0.0.37

# rpm –qa | grep redhat-release-server- 6Server

# rpm -qa | grep oraclelinux-release oraclelinux-release-6Server-0.0.5

# rpm -q --provides oraclelinux-release config(oraclelinux-release) = 6:6Server- 0.0.5

redhat-release system-release

oraclelinux-release = 6:6Server-0.0.5 oraclelinux-release(x86-64) = 6:6Server- 0.0.5

RHEL 6 UPDATE 1 ORACLE LINUX 6 UPDATE 1

# rpm –qa | grep redhat-release-server- 6Server

redhat-release-server-6Server-6.1.0.2

# rpm –qa | grep redhat-release-server- 6Server

# rpm –qa | grep oraclelinux-release oraclelinux-release-6Server-1.0.2

# rpm -q --provides oraclelinux-release config(oraclelinux-release) = 6:6Server- 1.0.2

redhat-release system-release

oraclelinux-release = 6:6Server-1.0.2 oraclelinux-release(x86-64) = 6:6Server-

(8)

1.0.2

RHEL 6 UPDATE 2 ORACLE LINUX 6 UPDATE 2

# rpm –qa | grep redhat-release-server- 6Server

redhat-release-server-6Server-6.2.0.3

# rpm –qa | grep redhat-release-server- 6Server

# rpm -qa|grep oraclelinux-release oraclelinux-release-6Server-2.0.2

# rpm -q --provides oraclelinux-release config(oraclelinux-release) = 6:6Server- 2.0.2

redhat-release system-release

oraclelinux-release = 6:6Server-2.0.2 oraclelinux-release(x86-64) = 6:6Server- 2.0.2

RHEL 6 UPDATE 3 ORACLE LINUX 6 UPDATE 3

# rpm –qa |grep redhat-release-server- 6Server

redhat-release-server-6Server-6.3.0.3

# rpm –qa | grep redhat-release-server- 6Server

# rpm –qa | grep oraclelinux-release oraclelinux-release-6Server-3.0.2

# rpm -q --provides oraclelinux-release config(oraclelinux-release) = 6:6Server- 3.0.2

redhat-release system-release

oraclelinux-release = 6:6Server-3.0.2 oraclelinux-release(x86-64) = 6:6Server- 3.0.2

RHEL 6 UPDATE 4 ORACLE LINUX 6 UPDATE 4

# rpm –qa |grep redhat-release-server- # rpm –qa | grep redhat-release-server-

(9)

6Server

redhat-release-server-6Server-6.4.0.4

6Server

# rpm –qa | grep oraclelinux-release oraclelinux-release-6Server-4.0.4

# rpm -q --provides oraclelinux-release config(oraclelinux-release) = 6:6Server- 4.0.4

redhat-release system-release

oraclelinux-release = 6:6Server-4.0.4 oraclelinux-release(x86-64) = 6:6Server- 4.0.4

RHEL 6 UPDATE 5 ORACLE LINUX 6 UPDATE 5

# rpm –qa |grep redhat-release-server- 6Server

redhat-release-server-6Server-6.5.0.1

# rpm –qa | grep redhat-release-server- 6Server

# rpm –qa | grep oraclelinux-release oraclelinux-release-6Server-5.0.2

# rpm -q --provides oraclelinux-release config(oraclelinux-release) = 6:6Server- 5.0.2

redhat-release system-release

oraclelinux-release = 6:6Server-5.0.2 oraclelinux-release(x86-64) = 6:6Server- 5.0.2

RHEL 6 UPDATE 6 ORACLE LINUX 6 UPDATE 6

# rpm –qa |grep redhat-release-server- 6Server

redhat-release-server-6Server-6.6.0.2

# rpm –qa | grep redhat-release-server- 6Server

# rpm –qa | grep oraclelinux-release oraclelinux-release-6Server-6.0.2

(10)

# rpm -q --provides oraclelinux-release config(oraclelinux-release) = 6:6Server- 6.0.2

redhat-release system-release

oraclelinux-release = 6:6Server-6.0.2 oraclelinux-release(x86-64) = 6:6Server- 6.0.2

RHEL 6 UPDATE 7 ORACLE LINUX 6 UPDATE 7

# rpm –qa |grep redhat-release-server- 6Server

redhat-release-server-6Server-6.7.0.3

# rpm –qa | grep redhat-release-server- 6Server

# rpm –qa | grep oraclelinux-release oraclelinux-release-6Server-7.0.5

# rpm -q --provides oraclelinux-release config(oraclelinux-release) = 6:6Server- 7.0.5

redhat-release system-release

oraclelinux-release = 6:6Server-7.0.5 oraclelinux-release(x86-64) = 6:6Server- 7.0.5

Checking the Version of the Distribution

An application may check for the version of the distribution via the redhat-release package. In this case, both Oracle Linux 6 and RHEL 6 return 6Server.

RHEL 6:

# rpm -q --qf "%{version}\n" -f /etc/redhat-release 6Server

(11)

Oracle Linux 6:

# rpm -q --qf "%{version}\n" -f /etc/redhat-release 6Server

If your application installer depends on any of the checks described above, you now have all the information needed to make the minimal changes required to transparently run on both Oracle Linux 6 and RHEL 6.

Unbreakable Enterprise Kernel

In September of 2010, Oracle introduced the Unbreakable Enterprise Kernel for Oracle Linux.

You can read more about Unbreakable Enterprise Kernel here. With Oracle Linux 6, customers have a choice when it comes to the kernel: strict compatibility with the Red Hat kernel or a kernel optimized and recommended by Oracle for stability and performance.

Unbreakable Enterprise Kernel, Compatibility, and Third-Party Software Oracle’s Unbreakable Enterprise Kernel provides many advantages, such as significant performance improvements and new features.

The Linux operating system is a modular system in which the kernel interacts with the hardware and controls and schedules access to resources on behalf of applications. Applications run in what’s called user space and call only a stable set of system libraries to ask for kernel services.

Figure 1 is a simplified diagram of the Linux operating system. Choosing the Unbreakable

Enterprise Kernel changes only the box labeled “Kernel.”

(12)

Figure 1. Linux Operating System

As you can see, installing a kernel does not change system libraries such as glibc, the interface that nearly all applications, including Oracle Database, use. The glibc version is 2.12 whether you run Oracle Linux 6 with the Unbreakable Enterprise Kernel or with the Red Hat compatible kernel.

In contrast, device drivers and other kernel modules are tightly coupled with the kernel and will usually need to be recompiled when a new kernel is introduced.

Oracle Linux 6 with Oracle’s Unbreakable Enterprise Kernel is certified for compliance with the LSB standard.

For ISVs That Also Check the Linux Kernel Version

Oracle Linux 6 ships with two sets of kernel packages:

 Unbreakable Enterprise Kernel which is installed and booted by default

(13)

 Red Hat compatible kernel, which is installed by default

If needed, /etc/grub.conf can be modified to make the system boot with the Red Hat compatible kernel by default. The latest supported releases of the Unbreakable Enterprise Kernel are listed here: linux.oracle.com/supported.html

The Unbreakable Enterprise Kernel is provided by the kernel-uek package, whereas the Red Hat compatible kernel is provided by the kernel package. For example:

# rpm -qa | grep ^kernel

kernel-uek-2.6.32-100.28.5.el6.x86_64

kernel-uek-firmware-2.6.32-100.28.5.el6.noarch kernel-2.6.32-71.el6.x86_64

kernel-firmware-2.6.32-71.el6.noarch kernel-uek-2.6.32-100.28.5.el6.x86_64

To determine whether the Unbreakable Enterprise Kernel is installed and running, look for the string “uek” embedded into kernel release version of 2.6.32-100 or newer using the uname -r command:

Unbreakable Enterprise Kernel Release 1 (2.6.32):

# uname -r

2.6.32-x.y.z.el6uek.x86_64

Unbreakable Enterprise Kernel Release 2 (2.6.39):

# uname -r

2.6.39-x.y.z.el6uek.x86_64

Unbreakable Enterprise Kernel Release 3 (3.8.13):

# uname -r

3.8.13-x.y.z.el6uek.x86_64

Red Hat Compatible Kernel (2.6.32):

# uname -r | grep uek

# uname -r

2.6.32-22.7.1.el6.x86_64

Also, make sure that the kernel package installed is called kernel-uek.

# rpm -qa | grep kernel-uek kernel-uek-2.6.32-100.28.5.el6

(14)

kernel-uek-firmware-2.6.32-100.28.5.el6

If your product includes a kernel module, please contact us, ol-ovm-info_ww@oracle.com

Full, Verified kABI Compliance

Oracle Linux 6 with a Red Hat compatible kernel is fully kABI compatible with RHEL 6. Scripts are run to double-check whether any patches that were to be applied would have a chance of breaking kABI.

Any comparison between any kernel of Oracle Linux 6 and RHEL 6 shows absolutely no difference in kABI. Kernel modules built for any RHEL 6 kernel will also load on any Red Hat compatible kernel released for Oracle Linux.

Compatibility

The preceding information compares Oracle Linux 6 and RHEL 6 and highlights areas of importance to application vendors from a testing and certification point of view. If your application relies on any of the examples above, you now have all the information needed about any changes that are required to run your application on Oracle Linux.

If your application does not rely on any of the examples above, it will run transparently, and Oracle is confident that re-certification is not necessary.

Downloading Source Code and Binaries

Oracle Linux source code is available for free for download at http://oss.oracle.com/el6/. The binary installation images (ISO) are freely downloadable at http://edelivery.oracle.com/linux.

Oracle Linux 6 allows for free re-distribution of both source and binaries. Individual binary RPM packages including updates/errata can be obtained from http://public-yum.oracle.com/.

Conclusion

Oracle Linux is fully compatible—both source and binary—with with Red Hat Enterprise Linux.

This article described key points that ISVs should consider when installing and certifying their products on Oracle Linux 6.

For More Information

Here are additional resources.

Visit the Oracle Linux Knowledge Zone on the Oracle PartnerNetwork to learn how to accelerate market opportunity and lower the cost of providing Linux solutions and support to users.

For more information about becoming an Oracle partner, visit the Oracle PartnerNetwork.

For information on the Oracle Linux Support program, visit oracle.com/linux

(15)

For ISV contact, ol-ovm-info_ww@oracle.com

Certification with Oracle Linux 6 November 2015

Authors: Keshav Sharma, Michele Resta, and Ryo Kurechi

Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065 U.S.A.

Worldwide Inquiries:

Phone: +1.650.506.7000 Fax: +1.650.506.7200 oracle.com

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission.

Oracle and Java are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. UNIX is a registered trademark licensed through X/Open Company, Ltd.

References

Related documents

In this study, we have developed a DNA methylation score for ex- posure to maternal smoking during pregnancy that outperforms an existing composite score ( Reese et al. 2017 ),

Government policy for the management of solid LLW in the UK defined a sub-category of LLW, called Very Low Level Waste (VLLW), including a “Low Volume” and “High Volume”

and transsexuals are both highly visible (when in the process of transitioning) and, at times, completely invisible (pre- and post-transition, depending on the

How we cook and take care of our home.” Adam added that if his family found a disabled woman with “simple disabilities,” he would not agree unless she had a “simple”

CVS Branches And Tagging merge-trunk-to-BRANCHID-M root-BRANCHID merged-from-trunk-to-BRANCHID-M HEAD branch-BRANCHID merge-BRANCHID-to-trunk-N

Qualified on Oracle Linux with the Unbreakable Enterprise Kernel and Oracle VM. #1 Benchmarks

Incomplete reporting of the number of students receiving these awards prevents a determination of the percent of dental students participating in these obligating grant and

Not even the body is always “concrete”: when it comes to medical explanations of diseases, cells, genes, or brain functions, these things are described in metaphors with source