WEB框架本质: 服务器程序和应用程序: 是一个socket服务端,而用户的浏览器就是一个socket客户端。例子:import?socketsok?=?socket.socket()sok.bind(("127.0.0.1",8008))sok.listen()while?True: conn,a ...
分类:
其他好文 时间:
2020-05-15 11:29:53
阅读次数:
92
ORA-01031: insufficient privileges处理记录 SYS@orcl1> conn srv_elon/elonConnected.srv_elon@orcl1> srv_elon@orcl1> select count(*) from "SCOTT"."V_EMPLOYEE ...
分类:
其他好文 时间:
2020-05-11 17:03:33
阅读次数:
138
使用flask查询mysql数据库,发布http+json对外接口 from flask import Flask import pymysql import json #初始化flask对象 app = Flask(__name__) #获取数据库链接信息 def get_conn(): retu ...
分类:
Web程序 时间:
2020-05-10 21:28:13
阅读次数:
75
下面以shared pool为例,解释一下dump出来的内存结构。 SQL> conn sys/sys as sysdba Connected. SQL> oradebug setmypid Statement processed. SQL> oradebug dump heapdump 2 Sta ...
分类:
其他好文 时间:
2020-05-08 11:29:32
阅读次数:
96
public class JdbcUtils { //加载properties类,只需要加载一次 static Properties props = new Properties(); //属性参数 private static Connection conn = null; private sta ...
分类:
数据库 时间:
2020-05-07 22:52:47
阅读次数:
78
连接方式 import cx_Oracle as cx #conn=cx_Oracle.connect(‘用户名/密码@主机ip地址:端口号/Service Name(SID)') # 第一种 con = cx.connect('root', 'root123', '127.0.0.1:1521/o ...
分类:
数据库 时间:
2020-05-07 13:37:18
阅读次数:
93
nginx 并发数问题思考:worker_connections,worker_processes与 max clients-运维者说:从菜鸟到老鸟-51CTO博客 https://blog.51cto.com/liuqunying/1420556 nginx 并发数问题思考:worker_conn ...
分类:
其他好文 时间:
2020-05-06 01:39:50
阅读次数:
54
一、阻塞IO模型 import socket server = socket.socket() server.bind(('127.0.0.1',8080)) server.listen(5) while True: conn, addr = server.accept() while True: ...
分类:
其他好文 时间:
2020-04-29 01:03:28
阅读次数:
55
一、关库修改文件位置 1.连接到数据库 [oracle@linux]$ ./sqlplus /nolog SQL> conn / as sysdba 2. 查看数据文件位置 SQL> select name from v$datafile; FILE_NAME /oradata/PMPTGDB/us ...
分类:
数据库 时间:
2020-04-27 13:42:48
阅读次数:
73
结果:(1, '11') self.conn = pymysql.connect( host='xxx', port=3806, user='root', passwd=str(123456), db = 'test', charset = "utf8") 结果:{'id': 1, 'name': ...
分类:
数据库 时间:
2020-04-23 18:45:53
阅读次数:
130