Removing old kernel OEL6 and OEL5

This article presents how to remove old kernels on OEL5 and OEL6.

Removing old kernels is pretty simple. In this article I show how to do it on OEL5 but it works in the same way on OEL6.

1. Check kernels which are installed on your system.

[root@oel5 ~]# rpm -qa | grep kernel
kernel-uek-2.6.39-400.21.2.el5uek
kernel-uek-2.6.39-300.26.1.el5uek
kernel-headers-2.6.18-348.4.1.0.1.el5
kernel-uek-devel-2.6.39-400.21.2.el5uek
kernel-uek-firmware-2.6.39-300.26.1.el5uek
kernel-uek-firmware-2.6.39-400.109.1.el5uek
kernel-uek-firmware-2.6.39-400.21.2.el5uek
kernel-2.6.18-348.4.1.0.1.el5
kernel-debug-2.6.18-348.4.1.0.1.el5
kernel-xen-2.6.18-348.4.1.0.1.el5
kernel-2.6.18-348.el5
kernel-debug-2.6.18-348.el5
kernel-devel-2.6.18-348.4.1.0.1.el5
kernel-xen-2.6.18-348.el5
kernel-uek-devel-2.6.39-400.109.1.el5uek
kernel-devel-2.6.18-348.el5
kernel-uek-devel-2.6.39-300.26.1.el5uek
kernel-uek-2.6.39-400.109.1.el5uek

2. Check your current kernel which you are using

[root@oel5 ~]# uname -r
2.6.39-400.109.1.el5uek

3. Remove old kernel(s) using command: yum remove kernel-package

It’s just example for removing one kernel

[root@oel5 ~]# yum remove kernel-2.6.18-348.el5
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
You can use up2date --register to register.
ULN support will be disabled.
Setting up Remove Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider 
running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found 
in the yum-utils package.
--> Running transaction check
---> Package kernel.x86_64 0:2.6.18-348.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================
 Package    Arch        Version         Repository           Size
=====================================================================
Removing:
 kernel     x86_64      2.6.18-348.el5  installed            99 M

Transaction Summary
=====================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : kernel                      1/1 

Removed:
  kernel.x86_64 0:2.6.18-348.el5

Complete!

Have a fun 🙂

Tomasz

 

 

 

Flashback Data Archive 11g

This article presents new feature of 11g – Flashback Data Archive.

This functionality allows to save all transactions executed on a table for longer period than just UNDO_RETENTION parameter and UNDO tablespace. In 11g you can create dedicated space to keep changed data(DML operations, DDL operations) for longer specified retention period.

Historical records can be reviewed using standard flashback sql queries feature.

Continue reading

Install Oracle 11G Release 2 (11.2) on Fedora 19

This article presents how to install Oracle 11G on Fedora 19.

Check latest articles:

Read following article howto install Fedora 19 Linux: Install Fedora 19 (for comfort set 2G memory for your virtual machine before proceeding with Oracle software installation).

Installation software is available on OTN version 11.2.0.1 or metalink 11.2.0.3, 11.2.0.4. In this installation I’m presenting installation for 11.2.0.4 but for previous version 11.2.0.X it shouldn’t be different.

Oracle software which I verified

release 11.2.0.3

p10404530_112030_Linux-x86-64_1of7.zip
p10404530_112030_Linux-x86-64_2of7.zip

release 11.2.0.4

p13390677_112040_Linux-x86-64_1of7.zip 
p13390677_112040_Linux-x86-64_2of7.zip

Continue reading

Install Fedora 19

This article presents how to install Fedora 19.

I assume you have already downloaded Fedora 19 64 bit(about 4 G) and you know how to use VirtualBox 64 bit(100M). Create virtual machine with default settings for Linux Fedora 64 bit. 1GB ram and 32G for disk is enough plus increase video memory to 128M and turn on acceleration 3D. Rest of options you can keep default.

Fedora19_1

Continue reading

Install Oracle 11G Release 2 (11.2) on Centos 6

This article presents how to install Oracle on Centos 6.

Read following article how to install Centos 6 Linux: Install Centos 6 (allocate 64G for disk and set 2G memory for your virtual machine before proceeding with Oracle software installation).

Check latest article How to install Oracle 12C (12.1.0.1) on Centos 6 with UDEV disks, NFS disks, kmod-oracleasm library

Continue reading

Exchange partitions for compressed table and unused columns ORA-39726, ORA-14097

This article presents problems related to ORA-39726, ORA-14097 on compressed table.

In case you want to drop a column on a compressed table (partitioned or not) you can encounter following error:

ORA-39726: unsupported add/drop column operation on compressed tables

This error can occur for following type of compression:

  • batch compression
  • EXADATA compression

Exception is OLTP compression – drop is working here. You can read about compress OLTP here – Table compression in 11G

Continue reading

Install Oracle 11G Release 2 (11.2) on Centos 5

This article presents how to install Oracle on Centos 5.

Read following article howto install Centos 5 Linux: Install Centos 5 (for comfort set 2G memory for your virtual machine before proceeding with Oracle software installation).

Installation software is available on OTN version 11.2.0.1 or metalink 11.2.0.3. In this installation I’m presenting installation for 11.2.0.3 but for previous version 11.2.0.X it shouldn’t be different.

Continue reading