Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • This is from Temi Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Sample WW22 listener.ora Oracle
  • Ports used by Oracle Software Oracle
  • DB Console Mainenance. Oracle
  • The most important Tuning Notes Oracle
  • Processes Parameter decision Oracle
  • currwait.sql Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • find the files that are 1 day old. Linux/Unix
  • database trigger failing Oracle
  • Check Oracle installed products using one command Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix

Category: Oracle

Query to Generate aggregate on every 30 mins.

Posted on 09-Feb-2010 By Admin No Comments on Query to Generate aggregate on every 30 mins.

select to_char(first_time, ‘RRRRMMDDHH24’), COUNT (CASE WHEN TO_NUMBER(TO_CHAR(FIRST_time, ‘MI’)) 30 THEN 1 ELSE NULL END) COUNT2 FROM V$LOG_HISTORY GROUP BY to_char(first_time, ‘RRRRMMDDHH24’) order by 1 / TO_CHAR(FI COUNT1 COUNT2 ———- ———- ———- 2010020906 3 1 2010020907 3 1 2010020908 3 1 2010020909 3 1 2010020910 3 1 2010020911 3 1 2010020912 3 1 2010020913 3 1…

Read More “Query to Generate aggregate on every 30 mins.” »

Oracle, SQL scripts

Distributed Transaction Troubleshooting.

Posted on 08-Feb-2010 By Admin No Comments on Distributed Transaction Troubleshooting.

SQL> select * from sys.pending_trans$ where local_tran_id = ‘26.2.2712168’; no rows selected SQL> select * from sys.pending_sessions$ where local_tran_id = ‘26.2.2712168’; no rows selected SQL> select * from sys.pending_sub_sessions$ where local_tran_id = ‘26.2.2712168’; no rows selected SQL> select * from dba_2pc_neighbors; no rows selected SQL> select * from dba_2pc_pending; no rows selected SQL> commit force…

Read More “Distributed Transaction Troubleshooting.” »

Oracle, SQL scripts

Pending Transaction Neighbors Script

Posted on 03-Feb-2010 By Admin No Comments on Pending Transaction Neighbors Script

COL LOCAL_TRAN_ID FORMAT A13 COL IN_OUT FORMAT A6 COL DATABASE FORMAT A25 COL DBUSER_OWNER FORMAT A15 COL INTERFACE FORMAT A3 SELECT LOCAL_TRAN_ID, IN_OUT, DATABASE, DBUSER_OWNER, INTERFACE FROM DBA_2PC_NEIGHBORS / SQL> CONNECT SYS@hq.acme.com AS SYSDBA SQL> @neighbors_script LOCAL_TRAN_ID IN_OUT DATABASE DBUSER_OWNER INT ————- —— ————————- ————— — 1.15.870 out SALES.ACME.COM SYS C

Oracle, SQL scripts

Pending Distributed Transations

Posted on 03-Feb-2010 By Admin No Comments on Pending Distributed Transations

COL LOCAL_TRAN_ID FORMAT A13 COL GLOBAL_TRAN_ID FORMAT A30 COL STATE FORMAT A8 COL MIXED FORMAT A3 COL HOST FORMAT A10 COL COMMIT# FORMAT A10 SELECT LOCAL_TRAN_ID, GLOBAL_TRAN_ID, STATE, MIXED, HOST, COMMIT# FROM DBA_2PC_PENDING /

Oracle, SQL scripts

Good Oracle Architecture In Short and point to point

Posted on 02-Feb-2010 By Admin No Comments on Good Oracle Architecture In Short and point to point

http://www.toadworld.com/KNOWLEDGE/KnowledgeXpertforOracle/tabid/648/TopicID/2471975d4f31c8aa/Default.aspx

Oracle, SQL scripts

sqlnet.ora paramters

Posted on 30-Jan-2010 By Admin No Comments on sqlnet.ora paramters

-Default order of NAMES. DIRECTORY_PATH is TNSNAMES, OID, HOSTNAME in sqlnet.ora. -EZCONNECT is available after 10g onwards. -Make sure Names.default_domain is set property to avoid any kind of client connectivity issues.

Oracle, SQL scripts

TNSNAMES entries details

Posted on 30-Jan-2010 By Admin No Comments on TNSNAMES entries details

Option: Try each address, in order, until one succeeds ( Failover only). By default failover=true if you have more than one entry in address list. ============================================================================= MEHTA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = NYBOX)(PORT = 1555)) (ADDRESS = (PROTOCOL = TCP)(HOST = FLBOX)(PORT = 1600)) ) (CONNECT_DATA = (SERVICE_NAME =…

Read More “TNSNAMES entries details” »

Oracle, SQL scripts

Oracle 11g Training on 29JAN1010

Posted on 29-Jan-2010 By Admin No Comments on Oracle 11g Training on 29JAN1010

-SERVICE_NAMES = INSTANCE_NAME + DB_DOMAIN -GLOBAL DATABASE NAME should be same as SERVICE_NAMES -If system ts is LMT then temporary tablespace is required. -if system ts is lmt then no dmt can be created in db. -When system ts is LMT then undo tbs is also must. -1 tbs can have max 1022 dbfs. -1…

Read More “Oracle 11g Training on 29JAN1010” »

Oracle, SQL scripts

Very clear article about oracle dataguard

Posted on 29-Jan-2010 By Admin No Comments on Very clear article about oracle dataguard

http://www.dbazine.com/oracle/or-articles/liu4

Oracle, rman-dataguard

oracle fast start failover best practice

Posted on 27-Jan-2010 By Admin No Comments on oracle fast start failover best practice

http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_FastStartFailoverBestPractices.pdf

Oracle, rman-dataguard

Posts pagination

Previous 1 … 5 6 7 … 40 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
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • metalink all dynamic view reference notes. Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • V$ROLLSTAT status is Full Oracle
  • FGA Part-I Oracle
  • Rownum with Order by Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme