1) How to check existing DBA Directories in a database:
col OWNER for a10
col DIRECTORY_NAME for a35
col DIRECTORY_PATH for a75
set lines 200
select * from dba_directories;
2) Create a new DBA Directory or modify existing directory path:
create or replace directory DMPDIR as '/u01/datapump';
3) Grant required privileges to the DBA Directory to access by a user.
grant read,write on directory DMPDIR to <username>;
4) Grant required privileges to the DBA Directory to access by every user.
grant read,write on directory DMPDIR to public;
col OWNER for a10
col DIRECTORY_NAME for a35
col DIRECTORY_PATH for a75
set lines 200
select * from dba_directories;
2) Create a new DBA Directory or modify existing directory path:
create or replace directory DMPDIR as '/u01/datapump';
3) Grant required privileges to the DBA Directory to access by a user.
grant read,write on directory DMPDIR to <username>;
4) Grant required privileges to the DBA Directory to access by every user.
grant read,write on directory DMPDIR to public;
No comments:
Post a Comment