Steps for connecting MS-ACCESS to ORACLE database

advertisement
Steps for connecting MS-ACCESS to ORACLE database
Introduction:
As you know that in OWB there is no direct way of connecting Oracle database to any heterogeneous
source. In this article you will learn the steps to connect oracle to heterogeneous source.
Here we are taking MS Access database as the source and Oracle as the target .Following the given steps,
will help you to connect you to a heterogeneous source.
#Note: Considering that there is a table named expense categories in MS Access in the database called
msaccess.db1.
The target in the oracle database is named Expense_wh.
Step 1: Define the ODBC connectivity
Then you create a dsn say mydsn (control panel->admin tools->data sources->select system dsn-and say
add)
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Step 2: Configure the Listener.
(oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora)
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Step 3: Configure Oracle HS:
Edit the ORACLE_HOME\hs\admin\initmydsn.ora file and add your ODBC System DSN Name (mydsn in
our case as defined in step 3).
Note: the file is not created on its own. You need to copy & paste the inithsodbc.ora and rename it to
initmydsn.ora and do the changes. As shown in the screen shot.
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Step 4: Now do the changes in the tnsnames.ora by doing so you configure oracle
connectivity to windows machine.
(D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora)
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Step 5: Create an instance
Go to services and start the listener and the instance as shown in the screen shot.
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Step 6: Create a database link in the command prompt.
The tables in the access database can now be accessed in the oracle environment.
Step 7: Now run the query and you will get the results.
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Step 8: Importing data from MS Access to Design Center.
After testing the connection in the command prompt now go to the design center.
In the project explorer expand the project where you want the data. Then expand databases and expand
Non-Oracle.
In ODBC right click and say new.
Click next on the wizard. Write the name of the module.
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
In the connection information wizard by default it will select msaccess_location1 .say edit and enter the
following details.
Name: MSACCESS
User name: as per your norms
Password: as per your norms
Host: localhost
Port: 1521
Service name: name of the dsn created for the MS Access driver.
Then say test connection. It shows successful
Say ok. Click next on the next wizard and then say finish. You will have the import metadata wizard. Click
next.
You will see the filter page .Choose the objects you want to filter and say next.
Select the tables that you want a shown in the following screen shot and say next. In this case I have only one table
expense_categories.
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Say finish. After importing just say ok on the Imports results screen.
To check if the data has been properly imported go to ODBC select the module you just created and
expand it and then expand the table section and select the table you just imported(in this case
expense_categories) and open the editor by double clicking it.
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Now in the object details tab select the data viewer tab and say execute query and you will view the data.
Or right click the select table and select data.
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
About iWare Logic Technologies Pvt. Ltd.
iWare Logic is an Enterprise Business Application Services company specializing in Oracle
applications and technology including Oracle E-Business Suite (EBS), Oracle DBA and Apps
DBA remote and onsite, Oracle BI, OBIEE, OBISE, PeopleSoft, JD Edwards EnterpriseOne,
Siebel, Oracle Siebel CRM On Demand And Oracle APEX.
Our Differentiators:
For Outstation Students:
• Airport pickup and drop facility available for outstation students from Pune and Mumbai
domestic and international airport.
• Local stays and travel arrangement assistance for outstation students. Local hotel is at
discounted cost and at walk able distance from training facility
Training Facilities & Examination:
• 24/7 Lab facility
• Training will be delivered by Oracle accredited instructor
• We provide Oracle official courseware and attendance certificate from Oracle
Extra Offerings to our students:
• Free Oracle Certification Exam Voucher to our Oracle Boot Camp Training students
• Free library access
• Free post training support
• Free Oracle Apps implementation workshop
• Free guidance on India localization for any interested students
• Free Oracle Apps implementation project guidance using a simulated project environment
Contact Us
iWare Logic Technologies Pvt. Ltd.
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
Email: oracleconnect@iwarelogic.com
Website: www.iwarelogic.com
iWare Logic Technologies Pvt. Ltd
Oracle Applications & Technologies | Consulting | Training | Implementation
Aditi Samrudhi | Baner | Pune 411 045 | INDIA
http://www.iwarelogic.com/
Download