| File and operating system interaction with SQL and PLSQL | |||||
SUMMARY: FIELD | TYPE | METHOD | DETAIL: FIELD | TYPE | METHOD |
Field Summary | |
pls_integer | EXEC
EXECUTE permission for a filesystem resource (file or folder) |
pls_integer | READ
READ permission for a filesystem resource (file or folder) |
pls_integer | WRITE
WRITE permission for a filesystem resource (file or folder) |
Method Summary | |
varchar2 | get_script_grant_java_privs(p_directory varchar2, p_grantee varchar2)
generates a SQL scripts with DBMS_JAVA.GRANT_PERMISSION calls according to the privileges granted on the directory object. |
| grant_permission(p_file_path varchar2, p_grantee varchar2, p_permission pls_integer)
Grants permissions on a file. |
| grant_stdin_stdout(p_grantee varchar2)
grants "file descriptor" read and write permissions - these are needed to access STDIN and STDOUT when working with OS_COMMAND. |
| restrict_permission(p_file_path varchar2, p_grantee varchar2, p_permission pls_integer)
restricts permissions on a file. |
| revoke_permission(p_file_path varchar2, p_grantee varchar2, p_permission pls_integer)
revokes permissions on a file. |
Field Detail |
public pls_integer READ
public pls_integer WRITE
public pls_integer EXEC
Method Detail |
public grant_permission(p_file_path varchar2,
p_grantee varchar2,
p_permission pls_integer)
file_security.grant_permission( p_file_path => '/home/oracle/*, p_grantee => 'SCOTT', p_permission => FILE_SECURITY.READ + FILE_SECURITY.WRITE );
p_file_path
-
absolute path to the filesystem resource (file or folder). A star includes
all files in a folder without the subfolders - a dash (-) includes all
files in the folder and all subfolders recursively.p_grantee
-
database user to which to grant the privilegesp_permission
-
permissions to grant - use the package constants READ, WRITE and EXECUTEpublic revoke_permission(p_file_path varchar2,
p_grantee varchar2,
p_permission pls_integer)
file_security.revoke_permission( p_file_path => '/home/oracle/*, p_grantee => 'SCOTT', p_permission => FILE_SECURITY.READ + FILE_SECURITY.WRITE );
p_file_path
-
absolute path to the filesystem resource (file or folder). A star includes
all files in a folder without the subfolders - a dash (-) includes all
files in the folder and all subfolders recursively.p_grantee
-
database user to which to grant the privilegesp_permission
-
permissions to grant - use the package constants READ, WRITE and EXECUTEpublic restrict_permission(p_file_path varchar2,
p_grantee varchar2,
p_permission pls_integer)
file_security.restrict_permission( p_file_path => '/home/oracle/*, p_grantee => 'SCOTT', p_permission => FILE_SECURITY.READ + FILE_SECURITY.WRITE );
p_file_path
-
absolute path to the filesystem resource (file or folder). A star includes
all files in a folder without the subfolders - a dash (-) includes all
files in the folder and all subfolders recursively.p_grantee
-
database user to which to grant the privilegesp_permission
-
permissions to grant - use the package constants READ, WRITE and EXECUTEpublic grant_stdin_stdout(p_grantee varchar2)
p_grantee
-
database user to which to grant the privilegespublic varchar2 get_script_grant_java_privs(p_directory varchar2,
p_grantee varchar2)
p_directory
-
name of the directory objectp_grantee
-
grantee to generate grants for. If none is given, grants are
being generated for all grantees
| File and operating system interaction with SQL and PLSQL | |||||
SUMMARY: FIELD | TYPE | METHOD | DETAIL: FIELD | TYPE | METHOD |