
数据库
r_rmax
这个作者很懒,什么都没留下…
展开
-
cx_Oracle.DatabaseError: DPI-1047
这就是没安数据库客户端。照着后面的提示安下就行了。网址:https://oracle.github.io/odpi/doc/installation.html#linux 比如我的linux 安装下载一个客户端,需要注册:http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html不想注册点这个下载 :只是linux的...原创 2018-05-17 12:09:10 · 3935 阅读 · 0 评论 -
cx_Oracle.DatabaseError: ORA-24454: 客户机主机名未设置
一行指令解决sudo /bin/bash -c "echo '127.0.1.1 ${HOSTNAME}' >> /etc/hosts"具体什么原因,还没考虑原创 2018-05-14 14:27:27 · 5556 阅读 · 2 评论 -
python 链接oracle 数据库
一.环境python3.5red hat 4.7# 安装pip install cx_Oracle# 链接数据库import osimport cx_Oracleimport pandas as pdos.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'import settingsdef GetDBInfo(): ...原创 2018-05-14 14:58:43 · 541 阅读 · 0 评论 -
python 连接redis
一.环境 win10py3.5二.连接import redisdef get_db(): '''获取redis数据对象''' redis_config = { "host": "127.0.0.1", "port": 6379, 'db':10 } # redis连接对象 db= redis.Redis(*...原创 2018-05-14 15:00:24 · 585 阅读 · 0 评论