最近客户的application team 要求在os 上要求用shell 来连接database, 当然作为support team ,security policy 的考虑,是不能share the password with client 的。
我去support:
1: 可以 cat /etc/passwd 看一下
这个用户的.profile 文件在什么地方:
abcd01:[/]#cat /etc/passwd shan:!:205:202::/home/shan:/usr/bin/ksh
2: 可以去/home/shan 下面看一下 .profile 文件 注意,要ls -a 才能看得到。
vi .profile (把oracle 的.profile 的设置copy 到这个用户中来)
看一下oracle 用户的环境变量的设置: cd /oracle ------ ls -a ----------(可以看到.profile 文件的内容)-----把和ORACLE 有关的内容都copy 过去。
3:退出,以shan 用户等入, abcd1:[/home/shan]$sqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 11 14:36:31 2010 Copyright (c) 1982, 2009, Oracle.