RDBMS 19.24
参考文档:
Automatic Storage Management Administrator's Guide - Initialization Parameters for Oracle ASM Instances - About Initialization Parameter Files for an Oracle ASM Instance
查询Oracle密码文件的信息(适用于ASM和DB)
select * from gv$passwordfile_info;
ASM实例下查看密码文件
[grid@node19c02 ~]$ sqlplus /nologSQL*Plus: Release 19.0.0.0.0 - Production on Mon Aug 26 09:37:39 2024
Version 19.24.0.0.0Copyright (c) 1982, 2024, Oracle. All rights reserved.SQL> conn / as sysasm
Connected.
SQL> select * from gv$passwordfile_info;INST_ID
----------
FILE_NAME
--------------------------------------------------------------------------------
FORMAT IS_AS CON_ID
------ ----- ----------2
+OCR/orapwasm
12 TRUE 0SQL>
在ASM磁盘上查看具体的ASM密码文件的位置:
ASMCMD> cd +OCR
ASMCMD> ls
ASM/
cluster19c/
orapwasm
orapwasm_backup
ASMCMD> ls -l
Type Redund Striped Time Sys NameY ASM/Y cluster19c/
PASSWORD HIGH COARSE APR 25 2020 N orapwasm => +OCR/ASM/PASSWORD/pwdasm.256.1038670225
PASSWORD HIGH COARSE APR 25 2020 N orapwasm_backup => +OCR/ASM/PASSWORD/pwdasm.257.1038670519
ASMCMD> exit
Oracle ASM实例访问ASM参数文件的顺序
1 gpnp profile
2 spfile/pfile 在GI_HOME目录下
查看到的gpnp profile的内容:
[grid@node19c02 dbs]$ gpnptool get
Warning: some command line parameters were defaulted. Resulting command line: /u01/app/19.0.0/grid/bin/gpnptool.bin get -o-<?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0" xmlns="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:gpnp="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:orcl="http://www.oracle.com/gpnp/2005/11/gpnp-profile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-profile.xsd" ProfileSequence="5" ClusterUId="9f8f0ca6cdcaefa4ff3c8e0c24b126b9" ClusterName="cluster19c" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" IP="192.168.2.0" Adapter="ens33" Use="public"/><gpnp:Network id="net2" IP="10.10.10.0" Adapter="ens34" Use="asm,cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-Profile><orcl:CSS-Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile id="asm" DiscoveryString="/dev/sd*" SPFile="+OCR/cluster19c/ASMPARAMETERFILE/registry.253.1038670223" Mode="remote" Extended="false"/><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="gpnp orcl xsi"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>bX6BgoAUbNOYhlY5/AUAp7/Hfxk=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>sFbhjBIkiur6mqXrSWYiHeg/DnZgwdXFuVHD2uE3DMxtjt1vELR1n7pUv/3rREwcyas+xgv3uS821LQ7c7k5I/PBQiCNTmpJr+IcfuREAJq+/2yRmVjZ+YwH1qORWPod63PrWLQbW3eE1PkoDanY3S6YAp30cTlSEwmgcFDXMxM=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>
Success.
[grid@node19c02 dbs]$
END