Oracle环境变量
由于前几次重装系统之后PL/SQL里面的登录信息全没了,然后老是记不住环境变量配置,所以只能重新再安装oracle客户端程序,麻烦。所以这次记下来,以免以后遇到同样情况。
主要设置PATH和CLASSPATH。
PATH=D:/Oracle/bin;C:/Program Files/Oracle/jre/1.1.7/bin;D:/Oracle/orb/bin;$PATHA
CLASSPATH=D:/Oracle/orb/classes/yoj.jar;D:/Oracle/orb/classes/share.zip
用PL/SQL登陆的信息配置在D:/Oracle/network/ADMIN下,只需要新建一个名为tnsnames.ora的文件,然后在里面配置相关的连接即可。例如:
# TNSNAMES.ORA Network Configuration File: D:/Oracle/Ora81/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
YOURNAME1=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SERVERIP)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SERVICENAME1 )
)
)
YOURNAME2=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SERVERIP)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SERVICE_NAME2)
)
)
OK,你便不需要重新安装客户端了,如果写个批处理执行了,应该就成了绿色版了吧,尚未测试!