Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id gABAQTF13563
 for <oracle-l@orafaq.net>; Mon, 11 Nov 2002 04:26:29 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id gABAQTX13558
 for <oracle-l@orafaq.net>; Mon, 11 Nov 2002 04:26:29 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id AAA10134;
 Mon, 11 Nov 2002 00:07:12 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 004FFD35; Sun, 10 Nov 2002 23:33:24 -0800
Message-ID: <F001.004FFD35.20021110233324@fatcity.com>
Date: Sun, 10 Nov 2002 23:33:24 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Savita <savita@india.hp.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Savita <savita@india.hp.com>
Subject: ORACLE-Function problem
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="------------A05CDAFE1888D639D3FBF0A4"
--------------A05CDAFE1888D639D3FBF0A4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi All,

I have a problem executing the function in oracle through JDBC.

I have written a select statement inside which I am calling a function.
The query is something like

select
OSP_CRM_EXCHANGE_CASE_VIEW.OS_CASE_ID  as CASE_MSG__OS_CASE_ID,
OSP_CRM_EXCHANGE_CASE_VIEW.OS_CUSTOMER_ID  as CASE_MSG__OS_CUSTOMER_ID,
OSP_CRM_EXCHANGE_CASE_VIEW.OS_CUSTOMER_ID  as CASE_MSG__OS_CUST_ID,
OSP_CRM_EXCHANGE_CASE_VIEW.OS_UNIT_ID  as CASE_MSG__OS_UNIT_ID,
OSP_CRM_EXCHANGE_CASE_VIEW.CREATED_DATE as CASE_MSG__CREATED_DATE,
'OS_1' as CASE_MSG__UPDATED_BY
FROM OSP_CRM_EXCHANGE_CASE_VIEW
WHERE
ROWNUM &lt;=(40 - OSP_CRM_EXCHANGE_getMaxDataId(2))
ORDER BY to_number(OSP_CRM_EXCHANGE_CASE_VIEW.OS_CASE_ID);

here OSP_CRM_EXCHANGE_getMaxDataId(2) is the function.

When I execute this query in command prompt Itis working fine,but when I use
it insied a executeQueryStatement(query) in JDBC I am getting following
error
ORA-00911: invalid character

I am not able to figure out how to modify this.

Any help will be highly appriciated.

--
Best Regards
- Savita
----------------------------------------------------
Hewlett Packard (India)
+91 80 2051288 (Phone)
847 1288 (HP Telnet)
----------------------------------------------------


--------------A05CDAFE1888D639D3FBF0A4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi All,
<p>I have a problem executing the function in oracle through JDBC.
<p>I have written a select statement inside which I am calling a function.
<br>The query is something like
<p><font color="#FF6666">select</font>
<br><font color="#FF6666">OSP_CRM_EXCHANGE_CASE_VIEW.OS_CASE_ID&nbsp; as
CASE_MSG__OS_CASE_ID,</font>
<br><font color="#FF6666">OSP_CRM_EXCHANGE_CASE_VIEW.OS_CUSTOMER_ID&nbsp;
as CASE_MSG__OS_CUSTOMER_ID,</font>
<br><font color="#FF6666">OSP_CRM_EXCHANGE_CASE_VIEW.OS_CUSTOMER_ID&nbsp;
as CASE_MSG__OS_CUST_ID,</font>
<br><font color="#FF6666">OSP_CRM_EXCHANGE_CASE_VIEW.OS_UNIT_ID&nbsp; as
CASE_MSG__OS_UNIT_ID,</font>
<br><font color="#FF6666">OSP_CRM_EXCHANGE_CASE_VIEW.CREATED_DATE as CASE_MSG__CREATED_DATE,</font>
<br><font color="#FF6666">'OS_1' as CASE_MSG__UPDATED_BY</font>
<br><font color="#FF6666">FROM OSP_CRM_EXCHANGE_CASE_VIEW</font>
<br><font color="#FF6666">WHERE</font>
<br><font color="#FF6666">ROWNUM &amp;lt;=(40 - OSP_CRM_EXCHANGE_getMaxDataId(2))</font>
<br><font color="#FF6666">ORDER BY to_number(OSP_CRM_EXCHANGE_CASE_VIEW.OS_CASE_ID);</font><font color="#FF6666"></font>
<p><font color="#FF6666">here </font><font color="#3366FF">OSP_CRM_EXCHANGE_getMaxDataId(2)</font><font color="#FF6666">
is the function.</font><font color="#FF6666"></font>
<p><font color="#3366FF">When I execute this query in command prompt Itis
working fine,but when I use it insied a executeQueryStatement(query) in
JDBC I am getting following error</font>
<br><b><font color="#3366FF">ORA-00911: invalid character</font></b><b><font color="#3366FF"></font></b>
<p><b><font color="#3366FF">I am not able to figure out how to modify this.</font></b><b><font color="#3366FF"></font></b>
<p><b><font color="#3366FF">Any help will be highly appriciated.</font></b>
<p>--
<br>Best Regards
<br>- Savita
<br>----------------------------------------------------
<br>Hewlett Packard (India)
<br>+91 80 2051288 (Phone)
<br>847 1288 (HP Telnet)
<br>----------------------------------------------------
<br>&nbsp;</html>

--------------A05CDAFE1888D639D3FBF0A4--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Savita
  INET: savita@india.hp.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

