暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

如何在shell脚本文件中隐藏连接到oracle数据库的密码?

askTom 2017-06-13
720

问题描述

;;;
Export: Release 11.2.0.4.0 - Production on Tue Jun 13 04:00:02 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
;;;
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
;;; Legacy Mode Active due to the following parameters:
;;; Legacy Mode Parameter: "indexes=TRUE" Location: Command Line, ignored.
;;; Legacy Mode Parameter: "statistics=none" Location: Command Line, ignored.
;;; Legacy Mode has set reuse_dumpfiles=true parameter.
Starting "SZD_BASE_V2"."SYS_EXPORT_SCHEMA_01":  /********@base schemas=szd_base_v2 directory=expdp parallel=3 dumpfile=expdp_szd_base_v2_20170613040001_%U.dmp logfile=expdp_szd_base_v2_20170613040001.log reuse_dumpfiles=true
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
复制


例如,由日志文件生成的expdp文件如下所示,连接用户和密码显示为 '********',但我想编写一个shell脚本文件用于执行一些sql查询或其他操作,但显示了真实的密码,我不想使用oracle wallet进行配置,这种配置感觉很困难。我不知道其他方法,请给我一些建议!

专家解答



https://connormcdonald.wordpress.com/2015/09/21/connection-shortcuts-with-a-wallet/

详情
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论