I am a big fan of automation. I don’t like to do the same thing over and over, so after reading the post about purge/rotate oracle trace and log files from Fred Denis I started testing his scripts to implement them.
Everything was perfect until I run adrci purge to clean rdbms old files from Oracle 12.1 and got error DIA-49803.
MOS to the rescue and after digging I found note:
2341825.1 -Purge Does Not Work In 12.2 If ADRCI Is Used To Access An Older ADR Home, which is exactly my case.
So the recommendation is simple: use the version of ADRCI that is shipped with the version of the database ($ORACLE_HOME/rdbms/bin/adrci).
For the record: This server has Grid 12.2 and RDBMS 12.1 and 12.2.