Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to stop OCSSD Daemon Oracle
  • find_cons.sql Oracle
  • Facts about SCN and Rollback Segment Oracle
  • find_idle_cpu.sql Oracle
  • Distributed Transaction Troubleshooting. Oracle
  • process id based files and processes Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • Histogram Overview Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • Explain Plan Output 2 Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Export Oracle data and Compress at same time Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • Formatter Explain plan Output 1 Oracle

Year: 2008

Remove duplicate rows from table

Posted on 15-Jan-2008 By Admin No Comments on Remove duplicate rows from table

declare cursor c1 is select distinct PRODUCT_SKU, FIT_ID from geo_florist order by PRODUCT_SKU, FIT_ID; begin for cur1 in c1 loop delete from geo_florist a where a.rowid != ( select max(b.rowid) from geo_florist b where a.product_sku = b.product_sku and a.fit_id = b.fit_id) and a.product_sku = cur1.product_sku and a.fit_id = cur1.fit_id; if (mod(c1%rowcount, 1000) = 0) then…

Read More “Remove duplicate rows from table” »

Oracle, SQL scripts

on IBM-AIX for display

Posted on 08-Jan-2008 By Admin No Comments on on IBM-AIX for display

On IBM-AIX, vi was not working properly. Then set the environment variable as following and it started working. ( Thanks Magesh for same). $ export TERM=vt100 $

Linux/Unix, shell

Posts pagination

Previous 1 … 7 8

Categories

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

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Renaming Oracle Instance Name Oracle
  • Clean up Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • For Search and replace unix command. Linux/Unix
  • To find all disk io ( EMC as well as local) Linux/Unix
  • SYSOPER Mystery Oracle
  • find the files that are 1 day old. Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme