ifconfig not found

For configuring linux I found that ifconfig did not work, found that on my centos environment (minimal setup) it was easy to simply yum install net-tools as long as the yum repos are setup properly you should be able to download this and install

TAR Commands

This should go into the Linux_common.ksh library file [code language=”sql”] cr_tar_apex_common() { # Create the tar file tar -cvf /oracle/admin/scripts/mrc/apex_common_09062017.tar /oracle/admin/scripts/apex/*.ksh /oracle/admin/scripts/dba120/apex6 } [/code] tar –help Examples: # Create archive.tar from files foo and bar. tar -cf archive.tar foo bar # List all files in archive.tar verbosely. tar -tvf archive.tar # Extract all files from […]

SCP Info.

scp <filename> oracle@<hostname>:/directory1/directory2 if necessary ls -al |grep ‘^d’ – shows just the directories, need to put this into the alias of commands scp -r * oracle@mrctest:/oracle/admin/scripts – This will copy current folder and subdirectory under it   scp -rp * oracle@mrctest:/oracle/admin/scripts – This will copy current folder and subdirectory under it  

Linux Quick Finds

Finding Large Directories look for large files with this command: find . -type f -size +100000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ This looks for files over 100MB, but other than datafiles there were very few files found. I knew I needed to look for large directories. […]

Oracle11gR2 Linux install

This should be found in linux_common.ksh Preinstall requirements: Minimum RAM requirement: 1.5 GB for GRID Infrastructure and 2.5GB for GI plus RAC you can verify easily by: [code language=”sql”] # grep memTotal /proc/meminfo [/code] For Swap space checking [code language=”sql”] # grep SwapTotal /proc/meminfo [/code] For disk temp space [code language=”sql”] # df -h /tmp […]