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

📄 dbcheck.sh

📁 watchdog source watchdog source
💻 SH
字号:
#!/bin/sh## check if ORACLE database instance is still reacting to ping requests### name of the instance (must be defined in tnsnames.ora)#DATABASE=$1## check the state:# tnsping returns 0 on success, otherise the return value is 1#tnsping $DATABASE > /dev/null 2>&1result=$?if [ $result -ne 0 ]then##	obviously there is no system error code for this#	so we have to create our own (system codes are > 0): -2.#	note that -1 means reboot#	result=-2fiexit $result

⌨️ 快捷键说明

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