Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple SQL statements for InitSQL (JDBC pool)

 
R. Heydenreich
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have the connection pool configured so that it changes the DB session. Additionally, I want to put another statement. But I don't know how I can do this. Which separator char is needed? At the moment it looks like the following:

(Init SQL SQL ALTER SESSION SET CURRENT_SCHEMA=anotherschema; SQL ALTER SESSION SET CURSOR_SHARING=SIMILAR

This does *NOT* work! If I remove the second statement and the semicolon it works fine. How can I write it correctly?

TIA,
Ralf.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic