Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • move_arch_files.ksh Linux/Unix
  • Python class import from different folders Python/PySpark
  • Changing the Global Database Name Oracle
  • find_cons.sql Oracle
  • Oracle Internal Good Websites 1 Oracle
  • get_aix_vmstat.ksh Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • replace alphabets using sed Linux/Unix
  • Find Command Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Removing first line Linux/Unix

Category: Oracle

Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository

Posted on 22-Dec-2008 By Admin No Comments on Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository

PURPOSE This article is a step by step demonstration on how to use the Oracle10g SQLAccess Advisor (DBMS_ADVISOR) package to get recommendations on what Materialized Views to create in order to support a given set of queries (a workload) issued on the database. The workload is imported from the Oracle10g Automatic Workload Repository using a…

Read More “Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository” »

Oracle, SQL scripts

SQL_PROFILE – I explaination

Posted on 22-Dec-2008 By Admin No Comments on SQL_PROFILE – I explaination

Checked for relevance on 12-May-2008. Clarification/Explanation ========================== The query optimizer can sometimes produce inaccurate estimates about an attribute of a statement due to lack of information,leading to poor execution plans. Traditionally, users have corrected this problem by manually adding hints to the application code to guide the optimizer into making correct decisions. For packaged applications,…

Read More “SQL_PROFILE – I explaination” »

Oracle, SQL scripts

Temporary Tablespace Information and restriction.

Posted on 27-Oct-2008 By Admin No Comments on Temporary Tablespace Information and restriction.

Temporary Tablespace (1) The DEFAULT TEMPORARY TABLESPACE must be of TEMPORARY type. (2) The DEFAULT TEMPORARY TABLESPACE cannot be converted to PERMANENT once it has been defined as the DEFAULT TEMPORARY TABLESPACE. (3) Before dropping the DEFAULT TEMPORARY TABLESPACE, create another one. (4) The DEFAULT TEMPORARY TABLESPACE cannot be taken OFFLINE: (5) The temporary tablespace…

Read More “Temporary Tablespace Information and restriction.” »

Oracle, SQL scripts

Oracle Metalink useful notes

Posted on 10-Oct-2008 By Admin No Comments on Oracle Metalink useful notes

Note:144152.1 Understanding 9i Real Application Clusters Cache Fusion Recovery

Oracle, RAC

When error comes for temporary tablespace with version <= 9i

Posted on 16-Sep-2008 By Admin No Comments on When error comes for temporary tablespace with version <= 9i

Step-1 Run @temp_use.sql as following. Following is the code for temp_use.sql SELECT b.TABLESPACE, b.segfile#, b.segblk#, b.blocks, a.SID, a.serial#, a.username, a.osuser, a.status, c.sql_text FROM v$session a, v$sort_usage b, v$sqlarea c WHERE a.saddr = b.session_addr AND a.SQL_HASH_VALUE = c.HASH_VALUE and a.sid not in (select distinct sid from v$mystat) ORDER BY b.TABLESPACE, b.segfile#, b.segblk#, b.blocks / set pagesize…

Read More “When error comes for temporary tablespace with version <= 9i” »

Oracle, SQL scripts

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

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

Posts pagination

Previous 1 … 13 14 15 … 40 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
  • Jai Shree Ram Oracle
  • SQL_PROFILE – I explaination Oracle
  • Jai Shree Ram Linux/Unix
  • Some OS level threshold for performance. Linux/Unix
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Ports used by Oracle Software Oracle
  • Export With Query Another Example. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme