Oracle EBS Server Directory Configuration

Source: Internet
Author: User
Tags create directory node server

 Server Directory Configuration
1. Create server directory (1) Execute the following command under System User:CREATE OR REPLACE DIRECTORY Mail_file_dir  as '/mail_file/data/prod ';(2) Assign permissions to the created directory and execute:GRANT Read ,Write  on DIRECTORY Mail_file_dir  to  Public;If it is a two-node server, execute the above SQL statement on two servers
2. Create on database server/mail_file/data/prodDirectory switch to home directory '/' Under Execute Create directory command after directory creation is complete, assign permissions under Home directory '/' command: chmod 777/mail_file/data/prod
3. write files to DirectoryDECLAREFhandle Utl_file.file_type;BEGINFhandle: = Utl_file.fopen ( ' Mail_file_dir ', ' Example.txt ' , ' W ');utl_file.put_line (Fhandle, ' GH test write one ');utl_file.put_line (Fhandle, ' gh test write ');Utl_file.fclose (fhandle);END;
4, read out the contents of the fileDECLAREFhandle Utl_file.file_type;Fp_buffer VARCHAR2( 4000);BEGINFhandle: = Utl_file.fopen ( ' Mail_file_dir ', ' Example.txt ' , ' R ');
utl_file.get_line (Fhandle, fp_buffer);Dbms_output.put_line (fp_buffer);utl_file.get_line (Fhandle, fp_buffer);Dbms_output.put_line (fp_buffer);Utl_file.fclose (fhandle);END;
Error:ORA-29283 : Invalid file operationORA-06512 : In "SYS. Utl_file ", Line 449ORA-29283 : Invalid file operationCause: There is no directory under the database or the directory does not have read and write permissions

Oracle EBS Server Directory Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.