This Weblog describes how to activate the JDBC Connector Service in order to perform database lookups (without JDBC adapter) in XI. The standard how-to guide covers almost all steps but falls short in describing some configuration steps.
This weblog outlines the steps that are required to configure the JDBC Connector service for an Oracle database.
The following reference documents were used; this weblog explains the steps that were missed in those documents.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9aedca11-0d01-0010-3b90-9ea04182875f
http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
Steps to configure JDBC connector service
1.Download the oracle JDBC driver ojdbc14.jar from the Web site
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
2.Use Visual Administrator to upload the ojdbc14.jar against the JDBC connector service.
3.Select the Service node from the list of nodes shown below.
4.Select the JDBC Connector from the list of services.
5.Place the cursor in the Drivers node in the Runtime tab. Click the create button to add the drivers.
6.Place the cursor in the DataSources to create a new data source.
Enter the following parameters
Application Name
Data source Name
Add alias name ( Do not add jdbc/Name)
since whatever name you add will be registered in the JNDI Registry under jdbc context, while writing the java code access the alias by (jdbc/aliasname).
Subsequently, to check if the alias is registered with JNDI, you can browse to the JNDI Registry node in Visual administrator and locate the alias.
Select the appropriate driver from the list of drivers (from step 5).
Select JDBC Version.
If the version is JDBC 2.0 compliant (Oracle 10.x drivers are compliant), then enter
Object factory - oracle.jdbc.pool.OracleDataSourceFactory
DataSource type – XADataSource
XADS Class name - oracle.jdbc.xa.client.OracleXADataSource
7.Select the additional tab to the enter parameters to connect to the database.
Enter the following parameters:
Key Value url jdbc:oracle:thin:@ user password
SQL Engine : Select Native SQL
8.How to test the data source to be sure it's working fine
In the DB initialization tab, enter a SQL statement to query the table, & press execute butto; it should return the results.
Do not forget to remove the statement after the test.
9.Develop Java code that performs DBLookup, the sample code for the performing the DBLook up is given in the How To Guide Appendix.
10.Follow the procedure as given in the how to guide to Create UDF's.
Tuesday, April 15, 2008
Configuring the JDBC Connector Service to perform database lookups
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(300)
-
▼
April
(80)
- Storing SAP information from a JCo connector
- Configuring the JDBC Connector Service to perform ...
- Best NetWeaver component to add to SAP XI
- Third-party plug-ins to support UML modeling in Ne...
- Upgrading to mySAP ERP 2005 ECC 6.0 with NetWeaver...
- What are the hardware requirements for SAP 6.4 GUI...
- Is it wise to convert to an SAP NetWeaver EP/XI ca...
- How can ABAP developers survive in a NetWeaver era?
- Find the BADI related to your transaction in minutes
- How to switch off message determination in BAPI_PO...
- How to include an authorization group restriction ...
- How do I avoid running ABAP programs more than once?
- What are some ABAP development resources?
- How do I run ABAP programs through a Java-based in...
- How can I create a two-dimensional array in ABAP?
- Useful standard reports
- Interactive Reporting
- Batch Input with 'Call Transaction'
- Hide technique in reports
- Passing data using SAP memory
- ALV Report using REUSE
- ALV report to find the list of infotypes configure...
- ALV Function Modules
- ALV - Details of Y/Z objects with lists of users/d...
- Adding custom buttons on ALV grid controls
- Add Button to ALV Toolbar with REUSE_ALV_LIST_DISPLAY
- BAPI Step by Step Example
- Programming a BAPI
- Convert SAPSCRIPT into SMARTFORMS
- HTML Viewer Control
- Picture Control
- Toolbar Control Object
- Modularization in ABAP
- Creating F1 help
- Table Maintenance Generator
- Defining a BADI
- Calling a Business Add-In in your Program
- Business Add-Ins: Import Procedure
- BADI - Business Add-Ins
- BADI vs User Exit
- A comparison between enhancement techniques
- Finding the user-exits of a SAP transaction code
- The Employee Example - step by step example
- CALL FUNCTION SYNTAX FOR SAP ABAP extended
- CALL FUNCTION SYNTAX FOR SAP ABAP
- ABAP SYNTAX FOR CALL FUNCTION
- USER EXITS IN DETAIL
- SAP USER EXITS
- Why use ABAP OO with Workflow?
- Creating an Organizational Plan Steps
- Configuring a Workflow
- Configuring a Workflow
- How can I determine if an error is a corrupt workf...
- Can I approve an SAP work item in Outlook?
- How do I add an Excel spreadsheet to a workflow?
- My workflow works in debugging mode, but not norma...
- Where can I access workflow attachments?
- What are the steps to take before a workflow can b...
- How do I transport a workflow?
- How do I fix errors in an automatic workflow custo...
- How do I add an SAP object to an email in order to...
- When performing an automatic workflow, customizing...
- How to trigger a TCODE from SAP R/3 mail
- How to generate a new transport request from an al...
- Lost workflow due to unassigned position
- Problem when GR is created
- How to read the attachments of a workflow
- Clearing pending workflow items
- Refreshing dynamic columns
- Updating the absence infotype
- A parameter with no record available
- Error when reading XML files in SAP
- Methods for uploading SAP data
- Creating a field exit for a data element
- Migrating test programs from ECC 4.6 to 6.0
- Creating a screen for grid display
- Unicode check error fix
- The difference between field groups and internal t...
- Validating table fields
- Will there always be an implicit commit in an RFC?
-
▼
April
(80)
No comments:
Post a Comment