Oracle Java (Restricted Maintenance)

Latest response

Hi,

We have Java installed from repos

---> rhel-6-server-restricted-maintenance-oracle-java-rpms
---> rhel-7-server-restricted-maintenance-oracle-java-rpms

and subscription
---> Oracle Java (Restricted Maintenance) (for RHEL Server)

After November, we stop getting updates from Redhat
Now I have host with INVALID subscription

subscription-manager status

+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Invalid

Oracle Java (Restricted Maintenance) (for RHEL Server):
- Not supported by a valid subscription.

Even I have disable the Restricted repo or enable other JAVA repo but no luck

subscription-manager repos --list-enabled

Repo ID: rhel-6-server-thirdparty-oracle-java-rpms
Repo Name: Red Hat Enterprise Linux 6 Server - Oracle Java (RPMs)
Enabled: 1

How can I get rid of Invalid message, someone suggested uninstall JAVA and install from new source (is this not break the underlying applications like JBOSS, Oracle etc).

Any suggestion will be great

Regards
M

Responses

I did the following but no luck

subscription-manager clean subscription-manager refresh subscription-manager attach --auto

Even unregister and register again

subscription-manager remove --all subscription-manager unregister subscription-manager register --org="

Hi Muhammad,

A workaround could be, to disable the repository manually ... execute sudo vi /etc/yum.repos.d/redhat.repo
and set the entry in those repositories from enabled = 1 to enabled = 0. Afterwards execute these commands :

sudo yum clean all
sudo rm -r /var/cache/yum/*
sudo yum update

To get rid of the misleading subscription-manager message "Overall Status: Invalid" ... execute these two commands :

sudo rm /etc/pki/entitlement/*
sudo subscription-manager refresh

I recommend to migrate from ORACLE Java to OpenJDK, which means uninstall ORACLE Java and install OpenJDK. :)

Regards,
Christian

For me an update to a newer subscription manager version followed by a subscription manager refresh solved the problem.

I too had this issue where servers that had Oracle Java were listed with Invalid Subscriptions. The following day that cleared up.

My one cleared after reboot. Its not consistant ?