Error message

  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; views_display has a deprecated constructor in require_once() (line 3066 of /var/www/html/edu/mlavsec/includes/bootstrap.inc).
  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; views_many_to_one_helper has a deprecated constructor in require_once() (line 113 of /var/www/html/edu/mlavsec/sites/all/modules/ctools/ctools.module).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6371 of /var/www/html/edu/mlavsec/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6371 of /var/www/html/edu/mlavsec/includes/common.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 73 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in _views_slideshow_preprocess_views_slideshow() (line 76 of /var/www/html/edu/mlavsec/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc).
  • Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in require_once() (line 330 of /var/www/html/edu/mlavsec/includes/module.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/html/edu/mlavsec/includes/common.inc).

Opatch Failed With Error Code 21 May 2026

rm -rf /u01/app/oraInventory/locks/* Ensure the entire Oracle home is owned by the correct user:

df -h $ORACLE_HOME df -h /tmp Check inodes (Linux/Unix): opatch failed with error code 21

You have Oracle Database 19.3.0.0.0 but are using OPatch version 12.2.0.1.0. The patch you are applying expects OPatch 13.9 or higher. 2. Insufficient Disk Space or Inodes OPatch creates temporary files, backups of modified files, and new JAR libraries. If the filesystem where $ORACLE_HOME resides is full, or if the temporary directory ( /tmp on Linux) runs out of space or inodes, OPatch will fail with error code 21. 3. File Permission Issues Oracle software must be owned by the Oracle user (typically oracle ) and the appropriate group (e.g., oinstall or dba ). If any files in the Oracle home have incorrect ownership or permissions (e.g., root-owned files, missing write permissions), OPatch will abort. 4. Locked Inventory The Oracle Central Inventory (located in /u01/app/oraInventory or similar) contains a lock file while OPatch is running. If a previous OPatch session was killed abruptly (e.g., Ctrl+C , system crash), the lock file may remain. A subsequent OPatch run will see the lock and exit with error code 21. 5. Missing or Corrupted Prerequisite Commands OPatch may rely on system commands like make , ar , ld , or gcc when relinking Oracle binaries. If these tools are missing or not in the PATH , the patching process can fail. 6. Conflicting Patches Already Applied If you attempt to apply a patch that conflicts with an existing interim patch, and you do not use the -force flag, OPatch will fail with error code 21. This is a protective mechanism to prevent corruption. 7. Corrupted OPatch Binary or Inventory XML Rarely, the OPatch binary itself may be corrupted, or the inventory.xml file may be malformed (e.g., due to manual edits, disk corruption, or improper patch rollbacks). Step-by-Step Diagnostic Approach When you encounter error code 21, do not panic. Follow this structured diagnostic flow. Step 1: Locate the Detailed Log File OPatch always writes a detailed log. The location depends on your command, but typically it is: Insufficient Disk Space or Inodes OPatch creates temporary

$ORACLE_HOME/OPatch/opatch version Compare the version with the patch's README file. If the README specifies a minimum OPatch version (e.g., 13.9.4.2.0) and you have an older one, you must upgrade OPatch. Check available space in the Oracle home and /tmp : File Permission Issues Oracle software must be owned

Upgraded OPatch to version 13.9.4.2.0. The patch applied successfully. Case Study 2: /tmp Full of Old JAR Extractions Scenario: A middleware admin repeatedly failed with error code 21 on a WebLogic patch. Logs showed "No space left on device" even though df -h /tmp showed 30% free.