This post came from curiosity to try some thing and digging into the code of the ODI java and XML and Please dont try this in your Production box. This is completely experimental .
When we don’t have latest driver in the ODI , we copy the driver to ODI and write our own JDBC Url and driver information.
This post is about editing the an DriverRefV3.xml and making a manual entry into ODI Drivers List. Just add the below codes at the end of DriverRefV3.xml. The File is stored under the sunopsis zip folder , this where all the main class and java files of odi is located.
Try this at your home system or your personal development but never in the production box.
The XML File path is - >
C:\OraHome_1\oracledi\lib\sunopsis\com\sunopsis\res\DriverRefV3.xml
[ Note – : Before doing this Please back up a clean copy of DriverRefV3.xml file ]
The File have an two main Object Class namely com.sunopsis.dwg.dbobj.SnpDriver containing information about JDBC Driver.
The other Object Class is com.sunopsis.dwg.dbobj.SnpUrl containing details about JDBC Url .
For this Example i am adding the JDBD Driver 2.0 for SQL Server 2005 and later. copy the below code and make accordingly changes.
01 |
< Object class = "com.sunopsis.dwg.dbobj.SnpDriver" > |
03 |
< Field name = "IDriver" type = "com.sunopsis.sql.DbInt" > <![CDATA[31]]> </ Field > |
05 |
< Field name = "SunopsisCompatibility" type = "java.lang.String" > <![CDATA[1]]> </ Field > |
07 |
< Field name = "DriverLabel" type = "java.lang.String" > <![CDATA[Microsoft SQL Server 2005 & later Driver for JDBC]]> </ Field > |
09 |
< Field name = "DriverName" type = "java.lang.String" > <![CDATA[com.microsoft.sqlserver.jdbc.SQLServerDriver]]> </ Field > |
11 |
< Field name = "DriverDesc" type = "java.lang.String" > <![CDATA[Microsoft SQL Server 2005 Driver for JDBC (Type 4). |
13 |
Use this driver to connect to Microsoft SQL server 2005 & later . |
19 |
< Field name = "FirstDate" type = "java.sql.Timestamp" >null</ Field > |
21 |
< Field name = "FirstIUser" type = "com.sunopsis.sql.DbInt" > <![CDATA[null]]> </ Field > |
23 |
< Field name = "LastDate" type = "java.sql.Timestamp" >null</ Field > |
25 |
< Field name = "LastIUser" type = "com.sunopsis.sql.DbInt" > <![CDATA[null]]> </ Field > |
29 |
< Object class = "com.sunopsis.dwg.dbobj.SnpUrl" > |
31 |
< Field name = "IUrl" type = "com.sunopsis.sql.DbInt" > <![CDATA[31]]> </ Field > |
33 |
< Field name = "IDriver" type = "com.sunopsis.sql.DbInt" > <![CDATA[31]]> </ Field > |
37 |
< Field name = "UrlDesc" type = "java.lang.String" > <![CDATA[URL to connect to SQL Server 2005 or higher. |
41 |
<host>: server network name or IP adress. |
43 |
<port>: server port number (usually 1433). |
45 |
<property>=<value>: Connection properties. Refer to the driver's documentation for a list of available properties. |
51 |
< Field name = "FirstDate" type = "java.sql.Timestamp" >null</ Field > |
53 |
< Field name = "FirstIUser" type = "com.sunopsis.sql.DbInt" > <![CDATA[null]]> </ Field > |
55 |
< Field name = "LastDate" type = "java.sql.Timestamp" >null</ Field > |
57 |
< Field name = "LastIUser" type = "com.sunopsis.sql.DbInt" > <![CDATA[null]]> </ Field > |
This idea would have been great if we could have updated in the server box and reflected the same in the client as not the case in ODI . Just an experimental and wish to share with you.
If you have done or found out any such method , Please share with the odiexperts followers
출처 : http://odiexperts.com/