eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« 关于Oracle 12.2 Sharding,你想知道的都在这里 | Blog首页 | 不以规矩不成方圆:Digital Ocean也删除了他们的数据库 »

如何隐藏或加密 Oracle 备份 RMAN脚本中的口令
modb.pro

今天有朋友问:如何隐藏RMAN备份脚本中的口令,起到安全防范的目的?

想到以前用的一个小方法,在Linux上,用openssl将加密后的口令写到口令文件中,调用时进行解密,当然你要保护这个口令文件的读取权限,以及,openssl 的调用权限:

[eygle@enmoteam1 ~]$ echo "eygle" |openssl enc -base64

ZXlnbGUK

[eygle@enmoteam1 ~]$ echo "eygle" |openssl enc -base64 > encpasswd

[eygle@enmoteam1 ~]$ mypwd=`cat encpasswd|openssl enc -base64 -d`

[eygle@enmoteam1 ~]$ echo "$mypwd"

eygle

[eygle@enmoteam1 ~]$ rman target eygle/${mypwd}

Recovery Manager: Release 11.2.0.3.0 - Production on Tue Apr 18 10:01:17 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

connected to target database: ENMOT1 (DBID=1258229964)

RMAN> exit

Recovery Manager complete.

这个办法好不了多少,但是比直接的明文,安全了一点点。


历史上的今天...
    >> 2014-04-18文章:
    >> 2011-04-18文章:
    >> 2007-04-18文章:
    >> 2006-04-18文章:
    >> 2005-04-18文章:
           回到北京

By eygle on 2017-04-18 11:11 | Comments (0) | Advanced | 3245 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com