AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stored procedure [oracle]

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
giovanni
Guest





PostPosted: Wed Apr 26, 2006 9:12 am    Post subject: stored procedure [oracle] Reply with quote



Ciao,

Per molto tempo ho avuto la necessita di scrivere codice per chiamare delle
stored procedure, su database oracle.

Trovando questo lavoro assolutamente noioso, ho deciso di iniziare un
progetto open source il cui scopo è generare automaticamente il codice java
necessario per chiamare stored procedure, analizzando i dati presenti nelle
tabelle di sistema del database.

Avendo raggiunto un livello sufficiente di funzionalità e affidabilità, mi
chiedo se qualc'uno di voi ha interesse a provarlo e a darmi un feedback sul
lavoro svolto.

L'indirizzo del progetto è http://spwrapper.sourceforge.net

Giovanni
Back to top
Stefano
Guest





PostPosted: Thu Apr 27, 2006 7:12 am    Post subject: Re: stored procedure [oracle] Reply with quote



Mi interessa provare, quando vuoi.
Ciao Stefano
Back to top
giovanni
Guest





PostPosted: Thu Apr 27, 2006 8:12 pm    Post subject: Re: stored procedure [oracle] Reply with quote



Ciao

puoi scaricare il pacchetto dall'indirizzo
http://prdownloads.sourceforge.net/spwrapper/SPWrapper-0.5.zip?download

una volta scaricato per avviarlo basta eseguire questi comandi dalla
directory in cui si trova spwrapper.jar (se usi windows):

set CLASSPATH="c:\my\driver\ojdbc14.jar" ---> sistema il classpath per
includere il driver jdbc oracle

java.exe -cp spwrapper.jar;%CLASSPATH% net.sourceforge.spwrapper.ui.CLI -u
username -p password -c "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST
=(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)))(CONNECT_DATA
=(SID = orcl)))" -sp STOREDPROCEDURENAME -pk my.db.pkg -d
c:\src\top-directory

devi sostituire i parametri con quelli necessari ad accedere al tuo
database. In particolare al posto di storedprocedurename metti il nome della
stored procedure (in maiuscolo) che vuoi usare,
e per -d imposta la directory in cui vuoi che venga scritto il sorgente java
per chiamare la stored procedure.

Se la stored procedure è in un package devi scrivere -sp
NOMEPACKAGE|NOMEPROCEDURA.

Comunque nella directory doc del file zip trovi il manuale che ho scritto.

Fammi sapere se hai difficoltà o se fila tutto liscio.

Ciao

Giovanni

"Stefano" <stefdessi (AT) gmail (DOT) com> ha scritto nel messaggio
news:1146121797.907089.219130 (AT) j33g2000cwa (DOT) googlegroups.com...
Quote:
Mi interessa provare, quando vuoi.
Ciao Stefano
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.