Hi,
I think best way is :
select sum(id) over(order by rowid) ACCUMULATIVE
from a

ACCUMULATIVE
===========
1
4
6
10
18
20
29