11g: TNS-01251 When Trying to Set Directory Using Lsnrctl (Doc ID 762787.1)

Last updated on MAY 08, 2017

Applies to:

Oracle Net Services - Version 11.1.0.6.0 to 12.1.0.2 [Release 11.1 to 12.1]
Information in this document applies to any platform.

Goal

Trying to change the log file using the Lsnrctl utility fails with:

TNS-01251: Cannot set trace/log directory under ADR.

LSRNCTL>set current_listener <listenername>  
LSNRCTL>set log_directory <new_location> fails: 

TNS-01251: Cannot set trace/log directory under ADR  

The same error will get thrown when trying to change the trc_directory:

LSRNCTL>set current_listener <listenername>  
LSNRCTL>set trc_directory <new_location> fails:  

TNS-01251: Cannot set trace/log directory under ADR  

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms