1.客户端解压缩路径如下图:
路径为:C:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2
2.打开pl/sql
Oracle Home:C:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2
OCI library:C:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2\oci.dll
3.在解压缩界面新建两个文件,也就是C:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2路径下
tnsnames.ora:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = xe)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
listener.ora:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
4.添加环境变量
TNS_ADMIN=C:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2
Path=C:\instantclient-basic-win32-11.2.0.1.0\instantclient_11_2
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
5.快捷键设置
shoucuts中可自定义快捷键例如:
网友评论