
Python
lixora
MIchael.Huang_lixora 这个blog是个人学习的的一个札记筒,用以记录在学习,工作,生活上的所思,所想
展开
-
python 正则函数 re.findall 将符合匹配的关键词行过滤出来
#遍历制定目录,找出所有 mysql frm 文件# !usr/bin/env python# -*- coding:utf-8 _*-"""@Author:huanglj@File:reeee.py@Time:2020/4/24 10:19"""import osimport repath = "C:\\Users\\Administrator\\Desktop"pa...原创 2020-04-24 14:11:12 · 698 阅读 · 0 评论 -
PyDev for Eclipse 简介
PyDev for Eclipse 简介from: http://www.ibm.com/developerworks/cn/opensource/os-cn-ecl-pydev/index.htmlPyDev for Eclipse 是一个功能强大且易用的 Eclipse Python IDE 插件。本文将向读者介绍 PyDev 开源项目及转载 2013-11-28 10:31:13 · 1256 阅读 · 0 评论 -
python 升级到2.7.8 导致yum 运行异常:No module named yum
os version:[root@lixora etc]# cat redhat-releaseRed Hat Enterprise Linux Server release 5.4 (Tikanga)---运行yum 报错[root@lixora ~]# yum install dialogThere was a problem importing one of原创 2014-12-08 09:57:16 · 6113 阅读 · 1 评论 -
windows pip 快速安装阿里云镜像包
配置pipc:\pip.ini##########################################################[global]index-url = http://mirrors.aliyun.com/pypi/simple[install]trusted-host=mirrors.aliyun.com################原创 2017-06-17 16:59:23 · 2359 阅读 · 0 评论 -
某天晚上要处理的800 张表的一个demo python小程序
dba 必须要要会点开发啊,不然会把自己搞死的# -*- coding: utf-8 -*-import cx_Oracledb1=cx_Oracle.connect('system','oracle', 'fiona')##获取游标cursor = db1.cursor()f = open("2.txt")for i in f: try:原创 2017-10-12 16:46:02 · 364 阅读 · 0 评论 -
一个python 循环执行oracle sql 的demo
# -*- coding: utf-8 -*-import ConfigParserimport string, os, sysimport cx_Oracleimport timecf = ConfigParser.ConfigParser()cf.read(".\db.conf")#read by typedb_tnsname = cf.get("db"原创 2017-10-12 23:12:19 · 2384 阅读 · 0 评论 -
一段python 写自定义查看oracle current event 的小工具
db.conf 配置文件格式如下:这里的lixora 是tns 别名,当然也可以配置成 : 10.10.10.10:1521/lixora 这样的格式;可以根据自己的需要改造sql 文本就可以自定义定义一个日常监控的小工具了,用pyinstaller 打包一个exe 独立文件,再配置一个db.conf .db.conf######################################原创 2017-12-08 21:15:39 · 322 阅读 · 0 评论 -
用python 写的一个oracle 服务响应时间的实时监控web 小工具
主要参照这位老铁的脚手架 :https://github.com/shengxinjing/my_blog/tree/master/monitor主要工具:python,flask,SQLLITE (我没有选择mysql,sqllite 够用了,本来就是一个小功能,我喜欢简单)主要功能:监控oracle 10g,11g 数据库平均响应时间,通过实施采集数据库rt 并生成趋势图,方便...原创 2018-07-16 21:09:00 · 1341 阅读 · 3 评论