본문 바로가기

ETL Tools/Oracle Data Integrator

[스크랩]Manual entry in ODI Driver List

Manual entry in ODI Driver List

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">
02  
03 <Field name="IDriver" type="com.sunopsis.sql.DbInt"><![CDATA[31]]></Field>
04  
05 <Field name="SunopsisCompatibility" type="java.lang.String"><![CDATA[1]]></Field>
06  
07 <Field name="DriverLabel" type="java.lang.String"><![CDATA[Microsoft SQL Server 2005 & later Driver for JDBC]]></Field>
08  
09 <Field name="DriverName"type="java.lang.String"><![CDATA[com.microsoft.sqlserver.jdbc.SQLServerDriver]]></Field>
10  
11 <Field name="DriverDesc" type="java.lang.String"><![CDATA[Microsoft SQL Server 2005 Driver for JDBC (Type 4).
12  
13 Use this driver to connect to Microsoft SQL server 2005 & later .
14  
16  
17 ]]></Field>
18  
19 <Field name="FirstDate" type="java.sql.Timestamp">null</Field>
20  
21 <Field name="FirstIUser" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field>
22  
23 <Field name="LastDate" type="java.sql.Timestamp">null</Field>
24  
25 <Field name="LastIUser" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field>
26  
27 </Object>
28  
29 <Object class="com.sunopsis.dwg.dbobj.SnpUrl">
30  
31 <Field name="IUrl" type="com.sunopsis.sql.DbInt"><![CDATA[31]]></Field>
32  
33 <Field name="IDriver" type="com.sunopsis.sql.DbInt"><![CDATA[31]]></Field>
34  
35 <Field name="UrlName"type="java.lang.String"><![CDATA[jdbd:sqlserver://<host>:<port>;databaseName=<database_name>;SelectMethod=cursor;]]]></Field>
36  
37 <Field name="UrlDesc" type="java.lang.String"><![CDATA[URL to connect to SQL Server 2005 or higher.
38  
39 URL Parameters:
40  
41 <host>: server network name or IP adress.
42  
43 <port>: server port number (usually 1433).
44  
45 <property>=<value>: Connection properties. Refer to the driver's documentation for a list of available properties.
46  
48  
49 ]]></Field>
50  
51 <Field name="FirstDate" type="java.sql.Timestamp">null</Field>
52  
53 <Field name="FirstIUser" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field>
54  
55 <Field name="LastDate" type="java.sql.Timestamp">null</Field>
56  
57 <Field name="LastIUser" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field>
58  
59 </Object>

image

image

 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/