Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • Drop tempfiles from database Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix
  • sess1.sql Oracle
  • get_vmstat.ksh Linux/Unix
  • Remove duplicate rows from table Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • fuser to check who is using diretory Linux/Unix
  • Distributed Transaction Troubleshooting. Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • FGA Part-I Oracle
  • Rename Oracle Instance Name Oracle
  • tab.sql Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • move_arch_files.ksh Linux/Unix

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

  • catall.sh Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • Search and replace editor command in vi Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • Which environment is used by currently running process ( Very good) 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
  • shutdown linux Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Good links for x$ tables in oracle. Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • How to find where datafile is created dbf_info.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme