前段时间因工作需要写了个数据库访问工具,其中开始使用sqldatareader,后面改用了sqladpter了,感觉更好用一下,但还是学习一下sqldatareader。 1、常用属性 2、常用方法 3、使用方法 简单记下,防止忘记。原博客https://blog.csdn.net/Lofert/a ...
分类:
数据库 时间:
2021-04-02 13:21:01
阅读次数:
0
# 需要修改oracle的配置数据库 import cx_Oracle from Common.dir_config import caps_dir import yaml class DoSql: def do_orcal(self,query_sql,state='all'): # 1打开yam ...
分类:
数据库 时间:
2021-04-01 13:48:10
阅读次数:
0
本文参考了https://blog.csdn.net/xinzhan0/article/details/52461611?locationNum=2&fps=1 如何设置shared pool及sga的大小 前面讲了很多关于shared pool的知识对我们来讲最简单最直接的工作是sharedpoo ...
分类:
数据库 时间:
2021-04-01 13:24:11
阅读次数:
0
传统的BIO里面socket.read(),如果TCP RecvBuffer里没有数据,函数会一直阻塞,直到收到数据,返回读到的数据。 对于NIO,如果TCP RecvBuffer有数据,就把数据从网卡读到内存,并且返回给用户;反之则直接返回0,永远不会阻塞。 最新的AIO(Async I/O)里面 ...
分类:
其他好文 时间:
2021-04-01 12:59:55
阅读次数:
0
定义 执行计划是一条查询语句在Oracle中的执行过程或访问路径的描述。 组成 目标SQL的正文、sql_id和执行计划对应的plan_hash_value 执行计划主体,主要有内部执行步骤、执行顺序、谓词信息、列信息、Cardinality、Cost等 执行计划的额外补充信息,是否动态采用(dyn ...
分类:
数据库 时间:
2021-04-01 12:58:22
阅读次数:
0
shell编程实现创建新用户和打包文件 1、shell编程创建新用户 #! /bin/bash `useradd $1` `echo $2 | passwd --stdin $1` 假设这个文件的名称为test.sh,则操作方式为: ./test.sh admin 123456 其中1参为用户名,2 ...
分类:
系统相关 时间:
2021-03-31 12:11:52
阅读次数:
0
dockerSearch命令
Get https://index.docker.io/v1/search?q=redis&n=25: dial tcp: lookup index.docker.io on [::1]:53: read udp [::1]:49555->[::1]:53: read:... ...
分类:
其他好文 时间:
2021-03-31 12:10:21
阅读次数:
0
1 import os 2 3 # 获取手机系统信息 4 phone_sys = os.popen('adb shell "cat /system/build.prop | grep "product""').read() 5 print(phone_sys) 6 7 # 获取手机设备型号 8 de ...
分类:
编程语言 时间:
2021-03-30 13:42:38
阅读次数:
0
When dealing with `fs` library, the common problem you will meet is the path to file. Different envs may have different way to handle the path. The be ...
分类:
Web程序 时间:
2021-03-30 13:42:21
阅读次数:
0
import contextlib import pyhdfs class HdfsUtil(object): def __init__(self, hosts='namenode1:9870,namenode2:9870', user_name='hdfs'): self.hosts = host ...
分类:
编程语言 时间:
2021-03-30 13:29:22
阅读次数:
0