11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 2 ■ DATABASE DIAGNOSABILITY AND FAILURE REPAIR 63Investigating and Resolving ProblemsAlthough you can access all the diagnostic data stored in the ADR through the Support Workbenchfacility in <strong>Database</strong> Control, <strong>Oracle</strong> also provides a powerful new command-line toolcalled the adrci (ADR Control Interface) to manage ADR data. You can use the adrci tool alongwith two new <strong>Oracle</strong>-supplied packages, DBMS_HM and DBMS_SQLDIAG, to investigate and reportproblems, as well as to fix the problems where possible. The adrci tool is a command-linealternative to the Support Workbench and offers additional functionality such as the ability tolist and query trace files. In the following two sections, we first discuss using the adrci tool andthen examine problem resolution through the Support Workbench.Using the Command-Line Tool adrci<strong>Oracle</strong> provides a new command-line tool called adrci to help you mine the diagnostic datastored in the ADR. Besides letting you view the diagnostic data that the database stores in theADR, adrci provides another and much more important function—it lets you package incidentand problem information into ZIP files for sending to <strong>Oracle</strong> Support. This diagnostic data caninclude familiar data such as trace and dump files, alert log entries, and the new <strong>Oracle</strong> <strong>Database</strong><strong>11</strong>g Health Monitor reports.You can use adrci in interactive mode or use adrci commands inside operating systemscripts for batch execution. Next, we’ll briefly review how to use adrci in both modes.Using adrci in the Command-Line ModeTo log into the adrci and issue commands from there, just type adrci at the command lineafter logging in as the owner of the <strong>Oracle</strong> software installation:$ adrciADRCI: Release <strong>11</strong>.1.0.6.0 - Beta on Sun Aug 26 20:05:42 2007Copyright (c) 1982, 2007, <strong>Oracle</strong>. All rights reserved.ADR base = "/u01/app/oracle"adrci>Once you see the adrci prompt, you can start entering adrci commands. Note that in theinteractive mode, you can enter each command separately at the adrci command line, oryou can execute scripts consisting of adrci commands. To view a list of all adrci commands,type help at the adrci prompt or just type adrci -help at the command line, as shown in thefollowing example:$ adrci -helpSyntax:adrci [-help] [script=script_filename][exec = "one_command [;one_command;...]"]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!