Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBA_HIST_SQLSTAT contents Oracle
  • scripts to take listener.log backup Linux/Unix
  • setting prompt display with .profile Linux/Unix
  • Nice notes on wait events Oracle
  • column level grant syntax Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Error Handling in Proc Oracle
  • move_arch_files.ksh Linux/Unix
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • find checksum of a file. Linux/Unix
  • TRUNCATE table and disabling referential constraints. Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • dbms_job.submit example Oracle
  • proper cpu stats Linux/Unix

Category: 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

compile_inv.sql

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

set pages 1000 spool compile_inv select ‘alter ‘ || object_type || ‘ ‘ || object_name || ‘ compile; ‘ from user_objects where status = ‘INVALID’; spool off

Oracle, SQL scripts

Changing unix system clock when Oracle database is running.

Posted on 01-Aug-2005 By Admin No Comments on Changing unix system clock when Oracle database is running.

Q: How does changing the system clock effect Oracle?? specifically, point in time recovery?? Is it different with V6 and Oracle7?? A: Changing the system clock should really have no effect on the Oracle kernel until it comes time to do time-based media recovery. Both in V6 and V7 there may be problems if you…

Read More “Changing unix system clock when Oracle database is running.” »

Oracle, SQL scripts

online_ts_bkup.sql

Posted on 29-Jul-2005 By Admin No Comments on online_ts_bkup.sql

set serveroutput on execute dbms_output.enable(20000); declare cursor c1 is select distinct tablespace_name from dba_data_files order by tablespace_name; cursor c3 is select name from v$controlfile order by name; cursor c4 is select member from v$logfile order by member; staging_copy_area varchar2(100) := ‘10.201.43.51:/uocdb1/oradata/CIF’; begin for cur in c1 loop dbms_output.put_line (‘alter tablespace ‘ || cur.tablespace_name || ‘…

Read More “online_ts_bkup.sql” »

Oracle, SQL scripts

arch_configUOCIOTTO.ora

Posted on 29-Jul-2005 By Admin No Comments on arch_configUOCIOTTO.ora

# # File – arch_configUOCIOTTO.ora # # Modification History – # log_archive_format = arch%t_%r_%s.arc log_archive_dest = /IOTTOARCH

Oracle, SQL scripts

configUOCIOTTO.ora

Posted on 29-Jul-2005 By Admin No Comments on configUOCIOTTO.ora

# # File – configUOCIOTTO.ora # # Modification History – # control_files=(/uocdb1/oradata/UOCIOTTO/controlUOCIOTTO_01.ctl, /uocdb2/oradata/UOCIOTTO/controlUOCIOTTO_02.ctl, /uocdb3/oradata/UOCIOTTO/controlUOCIOTTO_03.ctl) background_dump_dest=/opt/app/oracle/admin/UOCIOTTO/bdump core_dump_dest=/opt/app/oracle/admin/UOCIOTTO/cdump user_dump_dest=/opt/app/oracle/admin/UOCIOTTO/udump db_block_size = 8192 db_name = UOCIOTTO

Oracle, SQL scripts

initUOCIOTTO.ora

Posted on 29-Jul-2005 By Admin No Comments on initUOCIOTTO.ora

# # File – initUOCIOTTO.ora # Modification History – # ifile =/opt/app/oracle/admin/UOCIOTTO/pfile/configUOCIOTTO.ora ifile =/opt/app/oracle/admin/UOCIOTTO/pfile/arch_configUOCIOTTO.ora cursor_sharing=SIMILAR open_cursors=3000 session_cached_cursors=10 sga_target=1610612736 #sga_max_size=3145728000 db_cache_advice=OFF db_file_multiblock_read_count=8 db_files=500 db_writer_processes=1 disk_asynch_io=TRUE fast_start_mttr_target=0 pga_aggregate_target=848297984 log_buffer=5120000 open_links=10 optimizer_mode=FIRST_ROWS optimizer_dynamic_sampling=0 processes=2000 undo_management=AUTO undo_tablespace=UNDOTBS1 remote_login_passwordfile=EXCLUSIVE compatible=10.1.0.2.0 db_domain=” job_queue_processes=10 #—————————————————————

Oracle, SQL scripts

Jai Shree Ram

Posted on 29-Jul-2005 By Admin No Comments on Jai Shree Ram

God Bless All………..

Oracle, SQL scripts

Jai Shree Ram

Posted on 29-Jul-2005 By Admin No Comments on Jai Shree Ram

God Bless All………..

Oracle, SQL scripts

Posts pagination

Previous 1 … 33 34 35 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
  • Renaming Global Name GLOBAL_NAME Oracle
  • Index Range Scan Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • Find all users who have DML privileges Oracle
  • longtx.sql Oracle
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • My Minimum Tuning Programs Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme