With double quotes (almost) everything goesâ€¦
After you have read the blog posts the websites of Sergio Leunissen, Eddie Awad or the "Ask Mr. Ed" website, you may wonder, if that was all you could do with those "magic" double quotesâ€¦
Probably not, I know of at least one other neat "trick" you can do with itâ€¦
Ever tried the following?
SQL> create user "=:Marco:=" identified by "Username is Invalid";
You won’t make life easy though, because now you will have to use the double quotes to login as follows:
SQL> connect "=:Marco:="/"Username is Invalid"
And if you want to connect via an extra [ENTER], than you must not to forget also to type in your double quotesâ€¦
While testing: I saw, that you can go a "whitespace to far".
One is allowed to create very strange users, but not always does this also mean that you can login.
This "feature" has been there for a long time. I used it as a "gimmick" in Oracle 7.1, and in the times that this feature wasn’t so known, to mask the contents of my tables for other people. Using double quotes also makes your typing case-sensitive and in my Oracle 7 days, this was not (commonly) known.
You won’t make your life easy though. Ever tried to drop a table as described in Sergio’s post (what if you forgot the amount of spaces you used .
Of course one could find the amount of used whitespace with a replace statement, replacing all whitespaces with for instance a "1".
I learned about this feature by looking into Oracle 7 dump files (a thing you normally should NOT do, you could corrupt your dump file) by using notepad and noticed the double quotes around every object in DDL statements.
A while ago I also tested this "feature" on Oracle 4.1 and even with the software of those times, it works and maybe not in the extent it can be used with the software of today, but nevertheless.
Creating a table " …test 1…" ("TABLE" number)…
Inserting a number into table " …test1…"
Trying to create a table like Sergio with a name consisting of 4 whitespaces…