Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • Oracle 10g Wait Model Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • find_string_in_database.sql Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Remove duplicate rows from table Oracle
  • crontab syntax Linux/Unix
  • normal maintenance for exp-imp and renaming table Oracle
  • longtx.sql Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • Find total file sizes Linux/Unix
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle

Category: SQL scripts

cache buffer chain latch

Posted on 19-Jan-2007 By Admin No Comments on cache buffer chain latch

Good Docs. (1) http://www.oracle-training.cc/oracle_tips_hidden_parameters.htm (2) FOR EAAPPPROD22 (UOCQA) ====================== Also I did some research on ‘cache buffer chains’ CBC events and found that wait on UOCQA instance ( on eaappprod22 ) was occurring due to wait on specific chain, not because of wait on specific Block or ROW. As per current configuration, # of linked-list…

Read More “cache buffer chain latch” »

Oracle, SQL scripts

Finding Oracle Patches with opatch

Posted on 05-Jan-2007 By Admin No Comments on Finding Oracle Patches with opatch

dbaltxprod50->WEBP18F@(/home/oracle)/oracle/app/oracle/product/10.2/OPatch/opatch lsinventory Invoking OPatch 10.2.0.2.0 Oracle interim Patch Installer version 10.2.0.2.0 Copyright (c) 2005, Oracle Corporation. All rights reserved.. Oracle Home : /oracle/app/oracle/product/10.2 Central Inventory : /var/opt/oracle/oraInventory from : /oracle/app/oracle/product/10.2/oraInst.loc OPatch version : 10.2.0.2.0 OUI version : 10.2.0.2.0 OUI location : /oracle/app/oracle/product/10.2/oui Log file location : /oracle/app/oracle/product/10.2/cfgtoollogs/opatch/opatch-2006_Aug_28_17-52-47-E DT_Mon.log Lsinventory Output file location : /oracle/app/oracle/product/10.2/cfgtoollogs/opatch/lsinv/lsinventory-2006_Aug_28 _17-52-47-EDT_Mon.txt…

Read More “Finding Oracle Patches with opatch” »

Oracle, SQL scripts

Order by with ROWNUM

Posted on 03-Jan-2007 By Admin No Comments on Order by with ROWNUM

18:02:01 PVM@AWRTEST:-> select * from pvm1; NO ——— 100 20 40 1 2 200 24 7 rows selected. Elapsed: 00:00:00.01 18:02:17 PVM@AWRTEST:-> select no from ( select no, row_number() over (order by no desc) r from pvm1) where r=2; NO ——— 100 1 row selected. Elapsed: 00:00:00.02 18:02:38 PVM@AWRTEST:-> select no from ( select no,…

Read More “Order by with ROWNUM” »

Oracle, SQL scripts

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

Posts pagination

Previous 1 … 17 18 19 … 35 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
  • dbms_job.submit example Oracle
  • Wait Based Tuning Step by step with SQL statement Oracle
  • Check SQL Server edition SQL Server
  • checking connectivity between two servers Linux/Unix
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • To see only files and/or folders using LS command Linux/Unix
  • Shuffle an array PHP/MYSQL/Wordpress
  • How to collect CPU usage on Linux using Shell script Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme