ODBC Sources in OWB

Hello,
I have a question regarding ODBC and OWB.
How can I get a connection from OWB to an ODBC source.
I have an exsisting and proofed (I use it from SQL Plus) database link.
My OWB installation has 3 types of Integrators: Flat Files 3.0, Oracle DB and Apps 3.0 and SAP Applications 3.0 .
What have I got to do now, to connect to an ODBC source?
If I create a new MODULE and select Generic Oracle DB App as application and Oracle Generic Gateway Connectivy as application version (or an Oracle DB), I get a Java NullPointerExeption when using the DB-Link for my ODBC connection.
Anyone outside who has an idea.
Regards
Ulrich

Dear all
The following is taken from one of our internal documents on how to set up ODBC connections to an AS/400. Hope this helps. This would apply to OWB 3i and 9i.
Configuring Oracle Heterogeneous Services to Connect to a Non-Oracle Database
=============================================================================
This document is intended to describe how to connect to a non-oracle source using Oracle’s Heterogeneous Connections. (Generic Connectivity)
1.     Install the data dictionary tables and views for Heterogeneous Services.
- Login as sys and run the script caths.sql
This script is located in $ORACLE_HOME/rdbms/admin
2.     Set up an ODBC connection to the target database
- Select Control Panel, Administrative Tools, Data Sources (ODBC)
NB This must be a system DSN not a User DSN
3.     Add the following entry to Tnsnames.ora in the $Oracle_home\network\admin directory
hsas400 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = tcp)(host=<hostname>)(port=1521))
(CONNECT_DATA =
(SID = as400)
(HS=OK)
•     N.B The address information is based on the Oracle connection and not the target database. The SID name can be chosen but must be identical to the SID configured later on in the listener.ora
4.     Add the following entry to Listener.ora in the $Oracle_home\network\admin directory
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(SID_NAME=as400)
(ORACLE_HOME=c:\oracle\ora81)
(PROGRAM=hsodbc)
- NB The SID_NAME must be identical to the SID used in tnsnames.ora. The Program must be hsodbc (this is an executable program)
5.     Stop and Start the Oracle Listener
- Select Control Panel, Administrative Tasks, Services
- Select the Oracle_HomeTNSListener and stop
- Restart the service
6.     Check the Service is running
- From a command prompt type ‘ lsnrctl status’
- Check that a service handler for the new sid is running
7.     Create the initialisation file
- Navigate to the directory $Oracle_Home\hs\admin
- A sample file inithsodbc.ora file exists. Copy this file into the same directory using the format init<SID>.ora. In my example the SID used is as400 so the file name will be initas400.ora
8.     Initialisation File configuration
- Configure the newly create file to with the following information
HS_FDS_CONNECT_INFO = RENSQL <name of ODBC connection created in step 2>
     HS_FDS_TRACE_LEVEL = 0
9.     Create a database link to access target database
     SQL> create public database link as400
     SQL> connect to “user” identified by “password” <optional
     SQL> using 'hsas400'; < the connection name created in tnsnames.ora
10.     Test the connection
     SQL > select * from products@as400
- N.B Use a known table that exists on the target database
To check the creation of the database link run:
     Select * from all_db_links
Connecting to OWB using HS
Do not deploy the Database link code to the server as the package deployment will fail. This is because the database link created takes priority over the public DB Link created and as it is owned by the OWB schema can only be used by system and the OWB schema.
regards
Mark Rittman
Plus Consultancy

Similar Messages

  • Connect SQL server source from OWB

    Hi,
    I have to connect to SQL Server source from OWB.
    I am using OWB 10.2 version and Owb is installed on UNIX platform.
    I have created system DSN, made respective entries in hs/admin and edited listener.ora file.
    In OWB Non-Oracle sorces trying to connect with ODBC connection to SQL server source.
    It is throwing erorr 'ORA-28545:error diagonised by Net8 agent when connecting to an agent Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from OWB-2339'
    How to check System DSN is setup properly on UNIX or not.
    Could anyone help out on this.

    Hi David,
    I have created db link and queried with select statement.
    It has thrown following error.
    " ORA-12537: TNS:connection closed".
    And, I don't know how to use "trace level gateway service configuration property in the service .ora file".
    I want to start from the first.
    Could you please give me the guidelines on, how to connect to a Sql server source(Which is on Remote Server) from OWB.
    What are the prerequisites and steps.
    Thanks for your help,
    Shaik.

  • ODBC Connectivity in OWB 10g

    Hi,
    I have one of my data source as AS400. I have setup a DSN to connect to this data source. I want to know how I can connect using OWB 10g to the AS400 data source using this DSN.
    Is there any other way that I could connect to the AS400 data source using OWB 10g without using any additional drivers which involve a cost :-) ?
    Thanks for your help in advance.
    Thanks & Regards,
    Harshad Borgaonkar

    Hi Harshad,
    You can do this with the heterogeneous services.
    http://www.datadirect.com/developer/odbc/oracle_heterogeneous/index.ssp
    has a good description of what to do.
    You'll have to setup the heterogeneous service on an Oracle database on the same platform for which you have ODBC drivers for, presumably Windows.
    You should then be able to connect to this database in OWB and create a connection under Databases -> Other -> ODBC or Other.
    Cheers,
    Colin

  • ODBC Sources

    Can OWB access an ODBC source directly?
    I have created an ODBC connection in SQLPLUS which is up and running, but at present, the only way to access the actual tables at present is to create a 'view' of the tables.
    I believed that, through the Oracle Generic Gateway Connectivity, I would be able to connect to a data source created through the Microsoft ODBC Control Panel.
    Thanks
    Chris McGill

    Oracle Generic connectivity refers to a database-to-database connection, not a direct connection from OWB to a remote database. Therefore, from OWB you can access all the remote objects in this way.
    Regards:
    Igor

  • How to get the dialog of select ODBC source

    how to get the dialog of select ODBC source which system provide.

    JNI.
    Or buy/find a library that does it for you (using JNI.)

  • How to change database schema of data source in OWB?

    Hi,
    Could someone give me hint about my questions:
    I select many database schema in TOAD. like "My Shema" and "All Schema".
    If I create a Oracle Data Source in OWB 10.2. All tables/viewsI can see only from "My Schema" (I think it is default), However, I need to connect "All Scema". There are lots of prod tables/views. I don't know how to set/change/config in OWB even reading guide.
    Thanks a lot
    Lan

    Lan,
    You can ONE of the following:
    1. Dbl click the src/target module and go to metadata location tab and select a location that has the details pointing to the different schema (If you do not have this location created, you may have to create one).
    2. Create synonyms in "My Schema" to objects from other schema. Then try to import the tables again. This time you will be able to see the other tables (the icon will be different for synonyms.)
    Hope That Helps.
    Kaushik.

  • Using MySQL data source in OWB

    Hi All,
    I need to use a MySQL data source in OWB. Could you please tell me the steps needed to define and configure the MySQL module in OWB?
    Thanks and Regards,
    Amit

    Directly in the source component, or in the expressions property of the data flow?
    If the latter, what happens when you preview your expression?
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • How it's possible to add ODBC source to windows resources?

    Hi.
    I'm using DB Connectivity Tools and MS Access Driver to connect to the database. My VI reads previous created data link. My problem is that I need do EXE file, and doesn't know how I can set the ODBC source in Windows directly in LabView, and create Datalink direct in LV (without using Tools->Create Data Link). Maybe somebody knows how to do this. Thanks in advance.

    Wiebe@CARYA wrote:
    In the last string, don't seperate each parameter. Simply put a space
    between two of them, not the quotes and \0. The \0 on the end is
    automatically added by LabVIEW, so there is no need for that as well. Like I
    mentioned, it should look like this: "DNS=databasename DBQ=filepath UID=user
    PWD=password", where the quotes are not in the string. Perhaps the file path
    needs quotes, if it contains spaces, but I don't think I use them, and it
    works fine.
    Instead of creating a DSN you can also simply pass those parameters to the "connection string" parameter of the DB Tools Open Connec (String).vi.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to get information from ODBC sources to Forms Builder environment

    Hi,
    Could anyone help me, to get some examples or more information, that how can I get information from ODBC sources to Forms Builder environment. I have a need to read data for example to LOV.

    If you are on Forms 6i you install the Oracle Client Adaptor from the Forms CD. You then have a way of connecting to ODBC datasources.
    To connect to ODBC at the same time as you are connected to Oracle you can use the EXEC_SQL package to create a second connection via odbc and issue select statements against that datasource.

  • ODBC SOURCE

    hi,
    is-it possible to get the list of the ODBC sources in a JAVA application (on W2000) ?

    This is a work around, try this
    import java.util.*;
    import java.io.*;
    class OdbcList {
         private ArrayList list;
         private RandomAccessFile file;
         public OdbcList() {
              try {
                   file = new RandomAccessFile("C:/winnt/odbc.ini","r");
                   list = new ArrayList();
              } catch(Exception e) {
                   e.printStackTrace();
         public static void main(String args[]) {
              OdbcList dsList = new OdbcList();
              ArrayList list = dsList.getOdbcList();
              for(int count=0;count<list.size();count++)
              System.out.println(list.get(count));
         public ArrayList getOdbcList() {
              try {
                   String line=file.readLine();
                   while((line=file.readLine()) != null) {
                        if(line.startsWith("[")) list.add(line.substring(1,line.length()-1));
                   file.close();
              } catch(Exception e) {
                   e.printStackTrace();
              return list;
    }You need to specify the path to your odbc.ini thats all. Rest of the code will work for you.
    Hope this helps you.
    Sudha

  • ODBC source, do I have to set up DSN? If so how do I deploy File or Machine DSN?

    I have a Datasource that uses a ODBC connection Manager. On my Dev machine, I set up a User DSN, by going into my control panel, etc.  I see you can also build it in the datasource, but it still saves it as a File or Machine Data Source.
    This is a pain in the butt.  With OLEDB everything is in the connection string.  I don't have to set up DSN.
    When I deploy my package, will I have to go to the extra steps of setting up a DSN on the machine (or a DSN file on the machine) that host the SQL Server I am deploying to.   This means I will have to go through a whole level of bureaucracy and
    red tape to get this done cause that server is locked down.
    This kinda sucks, especially cause I heard OLE DB is going away and ODBC is the new standard.
    Please help, if you know how I can set up ODBC without DSN.  One that works when I deploy without all the extra steps?
    Thanks,
    Mike

    Hi Mike,
    Just as Hsbal said, we can use a connection string for ODBC, so that we don’t have to pre-create the DSN on the systems that will be running the SSIS package.
    Please note that most of the Source can use a connection string without DSN. Please use the correct connection string based on the source. For more details, please refer to the following document:
    http://www.mattmasson.com/2013/11/using-hive-odbc-from-ssis/
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Flat File as Source in OWB Mapping.

    Hi All,
    Configuration Details is as follows:
    Oracle 9i Warehouse Builder Client: 9.2.0.2.8
    Oracle 9i Warehouse Builder Repository: 9.2.0.2.0
    Windows XP Professional
    I developed a mapping which involves a flat file as source & Oracle Table as target steps followed were as follows.
    1. Created Flat File module, selected Connector & Location Details.
    2. Done mapping for source file & target table.
    3. Validated & Generated the mappings.
    4. Deployed the mapping in Deployment Manager.
    5. Following was Error Message after execution of the mapping.
    Completion Status: Completed with errors.
    Meesage Log: Starting Execution of VHM_MAP2. Starting Task VHM_MAP2. RPE-01013:SQL Loader reported error condition,number 4. Completing Task VHM_MAP2.
    Following was Control File generated by the above mapping.
    OPTIONS ( ERRORS=50, BINDSIZE=50000, ROWS=200, READSIZE=65536)
    LOAD DATA
    CHARACTERSET WE8MSWIN1252
    INFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.txt'
    BADFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.bad'
    DISCARDFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.discard'
    INTO TABLE "{{TARGET_LOCATION.Schema}}"."DEPT"
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    FIELDS
    TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    "DEPTNO" POSITION (1) INTEGER EXTERNAL ,
    "DNAME" CHAR ,
    "LOC" CHAR
    Please note that no message is displayed in Row Activity & output parameters in Deployment Manager.
    I worked on lower version of the OWB & in that version there was no concept of Location, Connector, Deployment Manager.
    Not sure why the above mapping is failing?
    Also I would like to know where can I get more information about the mapping errors which are different from oracle error messages.
    e.g. In above case error message is RPE-01013: SQL Loader reported error condition, number 4 .
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi
    I'm using single host implementation OWB10g/Oracle on same host.
    My flat file location is
    c:\source\dept.txt
    Pl tell me if I have to save the same file on any particular location for OWB to read.
    Implementation in OWB10g
    1. Created Flat File module, selected Connector & Location Details.
    2. Done mapping for source file & target table.
    3. Validated & Generated the mappings.
    4. Deployed the mapping in Deployment Manager.
    5. Following was Error Message after execution of the mapping.
    Can not read data from file
    c:\souredept.txt
    OPTIONS ( ERRORS=50, BINDSIZE=50000, ROWS=200, READSIZE=65536)
    LOAD DATA
    CHARACTERSET WE8MSWIN1252
    INFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.txt'
    BADFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.bad'
    DISCARDFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.discard'
    INTO TABLE "{{TARGET_LOCATION.Schema}}"."DEPT"
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    FIELDS
    TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    "DEPTNO" POSITION (1) INTEGER EXTERNAL ,
    "DNAME" CHAR ,
    "LOC" CHAR
    Thx in advance

  • Querying for ODBC Sources

    Can someone tell me how to "query" a Windows system to find out what ODBC data sources are available, and also how to capture the connection string information associated with anyone of thoses sources?
    Thank you
    AG

    This is OS specific which means the following:
    -It has nothing to do with JDBC.
    -It will have to use JNI or Runtime.exec() to get the info.
    I believe there is at least one third party java library for this that you can search for on the web.
    Or you can code your own solution. The values are kept in the windows registry, you scrap them out and then display them.

  • SSIS: Export data from ODBC source to Excel only 5000 rows at a time

    Greetings,
    Im inserting data into Excel using SSIS.
    Im getting the following exception:
    '[Excel Destination [32]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available. Source: "Microsoft Office Access Database Engine" Hresult: 0x80004005 Description: "Spreadsheet is full.".'
    I did some research using the following link:
    http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010073849.aspx
    It states that you can populate the maximum of 1,048,576 rows by 16,384 columns
    The data i am importing into Excel is only about 100,000 rows by 5 columns
    After doing some research I am now aware that this is to much data for Excel to handle at one time.  I was advised to lower the amount of rows SSIS is exporting into Excel........How do I lower the amount of rows to 5,000 at a time is SSIS?

    Having the maxbufferrowsize
    But I have a doubt that it is related. You probably max up the allowed size for your version of Excel.
    Arthur My Blog

  • Working with flat file as source in owb 10.2

    Hi,
    I am working with flat file as source . While validating the mapping i am getting the following error like
    " to specify a data file configure the mapping , add a node under ' Source data file', type in the file name
    and select the file location."
    Please give me the suggestion . It is very urgent.

    Hi Venkat,
    I tried the following stepts.
    1. in Design Center select your mapping and right click and select configure
    2. select sql loader data files and select create
    3. On right hand side data file Name : enter your source file name (ex : source.csv)
    4. click ok button.
    5. open mapping and validate.
    The mapping is validating. After validating I deployed the mapping. Up to this the mapping is working fine.
    But when I start the mapping, It has completed with errors.
    The error message is:
    Status
    Error Log
    RPE-01013: SQL Loader reported error condition, number 1.
    LRM-00112: multiple values not allowed for parameter 'control'
    Job Summary
    Updated : 2009-02-24 15:32:43.0 Job Final Status : Completed with errors Job Processed Count : 1 Job Error Count : 1 Job Warning Count : 0
    Please give me the suggestions.
    Thanks,
    Venkat

Maybe you are looking for

  • Whole family iTunes library?

    I currently have all of my itunes media files stored on a hard drive attached to my airport extreme.  I did this to save storage space on my wife's MB, who had the vast majority of the media.  Quite honestly, I'm not sure I set it up right, or whethe

  • How to recreate EBS user and keep all his historical data.

    Hi all We have a user that is having an issue seeing any of his scheduled Discoverer reports within the Schedule Manager window of Discoverer Plus; Discoverer Desktop works fine. The solution for it's to recreate the EBS user. The problem with this i

  • I have a problem with my Theme

    After I have imported my video into APE, I choose my theme and after I click to apply, it gives me a message that it can't find or there is no disk. What does that mean? I have tried putting in a new disk, also tried to put my APE disk back into the

  • "Snap" the window size in increments?

    Hello all. I am trying to accomplish two things with a small windowed program. This window contains 1 or more panels, which describe the current state of your Gmail account (it is a gmail notifier), that are a specific size. I'd like to: 1) make sure

  • QM15 - MOVE-CORRESPONDING is not working

    Hi, I am executing a standard transaction QM15, in which workcenter (ARBPL) is not getting populated in the list output display. When I debugged the transaction, i found that there is a statement for moving ARBPL to the output table. MOVE-CORRESPONDI