oracle最精简客户端:
networkadmin nsnames.ora (自己新建)
oci.dll
oraocieill.dll
将oci.dll的路径加到path变量中就可以了
tnsnames.ora 示例如下:
MyDBName =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.1.16)(PORT = 1521))
(CONNECT_DATA =
(SERVER = )
(SERVICE_NAME = ora10g)
)
)
运行sql plus:(如果不运行,则不用)
orasqlplusic11.dll
sqlplus.exe
sqlplus登录用户名: 用户名@服务名 (例如:sa@xe)
sql以分号结尾 或 / (/要单独一行)