Useful Commands
SRVCTL
Add password file
srvctl modify database -d stby -pwfile +dr_oradata1/stby/PASSWORD/orapwstby
srvctl config database -d stby
ASM
- copy password file from ASM to local drive
asmcmd -p
ASMCMD [+oradata1/primec/password] > pwcopy pwdprimec.844.1007810343 /tmp
copying +oradata1/primec/password/pwdprimec.844.1007810343 -> /tmp/pwdprimec.844.1007810343
- copy from local directory to ASM
ASMCMD [+oradata1/primec/password] pwcopy /tmp/pwdprimec.844.1007810343 +dr_oradata1/stby/PASSWORD/orapwstby
AIX
Copy file from TEST to PROD
on test server
scp userid@server1.com:/tmp/pwdprimec.844.1007810343 /tmp
Remove files older then 7 days
find /acfs/diag/rdbms/dbc/dbc_1/trace -type f -mtime +7 -name ‘*.trc’ -exec rm — ‘{}’ \;