From 12c onwards, after applying patch, as part of post patching activity, we need to run datapatch utility.

If you have applied javam patch in the ORACLE_HOME, then while running datapatch you will face below error.

READ ALSO : Apply javam patch in oracle

Adding patches to installation queue and performing prereq checks…
Installation queue:
Nothing to roll back
The following patches will be applied:
23177536 (Database PSU 12.1.0.2.160719, Oracle JavaVM Component (JUL2016))
23054246 (Database Patch Set Update : 12.1.0.2.160719 (23054246))

Error: prereq checks failed!
patch 23177536: The database must be in upgrade mode
Prereq check failed, exiting without installing any patches.

 

SOLUTION:

We need to start the database in upgrade mode, if JAVAM patch is applied to ORACLE_HOME .

 

Now run datapatch: