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:
  #1  
Old June 1st, 2004, 07:05 AM
pbf pbf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 pbf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ORA-01846 when upload

Hello

I can't insert document from a web client. This is my files :

The file wdbsvr.app (for the DAD)

"wdbsvr_TTST.app" 27 lines, 541 characters
;
; $Header: wdbsvr.app 115.2.1155.2 2001/08/31 10:46:21 pkm ship $
;
[WVGATEWAY]
defaultDAD = TTST
administrators = system
adminPath = /admin_/
custom_auth = CUSTOM
;
[DAD_TTST_admin]
connect_string = TTST
;
[DAD_TTST]
connect_string = TTST
password = ANNO
username = ANNO
default_page = HTML.page_test
document_table = ANNO.documents
document_path = docs
document_proc = ANNO.cntsample.download
upload_as_long_raw =
upload_as_blob = *
reuse = Yes
connmax = 10
;pathalias = fndgfm
;pathaliasproc = fnd_gfm.dispatch
enablesso = No
~
~
----------------------------------------------------------------------
I use this script find on Metalink


PROCEDURE upload_form IS
BEGIN
htp.header(3,'Upload a file');
-- This procedure creates a simple HTML form that lets the end user upload his file(s).
htp.formOpen(curl => 'CNTSAMPLE.upload', cmethod => 'POST', cenctype => 'multipart/form-data');
htp.p('<INPUT TYPE="FILE" NAME="name">');
htp.formSubmit;
htp.formClose;
htp.para;
htp.header(3,'Upload multiple files');
htp.formOpen(curl => 'cntsample.upload', cmethod => 'POST', cenctype => 'multipart/form-data');
htp.p('<INPUT TYPE="FILE" NAME="name">');
htp.br;
htp.p('<INPUT TYPE="FILE" NAME="name">');
htp.br;
htp.p('<INPUT TYPE="FILE" NAME="name">');
htp.br;
htp.p('<INPUT TYPE="FILE" NAME="name">');
htp.br;
htp.p('<INPUT TYPE="FILE" NAME="name">');
htp.br;
htp.formSubmit;
htp.formClose;
EXCEPTION
WHEN OTHERS THEN
htp.p(sqlerrm);
RETURN;
END;

PROCEDURE upload(name IN owa.vc_arr) IS
/* This procedure can upload both one single file as well as multiple files.
The actual upload is done by the listener. You simply initialize the process
by providing the file to be uploaded. */
i BINARY_INTEGER := 0;
BEGIN
LOOP
i := i + 1;
IF name(i) IS NOT NULL THEN
htp.p(name(i)||' uploaded');
htp.br;
ELSE
NULL;
END IF;
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
htp.p(sqlerrm);
RETURN;
END;

----------------------------------------------------------------------
When I click on Submit, I have this error :


Wed, 19 May 2004 06:44:47 GMT

ORA-01846: not a valid day of the week

DAD name: TTST
PROCEDURE : cntsample.upload
URL : URL
PARAMETERS :
===========

Why? thank you for help me

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > ORA-01846 when upload


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 4 hosted by Hostway
Stay green...Green IT