Fnd_file.put_line(FND_FILE.OUTPUT in Ora Apps in SQL*Plus program

I have used fnd_file.put_line(FND_FILE.OUTPUT and fnd_file.put_line(FND_FILE.LOG many times for programs registered as PL/SQL Stored Procedure or used in DB Packages to write to the concurrent manager output and log files. No problem doing that. I have a simple program that I was going to register in Oracle Apps as a SQL*Plus script (instead of creating a DB procedure) that contains a PL/SQL block and will use fnd_file.put_line to write the output so it can be seen from the Concurrent Mgr View Requests. When the script runs the fnd_file.put_line(FND_FILE.OUTPUT... doesn't write to the output (or log) file. I am guessing fnd_file.put_line(FND_FILE.OUTPUT is not available to programs registered as SQL*PLUS.
Is that correct? Am I missing something simple that would allow it to run without creating a DB procedure/package.
I am testing this with a very simple script just to see if I can get something written to the output and log files.
SET SERVEROUTPUT ON
declare
x varchar2(20);
Begin
select 'test'
into x
from dual;
fnd_file.put_line(FND_FILE.LOG,'In the log file');
fnd_file.put_line(FND_FILE.OUTPUT,'In the output file');
end;
Thanks for taking the time to read this and any offers to help

I think you should post it in the relevant Oracle Apps forum and not here. It seems that - you may have some problem regarding any privileges or missing some property which needs to be configure.
Regards.
Satyaki De.

Similar Messages

  • Unable to Print Output Of Request Using FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'

    Dear Experts,
    My Requirement is to have Debug of Concurrent Program using FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<some text>'):
    i have Following code
    IF lb_reservation_completed THEN
    fnd_file.put_line(fnd_file.output ,'');
    fnd_file.put_line(fnd_file.output,'RESERVATION COMPLETED');
    COMMIT;
    ELSE
    fnd_file.put_line(fnd_file.output ,'');
    fnd_file.put_line(fnd_file.output ,'RESERVATION REVERTED BACK SINCE COMPLETE QUANTITY OF BOM ITEMS ARE NOT AVAILABLE');
    ROLLBACK;
    END IF;
    the text in red does not get printed even if conditions lb_reservation_completed is false
    however the transaction is rolled back, and the requirement of My object is to print this statement for Debugging purpose.
    and text in Blue gets printed everytime .
    i tried by removing Rollback , it did not work.
    any Suggestion are welcome.
    Thanks in advance
    Abdul Rahman
    Edited by: Abdul Rahman Gerab on Nov 24, 2008 2:13 AM

    Dear Sir,
    thanks for your message, this time we coded it explicitly to
    IF lb_reservation_completed = TRUE THEN
    COMMIT;
    ELSIF lb_reservation_completed = FALSE THEN
    ROLLBACK;
    END IF;
    and it gave this error
    **Starts**24-NOV-2008 15:54:50
    ORACLE error 20100 in FDPSTP
    Cause: FDPSTP failed due to ORA-20100: File o0026657.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log.
    ORA-06512: at "APPS.FND_FILE", line 396
    ORA-06512
    one more question, i have this complete IF clause in a loop.
    Does Having Rollback in LOOP play this kind of error.
    lemme try by keeping commit and rollback outside loop
    will update now .
    thanks again for your message, if you have any suggestion please do inform.

  • How FND_FILE.PUT_LINE create tmp file in app tier and move it to db tier?

    i have a concurrent program runs in application tier which uses FND_FILE.PUT_LINE... does anyone know whether is that true that when the concurrent program runs, it will create a temp file in the database tier ($APPLTMP), and once the program finished/done, it will copy the output to application tier ($APPLCSF/$APPLOUT and $APPLCSF/$APPLLOG - out file and log file)? if it is true, how does Oracle copy the file from database tier to application tier?
    here is my current setting:
    - concurrent program runs in application tier
    - mount $APPLTMP (set it as first entry in utl_file_dir) in database tier on applicate tier
    - tmp file creates in $APPLTMP (database tier)
    - out file creates in $APPLCSF/$APPLOUT (application tier)
    - log file creates in $APPLCSF/$APPLLOG (application tier)
    we occasionally run into problem creating tmp file. so, am wondering is there any best practice for concurrent program? should we run it in application tier or database tier?
    help is highly appreciated. thanks.

    Hi, Hussien.
    Our problem is... occasionally we run into "ORA-20100: File lxxx.tmp creation for FND_FILE failed" error. 0 bytes temporary file created, but out/log files created with data/output. That's why we don't know what did we do wrong.
    We followed metalink 261693.1, tried all the possiblities... still no luck on temporary files (created with 0 bytes).
    The problem (ORA-20100) comes and goes. Very inconsistent. Created simple package to test FND_FILE.PUT_LINE, it looks like nothing is wrong with that. So, not sure did we miss something.
    Thanks.
    --Ashley                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Concurrent HOST program calling a proc to log using fnd_file.put_line

    Hello all,
    I have a concurrent HOST program that does 3 main things
    1. Calls a sqlplus program to do some initializing. This program is a proc in a package.
    2. Runs sqlldr to load data to custom tables.
    3. Calls a sqlplus program to do manipulate the data. This program is a proc in a package.
    In step 3 of above, the package procedue does a "submit_request" to call the "Supplier Open Interface Import". This
    request actually fires. However my problem is the subsequent call to fnd_file.put_line(fnd_file.log, 'Test message'), does not get logged
    to the log file of the HOST program, nor to the log file of the "Supplier Open Interfface Import" log file. A check
    of $APPLPTMP (or /usr/tmp) shows that a file of say " l0023761.tmp" contains my 'Test message' text.
    I believe the problem is that the put_line() call has no association with the HOST or the "Supplier Open Interface Import. How
    do I associate the logging to either program? Is it even possible? I want the logging, so as to see the progress
    of the HOST program.
    The sniippet of proc code is:
    PROCEDURE abc() IS
    BEGIN
    request_id:= FND_REQUEST.SUBMIT_REQUEST
    (Application => 'SQLAP'
    ,Program => 'APXSUIMP'
    ,Description => NULL
    ,Start_time => SYSDATE
    ,Sub_Request => FALSE
    ,Argument1 => 'ALL'
    ,Argument2 => 1000
    ,Argument3 => 'N'
    ,Argument4 => 'N'
    ,Argument5 => 'N'
    fnd_file.put_line (fnd_file.log,'Test message');
    COMMIT;
    END abc;
    Alex.

    Shell scripts are very hard to develop and maintain. Many things that developers previously had to do in shell scripts, developers can now do in PL/SQL. Hence, I recommend that you avoid shell scripts as much as possible.
    As well, SQL*Loader is an old, inflexible tool. Instead, define your OS file as an external table, and then extract from the external table using a normal select statement. http://www.orafaq.com/node/848 I recommend that you avoid SQL*Loader and use external tables instead.
    Using PL/SQL and external tables - and avoiding the shell script and SQL*Loader - a much better way to accomplish the same thing all inside one packaged procedure that is registered as a concurrent program:
    - initialize
    - select from the external table
    - manipulate the data

  • "ORA-1722 Invalid number" error while runing a SQL script in SQL*Plus

    Hello,
    I created a SQL script that is intended to populate tables with
    baseline data. When I run the script in the SQL*Plus program
    that comes with the Oracle 8.1.6 (client), I receive an "ORA-
    1722 Invalid number".
    The error always occurs when SQL*Plus tries to execute the
    following SQL statement:
    insert into components(db_ind,module_id,ext_compid,active) values
    ('cm',modules_seq.currval,1046682,'y');
    The datatypes for the columns on the components table are as
    follows:
    db_ind varchar2(2);
    module_id number;
    ext_compid number;
    active varchar2(1);
    It seems that for some reason Oracle is having trouble
    recognizing 1046682 as a number.
    I also tried the following INSERT statements to see if that
    would work:
    insert into components(db_ind,module_id,ext_compid,active) values
    ('cm',modules_seq.currval,to_number('1046682'),'y');
    insert into components(db_ind,module_id,ext_compid,active) values
    ('cm',modules_seq.currval,'1046682','y');
    but I still receive the same error message
    Is there some NLS setting(s) I need to modify so that Oracle
    does not give me this error? Does anyone know the answer to
    this problem?
    Your help is greatly appreciated.
    Oscar
    (NOTE: I also receive this same error when trying run the
    script in SQL Navigator and Toad programs)

    Please see the following docs.
    R12: JBO-27122 Error Message Clicking On Supplier Accounting Link With Unexpected Error [ID 1218903.1]
    Supplier Management Accounting Link Gives Unexpected Error and JBO-27122 at SELECT * FROM (select pvsa.ADDRESS_STYLE [ID 1340655.1]
    Adding Accounting Information or Operating Unit Information fails with APP-FND-1564: ORACLE error 1722 in FDFGVD [ID 364265.1]
    Thanks,
    Hussein

  • In which table does fnd_file.put_line writes the messages

    Hi All,
    I have a requirement where i have to write the log messages and for this i am using FND_FILE.PUT_LINE. can some one help me in getting the tabel name where this package writes the messages so that i can get the messages from there.
    Thanks in advance
    Aryan

    Hi Aryan,
    I think FND_FILE.PUT_LINE doesnot store the information in any Oracle tables. For every request we run in Oracle we will have a log file and output file created and the call to FND_FILE.PUT_LINE would be directly opening the log/output file and writing the contents in it.
    Best Regards
    Arun Kumar S.R
    Apps Associates.

  • FND_FILE.PUT_LINE where does it write and how to read what it wrote ?

    Hi,
    I have a PL/SQL and it is writing logs in to FND_FILE.PUT_LINE(). But I do not know how to see what is written by this API. Can some one tell me where should I look for.
    PL/SQL directly starts with FND_FILE.PUT_LINE() with out specifying where to write (File/table), if file, what is the file name and directory name ?
    All I know is it can write to a file or table. I checked my DB for FND_LOG_MESSAGES table, table /view does not exist.
    I use SQL Developer to run the PL/SQL.

    All I know is it can write to a file or table. I checked my DB for FND_LOG_MESSAGES table, table /view does not exist.Run like
    select * from apps.FND_LOG_MESSAGES;Thanks
    --Anil
    http://oracleanil.blogspot.com

  • ORA-06502: PL/SQL: numeric or valueerror ORA-06512: at APPS.WF_NOTIFICATION

    Hi,
    we are getting error message on the requisition notification form. when the user is logging into apps and opening the requisition approval notification for particular requisition the error messgae is displayed at the top of the notification acreen. though the error message is not preventing the user from approving the requisition. he is successfully able to approve the requistion. but the user doesn't want to seee this error message.
    please suggest on how to hide this error message.
    error message ------- ORA-06502: PL/SQL: numeric or value error ORA-06512: at "APPS.WF_NOTIFICATION", line 5361 ORA-06512; at line 5
    Thanks,
    SamD

    Hi,
    I wrote about this in 2008 on my blog when I hit the problem in 11.5.9 - http://www.workflowfaq.com/workflow-notification-fails-when-action-history-becomes-too-long
    Have a look at the bug, patches and workaround on there and see if that helps solve your problem.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to install the EUL5 Business Area and seeded reports for Ora Apps 11i

    Hi All,
    We have to install the EUL5 Business Area and seeded reports for Ora Apps 11i.
    I think there are scripts which need to be executed to create the BA and the Disco seeded reports. I am kind of confused about the whole think. Any pointers as to where to look foe the scripts would be really appreciated.
    I am using disco version 10.1.2.48.18.
    Thanks.

    Hi,
    You need to work though Metalink Note 313418.1.
    Rod West

  • Image upload in ora apps env

    Dear all, we have a requirement to upload employee images in the custom application we have built. The applicaiton runs under ora apps env.
    Is there a procedure available in ora apps which we can call to upload images from client hard disk to the DB server ?
    As i'm new to ora aps, please point me to the right direction.
    Thanks
    Rahul

    I've done this several times, and many ways are possible. The easiest one is via dataload, which works fine, if your number of photos to load is not too high.

  • How to generate as XML output from Oracle Apps 11

    Hi Anyone has the experience to generate the output from Oracle Apps 11 as XML file? Database is 8.1.7, Oracle Apps 11. The concurrent program can be written in PL/SQL or can report 2.5 generate the output as XML?
    The scenario is:
    1) Run a concurrent program in Oracle Apps 11
    2) Output generated is XML (.xml)
    Regards.

    This forum is for Oracle XML DB features. XML DB is only available as of database 9iR2.
    You may be better off in legacy XML Features forum...
    PL/SQL XML Programming

  • To generate XML output from Oracle Apps 11

    Hi Anyone has the experience to generate the output from Oracle Apps 11 as XML file? Database is 8.17, Oracle Apps 11. The concurrent program can be written in PL/SQL or can report 2.5 generate the output as XML?
    The scenario is:
    1) Run a concurrent program in Oracle Apps 11
    2) Output generated is XML (.xml)
    Regards.

    This forum is for Oracle XML DB features. XML DB is only available as of database 9iR2.
    You may be better off in legacy XML Features forum...
    PL/SQL XML Programming

  • APPS.WF_BPEL_Q, SQL err is ORA-24033: no recipients for message

    Hi,
    Need urgent help.
    We have Oracle Apps Adapter service based on custom Business event in Oracle Apps.
    we are getting following error when default subscription created by ESB is getting executed.
    Data is not getting enqueued in wf_bpel_qtab. All listners are up and bpel queue and agent are properly setup.
    Event Error Name: -24033
    Event Error Message: ORA-24033: no recipients for message
    Event Error Stack:
    Wf_Event_QH.Enqueue(APPS.WF_BPEL_Q, SQL err is ORA-24033: no recipients for message)
    Wf_Event.Enqueue(test.apps.ont.siebel.salesorder.headerupdatesync, WF_EVENT_QH)
    Wf_Event.Send(test.apps.ont.siebel.salesorder.headerupdatesync)
    Wf_Rule.Default_Rule(test.apps.ont.siebel.salesorder.headerupdatesync, 629185A419C66777E04400144F677F3F)
    Thanks in advance.

    Yes, and the very most annoying thing is, that a similar Java setup does NOT return any information that the message is not enqueued !/(#&%!"/! So you can have a faulty setup - and a program doing mio of enqueues (and no one apart from the end user discovers that somethings was very wrong). How rude !!!
    I would reaaly like to see the same Oracle return code in PL/SQL and Java ..... (and other languages for that matter, but I have only tested with pl/sql and java in this case)
    Mette

  • Ora Apps 11.5.10.2 two ORACLE_HOME 9i and 8 why?

    Hi,
    I installed Ora apps 11.5.10.2 and noticed that there are two database homes
    1. /opt/oracle/visdb/9.2.0
    2. /opt/oracle/visora/8.0.6
    Please explain where there are two homes. Also after I restarted my machine I do not how to start database and from which home 9i or 8.
    Please help.
    Regards,
    Ravi

    PS. You might want to look at these:
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/11iconcepts.pdf
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/11iadproc.pdf
    Gareth

  • SAP and Ora App. On LINUX

    is there any implementations of SAP on linux like Ora App ?

    Are you sure you should be asking SAP questions on an Oracle forum?

Maybe you are looking for

  • Need original box & shipping box for 24" Cinema display

    I am selling a 24" Cinema display and need to get (buy, presumably) an original box and the outer shipping carton for same. Anyone got an idea how this can be done?

  • What brand of RAMs does Apple support or approve?

    I understand that by default Apple supplies Hynix or Samsung RAMs with the new iMAC Intel Duo Cores (and older iMACs). My question is does anyone know if Apple supports or approves of the following brands: 1. Crucial 2. Corsair 3. OWC 4. ATP 5. Jetra

  • PDK Manuals

    Hi everybody Would you please advise me where I can find the best manuals about PDK? about my knowledge I am professional in PL/SQL and I want to know about the packages and the kind of function,procedures and packages I can create with PDK that is u

  • How to make a sales order item deleted in ECC while in CRM just status changed?

    Hi expert, I have a requirment, that is: 1. the user will change the USER STATUS in a line item of sales order to "CANCEL". 2. When the order was replicated to ECC,the item should be deleted totally and the ITEM in CRM should not be affected. How can

  • Premiere Pro Constantly Crashing!

    I have recently downloaded Premiere Pro trial and then upgraded to Premiere pro CC. Since moving to Premiere Pro CC the program crashes without warning and I'm loosing hours of work due to this. I save constantly but the saved files keep reverting ba