Site icon IT Tutorial

ORA-01678: parameter db_file_name_convert must be pairs of pattern and replacement strings

I got ” ORA-01678: parameter db_file_name_convert must be pairs of pattern and replacement strings ” error in Oracle database.

 

ORA-01678: parameter db_file_name_convert must be pairs of pattern and replacement strings

 

Details of error are as follows.

SQL> alter system set db_file_name_convert='' scope=spfile sid='*';
alter system set db_file_name_convert='' scope=spfile sid='*'
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-01678: parameter db_file_name_convert must be pairs of pattern and
replacement strings

ORA-01678: parameter string must be pairs of pattern and replacement strings.
 
Cause: The initialization parameter does not have even number of strings for its value. The odd numbered strings are patterns to be found in file names. The even numbered strings are used to replace the corresponding patterns when found in file names.

Action: Specify even number of strings for the parameter, or omit the parameter.


 

DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT

The ORA-01678 error is related with the wrong number of quotes in the syntax or check the pairs of pattern in the convert strings.

If you want to set this parameter to the null, then use the reset option as follows.

alter system reset db_file_name_convert scope=spfile sid='*';

 

Or You can run these parameters as follows, check and fix the syntax as follows.

 

ALTER SYSTEM SET DB_FILE_NAME_CONVERT='+DATA','+DATAC1' SCOPE=SPFILE SID='*';

ALTER SYSTEM SET LOG_FILE_NAME_CONVERT='+RECO','+RECOC1' SCOPE=SPFILE SID='*';

 

 

 

Do you want to learn Oracle Database for Beginners, then Click and read the following articles.

Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

Exit mobile version