Oracle 10G Commit Not Visible

I have a commit or concurrency issue I hope someone can shed some light on.
I'm building rows in a reporting table via several stored procedures and reporting on the results.
The final stored procedure uses the rows built by the initial stored procedures and occasionally, the rows initially created are not visible to the final stored procedure.
Is there a way to force Oracle to COMMIT the rows and WAIT so there are 100% visible to subsequent stored proccedures?
Thanks. (Oracle DB 10.2.0.3.0 Client 11.2.0.2)
In summary -
1> Proc #1 runs and builds summary rows
2> Proc #2 runs and builds summary rows
3> proc #3 runs and builds summary rows
4> proc #4 then does some totals on the results of the first 3 procs.
Sometimes the results of the first procs are not visible to proc#4 when it runs.
I have explicit commits at the end of the stored procedures. In theory I (or anyone else) should be able to see the results of each stored procedures as it runs but sometimes they are not. I have actually seen this happen by monitoring the rows in the reporting table coupled with DBMS_OUTPUT from the stored procs.
The reporting table can be active, accessed simultaneously by a 20? users at a time. It does seem timing sensitive, when I add some wait time in the app before calling each stored proc the number occurrences where rows are not found decrease. Similarly, when the numbers of users decrease the number of occurrences decrease.
proc1 summary_labor
cursor proc_cursor1 is select * from table1;
For c_row1 in proc1
Do some calculations
Insert a summary row into reporting table
end; -- For
COMMIT;
End Proc1

user7313584 wrote:
I have a commit or concurrency issue I hope someone can shed some light on.
I'm building rows in a reporting table via several stored procedures and reporting on the results.
The final stored procedure uses the rows built by the initial stored procedures and occasionally, the rows initially created are not visible to the final stored procedure.
Is there a way to force Oracle to COMMIT the rows and WAIT so there are 100% visible to subsequent stored proccedures?
Thanks. (Oracle DB 10.2.0.3.0 Client 11.2.0.2)
In summary -
1> Proc #1 runs and builds summary rows
2> Proc #2 runs and builds summary rows
3> proc #3 runs and builds summary rows
4> proc #4 then does some totals on the results of the first 3 procs.
Sometimes the results of the first procs are not visible to proc#4 when it runs.
I have explicit commits at the end of the stored procedures. In theory I (or anyone else) should be able to see the results of each stored procedures as it runs but sometimes they are not. I have actually seen this happen by monitoring the rows in the reporting table coupled with DBMS_OUTPUT from the stored procs.
The reporting table can be active, accessed simultaneously by a 20? users at a time. It does seem timing sensitive, when I add some wait time in the app before calling each stored proc the number occurrences where rows are not found decrease. Similarly, when the numbers of users decrease the number of occurrences decrease.So procedure 4 is dependant on the completion of procedures 1 thru 3. So what is causing procedure 4 to run before those others have completed? You need to ensure it doesn't run until such a time.
proc1 summary_labor
cursor proc_cursor1 is select * from table1;
For c_row1 in proc1
Do some calculations
Insert a summary row into reporting table
end; -- For
COMMIT;
End Proc1Horrible code.
Use a single INSERT ... SELECT ... statement to avoid context switching which is inevitably causing the code to run slowly.

Similar Messages

  • Oracle 10g form not always running in windows 7

    hello all of you experts , the query which I am going to post here is very annoying for me but it there might be a simple solution to my problem. I have installed oracle developer 10g on windows 7. Changed the formsweb.cfg file so that it uses java plug in rather than jinitiator I have installed the JRE version 6, now the problem is that when i try to run a form sometimes it runs properly but sometimes the browser window becomes blank and the form is not visible in it and yes the splash screen which shows the name of application server stays there on the screen. the problem is in internet explorer, mozilla and chrome as well didn't check on any other browser. Please help me out i would be grateful to you guys out there. Just to let you know that this annoying behavior is not always there, i dont know why some forms do run properly but some of them dont.

    That is actually not an uncommon symptom for any Windows platform. However, I will say that if you are running on Windows 7, it should be Win7-32bit and you should have installed the 10.1.2.3 patch set. Anything else would not be considered certified by Oracle and therefore not supported. The details on how to properly install Forms/Reports 10.1.2 on Win7 are outlined in MyOracleSupport note 1292919.1
    Assuming you covered all that, with Dev Suite this often happens when you have abandoned a process previously then tried to start another before the first has been terminated. In other words, next time you have this happen close ALL open browser windows then open the Windows task manager. Look for any orphaned frmweb.exe processes and kill them. Now go back and try starting a form. It should work now.
    It is never a good idea to terminate a running form by closing the browser. It is important that you close the form first (e.g. using the Exit button in the form) then close the browser. Closing the browser while a form is running can cause runtime processes to become orphaned. Generally these will be cleaned up when FORMS_TIMEOUT is reached (usually 15 minutes), but the point is that you have prevented a clean shutdown from occurring. So always make a best effort attempt at closing the form properly. End-users should be encouraged to do the same when the application is put into production.

  • Oracle 10g Client not working in Windows 7 64 bit

    Dear All,
    Not ablle to install Oracle 10g Client (Rel 2) in Windows 7 64 bit , getting an abnormal error and stoping ..
    Please suggest me how to proceed futher

    823755 wrote:
    Dear All,
    Not ablle to install Oracle 10g Client (Rel 2) in Windows 7 64 bit , getting an abnormal error and stoping ..
    Please suggest me how to proceed futherWhich Edition of Windows 7?
    Where version of Oracle to four decimal places; i.e. V10.2.0.1

  • Oracle 10G forms not running.......very urgent

    Hi all,
    shayan here......
    i have just installed oracle databse 10g and oracle 10G developer........i have done it first time....the forms is not running even the test form is not running....i have start the OCJ4 but still the same result..............any sujjestion how to configure....
    plz tell me

    Shayan,
    I assume that you are trying to run the form from within Forms Developer and that you are connected to the database.
    Now you have to apply the URL that have to be used when running a form. At one of the tabs in the options screen (where you also can choose to save before generating and generate before running or to get debug messages) you can set the default URL by pressing a button.
    At this moment I don't have a 10g installation in reach so I cannot give you the exact menuoptions and mouse clicks.
    With kind regards,
    Martin Schaap

  • Oracle 10g :: APEX not running

    Hi,
    I have installed Oracle 10g in my pc with the default configuration.
    First day of installation APEX client was running but now its not running.
    Server is running correctly as I saw server processes in the Process Manager (Task Manager).
    I am using a debian flavor of Linux.
    Can anyone help me, How to find out why it's not running?
    Thanks

    Hi,
    I tried to run those commands but none of them is working here. I am providing all the logs which generated while starting the Server.
    Thanks
    LOGS:
    Mon Jun 4 19:52:28 2007
    Starting ORACLE instance (normal)
    Cannot determine all dependent dynamic libraries for /proc/self/exe
    The open() system call failed for the file /proc/self/exe
    Linux Error: 13: Permission denied
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =10
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    sessions = 49
    __shared_pool_size = 83886080
    __large_pool_size = 4194304
    __java_pool_size = 4194304
    __streams_pool_size = 0
    sga_target = 285212672
    control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
    __db_cache_size = 188743680
    compatible = 10.2.0.1.0
    db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
    db_recovery_file_dest_size= 10737418240
    undo_management = AUTO
    undo_tablespace = UNDO
    remote_login_passwordfile= EXCLUSIVE
    dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
    shared_servers = 4
    job_queue_processes = 4
    background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
    user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
    core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
    audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
    db_name = XE
    open_cursors = 300
    os_authent_prefix =
    pga_aggregate_target = 94371840
    PMON started with pid=2, OS id=9688
    PSP0 started with pid=3, OS id=9690
    MMAN started with pid=4, OS id=9692
    DBW0 started with pid=5, OS id=9694
    LGWR started with pid=6, OS id=9696
    CKPT started with pid=7, OS id=9698
    SMON started with pid=8, OS id=9700
    RECO started with pid=9, OS id=9702
    CJQ0 started with pid=10, OS id=9704
    MMON started with pid=11, OS id=9706
    MMNL started with pid=12, OS id=9708
    Mon Jun 4 19:52:29 2007
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Mon Jun 4 19:52:29 2007
    ALTER DATABASE MOUNT
    Mon Jun 4 19:52:33 2007
    Setting recovery target incarnation to 2
    Mon Jun 4 19:52:33 2007
    Successful mount of redo thread 1, with mount id 2505516605
    Mon Jun 4 19:52:33 2007
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE MOUNT
    Mon Jun 4 19:52:33 2007
    ALTER DATABASE OPEN
    Mon Jun 4 19:52:33 2007
    Thread 1 opened at log sequence 5
    Current log# 2 seq# 5 mem# 0: /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/onlinelog/o1_mf_2_35gv5kcp_.log
    Successful open of redo thread 1
    Mon Jun 4 19:52:33 2007
    SMON: enabling cache recovery
    Mon Jun 4 19:52:34 2007
    Successfully onlined Undo Tablespace 1.
    Mon Jun 4 19:52:34 2007
    SMON: enabling tx recovery
    Mon Jun 4 19:52:34 2007
    Database Characterset is WE8MSWIN1252
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    QMNC started with pid=19, OS id=9724
    Mon Jun 4 19:52:35 2007
    db_recovery_file_dest_size of 10240 MB is 0.98% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Mon Jun 4 19:52:36 2007
    Completed: ALTER DATABASE OPEN

  • Oracle 10g forms (Not running)

    Members,
    I have been using orcale 9i forms and currently I have uninstalled the Oracle 9i forms. I installed Oracle 10g forms and everything seems alright. When I ran my application, It did not display properly. I uninstalled the java initiator of 9i. I did run the application again, It downloaded and installed the J initiator. When I ran the application again, the same message appeared. Here is a sample of the message.
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();" >
    <form name="pform" action="http://SilverHorn:8889/forms90/f90servlet" method="POST">
    <input type="hidden" name="form" value="C:\SilverHorn\Ihrms\Ihrsmdi.fmx">
    <input type="hidden" name="userid" value="SCOTT/TIGER@Silver">
    <input type="hidden" name="obr" value="yes">
    <input type="hidden" name="array" value="YES">
    </form> </body></html>
    When I enter the path of the application in the browser address, http://SilverHorn:8889/forms90/f90servlet?forms=C:\SilverHorn\Ihrms\Ihrsmdi.fmx, the application start running, but anytime I did run the application from forms, it gives the above message in the browser.
    Please I need help on how I will resolve the above to be able to run it from the forms developer environment.
    Thanks

    Members,
    I have been using orcale 9i forms and currently I
    have uninstalled the Oracle 9i forms. I installed
    Oracle 10g forms and everything seems alright. When
    I ran my application, It did not display properly. I
    uninstalled the java initiator of 9i. I did run the
    application again, It downloaded and installed the J
    initiator. When I ran the application again, the same
    message appeared. Here is a sample of the message.
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();" >
    <form name="pform"
    action="http://SilverHorn:8889/forms90/f90servlet"
    method="POST">
    <input type="hidden" name="form"
    value="C:\SilverHorn\Ihrms\Ihrsmdi.fmx">
    ype="hidden" name="userid"
    value="SCOTT/TIGER@Silver">
    ype="hidden" name="obr" value="yes">
    <input type="hidden" name="array"
    value="YES">
    </body></html>
    When I enter the path of the application in the
    browser address,
    http://SilverHorn:8889/forms90/f90servlet?forms=C:\Sil
    verHorn\Ihrms\Ihrsmdi.fmx, the application start
    running, but anytime I did run the application from
    forms, it gives the above message in the browser.
    Please I need help on how I will resolve the above to
    be able to run it from the forms developer
    environment.
    Thanksyour problem seems to be related with the browser and the JInitiator version.
    What is the exact Forms version you are working right now???
    Browser ?? JInitiator or JRE??
    It can't be Forms 10g R2 and you have forms90.You mentioned Forms 10g in your first post.
    Are you running in seperate frame?? if not try it
    Tony

  • Oracle 10G Checkpoint not complete Cannot allocate new log

    We have an oracle 10G database that has 4 groups of 200M redo logs. We are constantly seeing Checkpoint not complete followed by Cannot allocate new log.. messages in the alert log. When I look at the v$instance_recovery table I see this:
    SQL> select WRITES_MTTR, WRITES_LOGFILE_SIZE, WRITES_LOG_CHECKPOINT_SETTINGS, WRITES_OTHER_SETTINGS,
    2 WRITES_AUTOTUNE, WRITES_FULL_THREAD_CKPT from v$instance_recovery;
    WRITES_MTTR WRITES_LOGFILE_SIZE WRITES_LOG_CHECKPOINT_SETTINGS
    WRITES_OTHER_SETTINGS WRITES_AUTOTUNE WRITES_FULL_THREAD_CKPT
    0 0 66329842
    0 309461 41004
    It seems most of our checkpointing is being caused by the log_checkpoint_interval being set to 10000, which means we are doing 20 checkpoints during one redo log since our OS blocksize is 1024. What I'm thinking about doing is first adding two more redo log groups, and then either increasing the log_checkpoint_interval to 40000 (5 checkpoints for one redo log) or unsetting log_checkpoint_interval and setting fast_start_mttr_target to 600. Which would be the recommended parameter change? I think Oracle recommends using the fast_start_mttr_target. Are there any other suggestions?

    Hi
    >>unsetting log_checkpoint_interval and setting fast_start_mttr_target to 600.
    its a better idea,look on it
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams068.htm#REFRN10058
    Just set fast_start_mttr_target parameter.it will resolve ur problem.
    Thanks
    Kuljeet

  • Oracle 10g client not connecting to Oracle 8i server

    I have oracle 8i server already installed. I downloaded Oracle 10g client recently. I installed it on one machine and trying to connect to 8i server. I used TNSnames.ora which was already present on the machine. After entering the username, password and service name in SQL plus, I got a error saying server version not suported. Does 10g client not support 8i server or am I doing something wrong ?

    There is an 8.1.7.4 patchset for Windows.
    If you take a look at the Instant Client forum, there are some discussions on this where one of the Oracle product managers (Mr. Jue) has chimed in. At present, only connections to 8.1.7.4 and higher are supported. It is expected that the first 10g patchset will fix this bug and allow connections to 8.1.7.0 and above databases.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Migrating from Sybase 11 to Oracle 10G : Data not Captured

    Hi,
    We are working on an interesting customer engagement - one part of the effort is to migrate our Customer's Database. Our Customer is using the Sysbase 11 Database - we are planning to migrate this to Oracle 10G.
    We are using the latest Migration Workbench - 10.1.0.4.0. We created a new user in one of our local DB Instances & used this credential to login to the Migration Workbench tool. We have the Source Files for the Sysbase 11Database.
    We tried to capture the Source Model - unfortunately, the Tool claims that the Objects have been migrated, while the Source is not captured at all. The Error Log is alos silent about any problems.
    We are flummoxed by this error as we have successfuly migrated from Sysbase in the past, but never encountered this error.
    Can you guuys please help us out with this ?
    Please do let me know if I need to post more information
    Thanks,
    Sandeep

    Sandeep,
    Have you used this user which holds the omwb repository before for a migration? When you connected the first itme, did you get a message, that the repository tables did not exist and would you like to create them?
    Are you using the connected or disconnected source model load?
    Donal

  • Oracle 10g Client not working from Vista Business

    Hi,
    I have installed Oracle 10g Rel2 DB on my desktop (OS Vista Ultimate X64 bit) and try to connect from my new laptop (OS Vista business) after installing the client software which does not work, whereas I am able to connect to same database from my other laptop using Windows XP. The tnsnames.ora files on both laptops have the same contents. Moreover, the SQL Plus is also not working on the vista laptop, I mean when I try to login the window closes down itself it doesn't stay open even to give any error message. . . Any ideas would be a great help . . .thx

    Did you install the Vista specific Oracle client?
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10204_winx64_vista_win2k8.html

  • Oracle 10g will not configure metalink

    I keep getting a wrong username/password error when trying to configure the metalink account in the oracle 10g enterprise manager, all entries are correct and the caps key is not on.

    Do you have connection from your DB server to metalink? This could typically happend if you have no connection between your db server and the internet.
    try
    ping metalink.oracle.com
    from your db server.
    Regards
    Laurent

  • When i installed oracle 10g am not able to start my application

    Hi all,
    Am using ATG 9.1 my application is running fine,but after i installed oracle 10g my Jboss is starting up but i could not run my application?
    It is saying that Requested Url cannot be found.......
    Could you please tell me why this happens..........
    Thanks in advance......
    Thanks&Regards,
    Sudhakar.

    This happens in oracle 10g because oracle 10g also uses 8080 as the default http port.
    And if your application server is also running on default 8080 port u ll see this issue.
    For resolving this, all you need to do is change the default 8080 port of oracle to some other port number.
    See the following link to change the port.
    http://daust.blogspot.in/2006/01/xe-changing-default-http-port.html
    After changing the port, restart your machine once and you should be able to access your application fine.
    ~Gurvinder
    Edited by: Gurvinder on Nov 6, 2012 1:08 AM

  • Oracle 10g Graphs not as clear as Oracle 6i

    Hi,
    We have Oracle reports (with graphs) developed with 6i version. Now we are upgrading this to Oracle 10g.
    So I am re-creating the graphs using the graph wizard in Oracle 10g reports builder.
    The graph font and the axis lines are not as clear as the graphs in Oracle 6i. Is this the way it is in Oracle 10g or am I missing something?
    Pls. help
    Cheers - Aravind.

    not a vlid win32 installation". pls help...project on hold!!!!! The Media/Compact Disc may be damaged - try downloading Oracle 10 G Rel 2 again or try using Express Edition - which is less size than of Oracle 10 G Rel 2.

  • ORACLE 10g commit issue.

    Greetings,
    this is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 accessed via an OCI-7 application.
    OS is a SUSE LINUX Enterprise Server 9 (i586).
    I encountered the following issue:
    session A is connected to ORACLE (OCI-7 application)
    and
    session B is connected to ORACLE (OCI-7 application).
    Session A changes a column value from 50 to 42 and commits.
    Session B sees the changed value: 42.
    Session C new connects to ORACLE (OCI-7 application).
    Session C **does not** see the changed value, it still sees 50.     
    Session D new connects to ORACLE (sql-plus application).
    Session D **does not** see the changed value, it still sees 50.     
    I'm very puzzled and have no explanation for this case.
    I **cannot** repeat the issue.
    The application is years old, is very often used and issues like described above are discovered immediately.
    Any comment, hint or whatsoever on this issue, particularly on how such a situation possibly could be produced, would be very much appreciated.
    Thanks for your time
    Wolf
    Edited by: grossbau on Feb 4, 2012 2:08 PM
    Edited by: grossbau on Feb 4, 2012 3:32 PM
    Edited by: grossbau on Feb 4, 2012 3:56 PM

    What ever you are saying (not proof) is not possible, never...
    Chances are :
    1.Session C/D are not connecting to the right database.
    2.Session C/D are not query the commited schema.table.
    3.Session C/D are query the Materialized view(s), which needs refresh.
    4.Session A has not committed.
    Just double check your issue/application. There is no difference either you are using OCI application or I / anyone uses sqlplus.
    Regards
    Girish Sharma
    Edited by: Girish Sharma on Feb 4, 2012 10:20 PM
    Removing below line as per correction made by Pierre.
    Oracle's thumb rule is "Commited Data is visible to all/any/new/existing session(s) immediately".

  • Oracle 10g Taskbar not displaying to see the error after running the form in explorer

    Hi
    1- When we compile and run the form in forms 10g output in Internet Explorer and Avant Browser. can not see teh taskbar to see the error message, how to check the error when you run the forms in explorer there is no taskbar under the forms
    2-  When we compile and run the form in forms 10g output is displayed. ... Background has an "Oracle logo" where is the location of this Logo
    Watiing for reply thanks.

    Leopard007 wrote:
    1- When we compile and run the form in forms 10g output in Internet Explorer and Avant Browser. can not see teh taskbar to see the error message, how to check the error when you run the forms in explorer there is no taskbar under the forms
    Check the Module property: Console Window.  If this property is null, then the Status Bar will not be displayed during runtime.  You have to set this property for each form.
    Leopard007 wrote:
    2-  When we compile and run the form in forms 10g output is displayed. ... Background has an "Oracle logo" where is the location of this Logo
    The "Splash.gif" is located in the frmall.jar file. What is it you want to do?  Do you want to use a different spash image during application startup?  If yes, you can display a different startup splash image by using the splachScreen= parameter in the formsweb.cfg file.  The replacement .gif file must be located in the directory specified in the imageBase= parameter.  Keep in mind that this file will need to be signed or you will get a security warning.
    Craig...

Maybe you are looking for

  • Function module to release a work permit attached to a service order.

    Hi, We have a requirement of automating the process of work permit release attached to service order. I am looking for a function module / BAPI for releasing the work permit attached to a service order by passing service order number and permit ID/Na

  • Daisy chaining motu interfaces together

    I have a new Motu 896, and 8pre and I'm using Logic 8. Today I tried daisy chaining the 2 together with firewire so that I could use 16 tracks. The problem I'm having is, Logic won't recognize the extra tracks. I can choose either interface and the i

  • [SOLVED] Can't display extended unicode

    Hello, My arch install cannot render extended unicode characters. Example: http://i.imgur.com/3VNpkkI.png I first though it was a font issue, but this website tells me that I have many, many fonts that should display that character: http://www.filefo

  • Virus scan during file check-in or upload

    Is there any option available for doing virus scan on file being check-in in UCM? Is there any UCM service/ webservice available to do virus scan? If we've implement custom logic for same, what's the best practice or approach to be followed from UCM

  • AE CC: Material options showing only curvature and segments.

    Hi, I'm having some trouble with AE CC's ray traced comp options. I've selected "ray traced', crreated a new 3D solid. However when I view "Geometry Options" I am presented with only "Curvature" and "Segments" - there's no option to extrude etc. Is i