code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/ksh
PATH=$PATH:/home/oracle/scripts ; export PATH
MSG_LOG=/oracle/backup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=LTOBackup ; export JOBNAME
# Set the current month day and year.
month=`date +%m`
day=`date +%d`
year=`date +%Y`
# Add 0 to month. This is a
# trick to make month an unpadded in... | Shell |
#!/bin/sh
#-----------
#Collect the Disk Usage Info.
#-----------
MYLOG=/home/oracle/log/diskUsage.log
echo '------------------------------------' >>$MYLOG
echo `date +%Y%m%d` >>$MYLOG
echo '------------------------------------' >>$MYLOG
df -m >>$MYLOG
echo '/n' >>$MYLOG
| Shell |
#!/bin/ksh
echo "Please input the DATE of Backup!!"
echo "The Date format is: yyyymmdd"
echo "Press enter directly is to show Today's Backup logs"
read MYDATE
TEST=mytest$MYDATE
MYYEAR=`expr substr "$MYDATE" 3 2`
MYMONTH=`expr substr "$MYDATE" 5 2`
MYDAY=`expr substr "$MYDATE" 7 2`
if [ $TEST = myte... | Shell |
#!/bin/sh
#MYENV=`grep ora_prd /etc/passwd|awk -F: '{print $6}'`
sqlplus monitor/monitor@${ORACLE_SID} << EOF >/dev/null
@/home/oracle/scripts/checkT.sql
EOF
cat /home/oracle/scripts/tablespace.txt|grep -v rows|awk 'BEGIN {print "TABLESPACE_NAME MAX_SPACE SUM_BLOCKS USED_SPACE USED_RATE(%) FREE_SPACE(M)\n---------... | Shell |
#!/bin/sh
df -g|grep -v Filesystem >df.txt
cat /home/monitor/df.txt|grep -v rows|awk 'BEGIN {print "Filesystem GB blocks Free %Used Iused %Iused Mounted on"} {if (substr($4,1,3)> 65) print $0 }'
rm /home/monitor/df.txt
exit 0
| Shell |
#!/bin/ksh
TZ=TZ+24
RmanLOG=/home/oracle/scripts/rmanlog_`date +%Y%m%d`.log
if [ -f $RmanLOG ]
then
cat $RmanLOG | grep -v "archive log filename" >/tmp/rmanbackup.log
TEST1=`grep -c "Recovery Manager complete" /tmp/rmanbackup.log`
LineEnd=`sed -n '/Finished backup/=' /tmp/rmanbackup.log`
set -A LineNu... | Shell |
#!/bin/sh
MYENV=`grep oracle /etc/passwd|awk -F: '{print $6}'`
for loop in $MYENV
do
cd $loop
. .profile
echo $ORACLE_SID
sqlplus monitor/monitor@$ORACLE_SID << EOF >/dev/null
#sqlplus /nolog << EOF
@/home/monitor/checkT.sql
exit
EOF
cat /home/monitor/tablespace.txt|grep -v rows|awk 'BEGIN {print "TABLE... | Shell |
#!/bin/ksh
echo "Please input the DATE of Backup!!"
echo "The Date format is: yyyymmdd"
echo "Press enter directly is to show Today's Backup logs"
read MYDATE
TEST=mytest$MYDATE
MYYEAR=`expr substr "$MYDATE" 1 4`
MYMONTH=`expr substr "$MYDATE" 5 2`
MYDAY=`expr substr "$MYDATE" 7 2`
if [ $TEST = myte... | Shell |
#!/bin/ksh
MYMONTH=`date +%m`
MYDAY=`date +%d`
MYLASTDAY=`expr $MYDAY - 2`
DAYSTAMP=${MYMONTH}${MYLASTDAY}
errpt -d H|grep -v IDENTIFIER|awk '{if (substr($2,1,4)>daystamp) print $0 }' daystamp=$DAYSTAMP >err.txt
MYCOUNT=`cat err.txt|wc -l`
if [[ $MYCOUNT -eq 0 ]];then
echo No Hardware error has found !
else
... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : FTP the backupSet to aybq74
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters : $1=FTP file
# Return Code : 0 = Normal End
# Comments :
#-----------------------------------... | Shell |
#!/bin/ksh
echo "Please input the DATE of Backup!!"
echo "The Date format is: yyyymmdd"
echo "Press enter directly is to show Today's Backup logs"
read MYDATE
TEST=mytest$MYDATE
MYYEAR=`expr substr "$MYDATE" 3 2`
MYMONTH=`expr substr "$MYDATE" 5 2`
MYDAY=`expr substr "$MYDATE" 7 2`
if [ $TEST = myte... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#------------------------------------... | Shell |
#!/bin/ksh
PATH=$PATH:/home/oracle/scripts ; export PATH
MSG_LOG=/oracle/backup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=LTOBackup ; export JOBNAME
# Set the current month day and year.
month=`date +%m`
day=`date +%d`
year=`date +%Y`
# Add 0 to month. This is a
# trick to make month an unpadded in... | Shell |
#!/bin/sh
PATH=$PATH:/home/ora10g/scripts ; export PATH
STATUS_DIR=/oracle/backup/BK_STATUS
BK_STATUS=/oracle/backup/log/BK_STATUS
MSG_LOG=/backup/MY10G/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=Rman_Backup ; export JOBNAME
ORACLE_SID=my10g; export ORACLE_SID
ORACLE_BASE=/ybq61/oracle; export OR... | Shell |
#!/bin/sh
# Obtain the Date Var
MYDATE=`date +%y%m%d`
MYYEST=`date -d yesterday +%y%m%d`
#----------------------------
# Zip the OHS Access Log
#----------------------------
cd /oracle/app/oracle/ohs1013/ohs/logs
FILE='access_log error_log ssl_request_log'
for LOOP in $FILE
do
cp -p $LOOP $LOOP$MYDATE
> $LOOP
zip -m $... | Shell |
#!/bin/ksh
# Set the current month day and year.
PATH=$PATH:/home/oracle/scripts ; export PATH
MSG_LOG=/oracle/backup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=LTOBackup ; export JOBNAME
month=`date +%m`
day=`date +%d`
year=`date +%Y`
# Add 0 to month. This is a
# trick to make month an unpadded int... | Shell |
#!/bin/sh
#-- set var ---------
export ORACLE_SID=PROD
export ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
SPOOL_FILE=/home/oracle/scripts/spool_tmp.txt
CUN_LOG=/home/oracle/log/concurrent.log
SQL_FILE=/home/oracle/scripts/concurrent.sql
#-----get concurrent info -----------
sq... | Shell |
#!/bin/sh
ORACLE_BASE=/oracle/app/oracle
export ORACLE_BASE
ORACLE_SID=PROD
export ORACLE_SID
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
PATH=$ORACLE_HOME/bin:$PATH
export PATH
AWRLOG=/home/oracle/awrrpt/AWR_`date +%Y%m%d`.html
s... | Shell |
#!/bin/sh
ORACLE_BASE=/oracle/app/oracle
export ORACLE_BASE
ORACLE_SID=PROD
export ORACLE_SID
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
PATH=$ORACLE_HOME/bin:$PATH
export PATH
AWRLOG=/home/oracle/awrrpt/AWR_`date +%Y%m%d`.html
s... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#--------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#--------------------------... | Shell |
#!/bin/sh
# Obtain the Date Var
MYDATE=`date +%y%m%d`
MYYEST=`date -d yesterday +%y%m%d`
#----------------------------
# Zip the OHS Access Log
#----------------------------
cd /oracle/app/oracle/ohs1013/ohs/logs
FILE='access_log error_log ssl_request_log'
for LOOP in $FILE
do
cp -p $LOOP $LOOP$MYDATE
> $... | Shell |
#!/bin/sh
# Obtain the Date Var
MYDATE=`date +%y%m%d`
MYYEST=`date -d yesterday +%y%m%d`
#----------------------------
# Zip the OHS Access Log
#----------------------------
cd /oracle/app/oracle/ohs1013/ohs/logs
FILE='access_log error_log ssl_request_log'
for LOOP in $FILE
do
cp -p $LOOP $LOOP$MYDATE
> $... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#--------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#--------------------------... | Shell |
#!/bin/sh
# Obtain the Date Var
MYDATE=`date +%y%m%d`
MYYEST=`date -d yesterday +%y%m%d`
#----------------------------
# Zip the OHS Access Log
#----------------------------
cd /oracle/app/oracle/ohs1013/ohs/logs
FILE='access_log error_log ssl_request_log'
for LOOP in $FILE
do
cp -p $LOOP $LOOP$MYDATE
> $... | Shell |
#!/bin/sh
# Obtain the Date Var
MYDATE=`date +%y%m%d`
MYYEST=`date -d yesterday +%y%m%d`
#----------------------------
# Zip the OHS Access Log
#----------------------------
cd /oracle/app/oracle/ohs1013/ohs/logs
FILE='access_log error_log ssl_request_log'
for LOOP in $FILE
do
cp -p $LOOP $LOOP$MYDATE
> $... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL,ORACLE and Shared file
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL,ORACLE and Shared file
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#------------------------... | Shell |
#!/bin/sh
#--------------
# Clean Core file & fdr file 3 days ago
#--------------
cd /oracle/app/siebel/siebsrvr/bin
find ./ -mtime +3 -name "core.*" -exec rm {} \;
find ./ -mtime +3 -name "T*.fdr" -exec rm {} \;
| Shell |
#!/bin/sh
#--------------
# Clean Core file & fdr file 3 days ago
#--------------
cd /oracle/app/siebel/siebsrvr/bin
find ./ -mtime +3 -name "core.*" -exec rm {} \;
find ./ -mtime +3 -name "T*.fdr" -exec rm {} \;
| Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL,ORACLE and Shared file
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#----------------------------------... | Shell |
#!/bin/ksh
PATH=$PATH:/home/oracle/scripts ; export PATH
STATUS_DIR=/oracle/backup/BK_STATUS
BKUP=/oracle/backup
LOG=/tmp/Backup.log
MSG_LOG=/oracle/backup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=Backup_LDAP ; export JOBNAME
DATE_FORMAT=`date +%Y%m%d`
RC_CHK()
{
RC=$1
NAME=$2
if [[ $RC != 0 ]]
t... | Shell |
#!/bin/ksh
PATH=$PATH:/home/oracle/scripts ; export PATH
STATUS_DIR=/oracle/backup/BK_STATUS
BKUP=/oracle/backup
LOG=/tmp/Backup.log
MSG_LOG=/oracle/backup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=Backup_LDAP ; export JOBNAME
DATE_FORMAT=`date +%Y%m%d`
RC_CHK()
{
RC=$1
NAME=$2
if [[ $RC != 0 ]]
t... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL,ORACLE and Shared file
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#----------------------------------... | Shell |
#!/bin/sh
#--------------
# Clean Core file & fdr file 3 days ago
#--------------
cd /oracle/app/siebel/siebsrvr/bin
find ./ -mtime +3 -name "core.*" -exec rm {} \;
find ./ -mtime +3 -name "T*.fdr" -exec rm {} \;
#---------------
# Convert the LDAP File
#---------------
cd /var/log
cp -p ldap.log ldap`date +%Y%m%d`... | Shell |
#!/bin/sh
#--------------
# Clean Core file & fdr file 3 days ago
#--------------
cd /oracle/app/siebel/siebsrvr/bin
find ./ -mtime +3 -name "core.*" -exec rm {} \;
find ./ -mtime +3 -name "T*.fdr" -exec rm {} \;
#---------------
# Convert the LDAP File
#---------------
cd /var/log
cp -p ldap.log ldap`date +%Y%m%d`... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Monitor the Main Scripts
# Created by : hartlen
# on : 2010.03.11
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#----------------------------------------... | Shell |
#!/bin/sh
diff=`date +%u`
echo $diff
echo
if [ $diff -gt 4 ]
then
dayago=`expr $diff - 4`
echo "Y"
else
dayago=`expr $diff + 3`
echo "N"
fi
echo $dayago
| Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Monitor the Main Scripts
# Created by : hartlen
# on : 2010.03.11
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#----------------------------------------... | Shell |
#!/bin/ksh
echo "Please input the DATE of Every Thursday!!"
echo "The Date format is: yyyymmdd"
echo "Press enter directly is to show Last Thursday's Backup logs"
read MYDATE
TEST=mytest$MYDATE
MYYEAR=`expr substr "$MYDATE" 3 4`
MYMONTH=`expr substr "$MYDATE" 5 2`
MYDAY=`expr substr "$MYDATE" 7 2`
d... | Shell |
#!/bin/ksh
echo "Please input the DATE of Backup!!"
echo "The Date format is: yyyymmdd"
echo "Press enter directly is to show Today's Backup logs"
read MYDATE
TEST=mytest$MYDATE
MYYEAR=`expr substr "$MYDATE" 3 4`
MYMONTH=`expr substr "$MYDATE" 5 2`
MYDAY=`expr substr "$MYDATE" 7 2`
if [ $TEST = myte... | Shell |
#!/bin/sh
diff=`date +%u`
echo $diff
echo
if [ $diff -gt 4 ]
then
dayago=`expr $diff - 4`
echo "Y"
else
dayago=`expr $diff + 3`
echo "N"
fi
echo $dayago
| Shell |
#!/bin/ksh
echo "Please input the DATE of Every Thursday!!"
echo "The Date format is: yyyymmdd"
echo "Press enter directly is to show Last Thursday's Backup logs"
read MYDATE
TEST=mytest$MYDATE
MYYEAR=`expr substr "$MYDATE" 3 4`
MYMONTH=`expr substr "$MYDATE" 5 2`
MYDAY=`expr substr "$MYDATE" 7 2`
d... | Shell |
#!/bin/ksh
echo "Please input the DATE of Backup!!"
echo "The Date format is: yyyymmdd"
echo "Press enter directly is to show Today's Backup logs"
read MYDATE
TEST=mytest$MYDATE
MYYEAR=`expr substr "$MYDATE" 3 4`
MYMONTH=`expr substr "$MYDATE" 5 2`
MYDAY=`expr substr "$MYDATE" 7 2`
if [ $TEST = myte... | Shell |
#!/bin/sh
PATH=$PATH:/home/oracle/scripts ; export PATH
LOG=/tmp/startdb.log
MSG_LOG=/oracle/newbackup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=Start_DB ; export JOBNAME
MSG_JOB S
sqlplus /nolog << EOF
connect / as sysdba
startup
exit
EOF
RC=$?
if [[ $RC != 0 ]]
then
MSG_JOB E "DB Start Failed"... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#------------------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Start the Informatica,DAC,and BIEE
# Created by : hartlen
# on : 2009.10.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#----------------------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Start the Informatica,DAC,and BIEE
# Created by : hartlen
# on : 2009.10.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#----------------------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#------------------------------------... | Shell |
#!/bin/sh
PATH=$PATH:/home/oracle/scripts ; export PATH
LOG=/tmp/startdb.log
MSG_LOG=/oracle/newbackup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=Start_DB ; export JOBNAME
MSG_JOB S
sqlplus /nolog << EOF
connect / as sysdba
startup
exit
EOF
RC=$?
if [[ $RC != 0 ]]
then
MSG_JOB E "DB Start Failed"... | Shell |
#!/bin/sh
PATH=$PATH:/home/oracle/scripts ; export PATH
LOG=/tmp/stopdb.log
MSG_LOG=/oracle/newbackup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=Stop_DB ; export JOBNAME
MSG_JOB S
lsnrctl stop
RC=$?
if [[ $RC != 0 ]]
then
MSG_JOB E "Listener Stop Failed"
exit 1
else
MSG_JOB I "Stop Listener Suc... | Shell |
#!/bin/sh
# Obtain the Date Var
MYDATE=`date +%y%m%d`
MYYEST=`date -d yesterday +%y%m%d`
#----------------------------
# Zip the OHS Access Log
#----------------------------
cd /oracle/app/oracle/ohs1013/ohs/logs
FILE='access_log error_log ssl_request_log'
for LOOP in $FILE
do
cp -p $LOOP $LOOP$MYDATE
> $LOOP
zip -m $... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Start the Informatica,DAC,and BIEE
# Created by : hartlen
# on : 2009.10.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#----------------------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#------------------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Start the Informatica,DAC,and BIEE
# Created by : hartlen
# on : 2009.10.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#----------------------------------------... | Shell |
#!/bin/ksh
#--------------------------------------------------------------
# Script Name : Backup the SIEBEL and ORACLE ROOT HOME
# Created by : hartlen
# on : 2009.09.15
# Updated by :
# on :
# Parameters :
# Return Code : 0 = Normal End
# Comments :
#------------------------------------... | Shell |
#!/bin/sh
# Obtain the Date Var
MYDATE=`date +%y%m%d`
MYYEST=`date -d yesterday +%y%m%d`
#----------------------------
# Zip the OHS Access Log
#----------------------------
cd /oracle/app/oracle/ohs1013/ohs/logs
FILE='access_log error_log ssl_request_log'
for LOOP in $FILE
do
cp -p $LOOP $LOOP$MYDATE
> $LOOP
zip -m $... | Shell |
#!/bin/sh
PATH=$PATH:/home/oracle/scripts ; export PATH
LOG=/tmp/stopdb.log
MSG_LOG=/oracle/newbackup/log/joblog_`date +%Y%m`.log ;export MSG_LOG
JOBNAME=Stop_DB ; export JOBNAME
MSG_JOB S
lsnrctl stop
RC=$?
if [[ $RC != 0 ]]
then
MSG_JOB E "Listener Stop Failed"
exit 1
else
MSG_JOB I "Stop Listener Suc... | Shell |
#!/bin/bash
cd /sbin/
if [ -n "$1" ]; then
eth_name=$1
else
eth_name="eth0"
fi
i=0
send_o=`ifconfig $eth_name | grep bytes | awk '{print $6}' | awk -F : '{print $2}'`
recv_o=`ifconfig $eth_name | grep bytes | awk '{print $2}' | awk -F : '{print $2}'`
send_n=$send_o
recv_n=$recv_o
while [ $i -l... | Shell |
#!/bin/bash
cd /sbin/
if [ -n "$1" ]; then
eth_name=$1
else
eth_name="eth0"
fi
i=0
send_o=`ifconfig $eth_name | grep bytes | awk '{print $6}' | awk -F : '{print $2}'`
recv_o=`ifconfig $eth_name | grep bytes | awk '{print $2}' | awk -F : '{print $2}'`
send_n=$send_o
recv_n=$recv_o
while [ $i -l... | Shell |
#!/bin/sh
ftpServer=172.31.0.85
ftpUserName=siebel
ftpPassword=siebel
ftpRemoteDir="ftp/local/inventoryreport"
ftpLocalDir="/home/siebel/ftp/local/inventory"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp_inv.log
downfilesTemp=/home/siebel/transfer_inv.ftp
echo "#------------- Download Inventory Data at :`date +"%... | Shell |
#!/bin/sh
logfile=/home/siebel/scripts/component.log
command=$1
cp=$2
tempfile=command.txt
defaultcomp=SMObjMgr_chs
defaultcmd=restart
srvrcmd="srvrmgr /g siebeltest /s siebeltest /e SBA_81 /u SADMIN /p SADMIN2"
envpath=". /siebel/app/siebel/siebsrvr/siebenv.sh"
configlist="configure list comp show CC_ALIAS,CP_DISP_RU... | Shell |
#!/bin/sh
ftpServer=172.31.0.13
ftpUserName=ftpuser01
ftpPassword=ftpuser0909
ftpRemoteDir="/home/siebel/ftp/server"
ftpLocalDir="/home/siebel/ftp/local"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp.log
downfilesTemp=/home/siebel/transfer.ftp
echo "#------------- Download at :`date +"%Y-%m-%d %H:%M:%S"`---------... | Shell |
. /siebel/app/siebel/siebsrvr/siebenv.sh
echo Generate Browser Scripts .......
genbscript /siebel/app/siebel/siebsrvr/bin/chs/market.cfg /siebel/app/siebel/sweapp/public/chs chs
echo Complie Browser Scripts Finished .!
start_server all
| Shell |
lan=$1
if [ "$lan" == "" ]
then
lan=chs
fi
sftp siebel@172.31.2.32:/app/siebel/siebsrvr/objects/${lan}/siebel_sia.srf /siebel/app/siebel/siebsrvr/objects/${lan}/
| Shell |
#!/bin/bash
cd /sbin/
if [ -n "$1" ]; then
eth_name=$1
else
eth_name="eth0"
fi
i=0
send_o=`ifconfig $eth_name | grep bytes | awk '{print $6}' | awk -F : '{print $2}'`
recv_o=`ifconfig $eth_name | grep bytes | awk '{print $2}' | awk -F : '{print $2}'`
send_n=$send_o
recv_n=$recv_o
while [ $i -le 100000 ]; do
... | Shell |
opmnctl startall
| Shell |
opmnctl stopall
| Shell |
#!/bin/sh
ftpServer=172.31.2.32
ftpUserName=siebel
ftpPassword=siebel
ftpRemoteDir="/app/siebel/siebsrvr/objects"
ftpLocalDir="/siebel/app/siebel/siebsrvr/objects"
logfile=/home/siebel/migrate/ftp.log
downfilesTemp=/home/siebel/migrate/transfer.ftp
currentDate=$(date +%Y%m%d)
echo
echo "#------------- Start Migrate... | Shell |
#! /bin/sh
###############################################################
#
# The script to invoke Siebel EIM job
#
##############################################################
cd /app/siebel/siebsrvr #path to you siebel installation
. ./siebenv.sh # setting up siebel enviornment
##########################... | Shell |
#!/bin/sh
ftpServer=172.31.0.85
ftpUserName=siebel
ftpPassword=siebel
ftpRemoteDir="ftp/local/sales"
ftpLocalDir="/home/siebel/ftp/local/sales"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp_sales.log
downfilesTemp=/home/siebel/transfersales.ftp
echo "#------------- Download Inventory Data at :`date +"%Y-%m-%d %H:... | Shell |
. /siebel/app/siebel/gtwysrvr/siebenv.sh
stop_ns
| Shell |
cd /siebel/app/siebel/siebsrvr/enterprises/SBA_81/siebeltest/log
file=`ls -tr |tail -n -1`
args=$1
more +/${args} ${file}
| Shell |
#!/bin/sh
. ./dbcon.sh
. /u01/app/siebel/siebsrvr/siebenv.sh
/u01/app/siebel/siebsrvr/bin/stop_server all
. /u01/app/siebel/gtwysrvr/siebenv.sh
/u01/app/siebel/gtwysrvr/bin/stop_ns
SIBPROC="watchdog|regss|mwrpcss|siebmtshmw|siebprocmw|siebmtsh|siebproc"
SIBUSER="siebel"
ps -fu $SIBUSER|egrep $SIBPROC |grep -v egre... | Shell |
#!/bin/sh
ftpServer=172.31.0.85
ftpUserName=siebel
ftpPassword=siebel
ftpRemoteDir="ftp/local/sales"
ftpLocalDir="/home/siebel/ftp/local/sales"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp_sales.log
downfilesTemp=/home/siebel/transfersales.ftp
echo "#------------- Download Inventory Data at :`date +"%Y-%m-%d %H:... | Shell |
#! /bin/sh
############################################################
#
# Backup/Recover Sechma Procedure from Oracle DataBase Package with SQLPLUS
#
###########################################################
echo -e "#---------------------- Import Sechma Process Start ------------------------#"
echo Start Execu... | Shell |
#! /bin/sh
###############################################################
#
# The script to invoke Siebel EIM job
#
##############################################################
cd /app/siebel/siebsrvr #path to you siebel installation
. ./siebenv.sh # setting up siebel enviornment
##########################... | Shell |
#! /bin/sh
############################################################
#
# Invoke Procedure from Oracle DataBase Package with SQLPLUS
#
###########################################################
logfile=importproduct.log
echo -e "#---------------------- PL/SQL Process Start ------------------------#" >> ${logfile}
... | Shell |
#!/bin/sh
#
# Migrate Repository To Target
#
###################
. /etc/profile
. ~/.bash_profile
##################
echo #--------------------------------- Start At $(date +"%Y/%m/%d %T") --------------------------------#
devphost=172.31.2.32
devpusername=siebel
devpsiebelroot=/app/siebel
siebelRoot=/siebel/app/s... | Shell |
#!/bin/sh
logfile=/home/siebel/scripts/component.log
command=$1
cp=$2
tempfile=command.txt
defaultcomp=SMObjMgr_chs
defaultcmd=restart
srvrcmd="srvrmgr /g siebeltest /s siebeltest /e SBA_81 /u SADMIN /p SADMIN2"
envpath=". /siebel/app/siebel/siebsrvr/siebenv.sh"
configlist="configure list comp show CC_ALIAS,CP_DISP_RU... | Shell |
#! /bin/sh
############################################################
#
# Backup/Recover Sechma Procedure from Oracle DataBase Package with SQLPLUS
#
###########################################################
echo -e "#---------------------- Copy Sechma Process Start ------------------------#"
echo Start Execute... | Shell |
#!/bin/sh
ftpServer=172.31.0.85
ftpUserName=siebel
ftpPassword=siebel
ftpRemoteDir="ftp/local/inventoryreport"
ftpLocalDir="/home/siebel/ftp/local/inventory"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp_inv.log
downfilesTemp=/home/siebel/transfer_inv.ftp
echo "#------------- Download Inventory Data at :`date +"%... | Shell |
#!/bin/bash
cd /sbin/
if [ -n "$1" ]; then
eth_name=$1
else
eth_name="eth0"
fi
i=0
send_o=`ifconfig $eth_name | grep bytes | awk '{print $6}' | awk -F : '{print $2}'`
recv_o=`ifconfig $eth_name | grep bytes | awk '{print $2}' | awk -F : '{print $2}'`
send_n=$send_o
recv_n=$recv_o
while [ $i -le 100000 ]; do
... | Shell |
#!/bin/sh
#
# Migrate Repository To Target
#
siebelRoot=/app/siebel/siebsrvr
currentDate=$(date +%Y%m%d)
# Load Env Var
cd $siebelRoot
. $siebelRoot/siebenv.sh
# Backup customer.dat file
cp ../dbsrvr/oracle/customer.dat ../dbsrvr/oracle/customer_${currentDate}.dat
# Execute Migrate Process
cd $... | Shell |
#!/bin/sh
ftpServer=172.31.0.13
ftpUserName=ftpuser01
ftpPassword=ftpuser0909
ftpRemoteDir="/home/siebel/ftp/server"
ftpLocalDir="/home/siebel/ftp/local"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp.log
downfilesTemp=/home/siebel/transfer.ftp
echo "#------------- Download at :`date +"%Y-%m-%d %H:%M:%S"`---------... | Shell |
#!/bin/sh
ftpServer=172.31.2.32
ftpUserName=siebel
ftpPassword=siebel
ftpRemoteDir="/app/siebel/siebsrvr/objects"
ftpLocalDir="/siebel/app/siebel/siebsrvr/objects"
logfile=/home/siebel/migrate/ftp.log
downfilesTemp=/home/siebel/migrate/transfer.ftp
currentDate=$(date +%Y%m%d)
echo
echo "#------------- Start Migrate... | Shell |
#! /bin/sh
############################################################
#
# Backup/Recover Sechma Procedure from Oracle DataBase Package with SQLPLUS
#
###########################################################
echo -e "#---------------------- Import Sechma Process Start ------------------------#"
echo Start Execu... | Shell |
. /siebel/app/siebel/siebsrvr/siebenv.sh
srvrmgr /g localhost /e SBA_81 /s siebeltest /u SADMIN /p SADMIN2
| Shell |
#!/bin/sh
ftpServer=58.213.19.139
ftpUserName=joyoung
ftpPassword=suningjoyoungsales
ftpRemoteDir="inventoryreport"
ftpLocalDir="/home/siebel/ftp/local/inventoryreport"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp_inv.log
downfilesTemp=/home/siebel/transfer_inv.ftp
echo "#------------- Download Inventory Data at... | Shell |
#!/bin/sh
logfile=/home/siebel/scripts/component.log
command=$1
cp=$2
tempfile=command.txt
defaultcomp=SSEObjMgr_chs
defaultcmd=restart
srvrcmd="srvrmgr /g siebelgtwy /s siebelapp1 /e SBA_81 /u SADMIN /p siebel2011915"
envpath=". /siebel/app/siebsrvr/siebenv.sh"
configlist="configure list comp show CC_ALIAS,CP_DISP_RU... | Shell |
siebelRoot=/siebel/app/siebsrvr
. ${siebelRoot}/siebenv.sh
echo Generate Browser Scripts .......
genbscript /siebel/app/siebsrvr/bin/chs/market.cfg /siebel/app/sweapp/public/chs chs
echo Complie Browser Scripts Finished .!
start_server all
| Shell |
#!/bin/sh
ftpServer=58.213.19.139
ftpUserName=joyoung
ftpPassword=suningjoyoungsales
ftpRemoteDir="inventoryreport"
ftpLocalDir="/home/siebel/ftp/local/inventory"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp.log
downfilesTemp=/home/siebel/transferinventory.ftp
echo "#------------- Download Inventory at :`date +"... | Shell |
#!/bin/sh
###################
. /etc/profile
. ~/.bash_profile
##################
# Remote Siebel Path
ftpServer=172.31.0.79
ftpUserName=siebel
ftpPassword=siebel
ftpRemoteDir="/siebel/app/siebel/siebsrvr/objects"
# Local Siebel Path
ftpLocalDir="/siebel/app/siebsrvr/objects"
# Restart Shell
startcmd="/home/siebe... | Shell |
#!/bin/sh
ftpServer=58.213.19.139
ftpUserName=joyoung
ftpPassword=suningjoyoungsales
ftpRemoteDir="/home/siebel/ftp/server"
ftpLocalDir="/home/siebel/ftp/local/sales"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp.log
downfilesTemp=/home/siebel/transfersales.ftp
echo "#------------- Download Sales at :`date +"%Y-%... | Shell |
cd /siebel/app/gtwysrvr/
. ./siebenv.sh
stop_ns
| Shell |
#!/bin/sh
ftpServer=58.213.19.139
ftpUserName=joyoung
ftpPassword=suningjoyoungsales
ftpRemoteDir="/home/siebel/ftp/server"
ftpLocalDir="/home/siebel/ftp/local/sales"
sCurrentDate=$1
logfile=/home/siebel/scripts/ftp.log
downfilesTemp=/home/siebel/transfersales.ftp
echo "#------------- Download Sales at :`date +"%Y-%... | Shell |
#! /bin/sh
############################################################
#
# Invoke Procedure from Oracle DataBase Package with SQLPLUS
#
###########################################################
logfile=importproduct.log
echo -e "#---------------------- PL/SQL Process Start ------------------------#" >> ${logfile}
... | Shell |
#!/bin/sh
logfile=/home/siebel/scripts/component.log
command=$1
cp=$2
tempfile=command.txt
defaultcomp=SSEObjMgr_chs
defaultcmd=restart
srvrcmd="srvrmgr /g siebelgtwy /s siebelapp1 /e SBA_81 /u SADMIN /p siebel2011915"
envpath=". /siebel/app/siebsrvr/siebenv.sh"
configlist="configure list comp show CC_ALIAS,CP_DISP_RU... | Shell |
#! /bin/sh
############################################################
#
# Backup/Recover Sechma Procedure from Oracle DataBase Package with SQLPLUS
#
###########################################################
echo -e "#---------------------- Copy Sechma Process Start ------------------------#"
echo Start Execute... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.