Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • switchover for primary database Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • All About oracle password and security from metalink Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • proc.sql Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • Very clear article about oracle dataguard Oracle
  • send attachment from unix-shell script Linux/Unix
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • sid_wise_sql.sql Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • Load testing on Oracle 19C RAC with HammerDB Oracle

Year: 2007

reset Sequence

Posted on 25-Sep-2007 By Admin No Comments on reset Sequence

column last_number format 9999999999999999 select * from user_sequences where sequence_name in (‘UOC_ORDER_SEQ_ID’); select 2400000000 – CurrVAl – 20 LAST_NUMBER from dual; alter sequence UOC_ORDER_SEQ_ID increment by NOCACHE; Increment Once. select UOC_ORDER_SEQ_ID.nextval from dual; Confirm Value comes to 2300000000. After that alter sequence UOC_ORDER_SEQ_ID increment by 1 NOCACHE; alter sequence UOC_ORDER_SEQ_ID maxvalue 2499999999 NOCACHE;

Oracle, SQL scripts

_B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade

Posted on 30-Aug-2007 By Admin No Comments on _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade

Subject: Upgrading from 8.1.X to 9.X – Btree Bitmap Plan Issues – Diagnosing and Resolving Doc ID: Note:259126.1 Type: TROUBLESHOOTING Last Revision Date: 13-MAR-2006 Status: PUBLISHED PURPOSE The Oracle Cost Based Optimizer is continually been enhanced. These enhancements were designed to improve performance but in some cases can cause a minority of queries to perform…

Read More “_B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade” »

Oracle, SQL scripts

Multiple listeners

Posted on 23-Aug-2007 By Admin No Comments on Multiple listeners

TNS-00512 starting second listener in same node Hi all, I have a 8.1.7.4 listener running OK with a 9.2.0.1 listener in the same Solaris box, I get TNS-00512 starting second listener from 9.2.0.1 ORACLE_HOME. I have changed the ports number, but the problem still persist !!! Here are the listener.ora file: Listener.ora (8.1.7.4) LISTENER =…

Read More “Multiple listeners” »

Oracle, SQL scripts

Good RAC & Standby Notes

Posted on 13-Jul-2007 By Admin No Comments on Good RAC & Standby Notes

RAC Notes Note:241114.1 Step-By-Step Installation of RAC on Linux – Single Node (Oracle9i 9.2.0 with OCFS) Linux OCFS – Best Practices Step-by-Step Installation of RAC on Linux @ Setting up Real Application Cluster (RAC) environment on Linux – Single node Setting up Oracle Parallel Server environment on Linux – Single node @ 9iRAC: OS Port-Specific…

Read More “Good RAC & Standby Notes” »

Oracle, SQL scripts

Finding locked objects

Posted on 11-Jun-2007 By Admin No Comments on Finding locked objects

select object_id from dba_objects where object_name = ‘MYTABLE’; select sid, id1, id2 from v$lock where id1= &objid or id2 = &objid;

Oracle, SQL scripts

Changing Instance Name ( No DB_NAME)

Posted on 11-Jun-2007 By Admin No Comments on Changing Instance Name ( No DB_NAME)

Note Instance name : represented by $ORACLE_SID database name : represented by DB_NAME init.ora parameter. You can change instance name to any name with following requirements: Here we are chaning instance name from AWRTEST1 to PARESH. Exising setup: ORACLE_SID=AWRTEST1 Step1: $ export ORACLE_SID=PARESH; Step2: Create password file for new instance PARESH. $ cd $ORACLE_HOME/dbs $…

Read More “Changing Instance Name ( No DB_NAME)” »

Oracle, SQL scripts

Find nth max and min.

Posted on 02-May-2007 By Admin No Comments on Find nth max and min.

First, the query for Max: SELECT * FROM TAB1 a WHERE &N = (SELECT count(DISTINCT(b.col1)) FROM TAB1 b WHERE a.col1=b.col1) If N=1 will return first max or first min. N=2 will return second max or min.

Oracle, SQL scripts

DBMS_Shared_pool pinning triggers

Posted on 02-May-2007 By Admin No Comments on DBMS_Shared_pool pinning triggers

How to pin a stored procedure/functions ? 1.You can pin procedures and triggers with the dbms_shared_pool procedure. Either procedures or packages can be pinned with the ‘P’ flag, which is the default value (so you can leave it out). Triggers are pinned with ‘R’ and anonymous plsql blocks need any letter other than [p,P,r,R] as…

Read More “DBMS_Shared_pool pinning triggers” »

Oracle, SQL scripts

TOP-N Sql to find Nth max or Top N rows

Posted on 01-May-2007 By Admin No Comments on TOP-N Sql to find Nth max or Top N rows

PURPOSE This note explains the TOP-N Query, a new feature (as of 8.1.5) that allows users to query on ROWNUM and order results with ORDER BY. This functionality is similar to the offerings of other database software such as the “Top Values’ property option in Microsoft Access. Top-N Query to Solve ORDER BY…ROWNUM Inaccuracy: ==================================================…

Read More “TOP-N Sql to find Nth max or Top N rows” »

Oracle, SQL scripts

Session_info.ksh

Posted on 24-Apr-2007 By Admin No Comments on Session_info.ksh

/********* session_info.ksh ****************/ #!/bin/ksh . /home/oracle/oraprocs/WEBP18F.env USR_ID=vivek USR_PASS=viv1ek database=WEBP18F a=`ps -ef|grep “session_info.ksh”|grep -v grep|wc -l` if [ $a -gt 4 ] then echo “Exiting because of more than 1 process is running `date`”>>/db3/oradata/log/session_info.log exit fi echo “—–Begin —– Date `date`——————————–” >> /db3/oradata/log/session_info.log $ORACLE_HOME/bin/sqlplus -s /db3/oradata/log/session_info.log $USR_ID/$USR_PASS@$database set serverout on set feedback off SET PAGES 0…

Read More “Session_info.ksh” »

Linux/Unix, shell

Posts pagination

Previous 1 2 3 4 … 6 Next

Categories

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

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Explain Plan Output 2 Oracle
  • Good Oracle Architecture In Short and point to point Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • compile_inv.sql Oracle
  • Committing distributed transaction using commit force Oracle
  • logminer and my_lbu Oracle
  • xargs use Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme