In our development machines we are using Websphere Apllication Server Liberty accessing a Oracle database. To configure case-insensitive or accent-insensitive sort we configure the Datasource session of server.xml file as:
<dataSource id="MyDS" jndiName="jdbc/MyDS" type="javax.sql.DataSource">
<jdbcDriver javax.sql.DataSource="oracle.jdbc.pool.OracleDataSource" libraryRef="OracleJDBC"/>
<connectionManager maxPoolSize="10" minPoolSize="2"/>
<properties.oracle URL="jdbc:oracle:thin:@xx.xxx.xxx.xxx:1521:database" password="..." user="..." />
<onConnect>ALTER SESSION SET nls_sort = binary_ai</onConnect>
<onConnect>ALTER SESSION SET nls_comp = linguistic</onConnect>
</dataSource>
In Production machines we use Websphere Apllication Server. To configure the dataSource configurations it is needed go to the administrative console, Resources > JDBC > Data sources. Although I was able to connect to the Data source, I could not find a way to inject those ALTER SESSION commands above.
I suspect that I need to add a new property in Custom properties page. I tried add a property onConnect with both commands (separated with ';'), but it did not work. Even googling, I could not find a satisfactory answer.
Does someone have any idea how to make this configuration?
Thanks,
Rafael Afonso
