Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Sample WW22 listener.ora Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • longtx.sql Oracle
  • cp_filesystem.sql Oracle
  • USE_NL and INDEX hints example Oracle
  • login.sql Oracle
  • Pending Transaction Neighbors Script Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • To find all disk io ( EMC as well as local) Linux/Unix
  • AWR settings- MMON is not taking snapshot. Oracle
  • Explain Plan Output 2 Oracle
  • Formatter Explain plan Output 1 Oracle

scripts to take listener.log backup

Posted on 26-Oct-2007 By Admin No Comments on scripts to take listener.log backup

# log listener

#

# MIOLIST=alert_$ORACLE_SID.log_`date ‘+%y%m%d%H’`

lsnrctl << ALFINE
set current_listener LISTENER_$ORACLE_SID

set log_status OFF

exit

ALFINE

mv $MIOLIST $MIOLIST.`date ‘+%y%m%d%H’`

lsnrctl << ALFINE
set current_listener LISTENER_$ORACLE_SID

set log_status ON

exit

ALFINE

Linux/Unix, shell

Post navigation

Previous Post: Sample WW22 listener.ora
Next Post: Small sample shell program

Related Posts

  • Single character replacement in Unix Linux/Unix
  • handling filenname with space Linux/Unix
  • process id based files and processes Linux/Unix
  • send attachment from unix-shell script Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • Logic to chech # of parameters command line parameters Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • How to calculate PROCESSES parameter Oracle
  • Implementation of key based authentications Linux/Unix
  • Clean up Oracle
  • Absolute file number and relative file number Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • S3 Basic info AWS

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme