Sorry for not being clear; Here goes:
what i ment was for the report:
start trx at 13:59 complete at 14:00.00001
get the account info at 14:00.00000
define what one wants
in reallity the trx should be part of the results. (it did not got
rolled
back and it started before the report was started.)
if it did roll back you did not want the above transaction!!
However it's unkown at the time the report begun.
if you keep track of transactions in a trx table and not change the
account
info (only on specified intervals; some daemon job)
and have a table like:
create table transactions(
whenstarted datetime year to fraction(5),
the_account int,
from_to_account int,
howmuch money(20,3),
updated_accinfo boolean,
when_updated_accinfo datetime year to fraction,
reasontrx char(200)
....
etc
);
you can simply insert two rows in this table to acomplish a transfer
from acc1 to acc2 in one transaction and yes to get the info for
both accounts at that time will have to wait until the insert has
committed so one can get the info out of the account table and process
the info for transactions i guess it can be done differently also??!!
The transaction table is also for the customers so they can see what
happened to their account. If something is wrong one can look which
transaction from who etc is responcible.
Also you can run the report with commited read and lock mode to wait
to get
the correct results.
-- The demo I do for my classes to demonstrate this issue is as
follows:
-- Assume two bank accounts and you are transferring money between
them.
-- At some point in time an update must decrement the balance in one
and
-- a separate update but increment the balance in the other. In most
-- databases you must lock both accounts until both update statements
take
-- place or risk a combined balance that is inaccurate. In Oracle that
-- answer will always be consistent without locking.
sorry for my ignorance; i do NOT know Oracle; (typo in my first
responce... sorry.)
how does the following work then:
begin situation $100 for acc1 and acc2
transfer from acc1 $10 to acc2
then simultanious transaction adds $10 to acc1 based on the old value
of $100
trx 1 commits making acc1 eq to $90 then trx 2 commits and set's the
value
to $110. ahum you loose $10 ??!!!
am i wrong here or what do i miss??
See you
Superboer.
Obnoxio The Chav - 29 Dec 2004 23:13 GMT
DA Morgan said:
>>>that as other jobs utilize resources it refines its estimate taking them
>>>into account.
[quoted text clipped - 6 lines]
> something they could charge their employer thousands of dollars to
> reinvent. I keep forgetting I bill by the hour.
In what way does something in a library require reinvention? And please
don't try and tell me Oracle aren't charging for their built-in
functionality. If I had their sales, I could charge the same pennies per
copy that they do. But they definitely charge for it. I just charge more
for my library than they do, but they more than make it up in maintenance
costs and license revenue for all the other neat stuff Oracle does.

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list
Obnoxio The Chav - 29 Dec 2004 23:18 GMT
rkusenet said:
>> Obnoxio The Chav wrote:
>>
[quoted text clipped - 10 lines]
> REPEATABLE_READ, SERIALIZABLE isolation level. You won't hold that
> against Oracle,right :-)
Apart from that, it had nothing to do with the original point. Save points
are not needed for transactions. :o)

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list
Obnoxio The Chav - 29 Dec 2004 23:42 GMT
DA Morgan said:
> Obnoxio The Chav wrote:
>
[quoted text clipped - 5 lines]
>
> Why so? It is part of the ANSI standard is it not?
But it had nothing to do with my original point. Mark was just bringing it
up because he knows Informix doesn't have it. Just like Oracle doesn't
have another part of the ANSI standard, namely some form of DIRTY READ.

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list
Obnoxio The Chav - 30 Dec 2004 00:16 GMT
DA Morgan said:
> Please don't go sideways here. I was merely pointing out that SAVEPOINTS
> are not exactly a red herring. You can be a bit less defensive methinks
> as no database vendor is 100% ANSI compliant.
Please don't tar us with the muddy brush of your illogical thinking.
SAVEPOINTS are utterly irrelevant to a DIRTY READ. He's not being
defensive, and neither am I.

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list
Obnoxio The Chav - 30 Dec 2004 09:12 GMT
DA Morgan said:
> Obnoxio The Chav wrote:
>
[quoted text clipped - 24 lines]
> me there: They all cost money. But we both know that wasn't the point I
> was making. The point was how much money was going to be spent, above
I thought I did, now I'm even more lost. Where did shareware come from?
> and beyond the product cost to make up for what was missing.
>
> This is not some stupid us vs them flamewar starter: Not an attack on
> Informix at all. Just an attack on the use of the phrase "red herring"
> when none was present. Lets call it a day as there is no point in
> pursuing this into something it was not intended to be.
But there _was_ a red herring: savepoints have got nothing to do with
DIRTY READS. Mark was trying to drag the discussion into a feature battle
that was irrelevant to the issue at hand. By your defending this illogical
approach, you lack internal consistency with your stated desire not to
have a stupid flamewar. So which is it?

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list
Obnoxio The Chav - 30 Dec 2004 09:13 GMT
DA Morgan said:
> Obnoxio The Chav wrote:
>
[quoted text clipped - 12 lines]
> know precisely what was intended by Mark Townsend's post, by your reply,
> and now hopefully by my response.
No Daniel, I'm afraid I don't know. Can you please explain to me in what
way DIRTY READ is related to savepoints?

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list
Obnoxio The Chav - 30 Dec 2004 21:52 GMT
Mark Townsend said:
> Obnoxio The Chav wrote:
>
[quoted text clipped - 5 lines]
> very long running transaction that spanned multiple DMLS. I questioned
> if this was really a likely scenario, knowing a little about the
It all depends on how the code is written. I don't like the approach much,
but sometimes you gots to do what you gots to do.
> propblems such long transactions can cause (in both Oracle and
> Informix), and, as an aside to this questioning, wondered aloud if
So it wasn't really relevant, was it? >:o)
> Informix had save points. I genuinely wanted to know. The feature
Yeah, yeah, yeah.
> battles with Informix are long, long over.
Yeah, yeah, yeah.
Pull the other one. It has (festive) bells on it. :o)

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list
Obnoxio The Chav - 31 Dec 2004 09:43 GMT
Mark Townsend said:
> Obnoxio The Chav wrote:
>
>> Pull the other one. It has (festive) bells on it. :o)
>
> Ew. TMI and can't you get an ointment for that ?
It's not that bad. It only comes once a year, which is. :o)

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list
Obnoxio The Chav - 31 Dec 2004 09:49 GMT
Mark Townsend said:
> rkusenet wrote:
>> "Mark Townsend" <markbtownsend@comcast.net> wrote
[quoted text clipped - 5 lines]
> As far as Informix is confirmed, it was all very much "The horse never
> rode and the bridge never crossed"
"Confirmed"? Do you mean "concerned"?

Signature
Bye now,
Obnoxio
"C'est pas parce qu'on n'a rien ? dire qu'il faut fermer sa gueule"
- Coluche
"I'm trying to see things your way, but I can't get my head up my a.s"
- JCH
"Ogni uomo mi guarda come se fossi una testa di cazzo"
- Marco
I went to the airport to check in and they asked what I did because I
looked like a terrorist. I said I was a comedian. They said, "Say
something funny then." I told them I had just graduated from flying
school.
-- Ahmed Ahmed
sending to informix-list