-
1. Re: CURSOR_SHARING option help needed
peterj Feb 19, 2009 10:43 AM (in response to mimmo67)If I recall by Oracle connection options correctly (it's been a while since I used Oracle), you should be able to add this option to the connection URL string.
In that case, I would define two data sources, one that has this option, the other that does not. Then set your apps to use the appropriate data source. -
2. Re: CURSOR_SHARING option help needed
mimmo67 Feb 19, 2009 11:17 AM (in response to mimmo67)Can you help me in modifying the data source I use introducing the option you refer?
My current data source is something like:
<xa-datasource>
<jndi-name>jdbc/SOCRATEDS</jndi-name>
<track-connection-by-tx/>
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:@//xxx.yyy.zzz.aaa:pppp/myschema</xa-datasource-property>
<xa-datasource-property name="User">myuser</xa-datasource-property>
<xa-datasource-property name="Password">mypwd</xa-datasource-property>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<no-tx-separate-pools/>
<type-mapping>Oracle9i</type-mapping>
</xa-datasource>
<depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager
Have I to introduce a new row like this:
<xa-datasource-property name="CURSOR_SHARING">FORCE</xa-datasource-property>
Thanks again.
Domenico -
3. Re: CURSOR_SHARING option help needed
peterj Feb 19, 2009 2:40 PM (in response to mimmo67)That should work.
P.S. When posting XML text or source code, please enclose the text in UBBCode "code" tags - you can do this by selecting the text and clicking the Code button above the editor window. Also, click the Preview button to ensure that the formatting is correct and the XML text shows up before posting.