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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 2 ■ DATABASE DIAGNOSABILITY AND FAILURE REPAIR 65When you issue any adrci command, it’s in the ADR home defined in the “current” ADRhomepath that <strong>Oracle</strong> searches for diagnostic data. If you don’t set the ADR homepath explicitly,all ADR homes under the ADR base will be current. ADR commands always operate on thediagnostic data in the current ADR home. So if you issue a command such as show tracefile,for example, adrci will show you all the trace files in each of the ADR homes that are current.The show homes command shows all available ADR homes:adrci> show homesADR Homes:diag/rdbms/auxdb/auxdbdiag/rdbms/eleven/elevendiag/rdbms/orcl<strong>11</strong>/orcl<strong>11</strong>adrci>Although the show homes command shows three different ADR homes for the three different<strong>Oracle</strong> instances, the ADR homepath itself isn’t set, as shown by executing the show homepathcommand:adrci> show homepathadrci>It’s important to understand that if you don’t set any ADR homepath, all instance homesunder the ADR base are considered to be active or current homes. In our case, all three ADRhomes under the ADR base are “current” by default. If you want adrci commands to apply toonly a single ADR home, you can do so by using the set homepath command, which lets youchange the current home path:adrci> set homepath diag/rdbms/orcl1/orcl1adrci> show homepathdiag/rdbms/orcl1/orcl1adrci>You can set the ADR homepath to multiple ADR homes if you want. When you do this,those adrci commands that can simultaneously work with multiple ADR homes (for example,show incident and show alert) will search the diagnostic data under all the ADR homes defined inthe current ADR path. You can issue all other adrci commands only if a single ADR home iscurrent. If you issue such a command when multiple ADR homes are current, adrci will issuean error. For example, an attempt to create a package with the ips command (the ips commandcreates an incident package, and we explain this later in this chapter) when you have multiplehome paths set will lead to this error:adrci> ips create package;DIA-48448: This command does not support multiple ADR homesadrci>Obviously, you must set a single ADR homepath by using the set homepath commandbefore you can create an incident package with the ips command.

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

Saved successfully!

Ooh no, something went wrong!