Closed jonheller1 closed 9 years ago
There are multiple options to solve the issue.
WHERE UPPER(:argument) = directory_name
clause. Problem: if someone creates a lowercase directory in the database using quotation marks (for instance, CREATE DIRECTORY "lowercase_pump_dir" AS ...
), there will be no way to reference it from ocp
.WHERE UPPER(:argument) = UPPER(directory_name) AND rownum = 1
. Problem: there is an ambiguity if multiple directories exist such as my_dir
, My_DiR
, and MY_DIR
. And there would be no way to specify which one is actually needed.ocp /@mydb "my_dir":myfile.dmp myfile.dmp
), then use as is, otherwise treat it as uppercase. This makes command line syntax a little bit more complicated, but it should cover all cases.Option 5 looks the most attractive.
The Oracle directory parameter must be in upper case or else the error "Failed to open an Oracle remote file for reading" is returned. It would be helpful if the parameter was case-insensitive, since the Oracle objects are case insensitive. Perhaps this only needs an
UPPER(...)
in a query.