ORA-16018: cannot use string with LOG_ARCHIVE_DEST_n or DB_RECOVERY_FILE_DEST

文档解释

ORA-16018: cannot use string with LOG_ARCHIVE_DEST_n or DB_RECOVERY_FILE_DEST

Cause: One of the following events caused an incompatibility: 1) Parameter LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST was in use when a LOG_ARCHIVE_DEST_n (n = 1…31) parameter was encountered while fetching initialization parameters. 2) An ALTER SYSTEM ARCHIVE LOG START TO command was in effect when a LOG_ARCHIVE_DEST_n parameter was encountered while fetching initialization parameters. 3) A LOG_ARCHIVE_DEST_n parameter was in use when an ALTER SYSTEM command was used to define a value for either the LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST parameter. 4) Parameter DB_RECOVERY_FILE_DEST was in use when an attempt was made to use an ALTER SYSTEM or ALTER SESSION command to define a value for LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST.

Action: Eliminate any incompatible parameter definitions.

ORA-16018:不能使用字符串,于LOG_ARCHIVE_DEST_n或DB_RECOVERY_FILE_DEST中

官方解释

ORA-16018在使用LOG_ARCHIVE_DEST_n或DB_RECOVERY_FILE_DEST时,不能使用字符串。

常见案例

在Oracle数据库中,使用使用SQL语句更改一个参数时可能会遇到这个问题。

一般处理方法及步骤

1、使用ALTER SYSTEM系统命令时;不要使用字符串,可以使用关键字SCOPE、VALUE、INSTANCE后面跟相应的参数。

2、只有这些关键字之后才能加字符串,其它的参数类型都不能使用字符串。

3、对于LOG_ARCHIVE_DEST_n或DB_RECOVERY_FILE_DEST类型的参数,只能使用合法的参数类型。

你可能感兴趣的