DBLINK Doesn't work thru Oracle JVM

I have written a class which can be published
as a java stored procedure, as well as can
be run from command line using Sun's JDK.
When run from the command line it uses
the JDBC thin driver to connec to a 8.1.6 DB,
it executes a query on a DBLINK table . the DBLINK is to a 8.1.7 DB.
This works perfectly.
How ever when i load this class in 8.1.6 DB
and call the stored procedure it does not work. when run as a stored proc, it uses the
JDBC Serverside internal driver using
OracleDriver().defaultConnection()
i get the following exception
oracle.jdbc.driver.OracleSQLException: ORA-01478: array bind may not include any LONG columns
ORA-02063: preceding line from APRTSR
at oracle.jdbc.kprb.KprbDBAccess.check_error(KprbDBAccess.java:1018)
at oracle.jdbc.kprb.KprbDBAccess.parseExecuteDescribe(KprbDBAccess.java:402)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1600)
at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:1758)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1805)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:320)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:278)
at dblinktest.callMe(dblinktest.java:15)
at dblinktest.storedProc(dblinktest.java:79)
There is NO LONG NOR any ARRAY datatype in the table or in the query.
Below is the code.
the main method is called when run from command line while the storedproc method is called when run as java stored proc.
import java.sql.*;
import oracle.jdbc.driver.*;
public class dblinktest {
public static String callMe(Connection conn) {
String table_name = "rts.tis_bills@aprtsr" ;
String sql_qry = "Select count(*) from " + table_name +
" where ctry_code = ? and bch_code = ?" ;
PreparedStatement pstmt = null ;
ResultSet rs = null ;
try {
pstmt = conn.prepareStatement(sql_qry);
pstmt.setString(1,"760");
pstmt.setString(2,"00");
rs = pstmt.executeQuery();
if(rs.next())
return rs.getString(1);
else
return "NO DATA" ;
catch(Exception e) {
e.printStackTrace(System.out);
return "FAILURE" ;
finally {
if(rs != null) {
try {
rs.close();
catch(Exception e) {
e.printStackTrace(System.out);
if (pstmt != null) {
try {
pstmt.close();
catch(Exception e) {
e.printStackTrace(System.out);
public static void main(String argc[]) {
String host = "shp15" ;
String port = "4557" ;
String sid = "aprtsr" ;
String uid = "rts_cots" ;
String passwd = "rts_cots" ;
String jdbcURL = "jdbc:oracle:thin:@"+ host + ":" + port + ":" + sid ;
Connection conn = null ;
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection(jdbcURL,uid,passwd);
System.out.println(callMe(conn));
catch(Exception e) {
e.printStackTrace(System.out);
System.exit(0);
finally {
if(conn != null) {
try {
conn.close() ;
catch(Exception e) {
e.printStackTrace(System.out);
public static String storedProc()
Connection conn = null ;
try {
conn = new OracleDriver().defaultConnection() ;
return callMe(conn);
catch(Exception e) {
e.printStackTrace(System.out);
return "FAILURE" ;
finally {
if(conn != null) {
try {
conn.close() ;
catch(Exception e) {
e.printStackTrace(System.out);
PLESE HELP ORACLE GURUS.
null

Please Help

Similar Messages

  • Xdofo:show-carry-forward number-separators doesn't work in Oracle EBS 11i

    I am displaying the ‘page total’ from within the footer of the xml-report by using the page total syntax ‘<xdofo:show-carry-forward name="pt" format="99G999G999D00"/>’.
    Here the issue is that for report displayed in Spanish we are unable to display the Page Total in the required number format ie. The decimal separator should be ‘,’ and the group separator is ‘.’, since the Page Total is auto calculated and we are not able to save this value to any variable.
    Currently Output is coming like: 12,052.00
    Required output: 12.052,00
    As well as I tried the below statement
    <xdofo:inline-total display-condition="exceptlast" name="pt"><xdofo:show-carry-forward name="pt" format="99G999G999D00" number-separators=",."/></xdofo:inline-total>
    But it doesn’t work in Oracle Applications 11i instance.
    Anyone having any idea?
    Regards,
    Madhurendra

    We had a similar issue and we got the solution.
    Try this
    Got the solution and this is very important one !!!
    <xdofo:inline-total display-condition="exceptlast" name="InvAmt"><xdofo:show-carry-forward name="InvAmt" format="99G999G999D00" number-separators=",."/></xdofo:inline-total>
    <xdofo:inline-total display-condition="exceptfirst" name="InvAmt"><xdofo:show-brought-forward name="InvAmt" format="99G999G999D00" number-separators=",."/></xdofo:inline-total>

  • Subquery for inserting doesn't work in Oracle package

    I have experienced a very strange scenario while inserting data inside a Oracle package.
    I have two tables:
    - table "A"
    Columns: "ID", "Value1", "...."
    - table "A_Backup", which contains backup data for table A. It has one more column "BATCH_NUMBER" than table A
    Columns: "BATCH_NUMBER", "ID", "Value1", "...."
    I created following procedure in a package to backup data from table "A" to "A_Backup".
    procedure proc_backup (v_id in number) is
    declare
    v_batch_number varchar2(20);
    begin
    /** generate a batch number using system date */
    select 'BATCH' || to_char(sysdate, 'YYYYMMDDHH24MISS') into v_batch_number from dual;
    /** insert Batch_NUMBER + data from A into A_BACKUP */
    insert into A_BACKUP (select v_batch_number, id, value1, ... from A where A.id = v_id);
    end proc_backup;
    When I debug the procedure, it will not insert any data into A_BACKUP. Apparently, there are some data in table "A" meets criteria "A.id = v_id".
    The strange thing: If I create same procedure. But this time I didn't put procedure inside the package, insert query will work.
    Please help, I have spent a couple of days on this and never make it work. I also tried cursor, it doesn't work either. It seems Oracle package doesn't support "virtual table" (subquery in insert) or whatever you call it.

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    I don't see any package or test code that calls the procedure or error messages or results from any procedure calls.
    You say you have a problem with a package but don't post the package version of the code you are having a problem with.
    How is anyone supposed to find a problem in code that you don't post? And when you post use \ tags as discussed in the FAQ.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • PreparedStatement.setString doesn't work with Oracle 10g.

    Hi all,
    I newbie question regarding the method setString of class java.sql.PreparedStatement. My process require to pass throught a file and check agaisnt a Oracle table if the product id of the given record exist in the table .
    I use the SQL
    select matnr from zncorart_ap where zartleg = ? and zentrleg = ?
    to do that. When i try to replace the ? with the setString method it doesn't work and the query always return no row as ? is not a valid value.
    Thx for your help.
    // Here code snippet of the caller class
    public class Inventory2SAP {
    private ETLSQL productXRef;
    private ResultSet productXRefResult;
    private String inRecord;
    private String prdCat;
    protected void acquireResource() {
      try {       
    //  Instantiate product XRef object.
        productXRef = new ETLSQL();
        productXRef.loadDriver(ch.getProperties("Inventory2SAP.JDBCDriver"));
        productXRef.connectDB(true);
        prdXRefLookup = "select matnr from zncorart_ap where zartleg = ? and zentrleg = ?";
        productXRef.createPrepared(prdXRefLookup);
      catch (SQLException sqle) {
        sqle.printStackTrace();
        System.exit(-1);            
    // Loop this method until EOF        
    protected boolean transform() {
       try {
          productXRef.setString(1, inRecord.substring(0, 8));
          productXRef.setString(2, prdCat);       
          productXRefResult = productXRef.executePrepared();
          if (productXRefResult.next()) {
             System.out.println("Nerver branch here because setString doesn't work");
          else {
             System.out.println("Always row not found");
       catch (SQLException sqle) {
          sqle.printStackTrace();
          System.exit(-1);
    protected void releaseResource() {
       try {
          productXRef.disconnectDB();
       catch (SQLException sqle) {
          sqle.printStackTrace();
          System.exit(-1);
    public class ETLSQL {
        private static Connection con;
        private PreparedStatement pstm;
        private ResultSet rs;
        protected ETLSQL() {
        protected void loadDriver(String driverID) {
           try {
              if (driverID.equals("oracle")) {
                 Class.forName(ch.getProperties("OracleDriver")).newInstance();
           catch(ClassNotFoundException cnfe) {
              cnfe.printStackTrace();
              System.exit(-1);                  
          catch (InstantiationException ie) {
             ie.printStackTrace();
             System.exit(-1);  
          catch (IllegalAccessException iae) {
              iae.printStackTrace();
             System.exit(-1);               
    protected void connectDB(boolean isReadOnly) throws SQLException {
       if (driverID.equals("oracle")) {
          con = DriverManager.getConnection(ch.getProperties("OracleURL"),
          ch.getProperties("OracleUser"), ch.getProperties("OraclePassword"));         
        else {
           System.out.println("Can't connect to the Database");
           System.exit(-1);                
    protected void createPrepared(String SQLString) throws SQLException {
       pstm = con.prepareStatement(SQLString);
    protected void setString(int pos, String s) throws SQLException {
       pstm.setString(pos, s);
    protected ResultSet executePrepared() throws SQLException {
       rs  = pstm.executeQuery();
       return rs;
    protected void disconnectDB() throws SQLException {
       if (pstm != null) {
          pstm.close();     
       if (!con.isClosed()) {
          con.close();
    }

    Ever solve this problem? Seems I'm having the same problem. I'm at a bit of a loss.
    **** Specifically, I get this
    Jan 23, 2007 12:49:51 PM test.JdbcTestHarness doItGood
    INFO: ======= doItGood =======
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItGood
    INFO: It worked...my name is mvalerio
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItBad
    INFO: ======= doItBad =======
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItBad
    INFO: It didn't work my name is mud
    **** When I do this
    package test;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class JdbcTestHarness {
         private Logger logger = null;
         * @param args
         public static void main(String[] args) {
              JdbcTestHarness jdbcTest = new JdbcTestHarness();
              jdbcTest.doItGood();
              jdbcTest.doItBad();
         public JdbcTestHarness() {
              this.logger = Logger.getLogger("test");
         public void doItGood() {
              logger.log(Level.INFO, "======= doItGood =======");
              Connection conn = null;
              PreparedStatement stmt = null;
              ResultSet rs = null;
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection(
                             "jdbc:oracle:thin:@db1-dev.lis.state.oh.us:2521:test",
                             "dir", "dir");
                   stmt = conn
                             .prepareStatement("select username,password,'true' from account where account.username = 'mvalerio'");
                   rs = stmt.executeQuery();
                   if (rs.next()) {
                        this.logger.log(Level.INFO, "It worked...my name is "
                                  + rs.getString(1));
                   } else {
                        this.logger.log(Level.INFO, "It didn't work my name is mud");
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } finally {
                   if (conn != null) {
                        try {
                             conn.close();
                        } catch (SQLException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
         public void doItBad() {
              logger.log(Level.INFO, "======= doItBad =======");
              Connection conn = null;
              PreparedStatement stmt = null;
              ResultSet rs = null;
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection(
                             "jdbc:oracle:thin:@db1-dev.lis.state.oh.us:2521:test",
                             "dir", "dir");
                   stmt = conn
                             .prepareStatement("select username,password from account where account.username = ? ");
                   stmt.setString(1, "mvalerio");
                   rs = stmt.executeQuery();
                   if (rs.next()) {
                        this.logger.log(Level.INFO, "It worked...my name is "
                                  + rs.getString(1));
                   } else {
                        this.logger.log(Level.INFO, "It didn't work my name is mud");
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } finally {
                   if (conn != null) {
                        try {
                             conn.close();
                        } catch (SQLException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
    Any help would be appriciated.......

  • MERGE using nested table doesn't work on Oracle 9i

    Hi,
    Oracle 9i Enterprise Edition Release 9.2.0.4.0 on Red hat Linux
    SQL> create table PERSONS (
      2    ID  number(9)
      3   ,SURNAME  varchar2(50)
      4   ,constraint PERSONS_PK primary key (ID)
      5  );
    Table created.
    SQL> create or replace type T_NUMBER_ARRAY as table of number;
      2  /
    Type created.
    SQL> create or replace procedure P_MRGTS2 (P_ID  PERSONS.ID%type)
      2  is
      3    L_IDS  T_NUMBER_ARRAY;
      4  begin
      5    L_IDS := T_NUMBER_ARRAY(P_ID);
      6    merge into PERSONS P using (select * from table(L_IDS)) D on (
      7      P.ID = D.COLUMN_VALUE
      8    )
      9    when matched then update
    10      set SURNAME = 'Updated'
    11    when not matched then
    12      insert (
    13        ID
    14       ,SURNAME
    15      )
    16      values (
    17        D.COLUMN_VALUE
    18       ,'Inserted'
    19      );
    20  end;
    21  /
    Procedure created.
    SQL> exec P_MRGTS2(1)
    BEGIN P_MRGTS2(1,'Avi'); END;
    ERROR at line 1:
    ORA-22905: cannot access rows from a non-nested table item
    ORA-06512: at "OPS$AABRAMI.P_MRGTS2", line 9
    ORA-06512: at line 1However, the same code on Oracle 10g Release 10.2.0.1.0 on SUN Solaris 9 works.
    Is there any way to make it work on Oracle 9i?
    One way I found is the following:
    procedure P_MRGTST (P_ID  PERSONS.ID%type)
    is
      L_IDS  T_NUMBER_ARRAY;
    begin
      L_IDS := T_NUMBER_ARRAY(P_ID);
      forall I in L_IDS.first..L_IDS.last
        merge into PERSONS P using DUAL D on (
          P.ID = L_IDS(I)
        when matched then update
          set SURNAME = 'Updated'
        when not matched then
          insert (
            ID
           ,SURNAME
          values (
            L_IDS(I)
           ,'Inserted'
    end;On Oracle 10g there is negligible difference in time taken to execute both procedures, as displayed in SQL*Plus when issuing:
    set timing onIs there something that makes one of the procedures preferrable over the other?
    Thanks,
    Avi.

    Is there any way to make it work on Oracle 9i?
    michaels>  select * from v$version
    BANNER                                                         
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production                          
    CORE     9.2.0.8.0     Production                                      
    TNS for HPUX: Version 9.2.0.8.0 - Production                   
    NLSRTL Version 9.2.0.8.0 - Production                          
    michaels>  create table persons (
        id  number(9)
           ,surname  varchar2(50)
              ,constraint persons_pk primary key (id)    )
    Table created.
    michaels>  create or replace type t_number_array as table of number;
    Type created.
    michaels>  create or replace procedure p_mrgts2 (p_id persons.id%type)
    is
       l_ids   t_number_array;
    begin
       l_ids := t_number_array (p_id);
       merge into persons p
          using (select * from table (cast (l_ids as t_number_array))) d
          on (p.id = d.column_value)
          when matched then
             update set surname = 'Updated'
          when not matched then
             insert (id, surname) values (d.column_value, 'Inserted');
    end p_mrgts2;
    Procedure created.
    michaels>  exec p_mrgts2(1)
    PL/SQL procedure successfully completed.
    michaels>  select * from persons
            ID SURNAME                                          
             1 Inserted                                         
    1 row selected.

  • APEX 3.1.0.00.32 doesn't work with ORACLE 10g SE 10.2.0.1.0

    I have Oracle 10g Express Edition 10.2.0.1.0 under Windows XP SP2 on my Personal Computer. There is installed the too , which is working fine.
    Also I have Oracle 10g Standard Edition 10.2.0.1.0 (after installing Oracle 10g BI SE One) under Windows 2000 Adv. Server (On remote Server named URAN).
    I tried to install the APEX 3.1.0.00.32 on URAN Server.
    I made all points from the list in the Oracle Database Application Express Installation Guide Release 3.1 E10496-02 (the same steps on my Personal Computer where APEX 3.1.0.00.32 is working fine).
    But!!!
    When I’m starting APEX 3.1.0.00.32 (on the Server - http://URAN:8080/apex/apex_admin) then I get errror:
    Unauthorized
    after 3 time entering the correct user & password ( from URAN accounts list ) in XDB user window.
    QUESTION 1: Why version number of Database on my PC & on Server is same, but
    APEX 3.1.0.00.32 on my PC is working fine while its is not working on the Server?
    I found out in Internet the APEX 3.1.0.00.32 is working correctly on ORACLE SE from version 10.2.0.3. But ! I have Oracle 10g Express Edition VERSION ‘s 10.2.0.1.0 and the APEX 3.1.0.00.32 is working fine there. What ?! Oracle 10g XE 10.2.0.1.0 & Oracle 10g SE 10.2.0.1.0 have different the data dictionary?
    QUESTION 2: In Oracle® Database Application Express Installation Guide
    Release 3.1 E10496-02 , in section
    4.3 About Configuring the Embedded PL/SQL Gateway
    said
    Note:
    The Oracle XML DB HTTP Server with the embedded PL/SQL gateway is not supported prior to Oracle Database 11g.
    But! My Oracle 10g Express Edition has version is 10.2.0.1.0 (less than 11g) AND …
    And APEX 3.1.0.00.32 is working fine by using XML DB HTTP Server nevertheless!
    By starting - http://127.0.0.1:8080/apex/apex_admin
    SUMMARY: Could I launch APEX 3.1.0.00.32 on the Server ( after any magic pass )?
    OR I need upgrade my Oracle 10g Standard Edition 10.2.0.1.0 to version 10.2.0.3.0 (what very difficultly and idly for me)?

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • APEX 3.1.0.00.32 doesn't work with ORACLE 10g SE 10.2.0.1.0 (altered)

    I have Oracle 10g Express Edition 10.2.0.1.0 under Windows XP SP2 on my Personal Computer. There is installed the APEX 3.1.0.00.32 too , which is working fine.
    Also I have Oracle 10g Standard Edition 10.2.0.1.0 (after installing Oracle 10g BI SE One) under Windows 2000 Adv. Server (On remote Server named URAN).
    I tried to install the APEX 3.1.0.00.32 on URAN Server.
    I made all points from the list in the Oracle Database Application Express Installation Guide Release 3.1 E10496-02 (the same steps on my Personal Computer where APEX 3.1.0.00.32 is working fine).
    But!!!
    When I’m starting APEX 3.1.0.00.32 (on the Server - http://URAN:8080/apex/apex_admin) then I get errror:
    Unauthorized
    after 3 time entering the correct user & password ( from URAN accounts list ) in XDB user window.
    QUESTION 1: Why version number of Database on my PC & on Server is same, but
    APEX 3.1.0.00.32 on my PC is working fine while its is not working on the Server?
    I found out in Internet the APEX 3.1.0.00.32 is working correctly on ORACLE SE from version 10.2.0.3. But ! I have Oracle 10g Express Edition VERSION ‘s 10.2.0.1.0 and the APEX 3.1.0.00.32 is working fine there. What ?! Oracle 10g XE 10.2.0.1.0 & Oracle 10g SE 10.2.0.1.0 have different the data dictionary?
    QUESTION 2: In Oracle® Database Application Express Installation Guide
    Release 3.1 E10496-02 , in section
    4.3 About Configuring the Embedded PL/SQL Gateway
    said
    Note:
    The Oracle XML DB HTTP Server with the embedded PL/SQL gateway is not supported prior to Oracle Database 11g.
    But! My Oracle 10g Express Edition has version is 10.2.0.1.0 (less than 11g) AND …
    And APEX 3.1.0.00.32 is working fine by using XML DB HTTP Server nevertheless!
    By starting - http://127.0.0.1:8080/apex/apex_admin
    SUMMARY: Could I launch APEX 3.1.0.00.32 on the Server ( after any magic pass )?
    OR I need upgrade my Oracle 10g Standard Edition 10.2.0.1.0 to version 10.2.0.3.0 (what very difficultly and idly for me)?

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • WITH Clause query doesn't work in Oracle Reports.

    Hi Gurus,
    I'm using a WITH clause query and need to build a report using the same query.
    But when i'm trying to build a report, query is giving error as "WITH clause table or view doesn't exists".
    But the same query perfectly works in sql prompt.
    Oracle Reports doesn't supports WITH clause query?
    Please suggest.
    Thanks,
    Onkar

    I ran into a similar problem before and worked around it by moving the query to a pipelined function in the database as described at WITH clause unexpectedly causes ORA-00942 in Reports Builder
    Hope this helps.

  • Insert Record with Parent/Child Tables doesn't work with Oracle - unlike AC

    Hi,
    I just Migrated a MS Access 2010 Database to an Oracle 11g Backend with the SQL Developer Tool.
    The Migration went fine, all the Tables and Views are migrated.
    I'm working with MS Access as Frontend.
    The application has some Datasheets with Subdatasheets with Parent/Child Relationship. (1-n Relationship)
    After changing to Oracle, it's not possible, to Insert a new Record in a Subdatasheet I always get the following Error Message:
    "The Microsoft Access database engine cannot find a record in the table 'xxxx' with key matching field(s) 'zzzzz'"
    It used to work perfect with the MS Access Backend, do I need a trigger which first adds the child Record ?
    Or what should I do?
    Thank you

    Hi Klaus,
    Thanks for your answer. I still haven't solved my problem. The only way would be to use a singel 1:n Relationship, but in fact I need a n:m Relationship.
    I tried the same scenario with a new Access Application, same result.
    To clearify my problem.
    Goal: Parent Form with Parent Records, Linked Child Form with Child Records in a Datasheet View => Insert of a NEW Child Record.
    I have 3 Tables (table1 = Parent tabel, table2 = Child Table, table12 = n:m Tabel with PK and two FK)
    The Recordsource of the Parent Form is Tabel1
    The Recordsource of the Child Form is Table2 joined with Table12.
    In my Old Access Project, Access Triggered the Insert and filled Table12 with the NEW PK of Table2.
    It seems like Access can't do that anymore....
    I'm pretty desperate and I'm sure it is just a litte thing to fix.....

  • Web Cache doesn't work with Oracle Enterprise Manager

    In my Oracle 9i Application Server Release 2 since I have changed the administrator and invalidator password in the Web Cache Manager the Web Cache appears as unavailable in the Oracle Enterprise Manager, but it's working!! Any idea?

    You have to modify the password manually in OEM's target.xml.

  • Quck Find/Replace doesn't work with Oracle Db Proj (ODT 11.1.0.5.10 beta)

    There seems to be a bug with the Oracle Database Project that prevents Quick Find and Quick Replace from working. To recreate, just open the new Oracle Database Project, open a sql script, ctrl-F, search for a text string. The text will not be found.

    I guess the work around (not so ideal) is to use Find in Files (shift/ctrl-F) and Replace in Files (shift/ctrl-H).

  • Add/Remove Software doesn't work on Oracle EL5 x86-64

    The answer I need is "How can I either get this to work or install software that I didn't install at original install time by some other means" Note:I know how to use rmp -i but knowing the name of the actual rpm is a bit tricky and would prefer to have something like this working. For instance I have a program that is looking for the include files for the kernel that is running but unfortunately these files do not appear to be on disk anywhere. I would like to therefore load the source for this kernel but do not know the exact name that was used for that rpm.
    Let me know. Thanks
    Details of the error:
    Under the Applications menu in Gnome you can find "Add/Remove Software" I tried to use it to add some software and I get the following error "Unable to retrieve software information" under details it says "Cannot find a valid baseurl for repo: update" (I would expect this to work ...wouldn't you if it is on the list of items to chose from the "Applications" menu.) I ran /usr/bin/pirut -h from the command line and it revealed that it uses /etc/yum.conf. that took me to check ULN-Base.repo file under /etc/yum.repos.d which contains the following:
    Note: I was unable to validate the existence of the url's provided below.
    # Oracle-Base.repo
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    [base]
    name=Oracle-$releasever - Base
    mirrorlist=http://mirrorlist.oss.oracle.com/?release=$releasever&arch=$basearch&repo=os
    #baseurl=http://mirror.oss.oracle.com/Oracle/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.oss.oracle.com/Oracle/RPM-GPG-KEY-oracle
    #released updates
    [update]
    name=Oracle-$releasever - Updates
    mirrorlist=http://mirrorlist.oss.oracle.com/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.oss.oracle.com/Oracle/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.oss.oracle.com/Oracle/RPM-GPG-KEY-oracle
    #packages used/produced in the build but not released
    [addons]
    name=Oracle-$releasever - Addons
    mirrorlist=http://mirrorlist.oss.oracle.com/?release=$releasever&arch=$basearch&repo=addons
    #baseurl=http://mirror.oss.oracle.com/Oracle/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.oss.oracle.com/Oracle/RPM-GPG-KEY-oracle
    #additional packages that may be useful
    [extras]
    name=Oracle-$releasever - Extras
    mirrorlist=http://mirrorlist.oss.oracle.com/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.oss.oracle.com/Oracle/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.oss.oracle.com/Oracle/RPM-GPG-KEY-oracle
    #additional packages that extend functionality of existing packages
    [Oracleplus]
    name=Oracle-$releasever - Plus
    mirrorlist=http://mirrorlist.oss.oracle.com/?release=$releasever&arch=$basearch&repo=Oracleplus
    #baseurl=http://mirror.oss.oracle.com/Oracle/$releasever/Oracleplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.oss.oracle.com/Oracle/RPM-GPG-KEY-oracle
    #contrib - packages by Oracle Users
    [contrib]
    name=Oracle-$releasever - Contrib
    mirrorlist=http://mirrorlist.oss.oracle.com/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.oss.oracle.com/Oracle/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.oss.oracle.com/Oracle/RPM-GPG-KEY-oracle

    As of now, there are no yum repository for Enterprise Linux. But you can use up2date to install other packakges if you have registed with ULN.

  • Product key WIN10 Tech doesn't work under Oracle virtualbox

    Hi,
    I'm trying to install windows 10 in oracle VM box.
    Installation ask me for product key, I've provided the right one, from Insider program site, but it keeps saying it cannot verifiy it and so I cannot go on. I am using build 9926. I have tried these three keys:
    NKJFK-GPHP7-G8C3J-P6JXR-HQRJR
    PBHCJ-Q2NYD-2PX34-T2TD6-233PK
    BD8NM-JGY2P-8JJYD-WTYKR-HQRJM
    It says: 'product key could not be verified, please check installation media'
    Does win 10 require the Internet connection?
    Why does it look like it cannot recognize the connection ?
    any idea?

    Hi,
    If the ISO you mentioned is not Windows 10 Enterprise Technical preview, we cannot obtain Windows 10 Technical Preview build 9926 ISO any longer now.
    You could try the latest ISO Windows 10 technical Preview build 10041 for test.
    Meanwhile, please read this article:
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    http://betanews.com/2015/01/23/how-to-install-windows-10-january-build-9926-on-oracle-virtualbox/
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • SetRollbackOnly() doesn't work with Oracle

    Hi all,
    I'm using an Oracle database and Weblogic server. However, when I execute the following code (which is contained within an ejb session bean method):
    // Lookup datasource
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup(DATASOURCE);
    connection = ds.getConnection();
    // Insert some data
    connection.createStatement().executeUpdate("some insert statement");
    // Rollback the insert statement
    sessionContext.setRollbackOnly()... the insert statement is not rolled back even though I explicitly call setRollbackOnly().
    Could anyone help?

    Transaction attribute for the method is 'Required'.
    Any suggestions...?

  • ConnectPool doesn't work as Oracle say

    Hi,
    Any one has ideas:
    ConnectionPool *connPool = env->createConnectionPool
    (poolUserName, poolPassword, connectString, 1, 5, 1);
    Connection *conn1 = connPool->createConnection (username, passWord);
    Connection *conn2 = connPool->createConnection (username, passWord);
    Connection *conn3 = connPool->createConnection (username, passWord);
    After this code was run, the connections I counted thru DBA Studio was still 1. It mean that ConnectionPool do not create conn2, conn3??
    Help me please
    Thanks

    Real connections are created only when there is a round-trip requirement. In this case, you saw one connection because that is the minConn of the pool, and it gets created when the pool is created. The createConnection() calls create virtual connections and they get real connections mapped from the pool at the time of a round-trip and the unmapping happens as soon as the round-trip is done. If there is a need by multiple threads concurrently for doing round trips, then the pool size grows to serve all the threads concurrently.

Maybe you are looking for

  • Remittance Advice to Vendor through EDI, message REMADV

    Hi Guru I want to send a remittance advice to vendor only through EDI after running payment run. But standard SAP requires configuration for Vendor and as well as House Bank and generates two Idocs one for bank(Message type PAYEXT-PEXR2002) and one f

  • MaxDB and R3ta - Note 1385089

    I need to start a heterogeneous copy using R3load (Linux --> HP-UX IA64) of a 2,6 TB MaxDB 7.7 and checked beforehand some notes and found the above note stating The general R3ta support for MaxDB will be available for SAP Systems with MaxDB 7.8 and

  • UOM 8.5

    Hi, I'm experiencing problems with my UOM 8.5 installation. I'm using DL 320: Operating System: Windows Server 2003, Enterprise Edition (5.2, Build 3790) Service Pack 2 (3790.srv03_sp2_rtm.070216-1710)            Language: English (Regional Setting:

  • PI charactersitics in Master Recipe gets disabled.

    Hi, I would like to update the Process Instruction characteristics in a Master Recipe using Change Master (CC01) via  BDC.Now when there is a change in one of the PI characteristics, my program updates the PI characteristics in the Master Recipe via

  • Windows 7 Professional PC hangs at "Loading files" when trying to boot with custom capture image on Windows Deployment Services.

    I have created a custom capture image in WDS. Now when I try to boot my reference PC into this image the PC hangs at "Loading files". The reference PC is running Windows 7 and I am using Windows Server 2012 Standard on my server. I have followed the