(Closed)如何得到 Login 信息

[复制链接]
查看11 | 回复7 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
对于 Excutable type = 'Host' 的 Concurrent program 来说, 可以在 shell scripts 里加上以下代码, 将所有的参数都显示出来
for arg in $*
do
echo $arg
done
输出结果类似:
xxgurfeed_load_data
FCP_REQID=2548706
FCP_LOGIN="APPS/APPS"
FCP_USERID=4462
FCP_USERNAME="BOL-SETUP"
FCP_PRINTER="noprint"
FCP_SAVE_OUT=Y
FCP_NUM_COPIES=0
"wgtfeed.csv"

在一般的系统我们都会得到 FCP_LOGIN="APPS/APPS" 这样的信息, 但我遇到一个客户只显示FCP_LOGIN="APPS/", 密码没有显示, 我有两个疑问:
1. 如何控制 APPS 密码不显示出来
2. 如果是这种情况, 我需要在 shell scripts 里调用 SQLPLUS apps/apps 的命令去执行一段 sql 怎么做?
[ 本帖最后由 LZJKEVIN 于 2009-5-22 13:31 编辑 ]
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
自己顶一下, 高人快来呀
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
这个贴不能沉, 请名位帮忙呀
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
顶一下
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
每天都来顶一下, 一定要解决这个问题
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
Protecting Your Oracle User Password
In some cases, there are security concerns with passing your Oracle
username and password directly to your HOST program. If you do not
want the concurrent manager to pass your username/password to
your program, you can have the manager pass it as an environment
variable instead, or not pass it at all.

First, define your concurrent program executable as a HOST program
in the Concurrent Program Executable form.
To have the username/password passed as an environment variable,
enter the term ’ENCRYPT’ in the Execution Options field of the
Concurrent Programs window when defining a concurrent program
using this executable. ’ENCRYPT’ signals the concurrent manager to
pass the username/password in the
in the environment variable fcp_login.
The argument $1 is left blank.
If you do not want the username/password passed to the program at
all, enter ’SECURE’ in the Execution Options field. The concurrent
manager will not pass the username/password to the program.
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
原帖由 LZJKEVIN 于 2009-5-18 15:31 发表
对于 Excutable type = 'Host' 的 Concurrent program 来说, 可以在 shell scripts 里加上以下代码, 将所有的参数都显示出来
for arg in $*
do
echo $arg
done
输出结果类似:
xxgurfeed_load_data
FCP_REQID=2548706
FCP_LOGIN="APPS/APPS"
FCP_USERID=4462
FCP_USERNAME="BOL-SETUP"
FCP_PRINTER="noprint"
FCP_SAVE_OUT=Y
FCP_NUM_COPIES=0
"wgtfeed.csv"

在一般的系统我们都会得到 FCP_LOGIN="APPS/APPS" 这样的信息, 但我遇到一个客户只显示FCP_LOGIN="APPS/", 密码没有显示, 我有两个疑问:
1. 如何控制 APPS 密码不显示出来
2. 如果是这种情况, 我需要在 shell scripts 里调用 SQLPLUS apps/apps 的命令去执行一段 sql 怎么做?

对于2,可以用下面的方法:
把用户密码放在一个文件中,然后shell脚本读这个文件
比如把密码放在a.txt
shell脚本例子:
sqlplus -s << ENDINP
`cat $HOME/a.txt`
select owner, count(*) from dba_triggers where status='DISABLED'
group byowner;
exit
ENDINP
) | more
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
顶一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行