有朋友問到關於Oracle的Dual表問題
很多人關心的是Dual的內部實現
There is internalized code that makes this happen
The base issue you should always remember and keep is: DUAL table should always have
This is basically used from several applications as a pseudo table for getting results from a select statement that use functions like sysdate or other prebuilt or application functions
If DUAL has no rows at all some applications (that use DUAL) may fail with NO_DATA_FOUND exception
So DUAL should ALWAYS have
前兩句話最為關鍵
Tom提到在Close了Database之後
SQL> select * from dual;
D
X
SQL> alter database close;
Database altered
SQL> select * from dual;
ADDR INDX INST_ID D
注意不要更改Dual表的內容
如果該表意外刪除
From:http://tw.wingwit.com/Article/program/Oracle/201311/18703.html