oracle+utl_file+shanchu,utl_file.fremove
utl_file包中的fremove過程可以刪除某個(gè)目錄下的文件
[oracle@centos tmp]$ touch haha
[oracle@centos tmp]$ ll haha
-rw-r--r-- 1 oracle oinstall 0 Aug 14 20:12 haha
SQL> exec utl_file.fremove('/tmp','haha');
PL/SQL procedure successfully completed.
[oracle@centos tmp]$ ll haha
ls: haha: No such file or directory
執(zhí)行以上過程之前,需要設(shè)置utl_file_dir參數(shù)。UTL_FILE_DIR lets you specify one or more directories that Oracle should use for PL/SQL file I/O.
SQL> show parameter utl
NAME???????????????????????????????? TYPE??????? VALUE
------------------------------------ ----------- ------------------------------
create_stored_outlines?????????????? string
utl_file_dir???????????????????????? string????? /tmp
總結(jié)
以上是生活随笔為你收集整理的oracle+utl_file+shanchu,utl_file.fremove的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【英语语法入门】 第31讲 [被动语态
- 下一篇: laravel框架中Cache缓存类中的