{"id":174,"date":"2013-03-11T12:39:00","date_gmt":"2013-03-11T11:39:00","guid":{"rendered":"http:\/\/sam-soul.fr\/Info\/?p=174"},"modified":"2013-03-11T12:39:00","modified_gmt":"2013-03-11T11:39:00","slug":"create-or-replace-directory-directory-as-pathname","status":"publish","type":"post","link":"http:\/\/les-fougs.com\/wordpress\/2013\/03\/11\/create-or-replace-directory-directory-as-pathname\/","title":{"rendered":"CREATE [OR REPLACE] DIRECTORY directory AS &lsquo;pathname&rsquo;"},"content":{"rendered":"<h1>Pour afficher les DIRECTORY<\/h1>\n<div>activer l&rsquo;onglet Directories dans TOAD.<\/div>\n<h1><span style=\"font-size: 13.3333px;\">CREATE DIRECTORY<\/span><\/h1>\n<p>Create a directory &#8211; an alias for a filesystem pathname &#8211; used to store LOBs.<\/p>\n<p>Syntax:<\/p>\n<pre> CREATE [OR REPLACE] DIRECTORY <em>directory<\/em> AS <em>'pathname'<\/em>;<\/pre>\n<p><strong>Example<\/strong><\/p>\n<p>Create or replace DIRECTORY dir_test as &lsquo;c:\\test&rsquo;;<\/p>\n<p>declare<br \/>\nMyFile utl_file.file_type;<\/p>\n<p>begin<br \/>\nMyFile := utl_file.fopen(&lsquo;DIR_TEST&rsquo;, &lsquo;some_filename.txt&rsquo;, &lsquo;w&rsquo;);<br \/>\nutl_file.put_line(MyFile, &lsquo;Here is some example text&rsquo;);<br \/>\nutl_file.put_line(MyFile, &lsquo;Another line of text&rsquo;);<br \/>\nutl_file.fclose(MyFile);<br \/>\nend;<br \/>\n\/<\/p>\n<p>exemple :<\/p>\n<p>CREATE OR REPLACE DIRECTORY DBA_DIR AS &lsquo;C:\\Batch&rsquo;;<\/p>\n<p>GRANT READ,WRITE ON DIRECTORY DBA_DIR TO OPS$DBO;<\/p>\n<p>Pour lister les directories<\/p>\n<p>select OWNER,DIRECTORY_NAME,DIRECTORY_PATH<br \/>\nfrom DBA_DIRECTORIES<br \/>\norder by OWNER,DIRECTORY_NAME;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pour afficher les DIRECTORY activer l&rsquo;onglet Directories dans TOAD. CREATE DIRECTORY Create a directory &#8211; an alias for a filesystem pathname &#8211; used to store LOBs. Syntax: CREATE [OR REPLACE] DIRECTORY directory AS &lsquo;pathname&rsquo;; Example Create or replace DIRECTORY dir_test as &lsquo;c:\\test&rsquo;; declare MyFile utl_file.file_type; begin MyFile := utl_file.fopen(&lsquo;DIR_TEST&rsquo;, &lsquo;some_filename.txt&rsquo;, &lsquo;w&rsquo;); utl_file.put_line(MyFile, &lsquo;Here is some &hellip; <a href=\"http:\/\/les-fougs.com\/wordpress\/2013\/03\/11\/create-or-replace-directory-directory-as-pathname\/\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;CREATE [OR REPLACE] DIRECTORY directory AS &lsquo;pathname&rsquo;&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[37],"tags":[],"_links":{"self":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/174"}],"collection":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":0,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}