"Execute immediate" a una base de datos Oracle.
he intentado esto y truena:
Código:
gracias de antemano Connection connection = null;
try
{
InitialContext initialContext = new InitialContext();
DataSource dataSource = null;
dataSource = ( DataSource )initialContext.lookup( "jdbc/conPUCoreDS" );
connection = dataSource.getConnection();
PreparedStatement pStmt = connection.prepareStatement( "EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_LANGUAGE = AMERICAN';" );
pStmt.execute();
pStmt.close();
...

