Oracle ASM密码文件/参数文件相关

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 /nolog

SQL*Plus: Release 19.0.0.0.0 - Production on Mon Aug 26 09:37:39 2024
Version 19.24.0.0.0

Copyright (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           0


SQL> 

在ASM磁盘上查看具体的ASM密码文件的位置:

ASMCMD> cd +OCR
ASMCMD> ls
ASM/
cluster19c/
orapwasm
orapwasm_backup
ASMCMD> ls -l
Type      Redund  Striped  Time         Sys  Name
                                        Y    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

相关推荐
王小小鸭2 小时前
【开发小技巧11】用经典报表实现badge list效果,根据回显内容用颜色加以区分
oracle·oracle apex
大白要努力!2 小时前
android 使用SQLiteOpenHelper 如何优化数据库的性能
android·数据库·oracle
Mephisto.java5 小时前
【大数据学习 | Spark】Spark的改变分区的算子
大数据·elasticsearch·oracle·spark·kafka·memcache
远歌已逝8 小时前
维护在线重做日志(二)
数据库·oracle
LKID体16 小时前
Python操作neo4j库py2neo使用(一)
python·oracle·neo4j
斗-匕17 小时前
Spring事务管理
数据库·spring·oracle
一行玩python18 小时前
SQLAlchemy,ORM的Python标杆!
开发语言·数据库·python·oracle
王ASC19 小时前
ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值。ojdbc8版本23.2.0.0驱动BUG【已解决】
数据库·sql·oracle
不爱学习的啊Biao20 小时前
初识mysql数据库
数据库·mysql·oracle
SRC_BLUE_1721 小时前
SQLI LABS | Less-55 GET-Challenge-Union-14 Queries Allowed-Variation 2
oracle·c#·less