Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old July 13th, 2004, 08:13 AM
thordiddy thordiddy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 40 thordiddy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 17 m 12 sec
Reputation Power: 5
Question ORDER BY error?

I have the following code which I am running through server side javascript. Everything was working well until I added a ORDER BY lastname statement at the end of my query. Now, when I execute this procedure, I am delivered to a blank page rather than a page displaying the results. Does anybody know why this is happening?

Here is the code:



CREATE OR REPLACE
PACKAGE pkg_claim_service

IS
cert_no_var VARCHAR2(9);
e_mail_var VARCHAR2(50);
pat_lastname_var varchar2(17);
pat_firstname_var varchar2(10);


/**********************************************************/
/************** Output Record And Cursor******************/
/********************************************************/

CURSOR output_cur IS
SELECT
e_mail_var,
pat_firstname_var,
pat_lastname_var
FROM
ops_arw.member_pin ME,
ops_arw.subscriber SU,
ops_arw.int_med_claim_summary INT;

TYPE ref_cur IS REF CURSOR return output_cur%ROWTYPE;

/***********************************************/
/*********** END of Cursors *******************/
/*********************************************/



PROCEDURE FIND_USERS
(
output_cur OUT ref_cur
);

END pkg_claim_service;
/

--------------------------------------
--------Package Body------------------
--------------------------------------

CREATE OR REPLACE
PACKAGE BODY pkg_claim_service
IS

PROCEDURE FIND_USERS
(
output_cur OUT ref_cur
)

IS
NOW DATE;
BEFORE DATE;

BEGIN

NOW := SYSDATE;
BEFORE := NOW - 7;


OPEN output_cur FOR
SELECT
ME.e_mail,
su.pat_firstname lastname,
su.pat_lastname
FROM
ops_arw.member_pin ME,
ops_arw.subscriber SU,
ops_arw.int_med_claim_summary INT
WHERE
ME.SRV_EMAIL_PREFERENCE = 'Y' AND
ME.CERT_NO = SU.CERT_NO AND
ME.CERT_NO = INT.CERT_NO AND
TO_CHAR(TO_DATE(SU.MEM_DOB, 'YYYYMMDD'), 'YYYYMM') = TO_CHAR(ME.MEM_DOB, 'YYYYMM') AND
INT.INSERT_DATE >= BEFORE
ORDER BY
lastname;



end FIND_USERS;

END pkg_claim_service;


/
show errors

Any help is appreciated

Reply With Quote
  #2  
Old July 19th, 2004, 03:44 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
Have you tried running the code in a sqlplus window?
__________________
El éxito consiste en una serie de pequeñas victorias día a día

MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html

Reply With Quote
  #3  
Old July 19th, 2004, 11:21 PM
gamyers gamyers is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 14 gamyers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Maybe the sort is taking so long that you are getting a timeout somwhere ?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > ORDER BY error?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway