Accessing an API through a Database Link

Hi,
I am using Jdeveloper 11.1.2.2.0
My use case is that, I need to access an API through a DB Link and pass some parameters/data using this DB link into the API and commit it into the remote database.
I will be having a page from where I will passing the parameters, which should be committed into the database of the API provider.
For this I have created a DB link and tried to query data from the remote database tables, its working.
How to pass the parameters into the API using DB link and commit it into the remote database ?
Thanks,
Nigel.

Hi Frank,
Thanks for the suggestion.
But in my case I need to call the external API using a DB Link.
I am able to call the API and it is returning me the statements that the new row is being created successfully and returns the ID of the newly created row.
But when I try again to access the Database through a query it is showing all the Rows with theirs ID's and data inside them, before and after the Row which I entered.
The rows which has the ID which I entered is having no values in their columns. Is it because the data is not getting committed ?
What is the reason for this ?
Thanks,
Nigel.
Edited by: Nigel Thomas on Jun 14, 2012 2:52 AM

Similar Messages

  • Intermedia search through a database link.

    Has anyone been able to do a search through a database link on an intermedia index in another database?
    My sql is:
    select title
    from [email protected]
    where contains (title,'test')>0;
    I get the following errors:
    ORA-20000:
    ORA-02063:
    null

    I guess you cannot do this. I read somewhere (not on top of my head where) that this is not supported.
    null

  • Unable to access table even after creating Database link

    Hi
    I have created a data base link.It was created properly.
    The Syantax that I have used is follows:
    create database link X_link connect to User1 identified by User1 using 'Other_Database'
    And on running the query:
    select count(*) from table1@X_link
    I am getting the error as follows:
    TNS could not resolve the connect identifier specified... TNS: could not resolve the connect identifier specified.
    Please tell me where is the problem?
    Thanks in Advance

    Your database link does not work because the entry you used does not exist in the tnsnames.ora in the database $ORACLE_HOME.
    Login to the database server, set the environment, and try to tnsping the entry you used for the database link, then fix the tnsnames.ora file (probably in $ORACLE_HOME/network/admin)
    You can test a database link using :-
    select sysdate from dual@link;

  • Greek Data becomes Question Marks when passed through a Database Link

    Hi All,
    We have a 10gR2 sharing a Win32 Server with an MSSQL 2005.
    Data transfers between these are set up using an HS Database Link.
    All latin data is passing well, however we have some Greek in there and its transformed to question marks on the way.
    Measures attempted so far:
    1. I've set the NLS_CHARACTERSET of the 10g to AL32UTF8 . Entered non-Latin data manually to the 10g - works fine.
    2. I've edited the relevant init.ora file to include the following:
    HS_LANGUAGE = AMERICAN.AL32UTF8
    HS_NLS_NCHAR = AL32UTF8
    3. Restarted the DB and Listener.
    Still question marks
    Ideas?
    Thanks
    Tomer

    HSODBC was never certified with NVARCHAR data types. Have a look at the Generic Connectivity Administrator's Guide. It list all supported data types and nchar/nvarchar/ntext is not listed. You can select from those data types, but there is no guarantee the content of those datatypes will be fetched correctly. There are no conversation routines that properly convert unicode content.
    HSODBC has been desupported 15th of March. I strongly recommend you to use DG4ODBC 11.1.0.7. In addition in DG4ODBC the NVARCHAR/NCHAR functionality has improved a lot.
    DG4ODBC V11.1.0.7 needs to be installed into its own Oracle_Home and it can be used with older Oracle database releases like 10.2.0.4 right out of the box; or you have to apply a compatibility patch to your Oracle database releas 9.2.0.8, 10.1.0.5, 10.2.0.3
    Edited by: kgronau on Dec 10, 2008 8:42 PM
    One thing I forgot to mention is the advantage of using DG4ODBC is it maps the nvarchar to Oracle nvarchar and thus there is no codepage translation required.
    But please pay attention; use 11.1.0.7 not the base release 11.1.0.6 as on Windows based operating systems a high/low byte issue was fixed in 11.1.0.7 which is mandatory for NLS support.

  • Can you access packages or sequences via a database link

    I am trying to access a sequence through a database link.
    Does anyone know if this is possible ?

    Hi,
    Thanks very much and I apology for the lack of information in the post.
    I was trying to select from the sequence using
    select myseq@my_link.nextval
    from dual;
    because of this i started looking at web site documentation and could not find any examples or any references to plsql packages or sequences using database links and the oracle documentation on links only specified selecting from tables or views.
    this lead to my post whereas as you described it is my syntax that is the problem.
    thanks again

  • 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

  • Spatial Indexes Through Database Links

    Has anyone tried to "use" a Spatial Index through a Database Link? Meaning you try take advantage of the spatial index on column TABLE_A.GEOM through a database link? An example is:
    SELECT rownum, SHAPE FROM GDT_WATER_POLYGON WHERE AND SDO_FILTER( GDT_WATER_POLYGON.SHAPE SDO_CS.VIEWPORT_TRANSFORM(MDSYS.SDO_GEOMETRY(2003, 0, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(-105.06685,39.7744332,-104.981869,39.8338768) ), 8265),'querytype=window') = 'TRUE'
    where GDT_WATER_POLYGON is a public synonym to WATER_POLYGON@DBLINK
    When I try this in the linked table, it works fine, but when I try it using the link, I get the following error:
    ORA-13226: interface not supported without a spatial index
    Am I forgetting to grant something or is it just not possible?
    Thanks!

    Hi,
    Currently, using a spatial index through a database link is not possible.
    Dan

  • Database Links - Objects Unviewable

    Oracle SQL Developer 1.1 Patch 2
    When I connect to a database with my schema, I can see all my objects in the database, however, when I try looking at objects that I have access to in a different database through a database link...no objects show up. The database links are present in the database that I am connecting too, but I am unable to view other objects that I have access to through the database link? Is this a bug or do I not have the connection setup correctly?

    The best that you can get with the current functionality is to list the synonyms you have for the objects across the database link, assuming that you have created synonyms.

  • Weblogic 5.1, Distributed Transaction and Oracle Database Link

    We are planning to add a new functionality to run in Weblogic server and it
    needs to update tables in two different Oracle databases. Since we are using
    Weblogic 5.1 and it is unrealistic to upgrade to 6.1 in short term, we have
    to deal with the fact that distributed transaction is not supported by JTS
    on 5.1.
    One workaround we can think of is to utilize Oracle database link. Instead
    of having two connection pools, the application talks to only one database
    and access the tables on the other ones through Oracle database link.
    Therefore, when a session bean tries to update two tables on database 1 in
    one transaction, one of the tables is just a link to the other database. We
    hope that even though distributed transaction is not supported by JTS in
    Weblogic 5.1, but since it is supported by Orable, it would work.
    Do you think the above workaround would work? Does anyone have experience on
    something like that?
    Thanks in advance,
    David Chen
    [email protected]

    Hi. You should be able to use any JDBC driver with WebLogic 5.1.
    It may be the JVM that complains, if you use too old a JVM...
    Joe Weinstein at BEA Systems

  • OWA_UTIL and HTP across database link

    Has anyone figured out how to use the features of OWA_UTIL, such as listprint, across a database link? I can create a drop list on data that is in the portal instance. But if I try to create a list based on a table in a back-end database through a database link, it generates errors.
    Also, I create a procedure to generate a dynamic page portlet using htp calls and it works fine if the procedure is located in the portal instance. But move the code to the back-end database and access via a synonym and database link and it generates errors out of the owa_util package.

    Create a view on your local db using tables over the db link and base your list on that view.

  • ODP AND DATABASE LINKS ???

    Hi, some very weird stuff going on here:
    When I bind data to my datagrid, if it comes through a database link in any way (either I code to access via a database link or I create a view with the link in it) I get only the first two chars of every field. Really weird, any ideas:
    You can see four sql lines below- The only one that works is one that is a view on the local database(not the data i need), all the others only return first two chars of every item via the db link. In case two I created the view with the link in it.
    Code in my DAL:
    Public Function returnTissues(ByVal inFrom As String, ByVal inTo As String) As DataTable
    Dim tissues As New DataTable
    Dim command As New OracleCommand
    Dim adapter As New OracleDataAdapter
    Try
    Dim sql As String = "select specimenid, status, sampletype, form, species from [email protected] where specimenid between '" & inFrom & "' and '" & inTo & "'"
    'FAIL-Dim sql As String = "select specimenid, status, sampletype, form, species from specimen_view_sbat where specimenid = 'ONC000100'"
    'PASS-Dim sql As String = "select * from request_view"
    'FAIL-Dim sql As String = "select s_sampleid from [email protected] where s_sampleid = 'MGH000167'"
    command.CommandText = sql
    command.Connection = Me.globaldal.msdb
    adapter.SelectCommand = command
    adapter.Fill(tissues)
    Return tissues
    Catch ex As OracleException
    Throw ex
    Finally
    End Try
    End Function
    Here is the page code:
    Private Sub ButtonSearchByRange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSearchByRange.Click
    Dim fromvalue As String
    Dim tovalue As String
    fromvalue = TextboxFrom.Text
    tovalue = TextBoxTo.Text
    DataGridTissues.DataSource = tissuedal.returnTissues(fromvalue, tovalue)
    DataGridTissues.DataBind()
    End Sub
    Also, I will materialize the view and try it, but it has got to be the ODP, the sql executes fine via slqplus, toad, etc, and It's not the grid, I bound the first column to a dropdown and got the same result.
    My ENV:
    Local DB 8.1.7.3 - I think
    Remote DB 9 release 2
    OPD: 9.2.0.4.01

    Further testing has revealed:
    The database link works fine when connected to another 8.1.7.4 instance as opposed to the 9.2.0.3.0 instance.
    It makes no difference if the link is public or private.
    Creating a materialized view with the database link in it to the 9.2.0.3.0 instance also works fine.
    However none of the above is a solution.

  • Database Link without disturbing each other

    Hai All,
    I have two database DB1 and DB2. I want to continous updating one table from DB2 database into DB1 database in online. But don't see and access the data between the two databases.
    I think the datbase link is the solution for this. But how to achieve the security restrictions through the database link.We want the database servers IP and SID names are trying to keep secret. How to manage this situation?
    Please help,
    Shiju

    First of all, I believe you full knowledge of how Database Links work. how they are created and the different parameters and options when spcifying the user and database?

  • Report over database link error

    Good morning all.
    I have a database link LINKA from USERA on LOCALSERVER to USERB on REMOTESERVER.
    (create database link LINKA connect to USERB identified by mypassword using validtns)
    In USERC on REMOTESERVER I have a TABLEX, with grant all on TABLEX to USERB on REMOTESERVER.
    In USERB on REMOTESERVER I have a view TABLEXV, select * from USERC.TABLEX
    From USERA on LOCALSERVER I can select * from TABLEXV@LINKA. In fact I can insert/update/delete tablexv from USERA.
    I also have a view TABLEXV on USERA, select * from TABLEXV@LINKA. I can also select/insert/update/delete from USERA.TABLEXV.
    So far so good - all working as expected.
    Then, my APEX app on LOCALSERVER, interactive report, parsing schema USERA, querying TABLEXV, I get the following:
    when "Exclude Link Column", I get the error "The requested URL /pls/apex/f was not found on server.
    when "Link to Single Row View", report displays correctly.
    when "Link to Custom Target", I get the error "The requested URL /pls/apex/f was not found on server.
    When I run the select * from TABLEXV as a regular report (i.e. not interactive), I also get the error.
    So the only time I get the report displayed correctly is using IR and "Link to Single Row View".
    However, clicking on the link (for Single Row View) I get "The requested URL /pls/apex/wwv_flow.show was not found on this server.".
    To summarize:
    - accessing table via view over database link
    - works outside of apex without issue
    - inside only works when Link to Single Row View set
    - But clicking on link fails
    I could live with just having the Link to Singe Row View option if I could disable displaying of the icon so that the user cant click on it.
    APEX 3.2.00.27
    EE Database - 10.2.0.3 (yes I know out of support)
    Remote EE Database - 10.2.0.5
    Real object names replaced to protect the innocent!
    Anyone got any clues?
    I have used remote tables many times in my APEX applications and never had this issue.
    Thanks,
    Rob @ very confused .com

    Good morning all.
    I have a database link LINKA from USERA on LOCALSERVER to USERB on REMOTESERVER.
    (create database link LINKA connect to USERB identified by mypassword using validtns)
    In USERC on REMOTESERVER I have a TABLEX, with grant all on TABLEX to USERB on REMOTESERVER.
    In USERB on REMOTESERVER I have a view TABLEXV, select * from USERC.TABLEX
    From USERA on LOCALSERVER I can select * from TABLEXV@LINKA. In fact I can insert/update/delete tablexv from USERA.
    I also have a view TABLEXV on USERA, select * from TABLEXV@LINKA. I can also select/insert/update/delete from USERA.TABLEXV.
    So far so good - all working as expected.
    Then, my APEX app on LOCALSERVER, interactive report, parsing schema USERA, querying TABLEXV, I get the following:
    when "Exclude Link Column", I get the error "The requested URL /pls/apex/f was not found on server.
    when "Link to Single Row View", report displays correctly.
    when "Link to Custom Target", I get the error "The requested URL /pls/apex/f was not found on server.
    When I run the select * from TABLEXV as a regular report (i.e. not interactive), I also get the error.
    So the only time I get the report displayed correctly is using IR and "Link to Single Row View".
    However, clicking on the link (for Single Row View) I get "The requested URL /pls/apex/wwv_flow.show was not found on this server.".
    To summarize:
    - accessing table via view over database link
    - works outside of apex without issue
    - inside only works when Link to Single Row View set
    - But clicking on link fails
    I could live with just having the Link to Singe Row View option if I could disable displaying of the icon so that the user cant click on it.
    APEX 3.2.00.27
    EE Database - 10.2.0.3 (yes I know out of support)
    Remote EE Database - 10.2.0.5
    Real object names replaced to protect the innocent!
    Anyone got any clues?
    I have used remote tables many times in my APEX applications and never had this issue.
    Thanks,
    Rob @ very confused .com

  • Database Link in the OWB

    We are trying to deploy a map that needs to use a database link to access the source table in another server. We could create database link on OWB and import tables. When we deployed it we receive the first error "VLD-2771: System privileges may not allow extraction from source PROD_TAX_AVG" and after "table or view does not exists". The privileges was granted and we can test the access in SQLPLUS using the database link created.
    Anybody knows this issue ?
    Thanks,
    Ricardo

    Hi Ricardo,
    The message "VLD-2771: System privileges may not allow extraction from source PROD_TAX_AVG" is merely a warning, this can (generally) be ignored.
    After deploying your mapping check the PL/SQL code deployed and try to identify where the problem is.
    I have encountered the issue before where the schema name is configured for the mapping overriding the location defined parameters.
    To check this in the Design repository, right-click the mapping and click 'Configure'.
    Expand 'Sources and Targets' and check the schema name is not hard-coded.
    Cheers.

  • Database Link ORA-04054

    Hi
    I try send data from DB1 to DB2 via dblink.
    I created link
    CREATE DATABASE LINK MED
    CONNECT TO user IDENTIFIED BY pass
    USING
    '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.255.134.30)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = med)
    and I can select data from remote table without errors.
    When I try Insert data to remote table (with PLSQL)
    for xx in (select u.*, sm.nr_gm, sm.nazwa nazwa_miejsc from adresy u ,sl_miejscow@med sm where u.miasto=sm.ident and
    not exists
    (select * from PAC@med pk where pk.ident_pac=u.identyfikator and pk.jednoraz='K' )
    and u.data_zap is not null)
    loop
    insert into PAC@MED
    (ident_pac, od_daty, do_daty, adr_ulica, adr_kod, nr_domu, nr_lokalu, telefon, jednoraz,z_kim_mieszka,ident_miejsc,ident_poczty,ident_kraj, adr_gmina, WOJEW_KOD, ADR_MIEJSC)
    values
    ( xx.identyfikator, sysdate, to_date('31/12/2099','dd/mm/yyyy'),xx.ULICA, xx.KOD,xx.DOM,xx.LOKAL,
    xx.TELEFON,'K',82, xx.MIASTO, xx.MIASTO, xx.kraj, xx.nr_gm,99, xx.nazwa_miejsc);
    end loop;
    I have error ORA-04054: database link string does not exist.
    Can you help me ??
    Message was edited by:
    AndyPol

    I found solution.
    Main problem was in GLOBAL_NAMES parameter.
    This description help me:
    Problem Description:
    ====================
    You receive an ORA-02069 error during an insert to a remote database through a
    database link when the insert contained a local sequence.
    ORA-02069: global_names parameter must be set to TRUE for this operation
    Cause: A remote mapping of the statement is required but cannot be
    achieved because global_names should be set to TRUE for it to
    be achieved.
    Action: Issue alter session set global_names = true if possible
    Problem Explanation:
    ====================
    This is expected behaviour.
    The insert statement is transformed so that it can be executed at the remote
    end of the dblink. The reference to the local sequence has to be qualified so
    that the remote end knows to call back to the local instance. The qualification
    is made by appending @local_dbname.domain to the sequence reference if
    global_names=true. When global_names=false, the code cannot make the assumption
    that the qualifier will be valid and reports the error ORA-02069 'global_names
    parameter must be set to TRUE for this operation'.
    Search Words:
    =============
    DBLINK SEQUENCE GLOBAL_NAMES ORA-2069
    Solution Description:
    =====================
    Use the following workaround:
    1. Create a 'temporary' table on the local database for holding the inserts.
    2. Insert the entire row into this table.
    3. Insert the 'temporary' row from the temporary table to the remote table.
    4. Delete the 'temporary' row from the temporary table.
    This is slower but it will get around the problem. It help me
    OR
    Set GLOBAL_NAMES=TRUE in the init<SID>.ora - not work for me
    Solution Explanation:
    =====================
    The first workaround bypasses the remote node having to make a
    call back to the local instance to reference the local sequence.

Maybe you are looking for

  • RoboHelp V8 Are working files the output files?

    I have RH V4 and there are 2 version of the file the html pages. The one I edit and then the files created for the output.   I have to save both versions to multiple places and I was wondering if they are now just one file/version.   Also, I am tryin

  • Merge Two iTunes folders

    Hi, I would like to organize my music, but I have 2 iTunes folders on my pc. They each contains libraries, a lot of music, artwork etc... What should I do to merge both together? I tried to cut one and past it in the main music folder (next to the ot

  • GR shows as available though invoices are processsed more than G R . MR11

    Hi experts I have  a query , There are more invoices processed against A  PO than Goods receipted.All invoices have been paid All GR have been done  MR11 An invoice got paid after MR11 was done If we try to process another invoice the GRs show as ava

  • DW 4 not seeing GoLive .site file!

    I have several sites created in GoLive 7. I downloaded the GoLive 9 free trial, brought them over into GL9. Then I did the "Convert Site to New Structure" command as I have seen suggested. Downloaded the GoLive to DW migration extension and installed

  • I need to convert Nikon D7000 Camera NEF files.  I have a Mac )SX 10.6.8 & Adobe CS4.

    I just bought a Nikon D7000 camera & need to convert Nikon RAWS (NEF) files & they are not recognized by my Adobe CS4 on my Mac 0sX 10.6.8 Do I need to update to CS5 or CS6.  Also, would like the new software to allow me to still convert older pre-ex