Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • login.sql Oracle
  • How to stop OCSSD Daemon Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • New OFA for 11g Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • How to start CRS manually Oracle
  • column level grant syntax Oracle
  • SYSOPER Mystery Oracle
  • V$ROLLSTAT status is Full Oracle
  • restarting network in linux Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • sql_doing_fts.sql Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle

Author: Admin

Running select from V$ views from remote server

Posted on 21-Jul-2008 By Admin No Comments on Running select from V$ views from remote server

#/bin/ksh -x NOTIFY_LIST=”pmehta@1800flowers.com” CONNECT_USER=”/ as sysdba” TARGET_ORACLE_HOME=/oracle/app/oracle/product/10.1 MY_SQL=”select max(SEQUENCE#) from v$log_history;” RUNNING=`/usr/local/bin/ssh uocdbprod21 “. /oracle/app/oracle/oraprocs/oracle_env_UOC; $TARGET_ORACLE_HOME/bin/sqlplus -S / a s sysdba

Linux/Unix, shell

RAC with RHEL4 and 11g

Posted on 13-Jul-2008 By Admin No Comments on RAC with RHEL4 and 11g

http://startoracle.com/2007/09/30/so-you-want-to-play-with-oracle-11gs-rac-heres-how/

Oracle, RAC

longtx.sql

Posted on 10-Jul-2008 By Admin No Comments on longtx.sql

Find long running transaction that are running for more than 5 minutes with transaction id. col machine format a30 col sid format 99999 col Transaction_id format a20 col username format a10 col days format 99.99 col minutes format 999999 set lines 120 pages 200 select a.sid, a.username, a.machine, round((sysdate – to_date(b.start_time, ‘MM/DD/YY HH24:MI:SS’)) * 1440)…

Read More “longtx.sql” »

Oracle, SQL scripts

V$transaction notes for finding XID composition.

Posted on 10-Jul-2008 By Admin No Comments on V$transaction notes for finding XID composition.

Notes on v$transaction The information here contains the view description from the Oracle9i documentation Earlier versions of Oracle may not include all columns. The v$transaction view lists the active transactions in the system. Column Datatype Description ————- ————– ————————————– ADDR RAW(4) Address of transaction state object XIDUSN NUMBER Undo segment number XIDSLOT NUMBER Slot number…

Read More “V$transaction notes for finding XID composition.” »

Oracle, SQL scripts

telnet listening

Posted on 09-Jul-2008 By Admin No Comments on telnet listening

if you are trying following $ telnet remote-server port and you are getting error, this means no one is listening on that port on remote server. Start the listening application ( like listener ) & then do telnet. it will work if firewall is not blocking it.

Linux/Unix, shell

Find total file sizes

Posted on 07-Jul-2008 By Admin No Comments on Find total file sizes

sunflower1/800L>./vrm3 | awk ‘{tot+=$5} END {print “TOTAL ” tot/1024}’ TOTAL 52662552 sunflower1/800L>cat vrm3 ls -rlt /EMCdb21/oradata/800P/800P_misc_index31.dbf ls -rlt /EMCdb21/oradata/800P/800P_emp_data23.dbf ls -rlt /EMCdb21/oradata/800P/800P_emp_index55.dbf ls -rlt /EMCdb21/oradata/800P/ORD_SCRPAD_INDEX_06.dbf ls -rlt /EMCdb21/oradata/800P/800P_emp_index56.dbf ls -rlt /EMCdb21/oradata/800P/800P_misc_data_3_04.dbf ls -rlt /EMCdb21/oradata/800P/800P_SAS_DATA_1.dbf ls -rlt /EMCdb24/oradata/800P/800P_ord_index42.dbf ls -rlt /EMCdb24/oradata/800P/800P_misc_index32.dbf ls -rlt /EMCdb24/oradata/800P/800P_phone_index22.dbf ls -rlt /EMCdb24/oradata/800P/800P_atlas_index57.dbf ls -rlt /EMCdb14/oradata/800P/800P_atlas_data34.dbf ls -rlt /EMCdb14/oradata/800P/800P_emp_index57.dbf ls -rlt /EMCdb14/oradata/800P/800P_ord_data29.dbf…

Read More “Find total file sizes” »

Linux/Unix, shell

Clean up

Posted on 06-Jul-2008 By Admin No Comments on Clean up

* re-format /dev/sdb /dev/sdc once * drop crs home * drop oraInventory * set the time on both boxes

Oracle, RAC

UTL_FILE test program

Posted on 03-Jul-2008 By Admin No Comments on UTL_FILE test program

Declare v_filehandle UTL_FILE.FILE_TYPE; file_dir VARCHAR2(50) :=’/db3/oracle/utlfiles’; begin t_file_name :=’Vatti_test.dat’; v_filehandle := UTL_FILE.FOPEN(file_dir, t_file_name, ‘w’); UTL_FILE.PUT_LINE(v_filehandle, ‘Hello TEST’); UTL_FILE.FCLOSE(v_filehandle); exception when others then dbms_output.put_line(sqlcode || ‘ ‘ || sqlerrm); end; /

Oracle, SQL scripts

V$CONTROLFILE_RECORD_SECTION reference notes.

Posted on 02-Jul-2008 By Admin No Comments on V$CONTROLFILE_RECORD_SECTION reference notes.

TYPE VARCHAR2(17) Identifies the type of record section: DATABASE, CKPT PROGRESS, REDO THREAD, REDO LOG, DATAFILE, FILENAME, TABLESPACE, LOG HISTORY, OFFLINE RANGE, ARCHIVED LOG, BACKUP SET, BACKUP PIECE, BACKUP DATAFILE, BACKUP REDOLOG, DATAFILE COPY, BACKUP CORRUPTION, COPY CORRUPTION, DELETED OBJECT, or PROXY COPY RECORD_SIZE NUMBER Record size in bytes RECORDS_TOTAL NUMBER Number of records allocated…

Read More “V$CONTROLFILE_RECORD_SECTION reference notes.” »

Oracle, SQL scripts

metalink all dynamic view reference notes.

Posted on 02-Jul-2008 By Admin No Comments on metalink all dynamic view reference notes.

V$ View Definitions Library Doc ID: Note:220021.1

Oracle, SQL scripts

Posts pagination

Previous 1 … 19 20 21 … 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
  • Oracle Support Metalink ID 161818.1 Oracle
  • Rename Oracle Instance Name Oracle
  • Error Handling in Proc Oracle
  • v$event_name Oracle
  • Multiple listeners Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • How to start CRS manually Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme