Accessing tables through DBlinks via ADF BC entities, jdev11.1.1.2.0

To my understanding, everytime any object is accessed via a dblink, a transaction is created on the database; even if one merely selects from a table. For example, whenever we were writing PL/SQL, after we were finished accessing data through a dblink we performed a commit to close any open transaction that opened via selects. Using ADF BC, if we create an entity that accesses a table via dblink, what guarantee that transaction sessions are closed after simple selects (no DML)? How would these transactions be closed if data from a db link is simply displayed in an ADF table or referenced via LOV? Is there perhaps some setting that can be set to open connections without transactions?
Reference: http://www.jlcomp.demon.co.uk/faq/dblink_commit.html
Best Regards,
Valon

valon,
This is indeed a tricky one. You are correct that a transaction is started whenever you do any selects that touch a remote object. The problem that I see is that even if you were somehow able to execute a commit after every SELECT statement, the transaction always executes in the context of an application module - if you committed the transaction, you'd also commit any outstanding transaction going on in the AM at the time. In general, this would be a bad thing, although you may be able to ensure that it is OK for your specific use case. I did a quick scan of the APIs to see if I could locate any method that you could possibly override, but didn't locate anything that looked promising.
John

Similar Messages

  • Insert / update data to a table through DBLINK (oracle)

    I try to insert / update a table from one instance of oracle database to another one through oracle dblink, get following error:
    java.sql.SQLException: ORA-01008: not all variables bound
    ORA-02063: preceding line from MYLINK
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2152)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2035)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2876)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:609)
    The same code to insert / update the exact same table in local instance works fine.No any binding problem. So i am pretty sure all ? mark in SQL are set with some value before sending to Oracle.
    Someone please advise what is possible problem. Db link is not set correctly? or we can not update remote table by dblink.
    By the way i can do insert / update from TOAD to the remote table through DBLINK. Problem happens only in Java code.
    thanks!
    Gary

    dblink links from one database instance to another.
    So it is certainly a source of possible problems when it works on one database and not another.
    You should start by looking at the dblink and it possible testing it in the database not via java.
    Note as well that that error suggests that it is coming from the Oracle database. I believe if you had a bind parameter problem in your java code that the error would come from the driver. But that is a guess on my part.

  • Update Yes/No field in access table through oracle procedure

    Hi,
    How to update Yes/No field in access table through oracle procedure. all other fields like AutoNumber, Text I can update it. Yes/No field how to update? Please, any one can help me?
    Thanks and Regards,
    Sudha.

    Sudha Teki wrote:
    select "fldPost" from tblPHd@ODBCLNKNot quite sure what you mean, but the way you select the column would indicate a case sensitive column name
    Look at this example
    SQL> create table t
      2  ("this" varchar2(10))
      3  /
    Table created.
    SQL> insert into t values ('hello')
      2  /
    1 row created.
    SQL> select *
      2    from t
      3  /
    this
    hello
    SQL> select this
      2    from t
      3  /
    select this
    ERROR at line 1:
    ORA-00904: "THIS": invalid identifier
    SQL> select "this"
      2    from t
      3  /
    this
    helloIs your column name also case sensitive?

  • Select from multiple tables through dblink

    I am seeking help. Can I select multiple tables through a dblink from a remote database? I tried, it seems it always return ORA-00933 error. code like this:
    select A.ID, B.CODE, C.TYPE_DESC
    from TABLE_ONE A@db_link , TABLE_TWO B@db_link, TABLE_THREE C@db_link;
    where A.ID = B.ID
    and B.CODE = C.CODE
    Thanks in advance.

    Just as an FYI, from a performance standpoint, it is frequently the case (though certainly not guaranteed) that you'll get better performance creating a view on the remote database that does the join of all three tables and to use that view in your query, particularly if you're also joining in local tables. Optimizing SQL statements across database links tends to be particularly hard, a view often helps force Oracle to join the remote tables on the remote database which is generally what you'd want. Of course, this is not a guarantee, and you can always get explicit with hints to force joins to happen on one or the other system, but this is frequently the easiest starting point.
    Justin

  • Linking Access tables, creating a query with using both Access and Oracle

    Hello,
    I am using 3.0.04.34 version Oracle Developer. I am supposed to create a script/procedure to use both Access tables and oracle tables together. There is an option in developer to copy the access tables into oracle. But it doesn't help me. Because when we updated the access tables
    the copied ones are not be updated. How can I created a linked access tables to oracle and create a query with using both access and oracle table together.
    I will appreciate if you guys help me. I look forward to hearing from you guys.
    Thanks,
    Pinar

    Pinar,
    to be able to query MS Access tables in Oracle you need an additional product, the Oracle Database Gateway for ODBC. It allows you to link any foreign database into an Oracle database using a suitable ODBC driver. You can then access the MS Access tables through a database link based on the Database Gateway for ODBC. This will also allow you to join local Oracle and remote MS Access tables from your Oracle database.
    There's a note on My Oracle Support which gives you more details:Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
    And there's also a dedicated Forum: Heterogeneous Connectivity

  • Accessing DB2 data through DBLINK in Java program recieves ORA-02063 error

    Hello,
    Is it posible to access a mainframe DB2 table through a Java JDBC connection utilizing a DBLink / Synonym. Using Toad or SQLDeveloper, I can select the DB2 data just fine. Also, PL/SQL programs can access the data without issues. When I try to select data from the DB2 Table in a Java program, I get ORA-01002: fetch out of sequence -- ORA-02063 preceding line from DB2D errors.
    The code I am using to test is:
    (Note: TBL_LOC_ADR is the Synonym that points to the Mainfram DB2 table)
    public static void main(String[] args) {
              Connection con = null;
              Statement stmt = null;
              String query = "SELECT * FROM tbl_loc_adr";
              ResultSet rs;
              try {
                   System.out.println("Getting connection");
                   con = BatchDBConnection.getDBConnection();
                   TestConnection tc = new TestConnection();
                   System.out.println("Creating ps");
                   stmt = con.createStatement();
                   System.out.println("Calling qds");
                   rs = stmt.executeQuery(query);
                   System.out.println(" Returned data " );
              } catch (Exception e) {
                   System.out.println("Error " + e.getMessage());
                   e.printStackTrace();
    The error occurs on the rs = stmt.executeQuery(query); line.
    Thanks for any input into this error. It's been driving me nuts all day.
    Chris

    Chris,
    What's your oracle version? You might be hitting a bug as identified in this metalkink doc id, see if this helps out. Resolution posted in the metalink by applying patches or confirm that you have applied all the required patches.
    Doc ID: 456815.1 ORA-01002 ORA-2063 When Profiling DB2/400 Table Accessed by View via Transparent Gateway for DRDA
    Regards

  • Can't use filter when accessing hana table through link from another table in sapui5

    Hi all,
    Have a strange one and I was wondering if someone had come across this before.
    Hana table structure
          entity SalesOrder {
        key element name : String;
        element contact : Association[0..*] to Contact via backlink order;
    entity Contact {
    element location: Location;
        element order : Association to SalesOrder;
    ==
    each sales order has a number of contacts.
    In javascript, if I bind on list of contacts directly then I can use the filter
    oRowRepeater.bindRows("/Contact",oRowTemplate,null,[new sap.ui.model.Filter("location",sap.ui.model.FilterOperator.EQ, "Germany")]);
    and if I enter link i returns the number of entries
    Contact/$count?$filter=location eq 'Germany'
    But if I get contacts through the sales order it doesn't allow me to use the filter,
    oRowRepeater.bindRows("/SalesOrder('mike')/Contact",oRowTemplate,null,[new sap.ui.model.Filter("location",sap.ui.model.FilterOperator.EQ, "Germany")]);
    I can return the contacts same as accessing them directly and i can get the information such as
    new sap.ui.commons.TextView({text: "{location}"}) same as before but only difference is that i can't filter.
    When I try the following I get error
    /SalesOrder('mike')/Contact/$count?$filter=location eq 'Germany'
    Error
    "message": {
                "lang": "en-US",
                "value": {
                    "type": "ODataInputError",
                    "message": "Bad Request URL: U"
    When I open Chrome Developer Tools I see the following error
    SalesOrder/contact/$count?$filter=location%20eq%20%27EMEA%27 400 (Bad Request)
    Basically the $count doesn't work if you access contacts indirectly even though the link is there.
    Is this a bug or am I doing something wrong?
    Hana is sp8, I am up to date with almost everything.
    Many thanks,
    Matthew

    for the reading/writing from oracle to access, you could do something like this:
    for table in oracle/access with fields of id(number), name(varchar/text):
    Connection oconn = //connect to Oracle
    Connection aconn =  //connect to access
    //create the insert statement into access table
    PreparedStatement apstmt = aconn.prepareStatement("INSERT INTO accesstable (id, name) values (?,?)");
    //select all the results neeed from oracle table
    Statement ostmt = oconn.createStatement();
    ResultSet rs = ostmt.executeQuery("select id, name from oracletable where...");
    while ( rs.next() )
         apstmt.setLong(1, rs.getLong(1));
         apstmt.setString(2, rs.getString(2));
         apstmt.addBatch();
         //if your driver doesn't support batching, just use this:
         //apstmt.executeUpdate();
    //use this only if you use batch statements
    apstmt.executeBatch();
    rs.close();
    stmt.close();
    apstmt.close();
    oconn.close();
    aconn.close();

  • Send data to ECC table through RFC Call function from SAP B1 via  b1if

    Hi,
    I have created scenario in B1if which triggers from SAP B1, now I have to send this data in to ECC table, so I have created scenario for that with inbound SAP B1, outbound void and in process RFC Call atom is there but I am not getting data in receiver and also how to write xml to send data in RFC function. Function for RFC has configured from ECC end and have access of that function.
    So please help me to send data to ECC table through RFC Call function from SAP B1 (9.0) via b1if
    Thanks

    Solved by my own.

  • I am trying to have access tables of the Sql Server through the Oracle

    I am trying to have access tables of the Sql Server through the Oracle and this being occurred the error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set.
    Please set it in init <orasid>.ora file.
    ORA-02063: preceding 2 lines from HSMSQL
    I created the ODBC with name HSMSQL.
    I made all the configurations in the archives
    tnsnames.ora:
    HSMSQL=
    (DESCRIPTION=
    (ADDRESS= (PROTOCOL = tcp)(HOST = wsus)(PORT = 1521))
    (CONNECT_DATA =
    (SID = HSMSQL)
    (HS = OK)
    listener.ora:
    (SID_DESC = (SID_NAME=HSMSQL)
    (ORACLE_HOME= C:\oracle\ora92)
    (PROGRAM =hsodbc)
    initHS_SID.ora:
    HS_FDS_CONNECT_INFO = HSMSQL
    HS_FDS_TRACE_LEVEL = OFF
    -- Create database link
    create database link HSMSQL.US.ORACLE.COM
    connect to TESTE identified by TESTE2
    using 'HSMSQL';
    But when I execute query the error occurs:
    Select * from TabTeste@HSMSQL
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set.
    Please set it in init <orasid>.ora file.
    ORA-02063: preceding 2 lines from HSMSQL
    Please they help me, thanks, Paulo.

    Hi,
    It seems that your configuration is Ok. By the way, the workaround for this error is:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for ODBC][H001] The environment variable <HS_FDS_CONNECT_INFO> is not set.
    * Set HS_FDS_CONNECT_INFO in the hs{sid}init.ora file to the data source name.
    Example: HS_FDS_CONNECT_INFO = <ODBC DataSource Name>
    * Make sure the hs{sid}init.ora file exists in the ORACLE_HOME/hs/admin directory and has the same name as the SID in the LISTENER.ORA.
    Example: If SID=hsodbc in the listener.ora file, then the hs{sid}init.ora file would be named ORACLE_HOME/hs/admin/inithsodbc.ora
    For more information see if this [url http://forums.oracle.com/forums/thread.jspa?forumID=61&threadID=576975]thread can help you.
    Cheers

  • Using Interactive Report with SQL query accessing tables via db link

    Is there a known issue with using the interactive report in version 3.1.2.00.02 with SQL that is accessing tables via a database link? I get the error 'not all variables bound', I do not get this error when using the standard report for the same SQL?
    Thanks,
    Edited by: [email protected] on May 26, 2009 2:59 PM

    Varad,
    Good question, failed to check that. In fact there are errors. Dump file c:\oraclexe\app\oracle\admin\xe\bdump\xe_s002_3640.trc
    Mon Jun 15 08:48:11 2009
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Windows XP Version V5.1 Service Pack 3
    CPU : 2 - type 586, 1 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:1051M/2038M, Ph+PgF:2273M/3934M, VA:1302M/2047M
    Instance name: xe
    Redo thread mounted by this instance: 1
    Oracle process number: 16
    Windows thread id: 3640, image: ORACLE.EXE (S002)
    *** ACTION NAME:(PAGE 2) 2009-06-15 08:48:11.743
    *** MODULE NAME:(APEX:APPLICATION 112) 2009-06-15 08:48:11.743
    *** SERVICE NAME:(SYS$USERS) 2009-06-15 08:48:11.743
    *** CLIENT ID:(ADMIN:232384011651572) 2009-06-15 08:48:11.743
    *** SESSION ID:(24.931) 2009-06-15 08:48:11.743
    *** 2009-06-15 08:48:11.743
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_LdiDateFromArray+55] [PC:0x608B04F3] [ADDR:0x0] [UNABLE_TO_WRITE] []
    Current SQL statement for this session:
    select Stage,Procedure,Stp,FW,Reslt,MSG,date_run
    from bi_msg_VW@dwitnm
    order by 1
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    2FE1EA14 1207 package body SYS.DBMS_SYS_SQL
    2FE1F064 328 package body SYS.DBMS_SQL
    2ABDC520 5097 package body APEX_030200.WWV_RENDER_REPORT3
    2BD5E55C 1538 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    2BD5E55C 366 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    335BDA88 11190 package body APEX_030200.WWV_FLOW
    2BDBD1C8 255 procedure APEX_030200.F
    2AB58D10 30 anonymous block
    ----- Call Stack Trace -----
    I didn't include the call stack, it is too large. Now I'm even more puzzled that the IR would work while a sql report would fail.
    Bob

  • Built in Function to Populate an access table from an Oracle Table through VB 6.0

    Dear all,
    Is there any built in function in VB 6.0 to populate an access table directly from an oracle table or SQL Server(Assume Both has the same columns & data type).
    (Just like the DoCmd command which can be used to populate an excel sheet directly from an access table).
    Please help.
    Regards
    Sibby.

    Sibby,
    There is no "built-in" code in VB that I am aware of. However, you could use this code which I wrote for SQL Server. For Oracle, you would have to change to the appropriate table to get all the table names. You can filter by table name to get just your tables like I did below (My_).
    '* Now select all the files and add to access.
    sSQL = "SELECT name, id FROM sysobjects WHERE xtype = 'U' AND SUBSTRING(name, 1, 3) = 'My_' ORDER BY name"
    Set rstTemp = OpenRdSetView(sSQL:=sSQL, adoConnection:=adoConnection)
    On Error GoTo TableExistError
    '* Loop through all my database tables and copy to the Access database.
    With rstTemp
    Do While Not .EOF
    '* Copy this to the Access backup database.
    sTableName = .Fields("Name").Value
    '* Select all records from the SQL Server table and copy to the local Access database.
    sSQL = "SELECT * INTO " & sTableName & " FROM "
    sSQL = sSQL & "[odbc;dsn=" & sDSN & ";UID=" & sUID & ";pwd=" & spwd & ";]." & sTableName
    adoBackupConnection.Execute sSQL, , adExecuteNoRecords
    '* Go to next table.
    .MoveNext
    Loop
    End With

  • How to Access oracle DB table through SAP..problem in code

    Hello Guys
             I have to Access oracle table through SAP and need to create a report.
    From Some source I got the following code .  But it's not working , I am not able to update the table as well not able to access the data from table.
    Can some one provide me the necessary help.
    REPORT  ZORACLE.
    INCLUDE ole2incl.
    DATA: con TYPE ole2_object,
    rec TYPE ole2_object.
    DATA SQL(1023).
    DATA: BEGIN OF SPL OCCURS 0,
    VAL(1023),
    END OF SPL.
    DATA: BEGIN OF I1 OCCURS 0,
    F1(10) ,
    F2 TYPE I,
    END OF I1.
    IF con-header IS INITIAL OR con-handle = -1.
    CREATE OBJECT con 'ADODB.Connection'.
    IF NOT sy-subrc = 0.
    EXIT.
    ENDIF.
    CREATE OBJECT REC 'ADODB.Recordset'.
    IF NOT sy-subrc = 0.
    EXIT.
    ENDIF.
    ENDIF.
    MDB connetion infomations ....
    break-point.
    CONCATENATE 'Provider=' '''OraOLEDB.Oracle''' ';'
    INTO SQL.
    CONCATENATE SQL 'Password=' '''prodx''' ';'
    INTO SQL.
    CONCATENATE SQL 'User ID=' '''prod''' ';'
    INTO SQL.
    CONCATENATE SQL 'Data Source=' '''sterlite''' ';'
    INTO SQL.
    CONCATENATE SQL 'Mode=' '''Share Deny None'''
    INTO SQL.
    MDB connection ...
    CALL METHOD OF CON 'Open'
    EXPORTING #1 = SQL.
    Query (insert) statement ...
    SQL = 'insert into ofusers values('.
    CONCATENATE SQL '''Atul''' ',' '''121''' ')' INTO SQL.
    Query run ...
    CALL METHOD OF REC 'Open'
    EXPORTING #1 = SQL
    #2 = CON
    #3 = '1'.
    Query (select) statement ...
    SQL = 'select * from ofusers'.
    Query run ...
    CALL METHOD OF REC 'Open'
    EXPORTING #1 = SQL
    #2 = CON
    #3 = '1'.
    Selecting MDB record into SAP internal table ...
    DO.
        CALL METHOD OF REC 'getstring' = SQL
        EXPORTING #1 = '2' "Do not modify!
        #2 = 1 "Do not modify!
        #3 = '|' "Do not modify!
        #4 = '|'. "Do not modify!
        IF sy-SUBRC EQ 0.
            REFRESH SPL. CLEAR SPL.
            SPLIT SQL AT '|' INTO TABLE SPL.
            LOOP AT SPL.
              CASE SY-TABIX.
                WHEN 1.
                  I1-F1 = SPL-VAL.
                WHEN OTHERS.
                  I1-F2 = SPL-VAL.
              ENDCASE.
            ENDLOOP.
              APPEND I1. CLEAR I1.
            ELSE.
              EXIT.
        ENDIF.
    ENDDO.
    Result writing ...
    LOOP AT I1.
      WRITE: AT /1(10) I1-F1,
      AT (10) I1-F2.
    ENDLOOP.
    connetion close & destroy
    FREE OBJECT con.
    FREE OBJECT rec.
    Thanks in Advance
    Swati Namdeo

    Hi swati,
    1. for this u will also require help of basis team.
    2. these are the steps.
    a) make an entry in DBCON
    b) make connection string
    (on the physical application server,
    so that it can connect to secondary database)
    (this will be done by basis team,
    in which, they will specify the
    IP address of the secondary database server,
    the DATABASE ID, and the port number)
    c) then using open sql / native sql,
    we can use the secondary database connection,
    just like normal.
    d) if we use open sql,
    then there must be Y/Z table on
    sap as well as secondary database,
    and the field names , their type all should be identical.
    regards,
    amit m.

  • Oracle access tables in SQLServer through Transparent Gateway

    HI,
    I want to access tables in SQLServer2000 through Oracle Transparent Gateway, but i could not get the resqult when I excute sql " select * from mytable@tg4msql".
    everthing seems all right and when i use " *tnsping tg4msql* ", it also return OK:
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    +(HOST = 192.168.255.10)(PORT = 1521))) (CONNECT_DATA = (SID=tg4msql)) (HS= OK))+
    OK (20 毫秒)
    but when i excute sql like " select * from mytable@tg4msql ", it does't return anything, just keeps quering till I kill my plsql.
    it seems oracle tries to connect to SQLServer through database link but fail.
    And i check Transparent Gateway debug log : ORACLE_HOME\tg4msql\trace\tg4msql_agt_964.trc,
    the log stops when it gets the logon name.
    thanks for answers~
    this is Transparent Gateway debug log:
    Heterogeneous Agent Release
    +10.2.0.1.0+
    +(0) hoagprd (2): ; hoagprd Entered.+
    +(0) HOACONN.C (244): ; [Transparent gateway for MSSQL] version: 4.6.1.0.0070+
    +(0) HOACONN.C (295): ; Class version: 200+
    +(0) hoagprd (2): ; hoagprd Exited with retcode = 0.+
    +(0) hoainit (3): ; hoainit Entered.+
    +(0) (0): ; connect string is: defTdpName=tg4msql;SYNTAX=(ORACLE8_HOA,+
    +(0) BASED_ON=ORACLE8, IDENTIFIER_QUOTE_CHAR="",+
    +(0) CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=<navobj><binding><datasources><da-+
    +(0) tasource name='tg4msql' type='MSSQLODBC'+
    +(0) connect='HSWINRUN2.tg4msql'><driverProperties/></datasource></datasour-+
    +(0) ces><remoteMachines/><environment><optimizer noFlattener='true'/><misc+
    +(0) year2000Policy='-1' consumerApi='1' sessionBehavior='4'/><queryProcessor+
    +(0) parserDepth='2000' tokenSize='1000' noInsertParameterization='true'+
    +(0) noThreadedReadAhead='true'/><debug+
    +(0) generalTrace='true'/></environment></binding></navobj>+
    +(0) ORACLE SQL SERVER GATEWAY Log File Started at 2010-10-20T19:55:42+
    +(0) hoainit (3): ; hoainit Exited with retcode = 0.+
    +(0) hoalgon (7): ; hoalgon Entered. name = myuser.+

    I checked the active sessions, and found a session was creating databse link, but it didn't stop until i kill it.
    STATUS EVENT STATE
    ACTIVE HS message to agent WAITING
    I have installed the transparent gateway and SQLServer in the same computer.
    maybe something wrong happened when transparent gateway connect to the SQLServer. But i don't know how to check it.

  • Accessing Tables via Database Links.

    Hello. I have created a database link in order to allow me to access tables that exist in a database separate from the one that APEX exists on. The link seems to work because I can query these tables in the APEX SQL Commands windows by running the following command,
    Select * from table_name@database_link;
    However, when I try to create an application in Application Builder, these tables do not seem to be accessible. Also, I can't see them in the Object Browser. I believe this problem is related to db permissions of some sort, but don't know how to correct it. Thank you for your help.

    Hello:
    The kind of view tht you have created is updateable.
    You can create an APEX form to do DML against this view much like in the manner you would create a form against a table.
    The link below might help
    Re: Cannot build form off from view?
    Varad

  • Can Apex 4.1.1 see non-Oracle tables across dblinks using gateway?

    OS: Windows7 64-bit
    APEX: APEX 4.1.1
    OracleXE: 11gR2
    Oracle ODBC Gateway: 11gR2
    Remote DB: Sybase Anywhere 10
    =====================
    When trying to develop an application (e.g. interactive report), APEX does not see tables from remote database even after public synoym is created in local OracleXE schema that current workspace points to?
    I can with no issues -- via APEX SQL Workshop -- run SQL that accesses the remote database tables through the dblink.
    Any suggestions?

    user601798 wrote:
    When trying to develop an application (e.g. interactive report), APEX does not see tables from remote database even after public synoym is created in local OracleXE schema that current workspace points to?
    I can with no issues -- via APEX SQL Workshop -- run SQL that accesses the remote database tables through the dblink.
    Any suggestions?Create a view on top of the synonym.
    Apex can work with the views. It does not work well with synonyms. But keep the synonym, since that makes your view indepentent of the name of the DB link.
    So the typical recommened structure would be:
    <pre>
    remote database table
    -> access via db link
    -> synonym on remote table
    -> View on Synonym
    -> Apex uses View (Wizards etc.)
    </pre>
    If using a non oracle DB you might come across problem with certain concepts like ROWIDs. Obviously cyou can't build a form depending on a rowid, when working with a non oracle database. It should work with a normal primary/unique key however.
    Edited by: Sven W. on Aug 15, 2012 12:46 PM

Maybe you are looking for

  • Logic Pro X Additional Content .....still installing

    Hi, I recently purchased and downloaded the new Logic Pro X then downloaded the additional content.  This took about 36 hours as my Internet Connection is only 1-2 Mb.  The dialog box then changed to.  Installing Additional Content....and has remaine

  • StarCam 370i with Apple Mac

    I have a serious problem with StarCam 370i : - I used this webcam earlier with my old mac mini (with PowerPC processor) OS-X 10.4.7, with no problem, cam works very well - now I have a new mac mini (now with Intel CoreDuo processor) OS-X 10.4.10 and

  • How can i convert this data(00000000) into date format(yyyy-MM-dd)

    Hi, i am using this method to convert date format from string. public static string FormatDate(string inputDate, string inputFormat)             System.DateTime date = DateTime.ParseExact(inputDate, inputFormat, null);             string datepresent

  • When I try to create an e-print account, it says my e-mail is already registered, but it is not!

    The system returns an answer that my email is already registered, then if I try to get a password reset, it replies "use the e-mail associated with your account"...so I'm locked out This question was solved. View Solution.

  • Best Way to Enumerate a non-unique Array of String to Integers

    Hello, I am trying to find the best way to enumerate an array of strings to integers. This string array is thousands in number and contains non-unique values. I also don't know before run-time what those values are, so I have to dynamically determine