当前位置:首页 > PHP教程 > PHP总结归纳

Oracle11gR2即时客户端配置(Windows)

1、先下载适合自己系统的即时客户端,可通过下面的地址下载。 2、直接解压到你想要存放的目录中,如:c:instantclient_11_2 3、编辑环境变量: tns_admin 设置为 c:instantclient_11_2 oracle_home 设置为 c:instantclient_11_2 4、编辑连接配置文件 tnsname

  1、先下载适合自己系统的即时客户端,,可通过下面的地址下载。

  

  2、直接解压到你想要存放的目录中,如:c:instantclient_11_2

  3、编辑环境变量:

  tns_admin 设置为 c:instantclient_11_2

  oracle_home 设置为 c:instantclient_11_2

  4、编辑连接配置文件 tnsnames.ora,该文件需要自行在即时客户端目录(c:instantclient_11_2)中创建。在该文件内输入如下内容:

  mydb =

  (description =

  (address_list =

  (address = (protocol = tcp)(host = 192.168.3.250)(port = 1521))

  )

  (connect_data =

  (server = dedicated)

  (service_name = mydb)

  )

  )

  mydb:是数据库实例名

  192.168.3.259:是数据库的 ip 地址

  1521:是数据库的端口

  5、然后你就可以使用 plsql developer 和 toad 这类软件来管理 oracle 数据库了。

.syntaxhighlighter{padding-top:20px;padding-bottom:20px;}
【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!