This project meant to provide useful scripts for DB maintance and management, to make work easier and interesting...
最近在開始把Oracle資料庫的腳本轉換成shell腳本,所以今天開始分享一下Oracle常用的一些腳本,後面不定期更新。這是第五部分~
use script settdb.sh for DB login details registry
1、showdb.sh
#!/bin/bash
echo "=================================================查看資料庫實例狀態和參數====================================================="
sqlplus -s $DB_CONN_STR@$SH_DB_SID <
輸出:./showdb.sh
2、showpack.sh
#!/bin/bash
echo "=================================================查看資料庫用戶$1的包信息====================================================="
PROC_OWNER=`sqlplus -silent $DB_CONN_STR@$SH_DB_SID <
輸出:./showpack.sh 用戶名
覺得有用的朋友多幫忙轉發哦!後面會分享更多devops和DBA方面的內容,感興趣的朋友可以關注下~