Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • replace alphabets using sed Linux/Unix
  • catting.sh Linux/Unix
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • tab.sql Oracle
  • ipcs -l Linux/Unix
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • Oracle Statspack survival Guide Oracle
  • move_arch_files.ksh Linux/Unix
  • Some useful Unix Commands Linux/Unix
  • cold backup scripts to copy locally Linux/Unix
  • switchover for primary database Oracle
  • proc.sql Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle

Author: Admin

Space padding in korn shell

Posted on 15-Jun-2010 By Admin No Comments on Space padding in korn shell

#!/bin/ksh typeset -L30 fieldA typeset -R15 fieldB fieldA=”Paresh” fieldB=”Vatti” echo “${fieldA}${fieldB}”

Linux/Unix, shell

find checksum of a file.

Posted on 10-Jun-2010 By Admin No Comments on find checksum of a file.

oracle@dbmonitor*-/export/home/oracle/paresh ==>echo `sum 1.sh` 4206 1 1.sh oracle@dbmonitor*-/export/home/oracle/paresh ==>echo `sum 1.sh` | awk ‘{print $1}’ 4206 oracle@dbmonitor*-/export/home/oracle/paresh ==>echo `sum 1.sh` | awk ‘{print $2}’ 1 oracle@dbmonitor*-/export/home/oracle/paresh ==>

Linux/Unix, shell

Temporary Tablespsace Temp tablespace behaviour

Posted on 25-May-2010 By Admin No Comments on Temporary Tablespsace Temp tablespace behaviour

Description =========== When monitoring the size of the available free space in the TEMPORARY tablespace it does not increased once sorts are finished even with no client connections to the database. They may also be a large number of EXTENTS of type TEMPORARY in the temporary tablespace. Users may also experience ORA-1652 when running transactions….

Read More “Temporary Tablespsace Temp tablespace behaviour” »

Oracle, SQL scripts

Handling LOB data in Oracle

Posted on 24-May-2010 By Admin No Comments on Handling LOB data in Oracle

Here is another good example: You can initialize the LOBs by using the following SQL INSERT statement: INSERT INTO lob_table VALUES (1001, EMPTY_BLOB(), NULL, EMPTY_CLOB(), NULL); External LOBs: INSERT INTO lob_table VALUES (21, NULL, NULL, NULL, BFILENAME(‘IMG’, ‘image1.gif’)); INSERT INTO lob_table VALUES (22, NULL, NULL, NULL, BFILENAME(‘IMG’, ‘image2.gif’)); UPDATE lob_table SET f_lob = BFILENAME(‘IMG’, ‘image3.gif’)…

Read More “Handling LOB data in Oracle” »

Oracle, SQL scripts

oracle Dba site

Posted on 07-May-2010 By Admin No Comments on oracle Dba site

Oracle GoldenGate Tutorial 9 – Monitoring GoldenGate

Oracle, SQL scripts

Goldengate document from Porus

Posted on 07-May-2010 By Admin No Comments on Goldengate document from Porus

http://www.oracle.com/technology/pub/articles/havawala-goldengate.html

Oracle, SQL scripts

Goldengate Tutorial

Posted on 07-May-2010 By Admin No Comments on Goldengate Tutorial

GoldenGate Tutorial: Simplest

Oracle, SQL scripts

ORA-3136

Posted on 06-May-2010 By Admin No Comments on ORA-3136

Issue: Inbound connection timed out (ORA-3136) In 10gR2, SQLNET.INBOUND_CONNECT_TIMEOUT the parameters were set to have a default of 60 (seconds). Set the parameters SQLNET.INBOUND_CONNECT_TIMEOUT and INBOUND_CONNECT_TIMEOUT_listenername to 0 (indefinite). What the error is telling you is that a connection attempt was made, but the session authentication was not provided before SQLNET.INBOUND_CONNECT_TIMEOUT seconds. As far as…

Read More “ORA-3136” »

Oracle, SQL scripts

find_longsql.sql

Posted on 06-May-2010 By Admin No Comments on find_longsql.sql

–Ref: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1198012113596 column dur format a20 set lines 120 pages 200 select a.sid, a.serial#, a.username, to_char(sysdate-a.last_call_et/24/60/60,’hh24:mi:ss’) started, trunc(a.last_call_et/60) || ‘ mins, ‘ || mod(a.last_call_et,60) ||’ secs’ dur, b.sql_text from v$sql b, v$session a where a.username is not null and a.last_call_et > 10 and a.status = ‘ACTIVE’ and a.sql_address = b.address;

Oracle, SQL scripts

Display the top 5 salaries for each department using single SQL

Posted on 03-May-2010 By Admin No Comments on Display the top 5 salaries for each department using single SQL

Ok, given the clarification I can show you a way to get this in 815 and before (slow on a big table) and in 816 and up (fast with analytic functions!) ops$tkyte@ORA817.US.ORACLE.COM> select * from t; DEPTNO SAL ———- ———- 10 100 10 100 10 200 10 300 10 400 10 500 20 100 20…

Read More “Display the top 5 salaries for each department using single SQL” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 5 6 7 … 56 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
  • Resolving RMAN Hung Jobs Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • Order by with ROWNUM Oracle
  • Drop tempfiles from database Oracle
  • reset Sequence Oracle
  • Optimizer SORT Operations Oracle
  • This is from Temi Oracle
  • Monitor Long Running Job Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme