欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 新车 > Oracle ASM密码文件/参数文件相关

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

2024/11/30 12:44:22 来源:https://blog.csdn.net/xxzhaobb/article/details/141554698  浏览:    关键词: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 /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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com