Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Optimizer SORT Operations Oracle
  • Renaming the column name Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • Good links for x$ tables in oracle. Oracle
  • Some OS level threshold for performance. Linux/Unix
  • temp_use.sql diplays usage of temp ts Oracle
  • Create type and Grant on it. Oracle
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • V$ROLLSTAT status is Full Oracle
  • oradebug ipcrm ipcs Oracle
  • SAN Linux/Unix
  • fkwoind.sql fkwoindex.sql Oracle

Category: SQL scripts

USE_NL and INDEX hints example

Posted on 07-Dec-2005 By Admin No Comments on USE_NL and INDEX hints example

select /*+ USE_NL(A,B) INDEX(a ATS_FLORIST_FITTYPE_I)*/ a.FIT_ID from ATS_FLORISTS a,ATS_FLORISTS_TRACKING b where b.FIN_PROC = ‘N’ AND b.OLD_FRESH_PAY = ‘Y’ and b.NEW_FRESH_PAY=’N’ and a.FIT_TYPE=’P’ and a.ID= b.fit_id

Oracle, SQL scripts

Index Range Scan

Posted on 01-Dec-2005 By Admin No Comments on Index Range Scan

If your index is NONUNIQUE, you cant enforce Index Unique Scan.

Oracle, SQL scripts

SQLPLUS COPY command Precautions.

Posted on 01-Dec-2005 By Admin No Comments on SQLPLUS COPY command Precautions.

One test case today i found with copy command. When we are using sqlplus copy command with “APPEND” clause, and if source table contains any NUMBER datatype without Precision and Scale, then COPY statement fails with error indicating “NUMERIC ERROR and Number data type precision is higher than 38 digit”.

Oracle, SQL scripts

Optimizer_Index init.ora parameter explaination.

Posted on 01-Dec-2005 By Admin No Comments on Optimizer_Index init.ora parameter explaination.

For Index ( Range Scan and Fast Full Scan Setings )in query (1) RULE uses index range scan (2) CBO uses Index fast full scan ( called Index FFS ) Here CBO uses multi block IO reading as per db_file_multi_block_read_count). By default, the CBO costs physical IO and logical IO the same. So it ignores…

Read More “Optimizer_Index init.ora parameter explaination.” »

Oracle, SQL scripts

CTAS with LONG Column for 9i and higher

Posted on 28-Nov-2005 By Admin No Comments on CTAS with LONG Column for 9i and higher

Executing CTAS statement having TO_LOB(LONG COLUMN). For example: create table blah as select GNT_ID.nextval, 1060 as gnt_ref_id, org.gnt_id, org.gnt_group_note, org.gnt_language, to_lob(org.gnt_text_string) as gnt_text_string, org.gnt_text_emphasize from asra_002.gnt_groupnote_txt org where org.gnt_group_note in (select gnr_note from asra_002.gnr_groupnote_ref)

Oracle, SQL scripts

CTAS with LONG Column for 7.x and 8 and 8i

Posted on 28-Nov-2005 By Admin No Comments on CTAS with LONG Column for 7.x and 8 and 8i

How to Copy Data from a Table with a LONG Column into an Existing Table ======================================================================= Purpose: ======== The purpose of this article is to provide a working example of how to COPY data from a table with a LONG column into another existing table with the same structure definition. This document is especially useful…

Read More “CTAS with LONG Column for 7.x and 8 and 8i” »

Oracle, SQL scripts

DBMS_UTILITY PACKAGE

Posted on 18-Nov-2005 By Admin No Comments on DBMS_UTILITY PACKAGE

DBMS_UTILITY Oracle provides two procedures under the DBMS_UTILITY package related to statistics generation. (Oracle recommends use of DBMS_STATS package for generating statistics). DBMS_UTILITY.ANALYZE_SCHEMA This routine will generate statistics on an individual schema level. It is used for analyzing all tables, clusters and indexes. It takes the following parameters: schema – Name of the schema method…

Read More “DBMS_UTILITY PACKAGE” »

Oracle, SQL scripts

DBMS_UTILITY.ANALYZE_SCHEMA

Posted on 18-Nov-2005 By Admin No Comments on DBMS_UTILITY.ANALYZE_SCHEMA

10:17:18 SYS@WEBP:-> execute dbms_utility.analyze_schema(‘CS’, ‘COMPUTE’, NULL, NULL, NULL);

Oracle, SQL scripts

Gathering statistics with DBMS_STATS

Posted on 18-Nov-2005 By Admin No Comments on Gathering statistics with DBMS_STATS

———————————————- Gathering statistics with DBMS_STATS ———————————————- DBMS_STATS.GATHER_TABLE_STATS DBMS_STATS.GATHER_TABLE_STATS gathers statistics for a table and its columns, and optionally the associated indexes. Call syntax dbms_stats.gather_table_stats(ownname, tabname, partname, estimate_percent, block_sample, method_opt, degree, granularity, cascade, stattab, statid, statown); The first two parameters are mandatory, the rest are defaulted to a value. ownname – owner tabname – table name…

Read More “Gathering statistics with DBMS_STATS” »

Oracle, SQL scripts

VIvek Encryption Package and Its Usage

Posted on 18-Nov-2005 By Admin No Comments on VIvek Encryption Package and Its Usage

create or replace package subs_cipher is function scramble ( obfs_in varchar2 ) return varchar2; — pragma not required as of 8.1.5 pragma restrict_references( scramble, wnds, wnps, wnps); function unscramble ( obfs_in varchar2 ) return varchar2; — pragma not required as of 8.1.5 pragma restrict_references( unscramble, wnds, rnds, wnps ); end; create or replace package body…

Read More “VIvek Encryption Package and Its Usage” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 25 26 27 … 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
  • Zip and unzip with tar Linux/Unix
  • compile_inv.sql Oracle
  • Order by with ROWNUM Oracle
  • How to know current SID Oracle
  • ORA-01220 Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • Nice notes on wait events Oracle
  • sesswait.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme