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

相关推荐
Qi妙代码18 小时前
MYSQL基础
数据库·mysql·oracle
Arbori_2621518 小时前
Oracle中的UNION原理
数据库·oracle
WannaRunning21 小时前
浅谈Tomcat数据源连接池
java·oracle·tomcat
嘴对嘴编程1 天前
oracle数据泵操作
数据库·oracle
w23617346012 天前
存储型XSS漏洞解析
数据库·oracle·xss·存储型xss
Мартин.2 天前
[CISSP] [5] 保护资产安全
数据库·安全·oracle
ETLCloud数据集成社区2 天前
ETLCloud是如何通过Oracle实现CDC的?
数据库·oracle·etl·实时数据同步
Arbori_262152 天前
获取oracle表大小
数据库·oracle
SQLplusDB2 天前
Oracle 23ai Vector Search 系列之3 集成嵌入生成模型(Embedding Model)到数据库示例,以及常见错误
数据库·oracle·embedding
一只栖枝2 天前
Oracle OCP知识点详解2:管理用户密码期限
数据库·oracle·开闭原则·ocp