excel通过odbc访问excel

文章目录

    • 1.下载oracle-odbc插件
    • 2.下载instantclient-basic插件
    • 3.oracle-odbc插件解压放到instantclient-basic插件下
    • 4.修改network\admin下的tnsnames.ora
    • 5.环境配置
    • 6.打开win10的odbc程序
    • 7.打开Excel

1.下载oracle-odbc插件

https://download.oracle.com/otn_software/nt/instantclient/instantclient-odbc-windows.zip

2.下载instantclient-basic插件

https://download.oracle.com/otn_software/nt/instantclient/instantclient-basic-windows.zip

3.oracle-odbc插件解压放到instantclient-basic插件下

4.修改network\admin下的tnsnames.ora

DW01_177 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.xxx.xxx.xxx)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = dw01)
    )
  )

DW01_175 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.xxx.xxx.xxx)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = dw01)
    )
  )

5.环境配置

excel通过odbc访问excel_第1张图片

6.打开win10的odbc程序

excel通过odbc访问excel_第2张图片
excel通过odbc访问excel_第3张图片
excel通过odbc访问excel_第4张图片

7.打开Excel

excel通过odbc访问excel_第5张图片

你可能感兴趣的:(oracle,excel)