Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: lsnrctl command
Bryant wrote:
>
> I am attempting to create a simple script to move the listener log
> file on a monthly basis. If the listener has not been named the
> command is simple
>
> lsnrctl set log_file log_file_name
>
> But if the listener has been named(no longer default of LISTENER) and
> I run the same command I get an error. I believe I need to put the
> listener name into the command but, I cannot seem to get the corrct
> syntax. Any suggestions.
>
> Thanks,
> B
The manual says to do it this way, it's not possible on one command-line:
lsnrctl << -oef-
set current_listener listener_two
set log_file listener_two.log
exit
-oef-
With me, on Debian Linux with Oracle9i, it works but gives a memory fault when exiting.
-- Gerard H. PilleReceived on Wed Aug 22 2001 - 16:37:14 CDT