Database link form OLEDB source

Hello
Is there any possibility to create a Database link from oledb datasource in Oracle 11g? mayby you have any suggestion how can I access Oledb via Oracle, since the Generic Connectivity is not available in the Oracle 11g.
Many thanks,
Wojtek

Hi Wojtek,
To avoid any confusion I will clarify that Generic Connectivity is available in 11g as the product Database Gateway for ODBC (DG4ODBC). This a direct replacement for the 10g generic connectiivty products, such as HSODBC. However, what is no longer available in 11g is HSOLEDB and only ODBC connectiivty is available using the gateway products but not OLEDB.
The Oracle OLEDB provider is still available and the following note may help -
Master Note For The Oracle Provider for OLE DB (OLE DB) (Doc ID 1132946.1)
Regards,
Mike

Similar Messages

  • Clean solution to use Database Links in OLEDB source

    Hi,
    I have a connection to server A and from there, I have access to a set of views that are behind a database link.
    All the queries I can do follow have the following semantic:
    SELECT CODE, DESCRIPTRION
    FROM STUDENT@DBLINK_DEV
    but then in production it will be
    SELECT CODE, DESCRIPTRION
    FROM STUDENT@DBLINK_PRD
    Is there any clean solution to have the dblink in a parameter without having to use a SQL statement inside package variable?
    Thank you

     I dislike the fact that I cannot simply copy paste thecode into the sql query of the oledb source.
    Why do you have to even do that?
    The variable takes care of the query by itself by means of expression so all that you do is set expression
    and map the variable.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • OWB 10g -- Can't Create Database Links for Data Source and Target

    We installed OWB 10g server components on a Unix box running Oracle 10g (R2) database. The Designer Repository is in one instance. The Runtime Repository and the Target are in another instance. The OWB client component was installed on Windows XP. We create a data source module and a target module in OWB. The data source is on another Unix box running Oracle 9i (R2) database. We try to create database links for data source module and target module, respective. But when we created and tested the DB links, the DB links were failed.
    For the database link of data source, we got the following error message:
    Testing...
    Failed.
    SQL Exception
    Repository Error:SQL Exception..
    Class Name: CacheMediator.
    Method Name: getDDEntryFromDB.
    Repository Error Message: ORA-12170: TNS:Connect timeout occurred
    For the database link of target , we got the following error message:
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    Repository Error:SQL Exception..
    Class Name: oracle.wh.ui.integrator.common.RepositoryUtils.
    Method Name: createDBLink(String, String, String, String).
    Method Name: -1.
    Repository Error Message: java.sql.SQLException: ORA-00933: SQL command not properly ended.
    However, we could connect to the two databases (data source and target) using the OWB’s utility SQL Plus.
    Please help us to solve this problem. Thank you.

    As I said prior the database link creation should work from within the OWB client (also in 10).
    Regarding your issue when deploying, have you registered your target locations in the deployment manager and did you first deployed your target location's connector which points out to your source?
    I myself had some problems with database link creations in the past and I can't remember exactly what they were but it had something to do with
    - the use of abnormal characters in the database link name
    - long domain name used in as names.default_domain in my sqlnet.ora file
    What you can do is check the actual script created when deploying the database link so see if there's something strange and check if executing the created script manually works or not.

  • Database link hangs from source 10204 to remote 9208

    Hi,
    I have a sql job that runs sql statements on database 10204 connecting to database 9208 via a database link. The job takes about half hour to complete. The source database, 10204 connects to remote 9208 to retreive data from 9208. Most of the processing is performed on the remote db. For some reason, after processing sql statements on remote db, the job hangs. I looked at wait events on remote and it shows "SQL*Net message from client". I looked at wait events on source database and it shows "SQL*Net message from dblink".
    It looks to me that there is something wrong with the communication between the source and remote db via the db link.
    I tried setting the default_sdu_size from 2k to 8k but this does not help the hanging. I tried runing the job at different times in the day and night but this does not help either. I filed an SR with metalink and they asked me to run trace. I sent them the trace files and they came back saying to bounce the databases. I bounce the databases and still that did not resolve the hanging. Anyone encounter this issue lately? Thank you in advance.

    I have seen this before between 2 10g databases, but very rarely, and never identified the cause, so suspected it was from a network glitch. Solution was to kill the hung sessions and restart.
    Setup some network tests and leave them running. E.g ping tests, scp tests, and/or open ssh sessions to see if you lose any packets when the database link fails. Check your OS logs for network interface errors. Check if there are any firewalls between the databases which may disconnect inactive sessions.

  • Change of a database link in OWB

    I have a good suggestion to change a a database link when a server is moved to another location (in that case the database link of the source module has to be changed)
    In OWB 9.0.2 it's not impossible to delete a database link in OWB, so you have to do it manually
    (in 9.0.4 it should be possible, but this version is also not easy to use).
    - Start SQL Plus and log in as the schema on which the OWB repository is created (e.g. OWB).
    - Drop the database link ('drop database link <dblink name>')
    - Create a new database link in the same schema with the new parameters, e.g:
    CREATE DATABASE LINK "<dblink name>"
    CONNECT TO "<...>" IDENTIFIED BY "<...>"
    USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = <hostname>) (PORT = 1521))) (CONNECT_DATA = (SID = <sid> )))'
    Done!
    No stupid errors in OWB when you create the database link in OWB itself.
    Regards,
    Maurice
    ;

    SQL> create view test_view as select dummy from [email protected]
    2 ;
    View created.
    SQL> select dummy from test_view;
    D
    X
    Execution Plan
    0 SELECT STATEMENT (REMOTE) Optimizer=CHOOSE
    1 0 TABLE ACCESS (FULL) OF 'DUAL' FIRST9.XXXX.COM
    Statistics
    7 recursive calls
    4 db block gets
    2 consistent gets
    0 physical reads
    212 redo size
    363 bytes sent via SQL*Net to client
    425 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    NOW WE PULL OUT THE NETWORK CABLE connecting the two servers.
    SQL> select dummy from test_view;
    select dummy from test_view
    ERROR at line 1:
    ORA-02068: following severe error from FIRST9.XXXX.COM
    ORA-03113: end-of-file on communication channel
    So all you have to do is to test for the communications error.

  • NLS settings for a database link between DBs with different character sets

    I am using a database link to move data from one database to another and I am seeing some strange data problems. The databases have different character sets and different NLS settings. I wonder if this could be causing my problem.
    Here are the NLS parameters for the database where the database link exists. (the SOURCE database)
    1     NLS_CALENDAR     GREGORIAN
    2     NLS_CHARACTERSET     WE8MSWIN1252
    3     NLS_COMP     BINARY
    4     NLS_CURRENCY     $
    5     NLS_DATE_FORMAT     DD-MON-RR
    6     NLS_DATE_LANGUAGE     AMERICAN
    7     NLS_DUAL_CURRENCY     $
    8     NLS_ISO_CURRENCY     AMERICA
    9     NLS_LANGUAGE     AMERICAN
    10     NLS_LENGTH_SEMANTICS     BYTE
    11     NLS_NCHAR_CHARACTERSET     AL16UTF16
    12     NLS_NCHAR_CONV_EXCP     FALSE
    13     NLS_NUMERIC_CHARACTERS     .,
    14     NLS_SORT     BINARY
    15     NLS_TERRITORY     AMERICA
    16     NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    17     NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    18     NLS_TIME_FORMAT     HH.MI.SSXFF AM
    19     NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    Here are the NLS parameters for the database that the database link connects to. (the TARGET database)
    1     NLS_CALENDAR     GREGORIAN
    2     NLS_CHARACTERSET     AL32UTF8
    3     NLS_COMP     BINARY
    4     NLS_CURRENCY     $
    5     NLS_DATE_FORMAT     DD-MON-RR
    6     NLS_DATE_LANGUAGE     AMERICAN
    7     NLS_DUAL_CURRENCY     $
    8     NLS_ISO_CURRENCY     AMERICA
    9     NLS_LANGUAGE     AMERICAN
    10     NLS_LENGTH_SEMANTICS     BYTE
    11     NLS_NCHAR_CHARACTERSET     AL16UTF16
    12     NLS_NCHAR_CONV_EXCP     FALSE
    13     NLS_NUMERIC_CHARACTERS     .,
    14     NLS_SORT     BINARY
    15     NLS_TERRITORY     AMERICA
    16     NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    17     NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    18     NLS_TIME_FORMAT     HH.MI.SSXFF AM
    19     NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    The SOURCE database version is 10g Release 10.2.0.3.0 - Production
    The TARGET database version is 11g Release 11.1.0.6.0 - 64bit Production
    Do I need to modify the NLS settings in the SOURCE database before executing a script to insert data into the TARGET database?
    Thanks, Jack

    The difference in settings is not a problem by itself, especially that only the NLS_CHARACTERSET matters. Of course, this difference may lead to certain issues if not taken into consideration.
    Please, describe symptoms of your problems.
    -- Sergiusz

  • Using database link  with a dynamic SQL in Forms 5

    I have a Form 5 application where a database link is specified in a client version of dynamic SQL. The function that the application is designed to perform is to access data in a table in a remote database and use it to populate another table in a local database with the same structure as the source table. Dynamic SQL is used because the name of the table can only be resolved during run time.
    The problem is that it gives error with code 'ORA-03113' and text 'End-of-file on communication channel' when you try to run it.
    Is it not possible to use a database link with a dynamic SQL? What can I do to overcome the problem ?

    Try to create a local view based ao the remote table and use the view.

  • Database link in forms is different that actual database name

    I am using a database link in Oracle Forms 6i, however, the database link name for the referenced database is not the same as the actual databse service/instance name.
    It does not work, and I suppose its something to do with the global names feature which is true in the source database it is in a replication group.
    I would like to know whether the dblink name which I am using in oracle forms, does it have to have the same name as an entry in the tnsnames.ora file, or can be substituted thgrough any so-calld alias from within oracle forms?
    Windows 2k Ad svr, Oracle Forms 6i, DB 9.2.0.1

    I recently upgraded my development environment from Forms 10.1.2.0.2 to Forms 10.1.2.3 and am experiencing the same problem -- not able to COMPILE a form that references a database link. The error is: "Error 352 at line 99, column 3 Unable to access another database 'LINKNAME'". This occurs on an UPDATE statement within PL/SQL code in a form trigger that used to compile and work fine.
    I tried the database link in SQL Plus and the link is working fine.
    Database environment is 10g 10.2.0.3 on Windows Server 2003.
    Is anyone able to do this?

  • Question about using database links in Forms 10g

    I have a form that uses a database link for the "Query Data Source Name," i.e. it is set to some_view@some_db_link
    For some reason when I run a query using the DB link the query takes approximately 30 seconds. When I remove the link and go local the query takes about one second. Has anybody observed and addressed this issue before (without going local of course)?
    Thanks,
    Thomas

    Let me first say that it is never a good idea to use a db link in the data source. It is better to create a synonym in the database and use this as the data source. If the db link changes, you only have to do this in the database, without recompiling forms.
    create synonym some_view for some_view@some_db_link
    This may already solve your problem. If not, than see if the query is also slow in sqlplus. You may have a problem in your connection between the two databases.

  • Database link error when compiling forms 6.0 and forms 6i.

    Dear sirs,
    We have a database link between two databases of the same version oracle 8.0.5.
    Recently we have upgraded one of our databases to version 9.2.0.1 (the database where the database link was originally created ) and now we are having problems when compiling forms that have PL/SQL blocks using the database link.
    The error message received when compiling the form is the following:
    ORA-02068: Following severe error from dbproduc.world
    ORA-00600: Internal error code, arguments: [No conversion op],[],[],[],[],[],[],[]
    The forms did not present this error before, it began when we made the upgrade.
    Is this a FORMS 6.0 problem ?
    Is this an ORACLE 8.0.5 problem ?
    Is this an ORACLE 9.2.0.1 problem ?
    Can you please give me some advice to solve this problem ?
    Thanks in advance

    As I see, when you use a non-oracle database the tables don`t appear, you must create the realation with the table manually, on the properties

  • Database link in forms 6i stopped working in database 10g release 2.

    Hi,
    We have Forms 6i with all patches added.
    We were able to recompile the form that contains database link in database 10g release 1 environment. Recently we migrated to database 10g release 2.
    We still can run the form (previously compiled in database 10g release 1), but when we tried to modify the form and recompile it in databbase 10g release 2,
    the forms developer closed down without giving any error message.
    When we removed any reference to the database link from the form, we were able to recompile the form with no problem. Database Linkd in SQL works.
    The question: what do we need to do in the database 10g release 2 to make the link in forms 6i work?
    Thank you. Lev.

    I recently upgraded my development environment from Forms 10.1.2.0.2 to Forms 10.1.2.3 and am experiencing the same problem -- not able to COMPILE a form that references a database link. The error is: "Error 352 at line 99, column 3 Unable to access another database 'LINKNAME'". This occurs on an UPDATE statement within PL/SQL code in a form trigger that used to compile and work fine.
    I tried the database link in SQL Plus and the link is working fine.
    Database environment is 10g 10.2.0.3 on Windows Server 2003.
    Is anyone able to do this?

  • How to create a database link on an ms acces data source

    Hello every body
    Is it possible to create a database link on an MS access data source under
    oracle 10 g and Apex ?
    If yes how to do it ?
    Thanks in advace

    I don't know what Apex is!!! But try to follow these instructions.
    It works for Oracle 9i.
    As far as I know, you are supposed to have installed other than ORACLE Client to complete these instructions.
    1. Control Panel / Administrative Tools / Data Sources (ODBC)
    Folder: System DSN /
    click add
    Choose : Microsoft Access Driver
    Data Source Name : my_test
    Description : any_description_you_want
    click Database/Select... : full pathname for <your_file.mdb>
    click OK
    Click OK
    2. Goto OH\hs\admin:
    2.1) Create a copy of "inithsodbc.ora" file giving it this name:
    initmy_test.ora
    2.2) Edit "initmy_test.ora" and change as below.
    # HS init parameters
    HS_FDS_CONNECT_INFO = my_test
    HS_FDS_TRACE_LEVEL = OFF
    3. Add this entry to listener ( Don't forget to stop/start the listener )
    (SID_DESC =
    (SID_NAME = my_teste)
    (ORACLE_HOME = <Path to OH> ) ### Ex: D:\ORANT901
    (PROGRAM = hsolesql)
    4. Now you need to add entries to point to the HS in the tnsnames.ora :
    access =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=<your_host>)(PORT=1521))
    (CONNECT_DATA=(SID=my_test))
    (HS=my_test)
    5. Now you need to go into the database and create the database link:
    CREATE PUBLIC DATABASE LINK "ACCESS_DB" USING 'access';
    6. select * from your_table@ACCESS_DB;
    HTH
    RK
    Message was edited by:
    RKravcenko

  • Browsing and selecting through database link to fill in a form item

    Hi
    I have created a database link named in my application
    dblink_3
    I have a form and report in my application. On the from I have an item called P6_USER_ for which I would like to access a table (trk_user) through the database link I created so that I can fill in the text field or select list with a user from the table.
    can I browse by a select list somehow? or do I need to create a button that takes me to a report with a list of the data in the table and select that way.
    Please steer me in the right direction,
    Thanks,
    Kirk

    Hi Kirk,
    The fact that the data is on an external table shouldn't make any difference. You can do:
    SELECT field1 d, field2 r FROM trk_user@dblink_3 ORDER BY 1
    and that will give you your select list

  • Database link works for form but not report

    I have created a database link to the scott.emp table in a remote database then created a local synonym in my Portal.
    I then created a Form and a Report referencing the local synonym. The for works and allows me to insert record but the form does not. The report compiles fine but I get a message that Portal can't find the underlying table. It seems that if the form works then the report should too. Does anyone have a recommended solution?
    Thank you.
    Sam Masias

    There is a bug filed for this issue. And it should be taken up for fixing most probably in next release.

  • How to create a form from a table available from a database link?

    Hi,
    I have a table accessible via a database link.
    It is working perfectly, but I cannot create a from using the wizzard.
    It says: "Primary Key must be specified."
    But there is a primary key in the source database!
    Best regards,
    Sebastien (Geneva)

    a little more about dblink:
    i have a view in the dblink
    when i execute
    insert into ias_time_of_acc(ias29, end_acc_period, start_acc_period, acc_last_date_id, comp_date_id, active)
    values(:p4110_ias29, to_date(:p4110_end_acc,'DD.MM.YYYY'),
    to_date(:p4110_start_acc,'DD.MM.YYYY'),:p4110_last_date, :p4110_comp_date,'N');
    i've got this err:
    ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from OFSA_OWNER@OFSA_TO_ORCL
    and when i execute
    a:= to_date(:p4110_start_acc,'DD.MM.YYYY') ;
    b:= :p4110_last_date;
    c:= :p4110_comp_date;
    d:= :p4110_ias29;
    insert into ias_time_of_acc(ias29, start_acc_period, end_acc_period, acc_last_date_id, comp_date_id, active )
    values(d, a,to_date(:p4110_end_acc,'DD.MM.YYYY'),
    b, c,'N' );
    everything is working properly
    so problem is in the lenght of insert statment i think.

Maybe you are looking for

  • How can i create a hyperlink to individual emails?

    I would like to be able to create a hyperlink to click through to individualk emails.  I plan on creating a simple database in Excel and would like to be able to instantly access individual emails.  I have done this in the past with files stored on m

  • How can I copy text from a PDF document in bb pbk?

    I've tried to copy a text from a PDF document but adobe reader doesn't give me that option. How can I do it? or there is a better reader for PDF that allows to copy, make bookmarks, to highlights?

  • SWF Viewing problem - Web Galleries?

    Hi there, I am entirely new to this – I'm using Dreamweaver MX and use Abobe Bridge CS2. My questions are; 1 – I have created a Web Gallery in Adobe, and then placed the swf file into a Dreamweaver page, my problem is this – the file works ok in desi

  • Up to what level abap devlopment is possible in SAP

    hi up to what level abap devlopment is possible in SAP. thanks.

  • Error in  PO release strategy

    Hi everyone,    I am facing an error in PO release strategy ie;  '  purchasing document (pdocno)  not subject to release strategey'. pls help me in solving this. Thanks, Archana.