Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • longtx.sql Oracle
  • Difference between SYNC and AFFIRM Oracle
  • oradebug ipcrm ipcs Oracle
  • good linux notes Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • block_ident.sql Oracle
  • Korn Shell Arithmatic Linux/Unix
  • Alter procedure auditing Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Finding Oracle Patches with opatch Oracle
  • Goldengate document from Porus Oracle
  • Find Plan Hash value fphv.sql Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • Rollback force for distributed transactions 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

  • crontab syntax Linux/Unix
  • Single character replacement in Unix Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • Space padding in korn shell Linux/Unix
  • proper cpu stats 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)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • 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

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • v$backup.status information Oracle
  • More info about /proc folder and its relation with processes. Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Find Plan Hash value fphv.sql Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme