Question

Users are unable to see DML Changes after commit.

Asked by: Mateen

Hi GURUs,

Here is another interesting thing came up in my environment. My users are complaining that they perform DML on tables some of them can see data others can't and sometime after few minutes some time after reboot sometime after a day user can see that data and sometime they never see that data and uses the other user's terminals and user id (System's USER ID not Oracle because it's the same user at the backend)
to see the reports.

Again My front end is Oracle 6i and Backend is Oracle 10g R2.
It sound illogical to me that this may be a parameter setting issue since some of the users can see data, but may be since it's my opinion.

Please comment and advice.

Regards,
Zee

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-07-20 at 05:55:55ID22709497
Tags

oracle

,

10g

,

commit

Topics

Oracle 10.x

,

PL / SQL

,

Oracle Database

Participating Experts
5
Points
125
Comments
17

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. tuning of DDL and DML's
    Can you please give a comprehensive view on how to tune w.r.t. DDL and DML's. I know only about creating indexes and some querying techniques that can enhance performance. 'Overall oracle internal tuning' is posted as a separate question.
  2. Logging the number of DML ran a day.
    We are trying to find the best way to count the number of DML it runs a day. Is Audit Trail the only way to do it? I don't want to count the number of commits but the number of inserts,deletes,updates. Any suggestions would be helpful. Thanks
  3. searching for the "Most popular dml"
    In order to verify Quality of service, I'm looking for each instance's "Most popular DML" operation. This can be colected from histical data or acumulated from now for the next 1 hour/day... I would be happy for Ideas on the query that should run on the Data Diction...
  4. Last DML Time
    Hi, Is there any way we can check when is the last DML performed in a table? Thanks.
  5. Describe is DDL or DML ?
    Hello Experts, Please tell me What category does describe command belongs to ? I mean is it DDL or DML ? Thanks.
  6. Commit frequency in DML
    1) For IMPORT/LOAD, we can set savecount/commit frequency/savepoints of consistency. 2) Support we run DML commands i.e. bulk inserts and queries which do massive updates or deletes. How can we set commit frequency for these.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: sujit_kumarPosted on 2007-07-20 at 06:48:03ID: 19530917

as far as i know this sound illogical to me too.

 

by: nav_kum_vPosted on 2007-07-20 at 08:19:19ID: 19531860

you need to collect information as to when exactly the issue is seen by the users..i can understand that the issue is vague or sporadic but you need to get some pattern information from the users and then we can analyze as to what could be the problem

 

by: MateenPosted on 2007-07-20 at 08:52:59ID: 19532285

Thanks for you guys quick reply:
My friends here is a little clue I am able to find through internet surfing it may or may not be the issue I'll check when I'll return to work on Monday.

Sync (On Commit) new in Oracle 10g
Creating an index with this option might look like this:
  create index my_index on my_table (text_col)
  indextype is ctxsys.context
  parameters ('lexer my_lexer sync (on commit)');

This means that a sync is launched immediately after the commit occurs. The way this works is slightly unusual, in that the SQL call to commit will not return until the sync is complete, and yet the sync is done in a separate transaction from the main commit.
So from the point of view of the user calling the commit, the index will appear to be updated as soon as the commit completes. However, another user might see a period when the rows have been committed to the table, but the index has not yet been updated. The period during which this occurs will depend on the amount of data to be indexed - that is, how long the sync takes. Using Sync (On Commit) can be bad for index performance if small numbers of rows are committed at a time. On the other hand, if the commit is only called every few thousand rows, this might be a reasonable option.

You comments on this are appreciated.

Thanks again,
Zee

 

by: Dr_BillyPosted on 2007-07-20 at 10:48:03ID: 19533393

May be you need to monitor the DB activities for a while , or may be rubn a trace for a certain user's transactions  that doens't see the data as you see , and see what's happening in the backend ...

since that sounds illogical to me too !

 

by: markgeerPosted on 2007-07-20 at 12:56:12ID: 19534620

Your question was about DML activity (which includes: insert, update and delete statements) but the example you found describes a particular type of DDL statement ("create index...").  DDL statement and DML statements are two different things in Oracle.  DDL statements are automatically commtted immediately.  DML statements are not.  I don't think that particular example that you found explains what your users see.

It is possible (and common in some applications) for a user to make a number of changes (inserts, updates and/or deletes) but not commit them immediately.  The user who made the changes will see them all, but no one else does until the user (or the application) issues a "commit".  At that point everyone can see them *IF* they repeat a query or start a report *AFTER* the commit.  If they had a query screen open though with data displayed, or started a report before the "commit", they will *NOT* see the latest DML changes from other users that are not committed.

 

by: MateenPosted on 2007-07-22 at 11:29:01ID: 19543405

My Friend Markqeer,

I guess you did concentrate on the final comment it tells u that the delays may occur due to this indexing . I am quoting the point of intrest three sentences here read it carefully please:

"So from the point of view of the user calling the commit, the index will appear to be updated as soon as the commit completes. However, another user might see a period when the rows have been committed to the table, but the index has not yet been updated."

SO it may be the above case with me but as I said the backend DB user is SAME. Even in above mention sentence the period of delay may occur if the DB user are different.

