My Oracle Support Banner

13.3 EM - Fleet Maintenance Job Failing with sed: illegal option -- i (Doc ID 2463774.1)

Last updated on MARCH 12, 2021

Applies to:

Enterprise Manager for Oracle Database - Version 13.3.1.0.0 and later
Information in this document applies to any platform.

Symptoms

When updating the GI home using Fleet maintenance, the Job Step called "Switch Clusterware Instance" is showing the following error: 

sed: illegal option -- i
Updated checkpoint successfully.

The job step fails although the updated checkpoint says successfully.

This issue was reported on Solaris x86_64 platform only.

To illustrate the problem, below is a snippet extracted from Job Step Log for Job: Switch Clusterware Instance

|____________________ FUNCTION CALL END gridupdate::skip_this_function |_______________________________________________|

File <PATH>/oracle/grid/12.1.0.2/gi_2/crs/utl/crsconfig_dirs not found.Trying with hostname
File <PATH>/oracle/grid/12.1.0.2/gi_2/crs/utl/sgdld07sp443/crsconfig_dirs found.
2018-08-17 13:53:41: Executing sed -i 's=<PATH>/oracle/grid/12.1.0.2/gi_2=<PATH>/product/12.1.0.2/gi_1=g' /var/tmp/2095010013303310/2095026255949160/crsconfig_dirs
2018-08-17 13:53:41: Executing cmd: sed -i 's=<PATH>/oracle/grid/12.1.0.2/gi_2=<PATH>/product/12.1.0.2/gi_1=g' /var/tmp/2095010013303310/2095026255949160/crsconfig_dirs
sed: illegal option -- i

|******************** BEGIN FUNCTION CALL gridupdate::update_check_point_file ******************************************|
Function call: gridupdate::update_check_point_file ("CLEAR_CONFIG" ,"/var/tmp/2095010013303310/2095026255949160/" ,"FAILED")
|***********************************************************************************************************************|

Updating checkpoint...
2018-08-17 13:53:41: Executing sed -i 's=CLEAR_CONFIG:NOT_EXECUTED=CLEAR_CONFIG:FAILED=g' /var/tmp/2095010013303310/2095026255949160/check_point_file
2018-08-17 13:53:41: Executing cmd: sed -i 's=CLEAR_CONFIG:NOT_EXECUTED=CLEAR_CONFIG:FAILED=g' /var/tmp/2095010013303310/2095026255949160/check_point_file
sed: illegal option -- i
Updated checkpoint successfully.

|____________________ FUNCTION CALL END gridupdate::update_check_point_file |__________________________________________|

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.