Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Basic question | run multiple queries without reconnecting
DA Morgan wrote:
> Anoop wrote: >> Anoop wrote: >>> DA Morgan wrote:
>>> >>> Thank you - I think I need to read up more before I ask questions. >>> >>> Best regards, >>> Anoop >> >> >> So this is like a PL/SQL block right? >> >> My problem is that we have 100's of oracle databases and we cannot >> implant a procedure like the above (the anonymous block) into every >> database. We do have a centralised app written in Java which connects >> to each database to run these DCL statements on user creation.. >> >> So my question is: >> 1. Is it necessary that this block reside on each server (so that I can >> use CallableStatements and call this block). If yes, then that will not >> work for me as we have too many databases. >> 2. Can I just have a text file or maybe hardcode these in a script and >> run it using java? >> >> Thanks, >> Anoop > > What you wrote was that you were using Java. There is no reason Java > can not be used to pass an anonymous block to an instance.
Originally didn't mention Java. There's no reason why a simple sql script couldn't be used with sqlplus either. Received on Thu Jun 22 2006 - 16:01:23 CDT