When '#' appears without quotes in a SELECT statement, Oracle interprets it as the start of a comment. Since a comment requires valid syntax or continues to end of line, this causes an 'Invalid Character' error. The '#' character is not a valid token outside string literals.