Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Restoring a user’s original password 1051962.101 Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • kill all processes from specific user in solaris. Linux/Unix
  • fuser to check who is using diretory Linux/Unix
  • To check whether standby is recovering properly or not?? Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Important Script Method for tuning Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • TRUNCATE Privs Oracle
  • db_status.sql Oracle

Author: Admin

backspace in SQL Plus not working then..?

Posted on 01-Sep-2009 By Admin No Comments on backspace in SQL Plus not working then..?

If you set “stty erase ^H” on unix prompt and it works fine on unix prompt. But not working on SQLPLUS then you need to put “stty erase ^H” in .kshrc file as following. -> pwd /home/oracle oem.localdomain:OEMDB:/home/oracle -> more .kshrc stty erase ^H oem.localdomain:OEMDB:/home/oracle ->

Linux/Unix, shell

Changing default shell

Posted on 01-Sep-2009 By Admin No Comments on Changing default shell

Following statement will be used to change default shell to /bin/ksh for oracle user. [root@oem ~]# chsh -s /bin/ksh oracle Changing shell for oracle. Shell changed. [root@oem ~]#

Linux/Unix, shell

Oracle 11g Environment Setup

Posted on 01-Sep-2009 By Admin No Comments on Oracle 11g Environment Setup

11g Environment Setting: ======================= —————————————————————– ==>cat .profile . /oracle/app/oracle/set_env_var_dba PS1=” `hostname`*${ORACLE_SID}-${PWD} ==>” EDITOR=vi; export EDITOR set -o vi stty erase PATH=$PATH:. dba() { cd /oracle/app/oracle/scripts/MAINT/DBA/bin } ———————————————————————————— ==>cat /oracle/app/oracle/set_env_var_dba # This File Sets all the Oracle Environment Variables and is called from # Each Users’s . profile file. # # Please Don’t change these settings…

Read More “Oracle 11g Environment Setup” »

Oracle, SQL scripts

New OFA for 11g

Posted on 25-Aug-2009 By Admin No Comments on New OFA for 11g

export INSTANCE_NAME=`echo $ORACLE_SID | tr ‘[:upper:]’ ‘[:lower:]’` export ORA_BDUMP=$ORACLE_HOME/admin/”$ORACLE_SID”_`hostname`/diag/rdbms/$INSTANCE_NAME/$ORACLE_SID/trace

Oracle, SQL scripts

Alter procedure auditing

Posted on 28-Jul-2009 By Admin No Comments on Alter procedure auditing

A common misconception is that the ‘audit any procedure’ is a privileges auditing option associated with the privilege ‘alter any procedure’ and thus does NOT cover the alteration of a procedure that is owned by the user altering it. Note that AUDIT PROCEDURE covers: CREATE FUNCTION CREATE LIBRARY CREATE PACKAGE CREATE PACKAGE BODY CREATE PROCEDURE…

Read More “Alter procedure auditing” »

Oracle, SQL scripts

EXTPROC

Posted on 23-Jul-2009 By Admin No Comments on EXTPROC

EXTPROC Scope and Application A list of the essential components for executing an external procedure is included below, along with a brief description of the role of each. Database: Responsible for storing any information required to locate and execute an external procedure (e.g. the location of shared library, number and types of arguments, etc.) Initiates…

Read More “EXTPROC” »

Oracle, SQL scripts

How to remove blank lines using vi editor command

Posted on 09-Jul-2009 By Admin No Comments on How to remove blank lines using vi editor command

use the following: :g/^$/d

Linux/Unix, shell

remove archfiles only when it is applied to DR rm_archfiles.sh

Posted on 08-Jul-2009 By Admin No Comments on remove archfiles only when it is applied to DR rm_archfiles.sh

echo “script execution starts at `date`” echo “COMFORT_SPACE=$COMFORT_SPACE” echo “ARCH_DEST=$ARCH_DEST” echo “ALERT_LOG=$ALERT_LOG” ARCH_SPACE=`df -k $ARCH_DEST | tail -1 | awk ‘{print $5}’ | sed ‘s/%//g’` echo “ARCH_SPACE=$ARCH_SPACE” STDBY_LAST_RECOVERED_FILE=`grep “Media ” $ALERT_LOG |grep -v grep|grep “arch” | tail -1 | sed -e ‘s#^.*/##g’ ` echo “STDBY_LAST_RECOVERED_FILE=$STDBY_LAST_RECOVERED_FILE” STDBY_LAST_RECOVERED_NUMBER=`grep “Media ” $ALERT_LOG |grep -v grep|grep “arch” | tail…

Read More “remove archfiles only when it is applied to DR rm_archfiles.sh” »

Linux/Unix, shell

remove archfiles only when it is applied to DR rm_archfiles.sh

Posted on 08-Jul-2009 By Admin No Comments on remove archfiles only when it is applied to DR rm_archfiles.sh

ARCH_DEST=$1 COMFORT_SPACE=$2 ALERT_LOG=$3 NOTIFY_LIST=dbaoracle@1800flowers.com

Linux/Unix, shell

remove archfiles only when it is applied to DR rm_archfiles.sh

Posted on 08-Jul-2009 By Admin No Comments on remove archfiles only when it is applied to DR rm_archfiles.sh

/oracle/scripts/rm_archfiles.sh “/db9/archlog” “90” “/oracle/admin/TESTDB/bdump/alert_TESTDB.log” #!/bin/sh RUNNING=`ps -ef|grep rm_archfiles.sh|grep -v grep|wc -l` if [ $RUNNING -gt 2 ] then echo “Exiting !!! Total $RUNNING occurence of rm_archfiles.sh are running at `date`” exit fi

Linux/Unix, shell

Posts pagination

Previous 1 … 11 12 13 … 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
  • shr1.sql for MTS or Shared server configuration Oracle
  • ORA-3136 Oracle
  • ORACLE_SID in sqlplus Oracle
  • Library cahe Latches and internal explaination Oracle
  • get_vmstat_solaris Oracle
  • Oracle Release Explaination Oracle
  • Kill a session dynanically using execute immediate Oracle
  • Oracle Identifiers Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme