![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运维
曹david
oracle,mysql,linux,shell,python.
展开
-
error: You must be logged in to the server (Unauthorized)
kubectl get nodes报错原创 2023-04-03 09:51:50 · 350 阅读 · 0 评论 -
达梦7逻辑备份导入导出,排除某张表,包含某张表,只导出结构,导出指定表,加查询条件导出
//剔除某张表导出./dexp userid=CZJ/dmdbacczw directory=/home/ file=exluse.dmp log=exluse.dmp.log exclude=tables:T_USER schemas=czj//包含某张表导出./dexp userid=CZJ/dmdbacczw directory=/home/ file=exluse.dmp log=exluse.dmp.log include=tables:T_USER schemas=czj//只导出原创 2021-03-08 15:37:19 · 1141 阅读 · 0 评论 -
达梦实例启停及对象创建
达梦实例启停及表空间,模式,用户的创建dm实例名在安装路径bin目录下,DMService+实例名,启停``./DMSericeCZW stop/start创建/删除模式、用户,切换模式create schema czw authorization sysdba;create user CZW identified by CZWdmdba;drop schema czw cascade;drop user czw cascade;#切换模式set schema czw;创建表空原创 2020-12-17 11:12:11 · 291 阅读 · 1 评论 -
python3移动指定日期的文件
#!/usr/bin/python3# coding=utf8#采用脚本批量移动文件import osimport timeimport shutilimport datetime#文件夹路径ml = ""#切换到该目录os.chdir(ml)#目标目录mbml = ""def moveFile(ml,mbml): #遍历文件夹 for f in os.listdir(ml): #文件名,前缀加后缀 qz = os.path.spli原创 2020-08-19 19:54:51 · 376 阅读 · 0 评论 -
shell脚本备份oracle 数据泵备份
#!/bin/sh#定义一个整形数字用作计数declare -i numcd $directory #oracle datapump目录#日期date=`date +%Y%m%d%H%M`dumpName=ORACLE_SID$date".dmp"logName=$dumpName".log"expdp username/password directory=xxx dumpfile=$dumpName logfile=$logName parallel=x cluster=n #paral原创 2020-08-19 19:48:34 · 206 阅读 · 0 评论 -
go docker api获取镜像,容器信息
```gopackage mainimport ( "fmt" "time" "golang.org/x/net/context" "github.com/docker/docker/client" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" )func main() {//go诞生的时间 timeLayout := "2006-01-02 15:04:0.原创 2020-08-19 13:03:01 · 1796 阅读 · 0 评论 -
go获取进程名,进程id
菜鸟一个,初次写,多多指教。go get github.com/shirou/gopsutil/processimport (“github.com/shirou/gopsutil/process”“fmt”)/*获取所有进程id,以数组返回/func ProcessId() (pid []int32) {pids,_ := process.Pids()for _,p := range pids {pid = append(pid,p)}return pid}/获取所有进原创 2020-08-07 22:56:56 · 5717 阅读 · 0 评论