⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initialupdate

📁 java开源的企业总线.xmlBlaster
💻
字号:
#!/bin/shCMD=$1SID=$2FILE=$3SCHEMA=AISUSER=aisPWD=aisLOG=${HOME}/tmp/${CMD}.logif test "`echo -e xxx`" = "xxx" then   ECHO="echo -e"   BLACK_LTGREEN="\033[40;46m"   BLACK_RED="\033[30;41m"   BLACK_YELLOW="\033[40;43m"   ESC="\033[0m"else    ECHO=echofiif [ "${FILE}" = "" ] ; then   ${ECHO} "usage $0 exp|imp SID filename"   ${ECHO} "where 'filename' is the name of the file where to store the export of the db ${ESC}"   ${ECHO} "and exp is used for export and imp for import and SID is the SID of the database"   exit -1fiif [ "${CMD}" = "exp" ] ; then   CMDLINE="exp ${USER}/${PWD}@${SID} consistent=yes owner=${SCHEMA} file=${FILE} log=${LOG}"else   if [ "${CMD}" = "imp" ] ; then      CMDLINE="imp ${USER}/${PWD}@${SID} file=${FILE} fromuser=${SCHEMA} touser=${SCHEMA} ignore=y log=${LOG}"   else      ${ECHO} "usage $0 exp|imp SID filename"      ${ECHO} "where 'filename' is the name of the file where to store the export of the db ${ESC}"      ${ECHO} "and exp is used for export and imp for import (use either exp or imp)"      ${ECHO} "and SID is the SID of the database"      exit -1   fifiif [ "${ORACLE_HOME}" = "" ] ; then   LINE1="${BLACK_RED} The variable ORACLE_HOME is not set. Please set it to the path of your DB ${ESC}"   ERR="true"else    LINE1="${BLACK_LTGREEN} The variable ORACLE_HOME is set to ${ORACLE_HOME} ${ESC}"fiif [ "${ORACLE_SID}" = "" ] ; then   LINE2="${BLACK_RED} The variable ORACLE_SID is not set. Please set it to the path of your DB ${ESC}"   ERR="true"else   LINE2="${BLACK_LTGREEN} The variable ORACLE_SID is set to ${ORACLE_SID} ${ESC}"fiPATH=${ORACLE_HOME}/bin:${PATH}if [ "`which exp`" = "" ] ; then   LINE3="${BLACK_RED} Could not find the application 'exp' check it. It must be in the PATH ${ESC}\nCurrent PATH is\n' ${PATH}'"   ERR="true"else   LINE3=""fi${ECHO} ${LINE1}${ECHO} ${LINE2}${ECHO} ${LINE3}if [ "${ERR}" != "" ] ; then  exit -1fi${ECHO} "executing ${CMDLINE}"${CMDLINE}EXITCODE="`grep -ic unsuccessfully ${LOG}`"if [ "${EXITCODE}" = "0" ] ; then   ${ECHO} "${BLACK_LTGREEN} SUCCESS ${ESC}"  exit 0else   ${ECHO} "${BLACK_RED} FAILURE (Check your logs) ${ESC}"  exit ${EXITCODE}fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -