SP2-0103: Nothing in SQL buffer to run.
今天在測試指令碼的時候發現一個告警資訊:
[oracle@RACDB01 scripts]$ ./sendmail.sh
上次行數:11813
本次行數:11833
檢測到錯誤,發郵件
SP2-0103: Nothing in SQL buffer to run. SP2-0103: Nothing in SQL buffer to run. SP2-0103: Nothing in SQL buffer to run. SP2-0103: Nothing in SQL buffer to run. SP2-0103: Nothing in SQL buffer to run. PL/SQL procedure successfully completed.
雖然,儲存過程也能執行成功,但是看到這樣的訊息總感覺怪怪的。
檢查指令碼,發現shell中呼叫sqlplus的地方,有註釋的地方:
原來shell:
......
echo "檢測到錯誤,發郵件"
#cat ./mailinfo|mutt -s "192.168 alert中出現ORA錯誤,請檢查" $mail_list
result=`sqlplus -S system/admin <
//execute send_mail('$mail_list','192.168.66.10 racdb1+$mailflag','$mailcontent');
exec PROCSENDEMAIL('$mailcontent','$ip_address $oraclesid $mailflag','test01@tinghai.org','oracle@tinghai.com','192.168.66.9',25,1,'test01','111111','/home/oracle/scripts/error.txt','bit 7');
exit
EOF`
echo $result;
......
調整後shell:
......
echo "檢測到錯誤,發郵件"
#cat ./mailinfo|mutt -s "192.168 alert中出現ORA錯誤,請檢查" $mail_list
result=`sqlplus -S system/admin <
exec PROCSENDEMAIL('$mailcontent','$ip_address $oraclesid $mailflag','test01@tinghai.org','oracle@tinghai.com','192.168.66.9',25,1,'test01','111111','/home/oracle/scripts/error.txt','bit 7');
exit
EOF`
echo $result;
......
去掉註釋行,執行不再提示告警。
[oracle@RACDB01 scripts]$ ./sendmail.sh
上次行數:11813
本次行數:11833
檢測到錯誤,發郵件
PL/SQL procedure successfully completed.
[oracle@RACDB01 scripts]$ ./sendmail.sh
上次行數:11813
本次行數:11833
檢測到錯誤,發郵件
SP2-0103: Nothing in SQL buffer to run. SP2-0103: Nothing in SQL buffer to run. SP2-0103: Nothing in SQL buffer to run. SP2-0103: Nothing in SQL buffer to run. SP2-0103: Nothing in SQL buffer to run. PL/SQL procedure successfully completed.
雖然,儲存過程也能執行成功,但是看到這樣的訊息總感覺怪怪的。
檢查指令碼,發現shell中呼叫sqlplus的地方,有註釋的地方:
原來shell:
......
echo "檢測到錯誤,發郵件"
#cat ./mailinfo|mutt -s "192.168 alert中出現ORA錯誤,請檢查" $mail_list
result=`sqlplus -S system/admin <
exec PROCSENDEMAIL('$mailcontent','$ip_address $oraclesid $mailflag','test01@tinghai.org','oracle@tinghai.com','192.168.66.9',25,1,'test01','111111','/home/oracle/scripts/error.txt','bit 7');
exit
EOF`
echo $result;
......
調整後shell:
......
echo "檢測到錯誤,發郵件"
#cat ./mailinfo|mutt -s "192.168 alert中出現ORA錯誤,請檢查" $mail_list
result=`sqlplus -S system/admin <
exit
EOF`
echo $result;
......
去掉註釋行,執行不再提示告警。
[oracle@RACDB01 scripts]$ ./sendmail.sh
上次行數:11813
本次行數:11833
檢測到錯誤,發郵件
PL/SQL procedure successfully completed.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/751371/viewspace-1064164/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- IMP-00032: SQL statement exceeded buffer lengthSQL
- man -k : nothing appropriate.APP
- 2021 年終總結 | all in or nothing
- Ubuntu:make: Nothing to be done for `all' 解決方法Ubuntu
- Scala中None, Nil, Nothing的區別None
- Nothing lasts forever, Even cold November rainASTAI
- 某條sql的buffer gets 的歷史月度變化SQL
- IO之核心buffer----"buffer cache"
- Freetype 安裝時提示 make: Nothing to be done for `unix'
- scala中的option[T]、Any、Nothing、Null和NilNull
- protocol bufferProtocol
- Shared Everything和share-nothing區別
- 0、""(空字串)、Null、Empty、與 Nothing 的區別 (轉)字串Null
- SQL Server 2014新特性探祕(2)-SSD Buffer Pool ExtensionSQLServer
- 【sql調優之執行計劃】merge join cartesian and buffer sortSQL
- 【BUFFER】Oracle buffer cache之 latch 學習記錄Oracle
- Windows下啟動Solr報錯:Nothing to start,exiting...WindowsSolr
- Java NIO - BufferJava
- JAVA NIO BufferJava
- gc buffer busyGC
- Oracle Data BufferOracle
- Buffer Cache 原理
- MySQL Join BufferMySql
- cache buffer chainAI
- Export Parameter : BufferExport
- Buffer和Channel
- [20211202]完善d_buffer.sql指令碼.txtSQL指令碼
- SQL SERVER Buffer Pool緩衝池裡面修改過的頁總數大小SQLServer
- Buffer Cache以及buffer busy waits/gc相關事件AIGC事件
- buffer cache實驗7-buffer busy waits-完成AI
- buffer cache實驗8-free buffer waits-完成AI
- Ask Hoegh(5)——buffer cache和buffer有什麼區別?
- Protocol Buffer 使用指北Protocol
- 14.6.5 Doublewrite buffer
- TarsGo支援Protocol BufferGoProtocol
- TarsGo 支援 protocol bufferGoProtocol
- Java NIO之BufferJava
- Mysql Key Buffer SizeMySql