操作系统,python3.5, oracle_11, 均为64位:plsql 正常连接. 也顺利安装了cx_oracle 6.3,但是python进行连接的时候就会报错"DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: " . 原因: instantclient版本为32位,需更换成64位. 解决方案: 一.已安装oracle客户端 1. 重新下载 instantclient 64位, 下载链…
Oracle 客户端连接Oracle数据库报错   ORA-12170:TNS:连接超时  排错步骤: 1. 查看网络是否畅通:  打开cmd,ping数据库IP 2. 查看端口是否畅通: 打开cmd,tnsping 数据库IP(如果PING不通,可能是防火墙问题) 3. 检查防火墙状态(如果开启,请关闭): # service iptables status 关闭防火墙: # service iptables stop 关闭防火墙之后,本地PC在cmd中用 tnsping 数据库IP,发现端口…
ubuntu上跑python连接pg,报错  ImportError: No module named psycopg2 root@pgproxy1:~# python /home/zxw/PGWriterTest_m.py  Traceback (most recent call last):   File "/home/zxw/PGWriterTest_m.py", line 4, in <module>     import psycopg2 ImportError:…
原文:navicat连接oracle数据库报ORA-28547: connection to server failed, probable Oracle Net admin error错误的解决方法 navicat是通过oracle客户端连接oracle服务器的. oracle的客户端有两种,一种标准的客户端安装程序,下载地址: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html…
今天连接mysql数据库报错如下: java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more s…
Oracle数据库报错: ORA-29275:部分多字节字符 就是你查出来的字符串(有汉字的)有可能会出问题, 在认为有问题的字段 用 to_nchar("字段")包起来 比如 你查 select * from role 出问题了看一下字段里面哪个字段比较长的有汉字的,差不多就是那个字段有问题 比如是 userName 这个字段有问题 就 select to_nchar(userName), id , ... from role 就解决了…
Navicat 连接远程数据库报错:1130 - Host "XX.XX.XX.XX" is not allowed to connect to this MySQL server 1.连接服务器: mysql -u root -p 2.看当前所有数据库: show databases; 3.进入mysql数据库: use mysql; 4.查看mysql数据库中所有的表: show tables; 5.查看 user 表中的数据: select Host, User from use…
Navicat 连接远程数据库报错:2003 - Can‘’t connect to MySQL server on '172.22.69.190'  (10061) 一.原因 远程数据库使用了默认设置,绑定的IP是127.0.0.1 二.解决方案 1.修改 远程服务器的配置 vim /etc/mysql/mysql.conf.d/mysqld.cnf 将 bind-address = 127.0.0.1 改成 bind-address = 0.0.0.0 2.重启 mysql 服务 servi…
转自:http://blog.sina.com.cn/s/blog_16eaf6b940102x66q.html 有个朋友,他们那边windows虚拟机重启后,数据库不能起来报错ORA-12705无法访问NLS数据文件,或指定的环境无效,网上说的修改注册表中的NLS,发现都不管用,后来,在cmd命令行下输入set NLS出现NLS_LANG=SIMPLIFIED CHINESE_CHINA ZHS16GBK在命令行下输入set  NLS_LANG=SIMPLIFIED CHINESE_CHINA…
[1.cmd终端连接远程mysql数据库方法] mysql -uhello -pworld   -h192.168.1.88 -P3306 -Dmysql_oa mysql -u用户名 -p密码 -h远程数据库IP地址 -P端口 -D数据库名 [2.navicat连接远程数据库报错'client does not support authentication protocol requested by server consider ...'解决方案] 原因是MySQL8.0的加密方式改变了,但…