Archive for 4月 5th, 2007
今天一同事问我怎么用一条sql语句实现如下功能:
ID AMOUNT
—————–
1 3
2 5
3 6
4 8
要得到这样的结果:
ID AMOUNT TOTAL
———————–
1 3 3
2 5 8
3 6 14
4 8 22
这个问题是很常见也是很简单的问题,有两种解决方法:
今天在STARTUP一数据库时,发生如下错误:
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
oracle instance started.
Total System Global Area 276824064 bytes
Fixed Size 778736 bytes
Variable Size 137371152 bytes
Database Buffers 138412032 bytes
Redo Buffers 262144 bytes
ORA-01102: cannot mount database in EXCLUSIVE mode
SQL> shutdown immediate
ORA-01507: database not mounted
oracle instance shut down.
Page 1 of 11