yum安装高版本ruby

通过换yum源安装: yum install centos release scl rh yum install rh ruby23 y scl enable rh ruby23 bash ruby v 另外可能出现一个错误: ruby: error while loading shared libraries: libruby.so.2.3: cannot open

oracle查看表空间物理文件路径及大小

sql语句如下: SELECT mAX B.file id id, B.TABLESPACE NAME 表空间, B.FILE NAME 物理文件名, B.BYTES / 1024 / 1024 大小M, B.BYTES SUM NVL A.BYTES,0 / 1024 / 1024 已使用M, SUBSTR B.BYTES SUM NVL A.BYTES,0 /

oracle查看表空间使用情况

sql如下: select a.a1 表空间名称, c.c2 类型, c.c3 区管理, b.b2/1024/1024/1024 表空间大小G, b.b2 a.a2 /1024/1024/1024 已使用G, substr b.b2 a.a2 /b.b2 100,1,5 已利用率, round 100 substr b.b2 a.a2 /b.b2 100,1,5 , 3 剩余

python循环增加系统时间

代码的作用是按照对应的循环次数,每次给当前系统时间加上5秒。 import time import datetime import os for num in range 1,50 : aftertime = datetime.datetime.now + datetime.timedelta seconds=5 .strftime "%Y %m %d %H:%M:%S" pri

python获取json格式时间

脚本作用是从接口获取json数据并提取时间。 import requests import json url = 'http://192.168.0.5:8992/api/datetime' ret = requests.get url rs = json.loads ret.text 'result' 'datetime' print rs 推荐python3运行该脚