Click here to Skip to main content
15,886,362 members
Home / Discussions / Database
   

Database

 
AnswerRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
USAFHokie8025-Apr-14 1:21
USAFHokie8025-Apr-14 1:21 
SuggestionRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
ZurdoDev25-Apr-14 1:27
professionalZurdoDev25-Apr-14 1:27 
AnswerRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
thatraja25-Apr-14 2:15
professionalthatraja25-Apr-14 2:15 
GeneralRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
USAFHokie8025-Apr-14 2:32
USAFHokie8025-Apr-14 2:32 
GeneralRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
thatraja25-Apr-14 2:48
professionalthatraja25-Apr-14 2:48 
GeneralRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
USAFHokie8025-Apr-14 2:57
USAFHokie8025-Apr-14 2:57 
GeneralRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
USAFHokie8025-Apr-14 2:59
USAFHokie8025-Apr-14 2:59 
GeneralRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
thatraja25-Apr-14 4:29
professionalthatraja25-Apr-14 4:29 
It's been long time ....Oracle, try different syntax like below
VB
cmd.CommandText = "{CALL StoredprocedureName()}"
OR
VB
cmd.CommandText = "BEGIN StoredprocedureName(); END;"



And are you using oracle "package" by any chance?

Because the stored procedure missing the declare keyword for cnt. Possbily you have declared the cnt inside the package & executed the stored procedure to see the output. It would work.

So if you have the stored procedure inside the package, you should mention(prefix) the package before the stored procedure in your code like below.
VB
cmd.CommandText = "PackageName.ProcedureName"

•I was using a older JDBC driver so after fixing the above error I was getting
org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; SQL [{ call PROC_GET_NEW_CHECK_NUMBER(?,?,?) }]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:44)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:100)
java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement

To fix this I upgraded my JDBC driver to the correct version that matches the Oracle installation. So in my case I used ojdbc6_11g_11_2_0_1.jar since my Oracle instance :Oracle 11.2.0.1.0
So you should use/reference the proper driver(dll) in your project. Verify both versions of assemblies
Oracle/PLSQL: ORA-00900[^]

GeneralRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
Simon_Whale25-Apr-14 3:28
Simon_Whale25-Apr-14 3:28 
GeneralRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
USAFHokie8025-Apr-14 3:37
USAFHokie8025-Apr-14 3:37 
AnswerRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
Jörgen Andersson25-Apr-14 3:23
professionalJörgen Andersson25-Apr-14 3:23 
AnswerRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
GuyThiebaut25-Apr-14 3:32
professionalGuyThiebaut25-Apr-14 3:32 
QuestionRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
GuyThiebaut29-Apr-14 4:21
professionalGuyThiebaut29-Apr-14 4:21 
AnswerRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
thatraja29-Apr-14 23:30
professionalthatraja29-Apr-14 23:30 
GeneralRe: Execute Oracle Procedure from VB.NET ORA-009000 error Pin
GuyThiebaut30-Apr-14 2:26
professionalGuyThiebaut30-Apr-14 2:26 
QuestionHow many types of lock exist in Sql server Pin
Tridip Bhattacharjee23-Apr-14 20:59
professionalTridip Bhattacharjee23-Apr-14 20:59 
AnswerRe: How many types of lock exist in Sql server Pin
Eddy Vluggen23-Apr-14 21:40
professionalEddy Vluggen23-Apr-14 21:40 
AnswerRe: How many types of lock exist in Sql server Pin
Corporal Agarn24-Apr-14 9:42
professionalCorporal Agarn24-Apr-14 9:42 
Questionconverter Pin
Member 1074305623-Apr-14 10:26
Member 1074305623-Apr-14 10:26 
AnswerRe: converter Pin
Mycroft Holmes23-Apr-14 12:49
professionalMycroft Holmes23-Apr-14 12:49 
QuestionINNER JOIN Pin
Syafiqah Zahirah23-Apr-14 8:26
Syafiqah Zahirah23-Apr-14 8:26 
AnswerRe: INNER JOIN Pin
Eddy Vluggen23-Apr-14 11:25
professionalEddy Vluggen23-Apr-14 11:25 
AnswerRe: INNER JOIN Pin
Andrius Leonavicius23-Apr-14 13:11
professionalAndrius Leonavicius23-Apr-14 13:11 
QuestionSQL statement Pin
Syafiqah Zahirah23-Apr-14 6:47
Syafiqah Zahirah23-Apr-14 6:47 
GeneralRe: SQL statement Pin
PIEBALDconsult23-Apr-14 6:56
mvePIEBALDconsult23-Apr-14 6:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.