BC4J under TOMCAT 403 Insert/Update probs

My JSP application works fine in JDeveloper 9i (9.0.2). Deployed under Tomcat 4.0.3 everything is ok too except when I try to update/insert records.
I get
Class oracle/jbo/AttributeDef violates loader constraints
The problem seems to be in the SetAttribute datatags in the Row component when updating/inserting.
Anyone had teh same prob? What lib/jar whatever am I missing?
All help will be very much appreciated

Problem solved. I copied all the jar's which should be (according the JDev help) in the lib directory under Tomcat home to the application specific WEB-INF/lib directory.

Similar Messages

  • BC4J/UIX Multi Entity insert/update

    Is it possible to insert simultaneously both master and detail BC4J row with single UIX page? I would like to use standard UIX if possible with minimal java, but examples with java would be also helpful.
    This seems to be a very simple situation. Has anybody solved it?
    In my case I have one generic Document table and additional attributes tables for different kinds of documents like for instance LicenseDocument. Those tables are connected with Document table with 1 to 0..1 relationship and their foreign key to the Document table is also their primary key.
    I like the way that BC4J Tester works and I don't know how to make UIX work the same way.
    When I use BC4J Tester it assigns the Document table inserted but not yet committed rows primary key (DBSequence) column temporary negative values and I can insert child records that are associated with it. After commit the Document primary key is fetched from the database sequence and all the foreign keys in other tables get updated accordingly.
    When I use UIX I don't get those temporary IDs and so I can't create child records before the master record is committed. This is not good as I can't roll back the whole creation of the LicenceDocument.
    I started by posting this topic to UIX forum (BC4J Multi Entity insert/update but maybe someone here knows the solution.
    Thanks in advance!
    Mihkel N�ges
    [email protected]

    I managed to workaround the issue in UIX by not using DBSequence type but fetching the sequence value in EntityImpl create method (as in Steve Muench's Techiniques demo project http://radio.weblogs.com/0118231/stories/2003/07/11/codeSampleIllustratingVariousBc4jProgrammingTechniques.html ):
    protected void create(AttributeList attributeList)
         // Do this last so we don't waste any sequence numbers unnecessarily
         SequenceImpl seq = new SequenceImpl("DOCUMENT_ID_SEQ",getDBTransaction());
    For some reason the sequence gets asked twice for every row creation. Thats not a big problem, but in the SequenceImpl javadoc this is discussed and as I understand it should not happen.

  • Bc4j bug at refresh after insert / update

    having a table and a trigger on it that fills an attribute
    in a 9i db. one can take the scott/tiger emp table and use the
    following trigger:
    create or replace trigger t_bri_emp
    before insert on emp
    for each row
    v_no number(7,2);
    select user_SEQ.nextval*100
    into v_no
         from dual;
    :new.sal := v_no;
    then creating a bc4j project with an entity object based on this table (emp)
    and a view object based on the created entity object.
    !!!! when you create the bc4j project you must set the SQL Flavor to SQL92 or OLite
    when you set the attribute settings, for the attribute the trigger is on (sal),
    to refresh after insert / update or both in the entity object you get a
    null pointer when you try to insert a new row and commit.
         oracle.jdbc.ttc7.TTIoac oracle.jdbc.ttc7.TTCAdapter.newTTCType(oracle.jdbc.dbaccess.DBType)
         oracle.jdbc.ttc7.NonPlsqlTTCColumn[] oracle ....................
    all can be reproduced just useing the wizard and start the bc4j project with the tester
    any workaround ??

    I looked into your issue. It turns out your problem is caused by a bug in the system (bug #2409955).
    The bug is that for non-Oracle SQLBuilder, we are not processing refresh-on-insert and refresh-on-update attributes correctly. We end up forming an invalid SQL statement and the JDBC driver gives the obscure NullPointerException.
    Thus, until 9.0.3, you should not use refresh-on-insert/update attributes on a non-Oracle SQLBuilder.
    If you need the refresh-on-insert/update attribute, here is a possible workaround:
    1. Whenever you invoke the tester, on the first panel, click on the 'Properities' tab. In the list of properties, you should find one for 'jbo.SQLBuilder'. It will say 'SQL92'. Remove it, so that it is empty. Run test tester. Then, the tester will use Oracle SQLBuilder which will handle refresh-on-insert/update attributes correctly for you.
    2. For switching between Oracle SQLBuilder and SQL92 SQLBuilder, you can try the following:
    2a) Locate bc4j.xcfg and your Project??.jpx under your 'src' directory.
    2b) Make copies of these files.
    2c) Edit them so that you have one set for Oracle SQLBuilder and one set for SQL92 SQLBuilder. For Oracle SQLBuilder, make sure these files do NOT have entries like:
    <jbo.SQLBuilder>..</jbo.SQLBuilder> in bc4j.xcfg and
    <Attr Name="_jbo.SQLBuilder" Value="..." /> in Project??.jpx
    When there is no jbo.SQLBuilder entry, BC4J will default to Oracle.
    For SQL92, make sure you have
    <jbo.SQLBuilder>SQL92</jbo.SQLBuilder> in bc4j.xcfg and
    <Attr Name="_jbo.SQLBuilder" Value="SQL92" /> in Project??.jpx.
    Before you run, decide which SQLBuilder to use (for 9.0.2, with retrieve-on-insert/update attrs, you have no choice but to use Oracle SQLBuilder) and copy these files into your class path, e.g.,
    When you get 9.0.3, then you should be able to switch between Oracle and SQL92 SQLBuilders freely.

  • Search criteria for insert/update bdoc

    Hi All,
    In our set up we have ecc to crm replication of BP. If one goes and checks the extension data of a stuck bdoc it has an Object Task- Insert or Update.
    Can someone help me with search criteria so that i can pull out bdocs which have an Insert as the Object task ??
    We have search criteria for errored/intermediate state bdocs; for inbound vs outbound; bdoc type etc etc..
    Need one based on Insert/Update Task so that any new data replication if stuck with its very first bdoc( Insert type) can be immediately queried.

    Hello Abhinav,
    I do not think that we have such a search criteria to search for BDocs based on the Task Type, which comes under the
    data part of the BDoc.
    One alternative way is to find out in which table these data gets stored and write a program to fetch the revelent Bdocs.
    Hope thisl helps!
    Best Regards,
    Shanthala Kudva

  • JBO error deploying under Tomcat 3.2.2

    I've created the JSP BC4J application and deployed under Tomcat. I've followed Chris Schalk's tips on adding the jar file in the CLASSPATH( for Tomcat.bat). But, I still get folowing errors:
    Error: 500
    Location: /BugEnter_html/ReportView_Insert.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\jakarta-tomcat-3.2.2\work\localhost_8080%2FBugEnter_html\_0002fReportView_0005fInsert_0002ejspReportView_0005fInsert_jsp_0.java:14: Package oracle.jbo not found in import.
    import oracle.jbo.*;
    C:\jakarta-tomcat-3.2.2\work\localhost_8080%2FBugEnter_html\_0002fReportView_0005fInsert_0002ejspReportView_0005fInsert_jsp_0.java:16: Package oracle.jdeveloper.html not found in import.
    import oracle.jdeveloper.html.*;
    C:\jakarta-tomcat-3.2.2\work\localhost_8080%2FBugEnter_html\_0002fReportView_0005fInsert_0002ejspReportView_0005fInsert_jsp_0.java:17: Package oracle.jbo.html.databeans not found in import.
    import oracle.jbo.html.databeans.*;
    3 errors
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
    at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
    Can someone please tell me how can I solve this problem?
    Please help!!!

    For TomCat 3.2.2 you will need to modify tomcat.bat so that also *.zip is added to the classpath. (look for the line that adds *.jar, duplicate it and change .jar in .zip)
    In TomCat 3.2.3 this is changed. (For 3.2.3 they changed Tomcat.bat so it now adds *.* from tomcat/lib to the classpath)

  • Custom tag fails to under Tomcat 5.0.16

    I have just upgraded to Tomcat 5.0.16 from 4.1.x.
    Any JSP page that contains a custom tag fails to build; error message:
    org.apache.jasper.JasperException: /jsp/CustomReport.jsp(62,20) Unknown attribute type (String) for attribute name.
    The tags work under �Tomcat 4.x�. All other pages build and function correctly.
    Java 2 version: 1.4.2_03
    Tomcat 5.0.16 or Tomcat 4.1.x

    Try updating your web.xml to use the Servlet 2.4 schema. You will have to change your tld declarations to sit inside the new <jsp-config> tags but see if it works for Servlet 2.4. Could be a backwards compatible bug?

  • Insert/update in JSP

    i an developing a bc4j JSP application.
    in my form i have html drop down,poplutaed with values by using show value data tag.
    The drop down box contains "decription" field.
    now while inserting/updating,i want to find the corresponding desc_id and insert /update this desc _id in another table.
    how do i do this?
    Please help

    To update/insert data, you can use ExecuteSQL data tag.
    Like example:
    String desc = request.getParameter("desc");
    String desc_id = request.getParameter("desc_id");
    <jbo:ExecuteSQL appid="id" > update table set desc=<%= desc %> where desc_id=<%= desc_id %>
    Hope this help.

  • Error meesage on UI sCannot insert/update Array without context information

    Hi All,
    As soon as page runs , i m getting the below error on server logs and also getting the same error once page page loads , user click on SellectmnayListBOx components on screen .
    Appriciate if any inputs on this . using ADF6 .
    <ApplicationModuleImpl> <doPoolMessage>
    oracle.jbo.AfterRollbackException: JBO-26102: An error occurred after rollback was performed.
         at oracle.jbo.server.DBTransactionImpl.rollback(DBTransactionImpl.java:2595)
         at oracle.jbo.server.ApplicationModuleImpl.resetState(ApplicationModuleImpl.java:4840)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:336)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9084)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4607)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.resetApplicationModule(ApplicationPoolImpl.java:2026)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.removeSessionCookie(ApplicationPoolImpl.java:879)
         at oracle.jbo.common.ampool.SessionCookieImpl.removeFromPool(SessionCookieImpl.java:711)
         at oracle.jbo.common.ampool.SessionCookieImpl.destroy(SessionCookieImpl.java:650)
         at oracle.jbo.common.ampool.SessionCookieImpl.timeout(SessionCookieImpl.java:697)
         at oracle.adf.model.bc4j.DCJboDataControl.releaseImmediateAMUnmanaged(DCJboDataControl.java:2525)
         at oracle.adf.model.bc4j.DCJboDataControl.releaseApplicationModule(DCJboDataControl.java:2429)
         at oracle.adf.model.bc4j.DCJboDataControl.release(DCJboDataControl.java:903)
         at oracle.adf.model.dcframe.DataControlFrameImpl.release(DataControlFrameImpl.java:364)
         at oracle.adf.model.BindingContext.resetState(BindingContext.java:637)
         at oracle.adf.model.BindingContext.release(BindingContext.java:609)
         at oracle.adf.model.servlet.HttpBindingContext.valueUnbound(HttpBindingContext.java:77)
         at weblogic.servlet.internal.session.SessionData.removeAttribute(SessionData.java:720)
         at weblogic.servlet.internal.session.SessionData.removeAttribute(SessionData.java:702)
         at weblogic.servlet.internal.session.SessionData.remove(SessionData.java:976)
         at weblogic.servlet.internal.session.MemorySessionContext.invalidateSession(MemorySessionContext.java:69)
         at weblogic.servlet.internal.session.SessionContext.invalidateSession(SessionContext.java:475)
         at weblogic.servlet.internal.session.MemorySessionContext$SessionCleanupAction.run(MemorySessionContext.java:114)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.session.MemorySessionContext.destroy(MemorySessionContext.java:90)
         at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:3220)
         at weblogic.servlet.internal.ServletContextManager.destroyContext(ServletContextManager.java:247)
         at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:461)
         at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:1535)
         at weblogic.servlet.internal.WebAppModule.deactivate(WebAppModule.java:507)
         at weblogic.application.internal.flow.ModuleStateDriver$2.previous(ModuleStateDriver.java:387)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:223)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:215)
         at weblogic.application.internal.flow.ModuleStateDriver.deactivate(ModuleStateDriver.java:141)
         at weblogic.application.internal.flow.ScopedModuleDriver.deactivate(ScopedModuleDriver.java:206)
         at weblogic.application.internal.flow.ModuleListenerInvoker.deactivate(ModuleListenerInvoker.java:261)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$2.previous(DeploymentCallbackFlow.java:547)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:223)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:215)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:192)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:184)
         at weblogic.application.internal.BaseDeployment$2.previous(BaseDeployment.java:642)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:223)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:215)
         at weblogic.application.internal.BaseDeployment.deactivate(BaseDeployment.java:227)
         at weblogic.application.internal.EarDeployment.deactivate(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.deactivate(DeploymentStateChecker.java:198)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.deactivate(AppContainerInvoker.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.silentDeactivate(AbstractOperation.java:679)
         at weblogic.deploy.internal.targetserver.operations.RedeployOperation.unprepareDeployment(RedeployOperation.java:197)
         at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:120)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.jbo.JboException: Cannot insert/update Array without context information     at oracle.jbo.domain.Array.prepareForDML(Array.java:802)
         at oracle.jbo.server.ViewRowSetImpl.prepareLobObjectForBind(ViewRowSetImpl.java:8301)
         at oracle.jbo.server.ViewRowSetImpl.getParametersAsStorageTypes(ViewRowSetImpl.java:5074)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1169)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1397)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1303)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1288)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7107)
         at com.tuitravelad.modelbase.bc.base.vo.TuiTravelADViewObject.afterRollback(TuiTravelADViewObject.java:168)
         at oracle.jbo.server.DBTransactionImpl.rollback(DBTransactionImpl.java:2570)
         ... 62 more
    ## Detail 0 ##
    oracle.jbo.JboException: Cannot insert/update Array without context information
         at oracle.jbo.domain.Array.prepareForDML(Array.java:802)
         at oracle.jbo.server.ViewRowSetImpl.prepareLobObjectForBind(ViewRowSetImpl.java:8301)
         at oracle.jbo.server.ViewRowSetImpl.getParametersAsStorageTypes(ViewRowSetImpl.java:5074)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1169)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1397)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1303)

    +"As soon as page runs , i m getting the below error on server logs and also getting the same error once page page loads , user click on SellectmnayListBOx components on screen ."+
    cannot be the full story you tell. The exception is thrown in the context of a prepareForDML, which is called on entities for the Create / Update and Delete use case. I also see a failed rollback. So there must be something you do before this happens during a page refresh

  • Stats on Inserts/Updates/Deletes

    What's the best way to figure out how many insert/update/delete transactions my 10g Grid is processing over a given period (e.g. an hour) of time?
    I want to come up with an automated procedure for collecting these stats (and possibly logging them
    to a file).
    I have Grid Control running, but in poking around under 'Performance' I don't see any metrics like this.

    (Check $ORACLE_HOME/install/portlist.ini for the port of
    Enterprise Manager Console HTTP Port (xadv2) = <port number>)
    OEM Database Control:
    Database: <DB instance name>.oracle.com->All Metrics->Throughput->Number of Transactions (per second)
    View Data:
    Last 24 hours
    Last 7 days
    Last 31 days

  • Array Insert/Update/Select in JDBC

    I've been using array processing in ODBC, OCI, and Pro*C for years and desperately need to do so in JDBC. I've thus far been unsuccessful and am beginning to doubt that it's supported which to me is unfathomable. I've likewise found many like inquiries on the net - none of which were addressed. There have been many respondants who don't undertstand what array processing is and mistake it for batch SQL statements. They are not the same. Batched SQL statements are seperate statements which are executed in a single call to the database engine. What I'm taking about is using a prepared statement and binding primitive arrays to the statement. A single statement is executed and the contents of the arrays passed to the database. I've conducted tests years ago and array insert/update is many times faster than batch statements. Does anyone know whether or not JDBC supports array processing? If anyone's interested, I can provide snippets via email which illustrate how this is done in ODBC and other API's.

    You referred me to
    http://java.sun.com/products/jdbc/download.html. The
    only reference I found to arrays were SQL Arrays - not
    what I'm talking about. See prior C/ODBC snippet. Do
    you know how to do this in JDBC?You are talking about passing an array as a single parameter to and from the underlying database correct? (And that has nothing to do with batch processing.)
    If so in section 16.4 "Array Object"..... looking at that section gives the following reference....
    The Array object returned to an application by the ResultSet.getArray and
    CallableStatement.getArray methods is a logical pointer to the SQL ARRAY
    value in the database; it does not contain the contents of the SQL ARRAY value.
    The above has nothing to do with batch processing (although presumably one could use it in a batch process but then one can use String as well.)
    Of course perhaps there is something in there that says that only applies to batch processing. If so could you please point out the section and quote the text.

  • Confirmation before insert, update or delete

    I want to create something like alert which before insert or update or delete ask me to do that. I mean that if i am going to insert a record, it will ask me "Are you sure you want to insert record", and provide two buttons OK and cancel. If i press cancel then it will not let me do that. I tried confirm function of javascript but even when i clicked cancel it went to insert the record. How can i achieve this functionality.

    var x=window.confirm('Do you want to proceed?');
    if (!x)
    return false;

  • Need user response(confirmation) before Insert, update or delete

    I want that before insert or update or delete etc., an alert is shown to the user and if the user click OK button then that action is performed on database otherwise not. I wrote following javascripts in a user interface template and then called this function but it did not work
    function confirm_Modification_delete ()
    if (confirm("Are you sure you want to remove this record?"))
    return true;
    alert("You click Cancel")
    return false;
    in the same way i also created insert or update alerts but when i clicked cancel even then they perform the insert or update or delete. How can i correct these scripts or get this functionality.
    Muhammad Ejaz

    var x=window.confirm('Do you want to proceed?');
    if (!x)
    return false;

  • Extremely slow inserts/updates reported after HW upgrade...

    Hi gyus,
    I'll try to be as descriptive as I can. It's this project in which we have to move circa 6 mission critical (24x7) and mostly OLTP databases from MS Windows 2003 (DB on local disks) to HP-UX IA (CA metrocluster, HP XP 12000 disk array) - all ORA10gR2 And everything was perfect until we moved this XYZ database...
    Almost immediately users reported "considerable" performance degradation. According to 3rd party application log they get almost 40 secs. instead of previously recorded 10.
    We, I mean Oracle and HP specialists, haven't noticed/recorded any significant peeks/bottlenecks (RAM, CPU, Disk I/O).
    Feel free to check 3 AWR reports and the init.ora at [http://www.mediafire.com/?sharekey=0269c9bc606747b47f7ec40ada4772a6e04e75f6e8ebb871]
    1_awrrpt_standard.txt - standard workload during 8 hours (peek hours are from 8-12AM)
    2_awrrpt_2hrs_ca.txt - standard workload during 2 peek hours (8-10)
    3_awrrpt_2hrs_noca.txt - standard workload during 2 peek hours (10-12) with CA disk mirroring disabled
    Of course, I've checked the ADDM reports - and first, I'd like to ask why ADDM keeps on reporting the following (on all database instances on this
    cluster node):
    FINDING 1: 100% impact (310 seconds)
    Significant virtual memory paging was detected on the host operating system.
    RECOMMENDATION 1: Host Configuration, 100% benefit (310 seconds)
    Is it just some kind of false alarm (like we use to get on MS Windows)? Both nodes are running on 32gigs of RAM
    with roughly more than 10gigs constantly free.
    Second, as ADDM reported:
    FINDING 2: 44% impact (135 seconds)
    Waits on event "log file sync" while performing COMMIT and ROLLBACK operations
    were consuming significant database time.
    we've tried to split CA disk mirroring, using RAID 10 for redo log file disks etc. etc. No substantial performance gain was reported from users (though I've noticed some in AWR reports).
    Despite confusing app. users' feedback I'm nearly sure that our bottleneck are redo log file disks. Why? Previously (old HW) we had 1-3 ms avg wait on log file sync and log file parallel write and now (new HW, RAID5/RAID10 we've tested both) - it's 8 ms or even more. We were able to get 2ms only with CA switched off (HP etrocluster
    disk array mirroring).
    And that brings up two new questions:
    1. Does redo log group mirroring (2 on 2 separate disks vs. 1 on 1 disk) have any
    significant impact on abovementioned wait events? I mean what performance gain
    could I expect when I drop all "secondary" redo log members?
    2. Why do we get almost identical response times when we run bulk insert/update tests (say
    1000000 rows) against old and new DB/HW?
    Thanks in advance,
    Edited by: smutny on 1.11.2009 17:39
    Edited by: smutny on 1.11.2009 17:46

    Hi again,
    so here's the actual AWR report (1 minute window while the most problematic operation took place). I think it's becoming clear we have to deal with slow redo log writes...
    DB Name         DB Id    Instance     Inst Num Release     RAC Host
    ...            294736156 ...                 1  NO  ...
                  Snap Id      Snap Time      Sessions Curs/Sess
    Begin Snap:      1254 02-Nov-09 10:07:45        91      46.4
      End Snap:      1255 02-Nov-09 10:08:47        91      46.4
       Elapsed:                1.04 (mins)
       DB Time:                0.51 (mins)
    Cache Sizes
    ~~~~~~~~~~~                       Begin        End
                   Buffer Cache:       576M       576M  Std Block Size:         8K
               Shared Pool Size:       912M       912M      Log Buffer:    14,372K
    Load Profile
    ~~~~~~~~~~~~                            Per Second       Per Transaction
                      Redo size:            163,781.94              4,575.45
                  Logical reads:              1,677.15                 46.85
                  Block changes:              1,276.32                 35.66
                 Physical reads:                  1.99                  0.06
                Physical writes:                  1.16                  0.03
                     User calls:                426.41                 11.91
                         Parses:                 20.74                  0.58
                    Hard parses:                  0.19                  0.01
                          Sorts:                  2.38                  0.07
                         Logons:                  0.00                  0.00
                       Executes:                386.76                 10.80
                   Transactions:                 35.80
      % Blocks changed per Read:   76.10    Recursive Call %:    31.51
    Rollback per transaction %:    0.00       Rows per Sort:   369.98
    Instance Efficiency Percentages (Target 100%)
                Buffer Nowait %:  100.00       Redo NoWait %:  100.00
                Buffer  Hit   %:   99.88    In-memory Sort %:  100.00
                Library Hit   %:   99.90        Soft Parse %:   99.07
             Execute to Parse %:   94.64         Latch Hit %:  100.00
    Parse CPU to Parse Elapsd %:  112.50     % Non-Parse CPU:   99.11
    Shared Pool Statistics        Begin    End
                 Memory Usage %:   88.90   88.87
        % SQL with executions>1:   98.74   99.39
      % Memory for SQL w/exec>1:   95.35   97.75
    Top 5 Timed Events                                         Avg %Total
    ~~~~~~~~~~~~~~~~~~                                        wait   Call
    Event                                 Waits    Time (s)   (ms)   Time Wait Class
    log file parallel write               2,228          21     10   69.4 System I/O
    log file sync                         2,220          21     10   69.2     Commit
    CPU time                                             20          65.5
    SQL*Net break/reset to client         2,106           1      1    3.4 Applicatio
    db file sequential read                 131           0      4    1.5   User I/O
    Time Model Statistics                DB/Inst: ROVEPP/rovepp  Snaps: 1254-1255
    -> Total time in database user-calls (DB Time): 30.9s
    -> Statistics including the word "background" measure background process
       time, and so do not contribute to the DB time statistic
    -> Ordered by % or DB time desc, Statistic name
    Statistic Name                                       Time (s) % of DB Time
    DB CPU                                                   20.2         65.5
    sql execute elapsed time                                  9.1         29.4
    PL/SQL execution elapsed time                             0.3          1.0
    parse time elapsed                                        0.2           .5
    hard parse elapsed time                                   0.1           .5
    repeated bind elapsed time                                0.0           .0
    DB time                                                  30.9          N/A
    background elapsed time                                  22.2          N/A
    background cpu time                                       0.4          N/A
    Wait Class                            DB/Inst: ROVEPP/rovepp  Snaps: 1254-1255
    -> s  - second
    -> cs - centisecond -     100th of a second
    -> ms - millisecond -    1000th of a second
    -> us - microsecond - 1000000th of a second
    -> ordered by wait time desc, waits desc
                                           %Time       Total Wait    wait     Waits
    Wait Class                      Waits  -outs         Time (s)    (ms)      /txn
    System I/O                      3,213     .0               22       7       1.4
    Commit                          2,220     .0               21      10       1.0
    Application                     2,106     .0                1       1       0.9
    User I/O                          134     .0                0       4       0.1
    Network                        29,919     .0                0       0      13.4
    Wait Events                          DB/Inst: ROVEPP/rovepp  Snaps: 1254-1255
    -> s  - second
    -> cs - centisecond -     100th of a second
    -> ms - millisecond -    1000th of a second
    -> us - microsecond - 1000000th of a second
    -> ordered by wait time desc, waits desc (idle events last)
                                                 %Time  Total Wait    wait     Waits
    Event                                 Waits  -outs    Time (s)    (ms)      /txn
    log file parallel write               2,228     .0          21      10       1.0
    log file sync                         2,220     .0          21      10       1.0
    SQL*Net break/reset to clien          2,106     .0           1       1       0.9
    db file sequential read                 131     .0           0       4       0.1
    control file parallel write              44     .0           0       9       0.0
    db file parallel write                   44     .0           0       4       0.0
    SQL*Net more data to client           3,397     .0           0       0       1.5
    SQL*Net message to client            26,509     .0           0       0      11.9
    control file sequential read            897     .0           0       0       0.4
    SQL*Net more data from clien             13     .0           0       0       0.0
    direct path write                         3     .0           0       0       0.0
    SQL*Net message from client          26,510     .0       1,493      56      11.9
    Streams AQ: qmn slave idle w              2     .0          55   27412       0.0
    Streams AQ: qmn coordinator               4   50.0          55   13706       0.0
    PL/SQL lock timer                        10  100.0          49    4897       0.0
    Background Wait Events               DB/Inst: ROVEPP/rovepp  Snaps: 1254-1255
    -> ordered by wait time desc, waits desc (idle events last)
                                                 %Time  Total Wait    wait     Waits
    Event                                 Waits  -outs    Time (s)    (ms)      /txn
    log file parallel write               2,228     .0          21      10       1.0
    control file parallel write              44     .0           0       9       0.0
    db file parallel write                   44     .0           0       4       0.0
    control file sequential read             71     .0           0       0       0.0
    rdbms ipc message                     2,412    7.7         525     218       1.1
    pmon timer                               20  100.0          59    2929       0.0
    Streams AQ: qmn slave idle w              2     .0          55   27412       0.0
    Streams AQ: qmn coordinator               4   50.0          55   13706       0.0
    Operating System Statistics           DB/Inst: ROVEPP/rovepp  Snaps: 1254-1255
    Statistic                                       Total
    AVG_BUSY_TIME                                     847
    AVG_IDLE_TIME                                   5,362
    AVG_IOWAIT_TIME                                 2,692
    AVG_SYS_TIME                                      295
    AVG_USER_TIME                                     549
    BUSY_TIME                                       3,396
    IDLE_TIME                                      21,457
    IOWAIT_TIME                                    10,776
    SYS_TIME                                        1,190
    USER_TIME                                       2,206
    LOAD                                                0
    OS_CPU_WAIT_TIME                          192,401,000
    RSRC_MGR_CPU_WAIT_TIME                              0
    VM_IN_BYTES                                    40,960
    VM_OUT_BYTES                                  335,872
    PHYSICAL_MEMORY_BYTES                  34,328,276,992
    NUM_CPUS                                            4
    NUM_CPU_SOCKETS                                     4
    Instance Activity Stats              DB/Inst: ROVEPP/rovepp  Snaps: 1254-1255
    Statistic                                     Total     per Second     per Trans
    CPU used by this session                        984           15.8           0.4
    CPU used when call started                      344            5.5           0.2
    CR blocks created                                 4            0.1           0.0
    Cached Commit SCN referenced                    208            3.3           0.1
    Commit SCN cached                                 0            0.0           0.0
    DB time                                       2,589           41.6           1.2
    DBWR checkpoint buffers written                  69            1.1           0.0
    DBWR checkpoints                                  0            0.0           0.0
    DBWR object drop buffers written                  0            0.0           0.0
    DBWR tablespace checkpoint buffe                  0            0.0           0.0
    DBWR thread checkpoint buffers w                  0            0.0           0.0
    DBWR transaction table writes                     8            0.1           0.0
    DBWR undo block writes                           15            0.2           0.0
    IMU CR rollbacks                                  0            0.0           0.0
    IMU Flushes                                   1,156           18.6           0.5
    IMU Redo allocation size                    996,048       16,017.2         447.5
    IMU commits                                   2,100           33.8           0.9
    IMU contention                                    0            0.0           0.0
    IMU ktichg flush                                  0            0.0           0.0
    IMU pool not allocated                            0            0.0           0.0
    IMU recursive-transaction flush                   0            0.0           0.0
    IMU undo allocation size                 22,402,560      360,250.9      10,064.0
    IMU- failed to get a private str                  0            0.0           0.0
    Misses for writing mapping                        0            0.0           0.0
    SQL*Net roundtrips to/from clien             26,480          425.8          11.9
    active txn count during cleanout                 34            0.6           0.0
    application wait time                           106            1.7           0.1
    background checkpoints completed                  0            0.0           0.0
    background checkpoints started                    0            0.0           0.0
    background timeouts                             199            3.2           0.1
    branch node splits                                0            0.0           0.0
    buffer is not pinned count                   13,919          223.8           6.3
    buffer is pinned count                       19,483          313.3           8.8
    bytes received via SQL*Net from             884,016       14,215.7         397.1
    bytes sent via SQL*Net to client          9,602,642      154,418.1       4,313.9
    calls to get snapshot scn: kcmgs             13,641          219.4           6.1
    calls to kcmgas                               3,029           48.7           1.4
    calls to kcmgcs                                  56            0.9           0.0
    change write time                                 8            0.1           0.0
    cleanout - number of ktugct call                 42            0.7           0.0
    cleanouts and rollbacks - consis                  0            0.0           0.0
    cleanouts only - consistent read                  0            0.0           0.0
    cluster key scan block gets                   1,100           17.7           0.5
    cluster key scans                             1,077           17.3           0.5
    commit batch/immediate performed                  1            0.0           0.0
    commit batch/immediate requested                  1            0.0           0.0
    commit cleanout failures: block                   0            0.0           0.0
    commit cleanout failures: buffer                  0            0.0           0.0
    commit cleanout failures: callba                  4            0.1           0.0
    commit cleanout failures: cannot                  0            0.0           0.0
    commit cleanouts                              9,539          153.4           4.3
    commit cleanouts successfully co              9,535          153.3           4.3
    commit immediate performed                        1            0.0           0.0
    commit immediate requested                        1            0.0           0.0
    commit txn count during cleanout                 26            0.4           0.0
    concurrency wait time                             0            0.0           0.0
    consistent changes                              264            4.3           0.1
    consistent gets                              48,659          782.5          21.9
    consistent gets - examination                26,952          433.4          12.1
    consistent gets direct                            2            0.0           0.0
    consistent gets from cache                   48,657          782.4          21.9
    cursor authentications                            2            0.0           0.0
    data blocks consistent reads - u                  4            0.1           0.0
    db block changes                             79,369        1,276.3          35.7
    db block gets                                55,636          894.7          25.0
    db block gets direct                              3            0.1           0.0
    db block gets from cache                     55,633          894.6          25.0
    deferred (CURRENT) block cleanou              4,768           76.7           2.1
    dirty buffers inspected                           0            0.0           0.0
    enqueue conversions                              15            0.2           0.0
    enqueue releases                              9,967          160.3           4.5
    enqueue requests                              9,967          160.3           4.5
    enqueue timeouts                                  0            0.0           0.0
    enqueue waits                                     0            0.0           0.0
    execute count                                24,051          386.8          10.8
    failed probes on index block rec                  0            0.0           0.0
    frame signature mismatch                          0            0.0           0.0
    free buffer inspected                           680           10.9           0.3
    free buffer requested                         1,297           20.9           0.6
    heap block compress                              11            0.2           0.0
    hot buffers moved to head of LRU              1,797           28.9           0.8
    immediate (CR) block cleanout ap                  0            0.0           0.0
    immediate (CURRENT) block cleano              2,274           36.6           1.0
    index crx upgrade (positioned)                   47            0.8           0.0
    index fast full scans (full)                      0            0.0           0.0
    index fetch by key                           10,326          166.1           4.6
    index scans kdiixs1                           6,071           97.6           2.7
    leaf node 90-10 splits                           14            0.2           0.0
    leaf node splits                                 18            0.3           0.0
    lob reads                                         0            0.0           0.0
    lob writes                                      198            3.2           0.1
    lob writes unaligned                            176            2.8           0.1
    logons cumulative                                 0            0.0           0.0
    messages received                             2,272           36.5           1.0
    messages sent                                 2,272           36.5           1.0
    no buffer to keep pinned count                    0            0.0           0.0
    no work - consistent read gets               21,083          339.0           9.5
    opened cursors cumulative                     1,290           20.7           0.6
    parse count (failures)                            0            0.0           0.0
    parse count (hard)                               12            0.2           0.0
    parse count (total)                           1,290           20.7           0.6
    parse time cpu                                   18            0.3           0.0
    parse time elapsed                               16            0.3           0.0
    physical read IO requests                       124            2.0           0.1
    physical read bytes                       1,015,808       16,335.0         456.3
    physical read total IO requests               1,030           16.6           0.5
    physical read total bytes                15,785,984      253,851.1       7,091.6
    physical read total multi block                   0            0.0           0.0
    physical reads                                  124            2.0           0.1
    physical reads cache                            122            2.0           0.1
    physical reads cache prefetch                     0            0.0           0.0
    physical reads direct                             2            0.0           0.0
    physical reads direct (lob)                       0            0.0           0.0
    physical reads direct temporary                   0            0.0           0.0
    physical reads prefetch warmup                    0            0.0           0.0
    physical write IO requests                       47            0.8           0.0
    physical write bytes                        589,824        9,484.8         265.0
    physical write total IO requests              4,591           73.8           2.1
    physical write total bytes               25,374,720      408,045.5      11,399.3
    physical write total multi block              4,461           71.7           2.0
    physical writes                                  72            1.2           0.0
    physical writes direct                            3            0.1           0.0
    physical writes direct (lob)                      3            0.1           0.0
    physical writes direct temporary                  0            0.0           0.0
    physical writes from cache                       69            1.1           0.0
    physical writes non checkpoint                   18            0.3           0.0
    pinned buffers inspected                          1            0.0           0.0
    prefetch warmup blocks aged out                   0            0.0           0.0
    prefetched blocks aged out befor                  0            0.0           0.0
    process last non-idle time                        0            0.0           0.0
    recursive calls                              12,197          196.1           5.5
    recursive cpu usage                             747           12.0           0.3
    redo blocks written                          11,398          183.3           5.1
    redo buffer allocation retries                    0            0.0           0.0
    redo entries                                  6,920          111.3           3.1
    redo log space requests                           0            0.0           0.0
    redo log space wait time                          0            0.0           0.0
    redo ordering marks                              96            1.5           0.0
    redo size                                10,184,944      163,781.9       4,575.5
    redo subscn max counts                          811           13.0           0.4
    redo synch time                               2,190           35.2           1.0
    redo synch writes                             2,220           35.7           1.0
    redo wastage                              1,377,920       22,158.0         619.0
    redo write time                               2,192           35.3           1.0
    redo writer latching time                         0            0.0           0.0
    redo writes                                   2,228           35.8           1.0
    rollback changes - undo records                  24            0.4           0.0
    rollbacks only - consistent read                  4            0.1           0.0
    rows fetched via callback                     1,648           26.5           0.7
    session connect time                              0            0.0           0.0
    session cursor cache hits                     1,242           20.0           0.6
    session logical reads                       104,295        1,677.2          46.9
    session pga memory                        2,555,904       41,101.0       1,148.2
    session pga memory max                            0            0.0           0.0
    session uga memory                          123,488        1,985.8          55.5
    session uga memory max                            0            0.0           0.0
    shared hash latch upgrades - no                  66            1.1           0.0
    sorts (disk)                                      0            0.0           0.0
    sorts (memory)                                  148            2.4           0.1
    sorts (rows)                                 54,757          880.5          24.6
    sql area evicted                                 86            1.4           0.0
    sql area purged                                   0            0.0           0.0
    summed dirty queue length                         0            0.0           0.0
    switch current to new buffer                    596            9.6           0.3
    table fetch by rowid                          9,173          147.5           4.1
    table fetch continued row                         0            0.0           0.0
    table scan blocks gotten                        982           15.8           0.4
    table scan rows gotten                      154,079        2,477.7          69.2
    table scans (cache partitions)                    0            0.0           0.0
    table scans (long tables)                         0            0.0           0.0
    table scans (short tables)                       59            1.0           0.0
    total number of times SMON poste                  0            0.0           0.0
    transaction rollbacks                             1            0.0           0.0
    undo change vector size                   3,990,136       64,164.5       1,792.5
    user I/O wait time                               49            0.8           0.0
    user calls                                   26,517          426.4          11.9
    user commits                                  2,226           35.8           1.0
    user rollbacks                                    0            0.0           0.0
    workarea executions - onepass                     0            0.0           0.0
    workarea executions - optimal                   204            3.3           0.1
    write clones created in backgrou                  0            0.0           0.0
    write clones created in foregrou                  0            0.0           0.0
              -------------------------------------------------------------... and what's even more interesting is the report that I've got using this great Tanel Poder's session snapper script. Take a look at these numbers (excerpt):
    SID      USERNAME        TYPE      STATISTIC                  DELTA         HDELTA/SEC       %TIME
    668      ROVE_EDA        WAIT      log file sync              2253426        450.69ms         45.1%
    668      ROVE_EDA        WAIT      log file sync              2140618        428.12ms         42.8%
    668      ROVE_EDA        WAIT      log file sync              2088327        417.67ms         41.8%
    668      ROVE_EDA        WAIT      log file sync              2184408        364.07ms         36.4%
    668      ROVE_EDA        WAIT      log file sync              2117470        352.91ms         35.3%
    668      ROVE_EDA        WAIT      log file sync              2051280        341.88ms         34.2%
    668      ROVE_EDA        WAIT      log file sync              1595019        265.84ms         26.6%
    668      ROVE_EDA        WAIT      log file sync              612034        122.41ms         12.2%
    668      ROVE_EDA        WAIT      log file sync              2162980         432.6ms         43.3%
    668      ROVE_EDA        WAIT      log file sync              2071811         345.3ms         34.5%
    668      ROVE_EDA        WAIT      log file sync              2004571         334.1ms         33.4%
    668      ROVE_EDA        WAIT      db file sequential read    28401          5.68ms           .6%
    668      ROVE_EDA        WAIT      db file sequential read    29028          4.84ms           .5%
    668      ROVE_EDA        WAIT      db file sequential read    24846          4.14ms           .4%
    668      ROVE_EDA        WAIT      db file sequential read    24323          4.05ms           .4%
    668      ROVE_EDA        WAIT      db file sequential read    17026          3.41ms           .3%
    668      ROVE_EDA        WAIT      db file sequential read    6736          1.35ms           .1%
    668      ROVE_EDA        WAIT      db file sequential read    33028           5.5ms           .6%
    764      (LGWR)          WAIT      log file parallel write    2236748        447.35ms         44.7%
    764      (LGWR)          WAIT      log file parallel write    2150825        430.17ms         43.0%
    764      (LGWR)          WAIT      log file parallel write    2139532        427.91ms         42.8%
    764      (LGWR)          WAIT      log file parallel write    2119086        423.82ms         42.4%
    764      (LGWR)          WAIT      log file parallel write    2134938        355.82ms         35.6%
    764      (LGWR)          WAIT      log file parallel write    2083649        347.27ms         34.7%
    764      (LGWR)          WAIT      log file parallel write    2034998        339.17ms         33.9%
    764      (LGWR)          WAIT      log file parallel write    1996050        332.68ms         33.3%
    764      (LGWR)          WAIT      log file parallel write    1797057        299.51ms         30.0%
    764      (LGWR)          WAIT      log file parallel write    555403        111.08ms         11.1%
    764      (LGWR)          WAIT      log file parallel write    277875         46.31ms          4.6%
    764      (LGWR)          WAIT      log file parallel write    2067591         344.6ms         34.5%Where SID=668 is the session we've been looking for... OK, we've got to get back to monitoring disk array and the corresponding network components.

  • Inserted | updated | deleted | merged

    If a table has been set to update/insert and a row arrives with a matching column then the corresponding row in the target table is updated. In the job details window shouldnt it show a 1 under the updated section. My question really is, what does the merged tab indicate ?

    As per my knowledge
    If map runs in row based mode-- insert,update tabs are filled
    If map runs in set based mode- merge will come
    Row Based mode: In the pl/sql pkg generated by the map
    insert and update operation will happen for each row
    For insert/update option --First insert statement will run if the record exists then exception will come , then in the exception block update statment will be there and thee the record will be udpated..
    For update/insert option -- First it tries to update the record.. if it doestnt find the record it raises an exception , in the exception block insert statment will be ther
    that will insert the record..
    In Set based Mode:
    Instead of separate insert/update statements one merge stament will be there it will run...
    So set based mode is faster than row based mode..
    If any errors comes, then its difficult to find the source record causing the error in set based mode as it is in merge statment
    but it is easy in row based as it will do insert/update for each record --- each record will be inserted in the audit tables.
    Hope this will give u an idea
    Than you

  • Can not insert/update data from table which is created from view

    Hi all
    I'm using Oracle database 11g
    I've created table from view as the following command:
    Create table table_new as select * from View_Old
    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
    Anybody tell me, what's happend? cause?
    Edited by: user8248216 on May 5, 2011 8:54 PM
    Edited by: user8248216 on May 5, 2011 8:55 PM

    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK?

Maybe you are looking for

  • Computer won't start if ipod is connected

    My computer won't start when my ipod (nano) is connected. He stucks in the post screen of the motherboard. Before the pc will check what the boot drive is. So, changes in boot devices in bios won't work. What can be the problem? AMD   Windows XP Pro

  • Transfer Footprints from HTC Eris to HTC Incredible 2

    I switched from HTC Eris to HTC Incredible 2.  I want to transfer my Footprints thumbnails and data to HTC Incredible 2.  On the HTC Eris there is a folder on the SD card called .footprint that contains the footnotes.db file and folders for thumbnail

  • Lookup API - SPRAS value returned is not correct

    Hi All We are using the lookup API of XI to make a lookup in the SAP system and return values such as LAND1, and SPRAS. SPRAS has 2 kindoff value, one is the display value which is a 2 character value, and then the actual value which is a single char

  • Parameter form

    Hi there, How could I catch the event that users generate when they close the parameters form window in a report. I would like to change the message REP-0099 Report is aborted upon user request like I have done with others, but this doen't work.... R

  • Cookie error message for online college course...cuyamlp We detected that the following feature of your browser is turned off: Cookies Cookies are sto

    The error message is below and its been the same on firefox, chrome and internet explorer on my same computer. All the cookies are on and accpeted on all three. There shouldnt be a reason why Im getting this still, help! cuyamlp We detected that the