Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Changing Instance Name ( No DB_NAME) Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • Changing the Global Database Name Oracle
  • Find total file sizes Linux/Unix
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • How to analyze statspack or AWR report. Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • scripts to take listener.log backup Linux/Unix
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • All About Trace Fils Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Removing first line Linux/Unix
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle

Category: Oracle

oradebug ipcrm ipcs

Posted on 21-Nov-2006 By Admin No Comments on oradebug ipcrm ipcs

In this article I will describe the steps used to identify which shared memory and semaphore segments are owned by a particular instance in Oracle V7, V8.0, V8i, and V9i. This can be helpful in recovery situations where the database instance has not released its shared memory and semaphores on database shutdown. Consider the situation…

Read More “oradebug ipcrm ipcs” »

Oracle, SQL scripts

Locktree.sql

Posted on 06-Nov-2006 By Admin No Comments on Locktree.sql

Locktree.sql is renamed with $ORACLE_HOME/rdbms/admin/utllockt.sql This will show the lock hierarchy in Oracle.

Oracle, SQL scripts

This is im telling Kishore

Posted on 26-Oct-2006 By Admin No Comments on This is im telling Kishore

Test data

Oracle, SQL scripts

oracle tips… from http://www.bijoos.com/oracle/douknow.htm

Posted on 03-Oct-2006 By Admin No Comments on oracle tips… from http://www.bijoos.com/oracle/douknow.htm

1998/10 In PL/SQL you can suspend a session using dbms_lock.sleep (seconds) which is equivalent to the ‘sleep’ command in UNIX. The parameter (number data type) can even be specified in hundredth of a second (10, 10.01, 10.5, 0.99 are all legal values). 1998/11 When you TRUNCATE a table, the storage parameter NEXT is automatically reset…

Read More “oracle tips… from http://www.bijoos.com/oracle/douknow.htm” »

Oracle, SQL scripts

How to find where datafile is created dbf_info.sql

Posted on 28-Sep-2006 By Admin No Comments on How to find where datafile is created dbf_info.sql

column name format a60 column created format a25 select name, to_char(creation_time, ‘DD-MON-RRRR:HH24:MI’) created from v$datafile_header order by creation_time /

Oracle, SQL scripts

To find explain plan for a statement that occurred in past.

Posted on 27-Sep-2006 By Admin No Comments on To find explain plan for a statement that occurred in past.

Find hash value & time when this plan was taken for particular sql id. Filename : fphv.sql REM *** Find Plan Hash value column plan_hash_value format 999999999999 accept v_sqlid prompt ‘Enter SQL_ID : ‘ select distinct sql_id, plan_hash_value, to_char(timestamp, ‘DD-MON-RRRR:HH24:MI:SS’) from dba_hist_sql_plan where sql_id=’&v_sqlid’; Then, Apply sql id and plan_hash_value for a unique plan. REM…

Read More “To find explain plan for a statement that occurred in past.” »

Oracle, SQL scripts

currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql

Posted on 27-Sep-2006 By Admin No Comments on currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql

set lines 120 pages 200 column event format a30 column object_type format a14 column object_name format a30 column owner format a10 column sql_text format a120 spool currwaitobj accept event_name prompt ‘Enter fraction of event to trace : ‘ accept start_time1 prompt ‘Start Time in (DD-MON-RRRR:HH24:MI format) : ‘ accept stop_time1 prompt ‘Stop Time in (DD-MON-RRRR:HH24:MI…

Read More “currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql” »

Oracle, SQL scripts

Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql

Posted on 27-Sep-2006 By Admin No Comments on Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql

REM fplan.sql REM Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE. column plan_hash_value format 999999999999 accept v_sqlid prompt ‘Enter SQL_ID : ‘ accept v_plan_hash_value prompt ‘Enter PLAN Hash Value : ‘ SELECT LPAD(‘ ‘,2*(LEVEL-1))||operation||’ ‘||options ||’ ‘||object_name ||’ ‘|| DECODE(id, 0, ‘Cost = ‘||position) “Query Plan” FROM dba_hist_sql_plan START WITH id =…

Read More “Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql” »

Oracle, SQL scripts

Find Plan Hash value fphv.sql

Posted on 27-Sep-2006 By Admin No Comments on Find Plan Hash value fphv.sql

Filename : fphv.sql REM *** Find Plan Hash value column plan_hash_value format 999999999999 accept v_sqlid prompt ‘Enter SQL_ID : ‘ select distinct sql_id, plan_hash_value, to_char(timestamp, ‘DD-MON-RRRR:HH24:MI:SS’) from dba_hist_sql_plan where sql_id=’&v_sqlid’;

Oracle, SQL scripts

shr1.sql for MTS or Shared server configuration

Posted on 27-Sep-2006 By Admin No Comments on shr1.sql for MTS or Shared server configuration

set lines 120 pages 200 select status, count(1) from v$shared_server group by status; select * from v$shared_server_monitor; select dispatcher, count(1) from v$circuit group by dispatcher; select * from v$sgastat where name like ‘%free memory%’;

Oracle, SQL scripts

Posts pagination

Previous 1 … 21 22 23 … 40 Next

Categories

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

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Good Doc 28-JUN-2006 Oracle
  • reset Sequence Oracle
  • Oracle Internal Good Websites 1 Oracle
  • pvm_pre_change.sql Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • TNSNAMES entries details Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme