Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Kernel Parameters for Solaris Linux/Unix
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Oracle Internal Good Websites 1 Oracle
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Kill a session dynanically using execute immediate Oracle
  • Oracle Statspack survival Guide Oracle
  • move_arch_files.ksh Linux/Unix
  • PLSQL Table Syntax 1 Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • plan10g.sql good Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • MYSQL for Oracle DBA MYSQL
  • how to find OS block size Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle

runon_allcdbs_find_pdbs.sh

Posted on 23-Apr-202610-Jun-2026 By Admin No Comments on runon_allcdbs_find_pdbs.sh
#!/usr/bin/bash
ORACLE_BASE=/u02/app/oracle
ORACLE_HOME=/u02/app/oracle/product/19.0.0.0/dbhome_1
LOGNAME=runon_all_localdb_$$.log

for v_inst in `ps -ef| grep pmon | awk '{print $8}' | grep -iv asm | grep -iv apx | awk -F"_" '{print $3}'`
do
 echo "Instance name = $v_inst"
 export ORACLE_SID=$v_inst
 $ORACLE_HOME/bin/sqlplus "/ as sysdba" << EOF >> ${LOGNAME}
 show user
 set echo off
 set numwidth 9
 set linesize 132
 set pagesize 300
 set feedback off
 set verify off
 set time off
 set timing off
 --select * from v\$instance;
 @/u02/scripts/paresh/find_pdbs.sql
 --select PROPERTY_VALUE from database_properties where PROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';
EOF
done

cat ${LOGNAME}

rm ${LOGNAME}
Linux/Unix, Oracle, shell

Post navigation

Previous Post: Running PDB on single node in RAC
Next Post: runon_allpdbs_show_conname.sh

Related Posts

  • Rollback force for distributed transactions Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Library cahe Latches and internal explaination Oracle
  • Session_info.ksh Linux/Unix
  • find_arc.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • AMC10 (0)
  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (9)
  • Videos (0)

Recent Posts

  • Tutornet.US — Source of excellent learning14-Oct-2026
  • OCI Infrastructure Patching14-Oct-2026
  • Free API credits for AI models14-Oct-2026
  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • setting prompt display with .profile Linux/Unix
  • Renaming Global Name GLOBAL_NAME Oracle
  • When to rebuld B-tree index Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Oracle Data Direct to TAPE Oracle
  • tab.sql Oracle
  • find_encr_wallet.sql Uncategorized
  • to see when crontab is changed. Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme