• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 573
  • Last Modified:

Oracle Financials


In Oracle Financials 10.7 environment, I am writing a PL/SQL concurrent program. How to write debug information to the output of the concurrent program?
0
jyhuang
Asked:
jyhuang
  • 2
1 Solution
 
bellyboyCommented:
You can use the UTL_FILE procedure to write to files from within PL/SQL. Inorder to write to the concurrent request log and/or output files, you would have to retreive the output and/or log filename from the FND_CONCURRENT_REQUESTS table for the concurrent request of your process (use FND_GLOBAL.request_id to retrieve your concurrent request_id). When you open the output/log files, use the 'append' option since you and the concurrent manager will be writing to the files.

In release 11 this has been changed and you must use the new FND_FILE package.

Note that UTL_FILE requires the utl_file_dir init parameter to be set to the directory where the log/output is being stored. You can put utl_file_dir=* to mean all directories for a test environment.

Hope this helps
Belly
0
 
jyhuangAuthor Commented:

Belly,

Thank you very much for the comments. Our system is down, I can't test it. But I will. Just wondering whether the concurrent manager and my program can write to the output file simultaneously even if use "append" option.

By the way, you have to post an answer instead of comment in order for me to give you points.

Jim
0
 
bellyboyCommented:

With the append you should be able to write to the output file simultaneously.

I thought you could change my comment to a question. (But I am fairly new to this game)

Belly
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now