Google

Monday, September 27, 2004

Hide DB password in UBBCONFIG

前几天在Oracle的网站上神游,见一老外用过这个方法,就是可以在XA配置OPENINFO的时候,直接将密码部分用星号代替,但星号数目要大于5个,这样在tmloadcf的时候提示让你输入密码,输入就OK了,大家可以试试^_^
example:
OPENINFO="Oracle_XA:Oracle_XA+Acc=P/dbo/******+SqlNet=DBNAME+SesTm=50+MaxCur=5+LogDir=E:\PriDll\log+DbgFl=15"

For each resource manager you can define the OPENINFO and CLOSEINFO parameters. The value of each is a string that contains information needed to open or close a resource manager, respectively. Appropriate values for these parameters are supplied by RM vendors. For example, if you are using an Oracle database as your RM, you might supply the value shown in the following entry.

OPENINFO="ORACLE_XA:


Oracle_XA+Acc=P/Scott/*****+SesTm=30+LogDir=/tmp"