Pl post exact OS and database versions. Are you wanting to upgrade the Java version in the database ? If so, that is not possible.
Is It Supported to Update /Upgrade the Default JDK/JRE in Oracle Home? [ID 1449674.1]
OracleJVM Install and Upgrade FAQ [ID 825306.1]
Java update of the JDK and JRE Installed In Oracle Database Home [ID 418399.1]
Master Note for Oracle JVM [ID 1098505.1] Re: update jdk from Oracle 11g? (version is > EOL)