Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Oracle Material from OTN Oracle
  • SQL_PROFILE – I explaination Oracle
  • find_idle_cpu.sql Oracle
  • database trigger failing Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • Composite Index creation tip from Vivek Oracle
  • set_env_dba Linux/Unix
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • Some useful Unix Commands Linux/Unix
  • find checksum of a file. Linux/Unix
  • Find Command Linux/Unix
  • Single character replacement in Unix Linux/Unix
  • Order by with ROWNUM Oracle

Category: Oracle

find_cons.sql

Posted on 02-Aug-2005 By Admin No Comments on find_cons.sql

set pagesize 300 set linesize 130 set head on set echo off accept tab prompt “Enter The Table Name -> ” select b.constraint_name “Cons Name”, b.status, decode(b.constraint_type, ‘P’, ‘PRIMARY’, ‘C’, ‘CHECK’, ‘U’, ‘UNIQUE’, ‘R’, ‘FOREIGN KEY’) “Cons Type”, substr(a.column_name, 1, 20) “Column Name”, decode(b.constraint_type, ‘C’, ‘ MUST NOT BE NULL’ , ‘ Position : ‘)…

Read More “find_cons.sql” »

Oracle, SQL scripts

Explain Plan Output 2

Posted on 02-Aug-2005 By Admin No Comments on Explain Plan Output 2

set markup html preformat on Rem Rem Use the display table function from the dbms_xplan package to display the last Rem explain plan. Force serial option for backward compatibility Rem select plan_table_output from table(dbms_xplan.display(‘plan_table’,null,’serial’));

Oracle, SQL scripts

Formatter Explain plan Output 1

Posted on 02-Aug-2005 By Admin No Comments on Formatter Explain plan Output 1

set markup html preformat on Rem Rem Use the display table function from the dbms_xplan package to display the last Rem explain plan. Use default mode which will display only relevant information Rem select * from table(dbms_xplan.display());

Oracle, SQL scripts

create PLAN_TABLE command.

Posted on 02-Aug-2005 By Admin No Comments on create PLAN_TABLE command.

create table PLAN_TABLE ( statement_id varchar2(30), plan_id number, timestamp date, remarks varchar2(4000), operation varchar2(30), options varchar2(255), object_node varchar2(128), object_owner varchar2(30), object_name varchar2(30), object_alias varchar2(65), object_instance numeric, object_type varchar2(30), optimizer varchar2(255), search_columns number, id numeric, parent_id numeric, depth numeric, position numeric, cost numeric, cardinality numeric, bytes numeric, other_tag varchar2(255), partition_start varchar2(255), partition_stop varchar2(255), partition_id numeric, other…

Read More “create PLAN_TABLE command.” »

Oracle, SQL scripts

Oracle Internal Good Websites 1

Posted on 02-Aug-2005 By Admin No Comments on Oracle Internal Good Websites 1

Oracle Internals http://www.ixora.com.au/notes/ http://www.stormloader.com/yonghuang/computer/x$table.html http://www.adp-gmbh.ch/ora/misc/x.html http://www.oracle-training.cc/oracle_tips.htm

Oracle, SQL scripts

exp syntax in oracle 10g

Posted on 02-Aug-2005 By Admin No Comments on exp syntax in oracle 10g

**exporting only structure** exp userid=username/password@conn_str file=expdat.dmp tables= table1, table2, table3, table4, table5, table6, table7, table8 rows=n statistics=none **exp command help** exp help=y

Oracle, SQL scripts

Good links for x$ tables in oracle.

Posted on 02-Aug-2005 By Admin No Comments on Good links for x$ tables in oracle.

Explaination about X$tables http://www.stormloader.com/yonghuang/computer/x$table.html

Oracle, SQL scripts

dbinv.sql

Posted on 02-Aug-2005 By Admin No Comments on dbinv.sql

set linesize 132 select owner, substr(object_name,1,30) objname , object_type from dba_objects where owner not in (‘SYS’, ‘SYSTEM’) and status = ‘INVALID’ order by owner, object_type, object_name;

Oracle, SQL scripts

myfile

Posted on 02-Aug-2005 By Admin No Comments on myfile

**************************************************** File Name : a.sql **************************************************** create or replace view ats_dba_waiters as select /*+ all_rows */ w.session_id waiting_session, h.session_id holding_session, w.lock_type, h.mode_held, w.mode_requested, w.lock_id1, w.lock_id2 from ats_dba_lock w, ats_dba_lock h where h.blocking_others = ‘Blocking’ and h.mode_held != ‘None’ and h.mode_held != ‘Null’ and w.mode_requested != ‘None’ and w.lock_type = h.lock_type and w.lock_id1 = h.lock_id1 and…

Read More “myfile” »

Oracle, SQL scripts

ORACLE_SID in sqlplus

Posted on 02-Aug-2005 By Admin No Comments on ORACLE_SID in sqlplus

PURPOSE ========= To document one of the features of spooling in SQL*Plus. This article explains the behavior of “@” when used in the spooled file name. I checked for Unix and its working fine. This is an undocumented behavior of 10g sqlplus. How is “@” interpretted when used in spooled file name? ======================================================== When you…

Read More “ORACLE_SID in sqlplus” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 37 38 39 40 Next

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_JOB all example Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • ORA-3136 Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix
  • Export Import with QUERY Oracle
  • Reading config file from other folder inside class Python/PySpark
  • How to stop OCSSD Daemon Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme