Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • rm_backup_arch_file.ksh Linux/Unix
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • restarting network in linux Linux/Unix
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Caching sequence in Memory Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • Very clear article about oracle dataguard Oracle
  • catall.sh Linux/Unix
  • proper cpu stats Linux/Unix
  • dbinv.sql Oracle
  • Read CSV File using Python Python/PySpark
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • Oracle 11g Environment Setup 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

  • CPU Core related projections AWS
  • Space padding in korn shell Linux/Unix
  • Unix command for system configuration Linux/Unix
  • Unix split command to split files Linux/Unix
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • fuser to check who is using diretory Linux/Unix

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to change hostname in Linux Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • oradebug ipcrm ipcs Oracle
  • Locktree.sql Oracle
  • on IBM-AIX for display Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Default User Profile Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme