The dual table is a table which contains just one column and one row with the letter X.
All users of the database have access to the dual table but it should not be fiddled with. It is used for functions like
SQL> select sysdate from dual;
SYSDATE
---------
01-NOV-08
Just incase you happen to drop the dual table, it can be easily recreated with the following script.
Login as sysdba and execute:
CREATE TABLE SYS.DUAL
(
DUMMY VARCHAR2(1)
)
TABLESPACE SYSTEM;
drop PUBLIC SYNONYM DUAL;
CREATE PUBLIC SYNONYM DUAL FOR SYS.DUAL;
GRANT SELECT ON SYS.DUAL TO PUBLIC WITH GRANT OPTION;
INSERT INTO dual VALUES ('X');
SELECT * FROM dual;
commit;
That’s it!!! You have your DUAL table back.
Absence of DUAL table is likely to throw the following error to users (not sysdba users)
SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.
7 comments:
Hello.. Do you know how to Add Adsense Code Inside Single Post Only in XML Template? Visit your blog to learn how.. Have a nice thursday!
Download Full Version Software at AriesGames... http://ariesgames.blogspot.com
hello... hapi blogging... have a nice day! just visiting here....
Download Forum Poster V3 3.0 at FileAfro.com
http://www.fileafro.com/view_forum-poster-v3-30.html
hello... you may submit this blog to my webBlog Directory, keyworddir.info.. have a nice day!
Keyword Directory
Watch Natsha Naked!
I like very much working with queries, are great fun, are functions that help us learn a lot, actually I learned to handle a project called buy viagra ne, which is a development engine SQL database was very interesting post thanks for sharing!
Post a Comment