You can see this error when executing a command like:
ALTER TABLE IMP_BAD_BOXESThe problem is in the single quotes surrounding the directory object name.
DEFAULT DIRECTORY 'IMPORT_DIR';
ORA-22929: invalid or missing directory name
The same error is also returned when using a CREATE TABLE statement.
The correct syntax requires either double quotes for case sensitive names or no quotes at all for case insensitive names.
ALTER TABLE IMP_BAD_BOXESor
DEFAULT DIRECTORY "Import_Dir";
ALTER TABLE IMP_BAD_BOXESThe last statement is equivalent to :
DEFAULT DIRECTORY import_dir;
ALTER TABLE IMP_BAD_BOXESNote that when using case sensitive names, if you mistype the name you'll get:
DEFAULT DIRECTORY "IMPORT_DIR";
ORA-06564: object Import_Dir does not exist
See message translations for ORA-22929, ORA-06564 and search additional resources.
2 comments:
I got this error message when trying to create a directory. Obviously makes no sense: of course the directory doesn't exist, because I'm trying to make it.
The issue was that the name I was providing for the file was 2016_06. It doesn't seem to be happy with names that start with numbers. As soon as I changed it to DP_2016_06, it took it without complaint.
Thanks. You're correct about the directory not beginning with numbers. Misleading error message.
Post a Comment