I have to start saying, I just jump in DB2 world and this is my contribution to another beginners. The list of commands to start to use the DB2 engine. Global Use INSTHOME/sqllib/adm/db2licm -a filename register a DB2 license key by entering the db2licm -l c db2val validar instalacion db2level […]
Tag: script
There is no excerpt because this is a protected post.
Set of scripts to monitor a Informix’s Instance
#!/bin/bash function usage { echo -e “\t ${0} ” echo “” echo -e “donde : es la bases de datos ” # echo -e ” es el tipo de objeto ” # echo -e ” t – table ” echo -e ” es el nombre del objeto ” echo “” […]
#!/usr/bin/ksh ############################################## # # # Utileria para el respaldar dbs de db2 # # Jorge Ivan Contreras Pacheco # # ivan@contrerasmx.com # # v.1.0 16/12/2014 # # # ############################################## _OS=`uname -s` DB2HOME=/db2/db2inst1 if [ -f ${DB2HOME}/sqllib/db2profile ]; then . ${DB2HOME}/sqllib/db2profile fi case ${_OS} in Linux) CMD_ECHO=”echo -e ” CMD_LS_K=”ls –block-size […]
Some times, we need display a text file in reverse order, the next line makes this with perl. I test this script with linux and AIX. cat file | perl -e ‘print reverse ‘