1

Is it possible to create/replace PL/SQL via the Oracle JDBC driver, i.e not via SQLPLus* ?

Update 1: Driver: ojdbc14 (JDBC)

Update 2: Change is being applied to oracle via Ant <SQL> task, which is passed a sql script file.

In this instance using SQLPlus in the Ant script is not possible (long story).

2
  • 1
    What driver are you talking about? JDBC? ODBC? ODP.Net? It is almost certainly possible. But we'll need more information in order to provide any specifics. Commented Oct 5, 2010 at 9:54
  • Currently using ojdbc14, but flexible here. Commented Oct 5, 2010 at 10:08

1 Answer 1

1

Yes, the standard Ant sql task will do this. These options are working for me:

sql driver="oracle.jdbc.driver.OracleDriver"
       delimiter="/"
       delimitertype="row"
       keepformat="yes"
       caching="true"
       escapeprocessing="no"

One thing I've found is that the processing is sensitive to the last line with the delimiter - if you have any whitespace after the "/" the execution will fail.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.