Saturday, February 23, 2019

How to enable TRACE logging for both Oracle Access Manager (OAM) 11g Server and 10g or 11g Webgate ?


1. To enable TRACE logging for 10g WebGate:
 
Reference: How To Turn On Trace/Logging Oracle Access Manager (OAM)/COREid (Doc ID 403118.1)

First backup file <OAM component install dir>/oblix/config/oblog_config_wg.xml.

Then in the original oblog_config_wg.xml set:

        <SimpleList>
            <NameValPair
                ParamName="LOG_THRESHOLD_LEVEL"
                Value="LOGLEVEL_TRACE"></NameValPair>
        </SimpleList>

NOTE: Do not modify any other LOGLEVEL settings in that file.

Also change the BUFFER_SIZE in the oblog config file, so that log entries are flushed to file promptly.

                <NameValPair
                    ParamName="BUFFER_SIZE"
                    Value="4"></NameValPair>

WebGate webserver restart is not necessary.

To disable the TRACE logging simply replace the original oblog_config_wg.xml file.

2. To enable TRACE logging for 11g WebGate:

First backup file ORACLE_INSTANCE/config/OHS/OHS_INSTANCE_NAME/webgate/config/oblog_config_wg.xml

Then in the original oblog_config_wg.xml set:

        <SimpleList>
            <NameValPair
                ParamName="LOG_THRESHOLD_LEVEL"
                Value="LOGLEVEL_TRACE"></NameValPair>
        </SimpleList>

NOTE: Do not modify any other LOGLEVEL settings in that file.

Also change the BUFFER_SIZE in the oblog config file, so that log entries are flushed to file promptly.

                <NameValPair
                    ParamName="BUFFER_SIZE"
                    Value="4"></NameValPair>

WebGate webserver restart is not necessary.

To disable the TRACE logging simply replace the original oblog_config_wg.xml file.

3) To enable OAM 11g Server TRACE logging:

On the OAM Server run:

cd OAM_ORACLE_HOME/common/bin

./wlst.sh
wls:/offline>> connect()               --- connect to the AdminServer port with weblogic credentials
wls> domainRuntime()
wls> setLogLevel(target='oam_server1',logger='oracle.oam',level='TRACE:32',persist="0",addLogger=1)
wls> exit()

Verify that there are now TRACE entries written to the OAM managed server diagnostic log. The log file location is: OAM_MW_HOME/user_projects/domains/DOMAIN_NAME/servers/OAM_MGD_SERVER_NAME/logs


To return the logging level to default run setLogLevel again with level='NOTIFICATION:1' or restart the OAM managed server.

Regards,
Arihant Baid

14 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. MOBILE

    ReplyDelete
  3. I used to be recommended this blog by means of my cousin. I’m no longer sure whether this submit is written by him as no one else recognize such special approximately my problem. You are incredible! Thanks! device mockups

    ReplyDelete
  4. There are many other plans that resemble the same protocols you mentioned below. I will keep reading on the ideas. phone mockup

    ReplyDelete
  5. Nowadays, people are using apps for different purposes. For every business apps are important to communicate with users on a secure network. ego-cms.com

    ReplyDelete
  6. Without fail, your writing style is top professional; even your website also looks amazing thank you for posting. compact tractor attachments

    ReplyDelete
  7. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! taxiid

    ReplyDelete
  8. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. 메이저사이트

    ReplyDelete
  9. i am always looking for some free stuffs over the internet. there are also some companies which gives free samples. 먹튀검증

    ReplyDelete
  10. Impressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards. 먹튀검증

    ReplyDelete
  11. The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. I will never forget to visit your site again and again. DSW Near me

    ReplyDelete
  12. A very excellent blog post. I am thankful for your blog post. I have found a lot of approaches after visiting your post. Adobe Photoshop Free Download

    ReplyDelete
  13. Thanks for the blog filled with so many information. Stopping by your blog helped me to get what I was looking for. Now my task has become as easy as ABC. 토토사이트

    ReplyDelete
  14. Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. 먹튀검증사이트

    ReplyDelete