zoukankan      html  css  js  c++  java
  • ORACLE EBS中快速查看某个Request的Output File或log等信息(转)

     

    项目上,经常有请求报红报黄等问题反映到技术顾问这边,但是由于某些权限的限制,有时候哪怕System Administrator职责也只能看到某个Request信息,但是不能查看它的Output File。用下面这个方法可以很方便地查看请求的输出和日志等信息,甚至不用进系统就可以查看了,只需要一个请求编号就可以:

    Sql代码  收藏代码
    1. /* Function: GET_URL  
    2. *  
    3. * Purpose: Constructs and returns the URL for a Concurrent Processing  
    4. *          log or output file.  
    5. *  
    6. * Arguments:  
    7. *  file_type - Specifies the type of file desired:  
    8. *       fnd_webfile.process_log = The log of the concurrent process identified  by the parameter ID.  
    9. *       fnd_webfile.icm_log     = The log of the ICM process identified by ID.  
    10. *                                 Or, the log of the ICM process that spawned  
    11. *                                 the concurrent process identified by ID.  
    12. *                                 Or, the log of the most recent ICM process  
    13. *                                 if ID is null.  
    14. *       fnd_webfile.request_log = The log of the request identified by ID.  
    15. *       fnd_webfile.request_out = The output of the request identified by ID.  
    16. *       fnd_webfile.request_mgr = The log of the concurrent process that ran the request identified by ID.  
    17. *       fnd_webfile.frd_log     = The log of the forms process identified by ID.  
    18. *       fnd_webfile.generic_log = The log file identified by ID.  
    19. *       fnd_webfile.generic_trc = The trace file identified by ID.  
    20. *       fnd_webfile.generic_ora = The ora file identified by ID.  
    21. *       fnd_webfile.generic_cfg = The config file identified by ID.  
    22. *       fnd_webfile.context_file= Applications Context file identified by ID.  
    23. *       fnd_webfile.generic_text= Generic file using text transfer mode.  
    24. *       fnd_webfile.generic_binary = Generic file using binary transfer mode.  
    25. *       fnd_webfile.request_xml_output = The xml output of Concurrent Request.  
    26. *  
    27. *  id        - A concurrent process ID, concurrent request ID, or file ID  
    28. *                 depending on the file type specified.  
    29. *              For fnd_webfile.context_file,fnd_webfile.generic_text,  
    30. *              fnd_webfile.generic_binary this value is null.  
    31. *  gwyuid    - The value of the environment variable GWYUID used in constructing the URL.  
    32. *  two_task  - The database two_task, used in constructing the URL.  
    33. *  expire_time - The number of minutes for which this URL will remain valid.  
    34. *  source_file - Source file name with full patch  
    35. *  source_node - Source node name.  
    36. *  dest_file   - Destination file name  
    37. *  dest_node   - Destination node name  
    38. *  page_no     - Current page number  
    39. *  page_size - Number of lines in a page  
    40. *  Returns NULL on error.  Check the FND message stack.  
    41. */  
    42. FUNCTION GET_URL(FILE_TYPE   IN NUMBER,  
    43.                  ID          IN NUMBER,  
    44.                  GWYUID      IN VARCHAR2,  
    45.                  TWO_TASK    IN VARCHAR2,  
    46.                  EXPIRE_TIME IN NUMBER,  
    47.                  SOURCE_FILE IN VARCHAR2 DEFAULT NULL,  
    48.                  SOURCE_NODE IN VARCHAR2 DEFAULT NULL,  
    49.                  DEST_FILE   IN VARCHAR2 DEFAULT NULL,  
    50.                  DEST_NODE   IN VARCHAR2 DEFAULT NULL,  
    51.                  PAGE_NO     IN NUMBER DEFAULT NULL,  
    52.                  PAGE_SIZE   IN NUMBER DEFAULT NULL) RETURN VARCHAR2;  
    Sql代码  收藏代码
    1. SELECT FND_WEBFILE.GET_URL(4,                              --输出类型  
    2.                            3615219,                        --请求编号  
    3.                            'APPLSYSPUB/PUB',    
    4.                            'FCWW',  
    5.                            10)  
    6.   FROM DUAL;  

    第一个参数4表示request的output,(可根据需要决定)
    /* Define file types for get_url */
    process_log constant number := 1;
    icm_log constant number := 2;
    request_log constant number := 3;
    request_out constant number := 4;
    request_mgr constant number := 5;
    frd_log constant number := 6;
    generic_log constant number := 7;
    generic_trc constant number := 8;
    generic_ora constant number := 9;
    generic_cfg constant number := 10;
    context_file constant number := 11;
    generic_text constant number := 12;
    generic_binary constant number := 13;
    request_xml_output constant number :=14;

    第二个参数是request_id
    第三个参数是环境参数GWYUID
    第四个参数是two_task,
    第五个参数是url有效的分钟数. 
    然后就是把这个url复制到ie就可以看到了.

  • 相关阅读:
    MapReduce程序遇见java.net.UnknownHostException
    吐槽下《Hadoop权威指南(第二版)》的翻译
    HFileOutputFormat与TotalOrderPartitioner
    关于hive multi group by的疑惑
    Hive解决 java.io.IOException:SerDeException:LazySimpleSerDe
    一个字符编码引发的血案
    CSS颜色代码大全
    C#中ParameterizedThreadStart和ThreadStart区别
    Sql Server REPLACE函数的使用
    QueryString的用法
  • 原文地址:https://www.cnblogs.com/ella-luo/p/4421820.html
Copyright © 2011-2022 走看看