Turn off listener logging in oracle 12c release 2

listeneroracle-12csap

I am trying to turn off listener logging in oracle 12c R2 (SAP on oracle), but I am getting a TNS-12508 error. I have verified that the listener.ora is owned by the oracle user and I am performing the task as same oracle user, but I am still getting an error.

File Permissions

-rw-r--r--    1 oracle   oinstall       1151 Oct 23 13:48 listener.ora

Listener Error

LSNRCTL> set current_listener LISTENER_AAA.
Current Listener is LISTENER_AAA

LSNRCTL> set LOG_STATUS OFF
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=AAA.WORLD))
TNS-12508: TNS:listener could not resolve the COMMAND given

LSNRCTL> set log_status off
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=AAA.WORLD))
TNS-12508: TNS:listener could not resolve the COMMAND given

Am I missing something here?

Best Answer

This can happen if you've got ADMIN_RESTRICTIONS_LISTENER set to ON in your listener.ora file.

Turning it off should resolve the problem.