Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Database link password in user_db_links Oracle
  • Sequence Resetting Oracle
  • configUOCIOTTO.ora Oracle
  • note id 373303.1 Linux/Unix
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • proc.sql Oracle
  • .profile Linux/Unix
  • ORACLE_SID in sqlplus Oracle
  • Roles and Stored Procs II Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • newupload.html PHP/MYSQL/Wordpress
  • Set Role explaination. Oracle
  • Find Plan Hash value fphv.sql Oracle
  • sql_doing_fts.sql Oracle
  • Generating XML from SQLPLUS Oracle

Category: Linux/Unix

Which environment is used by currently running process ( Very good)

Posted on 22-May-2009 By Admin No Comments on Which environment is used by currently running process ( Very good)

Goal After a process has been started, in order to find out the environment that was used to start it, the following methods can be used, depending on the OS platform: Solution 1. Determine the pid of the process at OS level, eg for the smon process: ps -ef | grep smon 2. Get the…

Read More “Which environment is used by currently running process ( Very good)” »

Linux/Unix, shell

tar and untar a dolder with all its subfolder.

Posted on 19-May-2009 By Admin No Comments on tar and untar a dolder with all its subfolder.

Following command will be used for Tarring/copying local files and untarring/extracting at target folder. $ tar cf – * | ( cd /target; tar xfp -)

Linux/Unix, shell

secure crt settings

Posted on 04-May-2009 By Admin No Comments on secure crt settings

Copy on Select The Copy on select feature allows you to speed up the process of copying text from the terminal screen to the Clipboard. If this feature is enabled, text is copied to the Clipboard as soon as it is selected. To enable/disable the Copy on select feature: 1. Select the Terminal category in…

Read More “secure crt settings” »

Linux/Unix, shell

scp with ssh2

Posted on 24-Apr-2009 By Admin No Comments on scp with ssh2

scp -p -o ‘protocol 2’ SOURCE_FILE TARGET_HOST:TARGET_FILE

Linux/Unix, shell

Running some SQL on multiple databases connecting using monitoring userid and password

Posted on 08-Feb-2009 By Admin No Comments on Running some SQL on multiple databases connecting using monitoring userid and password

==>cat tns_entry_list DB1 Db2 Db3 db4 ==>cat find_max_dbfs.ksh #!/bin/ksh for tns_entry in `cat tns_entry_list` do echo “–” echo “——— TNS ENTRY ${tns_entry} ———-” /oracle/app/oracle/product/9.2.0.8/bin/sqlplus monioring_user/monitoring_password@${tns_entry} cat find_max_dbfs.sql set lines 120 pages 200 col “-?db_files_value” format a20 col “MAXDATAFILES” format 9999999999999999 col “USED MAXDATAFILES” format 99999999999999 select ‘-?’ || x.value as “-?db_files_value”, y.records_total “MAXDATAFILES”, y.records_used “USED…

Read More “Running some SQL on multiple databases connecting using monitoring userid and password” »

Linux/Unix, shell

Adding addidional hard drive and attach it to a linux box.

Posted on 25-Dec-2008 By Admin No Comments on Adding addidional hard drive and attach it to a linux box.

1) Add hard drive in vmware console. Select any SCSE disk type. 2) From vmware itself you will know that what will its sd number. like will it be sda,sdb.. or sdz. 3) start virtual machine and do the following as root: # fdisk /dev/sdg1 Here create a primary partition and write partition table. now…

Read More “Adding addidional hard drive and attach it to a linux box.” »

Linux/Unix, shell

shutdown linux

Posted on 14-Dec-2008 By Admin No Comments on shutdown linux

shutdown -h now

Linux/Unix, shell

Processes parameter and its dependencies on OS kernel parameters

Posted on 19-Nov-2008 By Admin No Comments on Processes parameter and its dependencies on OS kernel parameters

At this time in 800P, we are having following parameter set. NAME TYPE VALUE ———————————— ———– —————————— processes integer 3500 sessions integer 9000 The main parameter is “processes” parameter as it depends upon the # of semaphores in the system. This parameter depends upon followng kernel values. nproc – Maximum number of processes that can…

Read More “Processes parameter and its dependencies on OS kernel parameters” »

Linux/Unix, shell

Nice Article about semaphores and init.ora Processes parameter relations

Posted on 19-Nov-2008 By Admin No Comments on Nice Article about semaphores and init.ora Processes parameter relations

metalink note: 15566.1 PURPOSE Shared memory and semaphores are two important resources for an Oracle instance on Unix. An instance cannot start if it is unable to allocate what it needs. This paper primarily discusses the process Oracle goes through to allocate shared memory and semaphores at instance startup. Other important points unrelated to startup…

Read More “Nice Article about semaphores and init.ora Processes parameter relations” »

Linux/Unix, shell

default permission on ~/.ssh/authorized_keys2 or authorized_keys

Posted on 03-Nov-2008 By Admin No Comments on default permission on ~/.ssh/authorized_keys2 or authorized_keys

The permission on this file must be 600. else even after changing the authorized keys you will be asked for password authentications.

Linux/Unix, shell

Posts pagination

Previous 1 … 3 4 5 … 15 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
  • Find Command Linux/Unix
  • Parallel DML Oracle
  • How to know current SID Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • Generating XML from SQLPLUS Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme