Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Parallel DML Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • Find_table_size.sql Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • OEM-Commnds Oracle
  • load SPM baseline from cursor cache Oracle
  • Clean up Oracle
  • perf_today.sql Oracle
  • v$event_name Oracle
  • move_arch_files.ksh Linux/Unix
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Alter procedure auditing Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • CPU speed on solaris Linux/Unix

Disbaling DBA_SCHEDULER_JOBS

Posted on 21-Feb-2006 By Admin No Comments on Disbaling DBA_SCHEDULER_JOBS

select job_name, state from dba_scheduler_jobs SQL> execute DBMS_SCHEDULER.DISABLE(‘GATHER_STATS_JOB’); PL/SQL procedure successfully completed. SQL> execute DBMS_SCHEDULER.DISABLE(‘PURGE_LOG’); PL/SQL procedure successfully completed. SQL> commit; Commit complete. SQL>

Oracle, SQL scripts

Directory wise folder wise space usage

Posted on 07-Feb-2006 By Admin No Comments on Directory wise folder wise space usage

find . -type d -exec du -sk {} ;

Linux/Unix, shell

To check whether standby is recovering properly or not??

Posted on 03-Feb-2006 By Admin No Comments on To check whether standby is recovering properly or not??

– Check Alert.log of standby server.

Oracle, rman-dataguard

sid_wise_sql.sql Further explaination

Posted on 31-Jan-2006 By Admin No Comments on sid_wise_sql.sql Further explaination

After getting output from sid_wise_sql.sql, you can use TOP unix command to see whether those unix processes are consuming some CPU or Memory?? This will be useful to detelrmine whether a session is doing somehing or just hanging..

Oracle, SQL scripts

Roles and Stored Procs II

Posted on 31-Jan-2006 By Admin No Comments on Roles and Stored Procs II

Problem Resolution For roles and Stored Procedures. http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:961430030094 http://asktom.oracle.com/~tkyte/Misc/RolesAndProcedures.html As per http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:961430030094 with tom kyte, he has mentioned that we cannot compile this unless we give direct object privs to Owner of procedure, as at compile time AUTHID DEFINER and AUTHID CURRENT_USERS behave same. They both compile as per the definers privs. We can resolve…

Read More “Roles and Stored Procs II” »

Oracle, SQL scripts

Identical Dblink Issue…

Posted on 30-Jan-2006 By Admin No Comments on Identical Dblink Issue…

After discussion with The Oracle Support following is the conclusion. This appears to be the same problem as discussed in the following note and bug report: – Note:215123.1 “Procedures Get Invalidated When Database Link Names are Identical” – Bug:2485372 “OBJECTS SHARED SAME REMOTE OBJECT NAME INVALIDATES EACH OTHER” The conclusion is that this is working…

Read More “Identical Dblink Issue…” »

Oracle, SQL scripts

How to check current redo log progress redo_progress.sql

Posted on 30-Jan-2006 By Admin No Comments on How to check current redo log progress redo_progress.sql

select le.leseq “Current log sequence No”, 100*cp.cpodr_bno/le.lesiz “Percent Full”, cp.cpodr_bno “Current Block No”, le.lesiz “Size of Log in Blocks” from x$kcccp cp, x$kccle le where LE.leseq =CP.cpodr_seq and bitand(le.leflg,24)=8;

Oracle, SQL scripts

sid_wise_sql.sql

Posted on 30-Jan-2006 By Admin No Comments on sid_wise_sql.sql

accept u_name prompt ‘Enter User Name (Enter NONE if want SID specific query): ‘ accept s_id prompt ‘Enter SID (Enter 0 for Userspecific Query): ‘ select a.sid, b.sql_text, a.sql_id, c.spid, b.executions, b.disk_reads, b.elapsed_time, b.cpu_time, b.buffer_gets from v$session a, v$sqlarea b, v$process c where a.sql_id = b.sql_id(+) and (a.username = upper(‘&u_name’) or a.sid = &s_id )…

Read More “sid_wise_sql.sql” »

Oracle, SQL scripts

All About Trace Fils

Posted on 26-Jan-2006 By Admin No Comments on All About Trace Fils

********************************************* ***** (1) TOOLS TO ANALYZE TRACE FILES. ***** ********************************************* Mainly 2 tools to analyze trace files. (A) tkprof (B) trcsess (from oracle 10g). This tool has been designed to deal with the new trace facilities that allow trace to be identified based on client identifier or by a combination of service name / module…

Read More “All About Trace Fils” »

Oracle, SQL scripts

Korn Shell Arithmatic

Posted on 23-Jan-2006 By Admin No Comments on Korn Shell Arithmatic

Method 1 ======== One more way of adding two numbers. Which one to use depends on which shell it is. d=400 e=52 f=`expr $d + $e` print $f Method 2 ======== #!/usr/bin/ksh let a=$1 let b=$2 let c=a+b print $c

Linux/Unix, shell

Posts pagination

Previous 1 … 38 39 40 … 56 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
  • move_arch_files.ksh Linux/Unix
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Jai Shree Ram Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • create user with unlimited quota Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • pvm_pre_change.sql Oracle
  • ipcs -l Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme