Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Deleting first line and lastline of a file using sed Linux/Unix
  • sqlnet.ora paramters Oracle
  • myfile Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • proper cpu stats Linux/Unix
  • Read CSV file using PySpark Python/PySpark
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • All Hints for Oracle Databases Oracle
  • Exadata Basics Oracle
  • secure crt settings Linux/Unix
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • move_arch_files.ksh Linux/Unix
  • sesswait.sql Oracle
  • Formatter Explain plan Output 1 Oracle
  • Implementing Listener Security 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

  • 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
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • proper cpu stats Linux/Unix
  • Getting started with notebook Python/PySpark
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Oracle Release Explaination Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Space padding in korn shell Linux/Unix
  • exp syntax in oracle 10g Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme