rac环境中从asm中复制文件到本地

有套19c环境需要部署adg,密码文件也存在asm磁盘中了,需要把密码文件从asm磁盘中拷贝到本地空间中

1、查看密码文件位置

[grid@kyoda2 ~]$ srvctl config database -d orcl
Database unique name: orcl
Database name: orcl
Oracle home: /u01/app/odaorahome/oracle/product/19.0.0.0/dbhome_1
Oracle user: oracle
Spfile: +DATA/ORCL/PARAMETERFILE/spfile.288.1129301275
Password file: +DATA/ORCL/PASSWORD/pwdorcl.290.3369300931
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups: DATA,RECO
Mount point paths: /u01/app/odaorahome,/u01/app/odaorabase0,/u01/app/odaorabase1
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: dbaoper
Database instances: orcl1,orcl2
Configured nodes: kyoda1,kyoda2
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed

2、拷贝到本地空间中

[grid@kyoda2 ~]$  asmcmd -p
ASMCMD [+] >  cd +DATA/ORCL/PASSWORD/
ASMCMD [+DATA/ORCL/PASSWORD] > ls -lt
Type      Redund  Striped  Time             Sys  Name
PASSWORD  HIGH    COARSE   OCT 10 2022      Y    pwdorcl.272.1117719791
ASMCMD [+DATA/ORCL/PASSWORD] >  cp pwdorcl.290.3369300931 /home/grid/pwdorcl
copying +DATA/ORCL/PASSWORD/pwdorcl.290.3369300931 -> /home/grid/pwdorcl

3、备库中操作

+ASM1:/home/grid@dgdb1> asmcmd -p
ASMCMD [+] > cd +DATADG/ORCL
ASMCMD [+DATADG/ORCL] > pwcopy /backup/pwdorcl .
copying /backup/pwdorcl -> +DATADG/ORCL/pwdorcl


srvctl modify database -d orcl -pwfile +DATADG/ORCL/pwdorcl

你可能感兴趣的:(OracleDB,数据库,oracle)