logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How can we read and write operating system files from PL/SQL program?


  • Correct Answer
  • The UTL_FILE database package can be used to read and write operating system files You need to have read /write access rights in that directory before the package can be used Example to write file: Fhandler is a variable of type UTL_FILEFILE_TYPE UTL_FILEPUTF(fHandler, 'Im writing to a file\n'); Example to read file: UTL_FILEGET_LINE(fHandler, buf); 


  • Technology problems


    Search Results


    • 1. Explain how to debug PL/SQL program.
    • Discuss
    • 2. Both PL/SQL and Java (or) .NET code can be used to create Oracle stored procedures and triggers. Which of the one should be used and why?
    • Discuss
    • 3. SQL vs. PL/SQL
    • Discuss
    • 4. What are the Advantages of PL/SQL?
    • Discuss
    • 5. Define PL/SQL. Explain its purpose
    • Discuss
    • 6. How can we call DDL statements like CREATE, DROP, TRUNCATE, etc. from PL/SQL?
    • Discuss
    • 7. What is a Collection? Explain collection types.
    • Discuss
    • 8. What is a PL/SQL Record data type?
    • Discuss
    • 9. Define cursor attributes: %FOUND, %NOTFOUND, %ROWCOUNT, and %ISOPEN
    • Discuss
    • 10. Explain some of the commonly used Predefined PL/SQL Exceptions.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment