Overview
ALTIBASE HDB's directory object is almost identical to ORACLE.
Notices
There are some notices to bear in mind prior to handling DIRECTORY object.
- To use a DIRECTORY, the creation of the DIRECTORY object should be in advance.
- READ/WRITE Privilege for corresponding directory should be granted to user.
- The directory parameter must be specified in upper-case letters.
v1 := fopen(‘MYDIR’, ‘data1.dat’, ‘w’); - File open mode should be in the lower case, duplicate use is prohibited.
Restriction on the Directory name
Even if the name of the directory object was specified in lower-case letters, the names of all objects are stored in upper-case letters in the database.
Therefore when specifying the name of a directory object as a parameter for a system procedure or function, it is necessary to use upper-case letters.
Example
ORACLE |
ALTIBASE HDB |
Comments |
---|---|---|
CREATE [OR REPLACE] DIRECTORY mydir AS '/dir/file_data'; |
CREATE [OR REPLACE] DIRECTORY mydir AS '/dir/file_data' ; |
|
CREATE DIRECTORY ALTI AS ‘/altibase’; |
CREATE OR REPLACE DIRECTORY alti AS ‘/altibase’; |
|