ORA-16021: session string destination cannot be the same as session string destination

文档解释

ORA-16021: session string destination cannot be the same as session string destination

Cause: An attempt was made to change the first specified archive log parameter using ALTER SESSION to have a destination value that duplicates the session-level destination value of the second specified archive log parameter.

Action: Specify a different session destination value for one of the LOG_ARCHIVE_DEST_n parameters.

ORA-16021错误指出,会话串行目标不能与会话字符目标相同。

官方解释

当您尝试在Oracle实例上创建相同会话字符目标和会话串行目标的会话时,就会出现ORA-16021错误。此错误的模式为“ORA-16021:会话串行目标不能与会话字符目标相同” 。

常见案例

ORA-16021错误通常在您尝试将会话字符串和会话串行目标设置为相同值时发生,例如在下面代码中:

ALTER SESSION SET session_string_destination = ‘TEST’;

一般处理方法及步骤

解决此错误非常简单,只需将会话字符串和会话串行目标设置为不同的值即可,如:

ALTER SESSION SET session_string_destination = ‘TEST_STRING’;

ALTER SESSION SET session_serial_destination = ‘TEST_SERIAL’;

你可能感兴趣的