I just qouted it hear to pop another stream of ideas for brainstorming. I agree that example in text is a DDL but it is impacting a DML operation and this is the point to be noted here.

Thanks and regards,
Zee

 

by: vishal68Posted on 2007-07-23 at 00:17:11ID: 19545523

This clause is applicable only to Oracle Text Index and not to normal indexes. Is your application/database using Oracle Context objects ? if yes then this can be a reason for the delay, if no then this is not applicable.

HTH
Vishal

 

by: markgeerPosted on 2007-07-23 at 05:25:27ID: 19546634

Please tell us:
1. Does your application include Oracle Text indexes, or not?
2. Does your application allow users to make multiple changes before doing a commit, or not?

 

by: MateenPosted on 2007-07-23 at 23:27:59ID: 19553838

My Friends,

Q1: Does your application include Oracle Text indexes, or not?
No, It doesn't
Q2: Does your application allow users to make multiple changes before doing a commit, or not?
Yes, But the issue is that some application users not database users can't see data DB user is same for all application users.

Then I login with a different Application user which is application super user run the same report it shows me data and relogin with the who wasn't seeing data and it start seeing it. Again on this option or report the rights in application are same for super user and normal user.

I don't know what to check in the database. I came back after a long time in development and DBA side, means I working as a Project Manager then I relocate and got this job as interim solution. So if you guy could be a little more elabrate on answer i'll appreciate that.

Thanks and Regards,
Zee

 

by: vishal68Posted on 2007-07-23 at 23:59:08ID: 19553953

if you are not using Oracle Text then sync on commit has no relevence. In any case as you are saying that the backend database user is same for all users, it would nots t have any impact.

The only reason that i can think of for this strange behaviour is application logic. One reason can be that the reports that you are running are based on some summary views (either application defined or may be materialized views). These views are not getting updated on commit. They are getting updated either at specific time or at specific event. Specific event can be Application Super User running the report. Once the views are updated you can see the data.

I would discuss the problem with Application design team or application vendor to understand how these reports are working

HTH
Vishal

 

by: markgeerPosted on 2007-07-24 at 06:48:27ID: 19556013

We understand that the DB user is the same for all applciation users, but that is not important.  Each application user likely has his/her own session though in the database.  That *IS* important, because different sessions can see different data at the same time.  Each session sees all of the committed data, plus only what they have changed but not yet committed.  If other sessions are also changing (but not committing) data at that time, the uncommitted data is *ONLY* visible in the session that changed it.  Later, after everything gets committed, everyone sees everything.

O, as vishal68 suggested, there may be some delays in the database of populating materialized views, or the application could be caching some data and only refreshing it at certain intervals (like when the user establishes a new connection).

 

by: MateenPosted on 2007-08-02 at 19:47:08ID: 19622306

Hi Friends,

Thank you very much for your kind opinions and suggestions. And I am sorry again for not coming back to you guys for a while. I was working on this issue and I agreed with vishal that it was a application logic issue or rather logical error.

Actually we have two triggers written on login form key-next-item and when-mouse-click to proceed after entering data mean id & password. I know it sound silly but one of the triggers has a hard coded last year user and password so when user enter then he/shoe login into the currrent year user and when user click he/she enters into last year user so this was the bug in the code.

Which again justify Vishal's opinion of checking application logic. but as a matter of knowledge I am considering to use materialized views for one of my remote site can you guy comment on it. The site will be read only web users only see day end data and for that export and import data delete table and so on which is not a good practice in my opinion. I wana use materialized views replication using script for this purpose.

An other issue we were using & in our report data model/queries for making it generic now e.g.
Select a,b,c
From &table
where column in(&list);
it was working fine up until we migrate to Oracle 10g R2 and just to remind u guys we have 6i as a development environment.

Can u guy give comments on our we can resolve this issue since it says invalid Identifier now on all of the report. We have solve this issue partially like we pass parameter from calling form for a particilar value or if we wana run it  on all data we pass null and in report we usse col1=nvl(particulatvalue,col1) so it partially resolve the issue.

We have two other senarios

1) We are Stock Brokrage House and we have different type of house clearing processess about 5 types. User may run reports on 1 type, 2 types, 3 types or all types like in('ATYPE','BTYPE' .....) which is not resolved with nvl type of solution.

2) At from level user can run report from current transaction, history table or both means combine and select the desired option in parmeter form (not report builder but our own customize para form) for this we need a variable at from level &table.

Or if it is possible to change the query in before report trigger like query='select ....'

Please advice.
Thanks and Regards,
Zee

 

by: vishal68Posted on 2007-08-02 at 23:21:04ID: 19622902

I am not an expert on developer 6i. But i do know that developer 6i has issues working with 10g DB. Oracle certifies only developer 6i with patch set 17 to work with 10g db. Please ensure that you are using developer 6i with patch set 17 that is report version 6.0.8.26.0

HTH
Vishal

 

by: MateenPosted on 2007-08-05 at 07:10:31ID: 19634199

Yes My friend I am aware of it and we already have Patch 18 installed and thats why we are able to run application to some extent.

regards,
Zee

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...