EXPORT_MODEL
and IMPORT_MODEL
use a directory object to identify the location of the dump file set. A directory object is a logical name in the database for a physical directory on the host computer.
To export data mining models, you must have write access to the directory object and to the file system directory that it represents. To import data mining models, you must have read access to the directory object and to the file system directory. Also, the database itself must have access to file system directory.You must have the CREATE ANY DIRECTORY
privilege to create directory objects.
The following SQL command creates a directory object named dmuser_dir
. The file system directory that it represents must already exist and have shared read/write access rights granted by the operating system.
CREATE OR REPLACE DIRECTORY dmuser_dir AS '/dm_path/dm_mining';
The following SQL command gives user dmuser
both read and write access to dmuser_dir
.
GRANT READ,WRITE ON DIRECTORY dmuser_dir TO dmuser;
See Also:
CREATE DIRECTORY
in Oracle Database SQL Language Reference