![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
I'm at a total impasse. I have a stored function that returns a SYS_REFCURSOR. It works fine, I can call it in SQL*Plus and see the data that's been extracted. I'm trying to call it from Java: * * * *String spName; * * * *try * * * *{ * * * * * *getDBConnection(); * * * */* sets "dbConnection */ * * * * * *spName = "{ call ? := getReporterData(?) }"; * * * * * *sprocStmt = dbConnection.prepareCall(spName); * * * * * *sprocStmt.registerOutParameter(1, OracleTypes.CURSOR); sprocStmt.setString(2, key); * * * * * *sprocStmt.execute(); And I get ORA-00911 Invalid character. What invalid character? -- Tim Slattery Slatter... (AT) bls (DOT) govhttp://members.cox.net/slatteryt |
#7
| |||
| |||
|
|
I'm at a total impasse. I have a stored function that returns a SYS_REFCURSOR. It works fine, I can call it in SQL*Plus and see the data that's been extracted. I'm trying to call it from Java: * * * *String spName; * * * *try * * * *{ * * * * * *getDBConnection(); * * * */* sets "dbConnection */ * * * * * *spName = "{ call ? := getReporterData(?) }"; * * * * * *sprocStmt = dbConnection.prepareCall(spName); * * * * * *sprocStmt.registerOutParameter(1, OracleTypes.CURSOR); sprocStmt.setString(2, key); * * * * * *sprocStmt.execute(); And I get ORA-00911 Invalid character. What invalid character? -- Tim Slattery Slatter... (AT) bls (DOT) govhttp://members.cox.net/slatteryt |
#8
| |||
| |||
|
|
I'm at a total impasse. I have a stored function that returns a SYS_REFCURSOR. It works fine, I can call it in SQL*Plus and see the data that's been extracted. I'm trying to call it from Java: * * * *String spName; * * * *try * * * *{ * * * * * *getDBConnection(); * * * */* sets "dbConnection */ * * * * * *spName = "{ call ? := getReporterData(?) }"; * * * * * *sprocStmt = dbConnection.prepareCall(spName); * * * * * *sprocStmt.registerOutParameter(1, OracleTypes.CURSOR); sprocStmt.setString(2, key); * * * * * *sprocStmt.execute(); And I get ORA-00911 Invalid character. What invalid character? -- Tim Slattery Slatter... (AT) bls (DOT) govhttp://members.cox.net/slatteryt |
#9
| |||
| |||
|
|
I'm at a total impasse. I have a stored function that returns a SYS_REFCURSOR. It works fine, I can call it in SQL*Plus and see the data that's been extracted. I'm trying to call it from Java: * * * *String spName; * * * *try * * * *{ * * * * * *getDBConnection(); * * * */* sets "dbConnection */ * * * * * *spName = "{ call ? := getReporterData(?) }"; * * * * * *sprocStmt = dbConnection.prepareCall(spName); * * * * * *sprocStmt.registerOutParameter(1, OracleTypes.CURSOR); sprocStmt.setString(2, key); * * * * * *sprocStmt.execute(); And I get ORA-00911 Invalid character. What invalid character? -- Tim Slattery Slatter... (AT) bls (DOT) govhttp://members.cox.net/slatteryt |
#10
| |||
| |||
|
|
Tim Slattery (Slattery_T (AT) bls (DOT) gov) wrote: : I'm at a total impasse. I have a stored function that returns a : SYS_REFCURSOR. It works fine, I can call it in SQL*Plus and see the : data that's been extracted. I'm trying to call it from Java: : String spName; : try : { : getDBConnection(); /* sets "dbConnection */ : : spName = "{ call ? := getReporterData(?) }"; : : sprocStmt = dbConnection.prepareCall(spName); : sprocStmt.registerOutParameter(1, OracleTypes.CURSOR); : sprocStmt.setString(2, key); : sprocStmt.execute(); : And I get ORA-00911 Invalid character. What invalid character? What are the { } braces for in the SQL statement ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |