dataguard redo_transport_user
在 DataGuard 环境中,默认情况下,当使用密码文件时,SYS 用户的密码用于验证重做传输会话。但出于安全原因,您可能不希望仅将如此高特权的用户用于重做传输。为了克服这个问题,Oracle 实现了 REDO_TRANSPORT_USER 初始化参数。
SQL> show parameter redo;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
redo_transport_user string
redo_transport_user值为空,默认使用sys用户
使用oracle一体机zdlra做备份,安装客户端时把redo_transport_user值改为vpc,primary库redo日志传输会报错(
TT00 (PID:2815): Error 12543 received logging on to the standby
),需要在主库创建vpc用户,拷贝密码倒备库,重启日志实时应用
SQL> show parameter redo;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
redo_transport_user string VPC
create user vpc identified by oracle;
grant sysoper,create session to vpc;
SQL> col username for a10;
select a.USERNAME,a.SYSOPER,a.ACCOUNT_STATUS from v$pwfile_users a;SQL>
USERNAME SYSOP ACCOUNT_STATUS
---------- ----- ------------------------------
SYS TRUE OPEN
VPC TRUE OPEN
scp 192.168.20.225:/u01/app/db/product/19.3/db_1/dbs/orapwqdtais1 ./
启动备库,查看密码文件
SQL> startup
ORACLE instance started.
Total System Global Area 1476391080 bytes
Fixed Size 8896680 bytes
Variable Size 369098752 bytes
Database Buffers 1090519040 bytes
Redo Buffers 7876608 bytes
Database mounted.
Database opened.
SQL> col username for a10;
select a.USERNAME,a.SYSOPER,a.ACCOUNT_STATUS from v$pwfile_users a;SQL>
USERNAME SYSOP ACCOUNT_STATUS
---------- ----- ------------------------------
SYS TRUE OPEN
VPC TRUE OPEN
启动实时应用,redo日志正常传输。