Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • exp syntax in oracle 10g Oracle
  • Oracle 10g for solaris 10 Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Good RAC & Standby Notes Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Shuffle an array PHP/MYSQL/Wordpress
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Implementation of key based authentications Linux/Unix
  • sqlnet.ora paramters Oracle
  • move_arch_files.ksh Linux/Unix
  • Virtual Indexes in Oracle Oracle
  • Giving Grant on v$DATABASE Oracle
  • restarting network in linux Linux/Unix

Category: SQL scripts

When to rebuld B-tree index

Posted on 09-Feb-2007 By Admin No Comments on When to rebuld B-tree index

Here is the syntax: analyze index CUSTOMER_LASTNAME_IND validate structure; It populates the SYS.INDEX_STATS view only. The SYS.INDEX_STATS view can be accessed with the public synonym INDEX_STATS. The INDEX_STATS view will hold information for one index at a time: it will never contain more than one row. Therefore you need to query this view before you…

Read More “When to rebuld B-tree index” »

Oracle, SQL scripts

Another export with Query

Posted on 07-Feb-2007 By Admin No Comments on Another export with Query

exp userid=cs file=gift_cert_07FEB07.dmp log=gift_cert_07FEB07.log compress=N grants=N tables=gift_certificate statistics=none query=”where dt_crtd >= to_date(’02-04-2007 10:00:00′,’MM-DD-YYYY HH24:MI:SS’)” /* WITH LOG */ imp userid=cs file=gift_cert_07FEB07.dmp log=gift_cert_07FEB07_imp.log ignore=Y grants=N fromuser=cs touser=cs statistics=none constraints=N buffer=10485760 commit=y indexes=N feedback=5000

Oracle, SQL scripts

Composite Index creation tip from Vivek

Posted on 06-Feb-2007 By Admin No Comments on Composite Index creation tip from Vivek

When you create a composite B-tree index, you should consider the following. The most restrctive condition: The condition that returns the least number of rows. The column that is involved in this condition, should be the leading column of B-tree index. So for finding the candidate of composite index columns, column order should be.. (…

Read More “Composite Index creation tip from Vivek” »

Oracle, SQL scripts

Histogram information

Posted on 05-Feb-2007 By Admin No Comments on Histogram information

Oracle 10g Histogram ==================== Oracle uses two types of histograms for column statistics (1) height-balanced histograms (2) frequency histograms The type of histogram is stored in the HISTOGRAM column of the *TAB_COL_STATISTICS views (USER and DBA). This column can have values of HEIGHT BALANCED, FREQUENCY, or NONE. (1) Height-Balanced Histograms In a height-balanced histogram, the…

Read More “Histogram information” »

Oracle, SQL scripts

Export Import with QUERY

Posted on 01-Feb-2007 By Admin No Comments on Export Import with QUERY

exp userid=cs file=zip_cutoff_01FEB07.dmp log=zip_cutoff_01FEB07.log compress=N grants=N tables=zip_cutoff statistics=none query=”where delivery_date >=trunc(sysdate)” imp userid=cs file=zip_cutoff_01FEB07.dmp log=zip_cutoff_01FEB07_imp.log ignore=Y grants=N fromuser=cs touser=cs statistics=none

Oracle, SQL scripts

Good notes on Oracle Events

Posted on 25-Jan-2007 By Admin No Comments on Good notes on Oracle Events

http://www.df.lth.se/~egh/doc/EM/Webhelp/dba/dba.htm

Oracle, SQL scripts

Nice notes on wait events

Posted on 25-Jan-2007 By Admin No Comments on Nice notes on wait events

Log File Sync Event =================== Description When a user session commits (or rolls back), the sessions redo information needs to be flushed to the redo logfile. The user session will post the LGWR to write the log buffer to the redo log file. When the LGWR has finished that it will post the user session….

Read More “Nice notes on wait events” »

Oracle, SQL scripts

plan10g.sql good1

Posted on 24-Jan-2007 By Admin No Comments on plan10g.sql good1

set lines 150 pages 2000 accept v_sqlid prompt ‘Enter SQL_ID : ‘ select * from table(dbms_xplan.display_cursor(‘&v_sqlid’, 0));

Oracle, SQL scripts

plan10g.sql good

Posted on 24-Jan-2007 By Admin No Comments on plan10g.sql good

set lines 150 pages 2000 accept v_sqlid prompt ‘Enter SQL_ID : ‘ select * from table(dbms_xplan.display_cursor(‘&v_sqlid’, 0));

Oracle, SQL scripts

plan10g.sql

Posted on 24-Jan-2007 By Admin No Comments on plan10g.sql

set lines 150 pages 2000 accept v_sqlid prompt ‘Enter SQL_ID : ‘ select * from table(dbms_xplan.display_cursor(‘&v_sqlid’, 0));

Oracle, SQL scripts

Posts pagination

Previous 1 … 16 17 18 … 35 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
  • Exadata Basics Oracle
  • runsql_once.ksh Linux/Unix
  • good note for shared pool tunnig Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • proc.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme