0
我在Centos 5.5上運行Oracle 11g。使用shell檢查Oracle的連接數
我想知道通過使用shell腳本到Orcl DB的連接數。 在shell腳本中:我想我會創建很多「連接」到數據庫,我會數它們。
示例腳本:
#!/bin/bash
count=0
c=1
while [ $c -le 100 ]
do
sqlplus/as sysdba << EOF
exit;
EOF
((c++))
((count++))
done
echo "**************************************"
echo $count
你能分享我的一些想法和解決方案?
已解決。我用c編程+ sqlapi解決(而不是bash shell - 對我來說很困難)。我測試了BenmarkFactory和我的script.c。這是一樣的。 – 2013-03-18 08:51:01