{"id":961,"date":"2011-04-14T10:57:26","date_gmt":"2011-04-14T10:57:26","guid":{"rendered":"http:\/\/sendyoursmiles.com\/articles\/trace-file"},"modified":"2014-12-03T12:56:14","modified_gmt":"2014-12-03T12:56:14","slug":"trace-file-concurrent-program","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program","title":{"rendered":"Enable Trace for a concurrent program"},"content":{"rendered":"<p>The main use of enabling trace for a concurrent program comes during performance tuning.<\/p>\n<p>By examining a trace file, we come to know which query\/queries is\/are taking the longest<\/p>\n<p>time to execute, there by letting us to concentrate on tuning them in order to improve the<\/p>\n<p>overall performance of the program.<\/p>\n<p>The following is an illustration of how to Enable and View a trace file for a Concurrent \u00a0Program.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png\" alt=\"\" \/><\/p>\n<p>Navigation: Application Developer&#8211;&gt;Concurrent&#8211;&gt;Program<span style=\"line-height: 1.5em;\">\u00a0<\/span><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile2.png\" alt=\"\" \/><\/p>\n<p>Check the Enable Trace Check box. After that go to that particular Responsibility and run the Concurrent Program.<span style=\"line-height: 1.5em;\">\u00a0<\/span><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile3.png\" alt=\"\" \/><br \/>\n<img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile4.png\" alt=\"\" \/><\/p>\n<p>Check that the Concurrent Program has been completed successfully.<span style=\"line-height: 1.5em;\">\u00a0<\/span><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile5.png\" alt=\"\" \/><\/p>\n<p>The trace file by default is post fixed with oracle Process_id which helps us to identify which trace file belongs to which concurrent request. The below SQL Query returns the process_id of the concurrent request:<\/p>\n<p>Select oracle_process_id from fnd_concurrent_requests where request_id=&#8217;2768335&#8242;<\/p>\n<p>(This query displays Process Id)<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile6.png\" alt=\"\" \/><\/p>\n<p>The path to the trace file can be found in 2 ways<\/p>\n<p>1.Run the below query in the database:<span style=\"line-height: 1.5em;\">\u00a0<\/span><\/p>\n<p><code>SELECT * FROM V$PARAMETER WHERE NAME='user_dump_dest'<\/code><\/p>\n<p>(This Query displays the path of trace file)<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile7.png\" alt=\"\" \/><\/p>\n<p>2. Login As sysadmin<\/p>\n<p>Navigation&gt; OAM-&gt;OAM Setup-&gt;Site MAP-&gt;Monitoring-&gt;System Configuration-&gt; Database Init.ora Setting.<\/p>\n<p>Check out the value for Parameter user_dump_dest which is nothing but the trace file location.<\/p>\n<p>The Trace File generated will not be in the readable format. We have to use TKPROF utility to convert the file into a readable format.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile8.png\" alt=\"\" \/><\/p>\n<p>Run the below tkprof command at the command prompt.<\/p>\n<p>TKPROF &lt; Trace File_Name.trc&gt; &lt;Output_File_Name.out&gt; SORT=fchela<\/p>\n<p>A readable file will be generated from the original trace file which can be further<\/p>\n<p>analyzed to improve the performance. This file has the information about the<\/p>\n<p>parsing, execution and fetch times of various queries used in the program.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile9.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The main use of enabling trace for a concurrent program comes during performance tuning. By examining a trace file, we come to know which query\/queries is\/are taking the longest time to execute, there by letting us to concentrate on tuning them in order to improve the overall performance of the program. The following is an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[44,45],"class_list":["post-961","post","type-post","status-publish","format-standard","hentry","category-sysadmin-and-aol","tag-tkprof","tag-trace"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Generate Trace File in Oracle Apps for concurrent program<\/title>\n<meta name=\"description\" content=\"By enabling trace for a concurrent program helps to tune performance. From Trace file, we come to know which query\/is taking the longest time to execute\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prudhvi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"Enable Trace for a concurrent program\",\"datePublished\":\"2011-04-14T10:57:26+00:00\",\"dateModified\":\"2014-12-03T12:56:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program\"},\"wordCount\":319,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#primaryimage\"},\"thumbnailUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png\",\"keywords\":[\"tkprof\",\"trace\"],\"articleSection\":[\"Sysadmin and AOL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program\",\"url\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program\",\"name\":\"Generate Trace File in Oracle Apps for concurrent program\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#primaryimage\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#primaryimage\"},\"thumbnailUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png\",\"datePublished\":\"2011-04-14T10:57:26+00:00\",\"dateModified\":\"2014-12-03T12:56:14+00:00\",\"description\":\"By enabling trace for a concurrent program helps to tune performance. From Trace file, we come to know which query\/is taking the longest time to execute\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#primaryimage\",\"url\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png\",\"contentUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enable Trace for a concurrent program\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/erpschools.com\/erps\/#website\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"name\":\"erpSchools\",\"description\":\"Oracle Apps\",\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/erpschools.com\/erps\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\",\"name\":\"erpSchools\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"contentUrl\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"width\":250,\"height\":60,\"caption\":\"erpSchools\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"http:\/\/facebook.com\/erpschools\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\",\"name\":\"Prudhvi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"caption\":\"Prudhvi\"},\"sameAs\":[\"http:\/\/www.erpschools.com\"],\"url\":\"https:\/\/erpschools.com\/erps\/author\/prudhvi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate Trace File in Oracle Apps for concurrent program","description":"By enabling trace for a concurrent program helps to tune performance. From Trace file, we come to know which query\/is taking the longest time to execute","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"Enable Trace for a concurrent program","datePublished":"2011-04-14T10:57:26+00:00","dateModified":"2014-12-03T12:56:14+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program"},"wordCount":319,"commentCount":2,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"image":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#primaryimage"},"thumbnailUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png","keywords":["tkprof","trace"],"articleSection":["Sysadmin and AOL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program","url":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program","name":"Generate Trace File in Oracle Apps for concurrent program","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"primaryImageOfPage":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#primaryimage"},"image":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#primaryimage"},"thumbnailUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png","datePublished":"2011-04-14T10:57:26+00:00","dateModified":"2014-12-03T12:56:14+00:00","description":"By enabling trace for a concurrent program helps to tune performance. From Trace file, we come to know which query\/is taking the longest time to execute","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#primaryimage","url":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png","contentUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041411_1057_TraceFile1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/trace-file-concurrent-program#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"Enable Trace for a concurrent program"}]},{"@type":"WebSite","@id":"https:\/\/erpschools.com\/erps\/#website","url":"https:\/\/erpschools.com\/erps\/","name":"erpSchools","description":"Oracle Apps","publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/erpschools.com\/erps\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/erpschools.com\/erps\/#organization","name":"erpSchools","url":"https:\/\/erpschools.com\/erps\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/","url":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","contentUrl":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","width":250,"height":60,"caption":"erpSchools"},"image":{"@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/erpschools"]},{"@type":"Person","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512","name":"Prudhvi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","caption":"Prudhvi"},"sameAs":["http:\/\/www.erpschools.com"],"url":"https:\/\/erpschools.com\/erps\/author\/prudhvi"}]}},"_links":{"self":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/comments?post=961"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/961\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}