Results 1 to 6 of 6
Thread: Strange Problem
- 02-11-2010, 09:59 AM #1
Senior Member
- Join Date
- Mar 2009
- Location
- USA
- Posts
- 127
- Rep Power
- 0
Strange Problem
Is anyone here using OracleExpress10g edition for stored procedures.
You can't execute stored procedure in expression edition for some reasons.
runs well in SQL*plus.
CREATE OR REPLACE PROCEDURE Test
IS
BEGIN
DBMS_OUTPUT.PUT_LINE('Test!');
END;
EXEC Test;
Doesnt execute. throws error
ORA-00900: invalid SQL statement
WTF?
any suggestions..!
- 02-11-2010, 11:27 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
As far as I am aware the restrictions on express are a single external connection, and some db size limitation of a few Gb.
Be a bit useless if you couldn't run SPs...
Oh, and this has nothing to do with Java, does it?
- 02-11-2010, 11:28 AM #3
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
SQL*Plus has it's own language extensions over and above the SQL normally available, even in Oracle itself, and those extensions cannot, AFAIK, be used in a JDBC Statement. And, I believe that DBMS_OUTPUT stuff is one of those.
- 02-11-2010, 11:32 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Ohhhhh!
You're calling "EXEC Test" as some JDBC call?
Oh yes, you can't do that.
ETA: The create or replace should work. DBMS_OUTPUT is a valid PL/SQL package in all Oracle versions, at least as far back as anyone should have to go. JDBC won't care.
- 02-11-2010, 09:18 PM #5
Senior Member
- Join Date
- Mar 2009
- Location
- USA
- Posts
- 127
- Rep Power
- 0
NO...got nuthing to do with JDBC. Just a simple StoredProc trying to execute on ORacleXE.
I heard before it doesnt work...tried it...didnt work. So, i think it doesnt work.
- 02-12-2010, 07:46 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Similar Threads
-
Strange JSTL recordset result problem (Question)
By jeremy.wilson in forum JavaServer Pages (JSP) and JSTLReplies: 6Last Post: 01-07-2010, 06:04 PM -
strange swt exception
By ahmed.kotb in forum SWT / JFaceReplies: 0Last Post: 04-23-2009, 10:15 AM -
Urgent! Strange problem when calling jasper report from STRUTS
By sammes in forum Web FrameworksReplies: 0Last Post: 03-04-2009, 09:51 AM -
Strange problem
By Tamir in forum EclipseReplies: 1Last Post: 08-18-2008, 09:44 PM -
What is the answer to this strange problem:
By willemjav in forum New To JavaReplies: 5Last Post: 08-11-2008, 09:31 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks