Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Flowers Resize datafiles Oracle
  • CPU speed on Linux Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • SQLPLUS COPY command Precautions. Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • Good notes on Oracle Events Oracle
  • process id based files and processes Linux/Unix
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • ext#.sql Oracle
  • cache buffer chain latch Oracle
  • Unix command for system configuration Linux/Unix
  • Find long Running Transaction Linux/Unix
  • SQL Server: How to see historical transactions SQL Server
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress

Category: SQL scripts

findobj.sql

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

select * from user_objects where object_name = upper(‘&objnm’);

Oracle, SQL scripts

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

Posts pagination

Previous 1 … 32 33 34 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
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • Roles and Stored Procs II Oracle
  • Find Plan Hash value fphv.sql Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • ORA-3136 Oracle
  • Search and replace pattern Linux/Unix
  • Another export with Query Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme