{"id":3843,"date":"2025-06-09T11:47:55","date_gmt":"2025-06-09T11:47:55","guid":{"rendered":"https:\/\/w3buddy.com\/?post_type=cposts&#038;p=3843"},"modified":"2025-06-09T11:47:56","modified_gmt":"2025-06-09T11:47:56","slug":"adrci-commands","status":"publish","type":"cposts","link":"https:\/\/w3buddy.com\/blog\/notes\/oracle-dba-d2d-tasks\/adrci-commands\/","title":{"rendered":"ADRCI Commands"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ADRCI (Automatic Diagnostic Repository Command-Line Interface) is a powerful Oracle utility for managing diagnostic data such as listener logs, alert logs, incidents, and core dumps. This guide covers essential ADRCI commands to help you analyze, maintain, and troubleshoot your Oracle environment effectively.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">General Commands<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>adrept                -- Launches the ADR report viewer\nadrcat                -- Displays contents of the ADR repository\nadrci                 -- Opens the ADR command-line interface\nshow base             -- Shows current ADR base location\nset base &lt;path>       -- Sets a new ADR base location\nshow home             -- Lists current ADR homes (Oracle homes)\nset homepath &lt;path>   -- Sets a new Oracle home path\nshow alert            -- Displays the alert log\nshow alert -tail &lt;n>  -- Shows last n lines of alert log<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Purging Diagnostic Files<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>purge -age &lt;minutes> -type &lt;type>       -- Purges diagnostic files older than specified age by type\nset control (LONGP_POLICY = &lt;hours>)    -- Sets retention period (hours) for long retention policy\nset control (SHORTP_POLICY = &lt;hours>)   -- Sets retention period (hours) for short retention policy\nshow control                            -- Displays current retention policies<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Incident Package Management<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>IPS CREATE PACKAGE INCIDENT                             -- Creates an incident package\nips pack incident in &lt;output_path>                      -- Packs incidents into output directory\nIPS CREATE PACKAGE                                      -- Creates an empty package for manual additions\nIPS ADD INCIDENT &lt;incident_number> PACKAGE &lt;package_number>  -- Adds incident to package\nIPS ADD FILE &lt;file_path> PACKAGE &lt;package_number>             -- Adds file to package\nIPS GENERATE PACKAGE &lt;package_number> IN &lt;output_dir>          -- Generates package file\nips unpack file &lt;file_name> into &lt;directory>                    -- Unpacks IPS file into directory\nips pack time '&lt;start_time>' to '&lt;end_time>'                    -- Packs incidents within time range\nips show package                                        -- Shows list of packages\nips show package &lt;package_number>                       -- Shows package details\nips delete package &lt;package_number>                      -- Deletes a package\nips remove incident &lt;incident_number> package &lt;package_number>  -- Removes incident from package\nips remove problem &lt;problem_number> package &lt;package_number>    -- Removes problem from package<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ADRCI (Automatic Diagnostic Repository Command-Line Interface) is a powerful Oracle utility for managing diagnostic data such as listener logs, alert logs, incidents, and core dumps. This guide covers essential ADRCI commands to help you analyze, maintain, and troubleshoot your Oracle environment effectively. General Commands Purging Diagnostic Files Incident Package Management<\/p>\n","protected":false},"template":"","meta":{"googlesitekit_rrm_CAowu461DA:productID":""},"categories":[952,984],"class_list":["post-3843","cposts","type-cposts","status-publish","hentry","category-notes","category-oracle-dba-d2d-tasks"],"_links":{"self":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/cposts\/3843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/cposts"}],"about":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/types\/cposts"}],"wp:attachment":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/media?parent=3843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/categories?post=3843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}