2020年6月23日
摘要: 环境: SQL*Plus: Release 19.0.0.0.0 问题: [INS-30502] No ASM disk group found. CAUSE: There were no disk groups managed by the ASM instance +ASM. ACTION: U 阅读全文
posted @ 2020-06-23 23:44 InnoLeo 阅读(1118) 评论(1) 推荐(1) 编辑
摘要: 1.disable SELinux cat /etc/selinux/config|grep -v ^#|grep -v ^$ SELINUX=disabled SELINUXTYPE=targeted 2.创建账号 groupadd -g 5001 oinstall groupadd -g 500 阅读全文
posted @ 2020-06-23 17:16 InnoLeo 阅读(430) 评论(0) 推荐(0) 编辑
  2020年6月22日
摘要: 1.虚拟机需要在vmx文件中添加,才能显示UUIDdisk.enableUUID = "TRUE" 2. (可省略) rm -rf 99-oracle-asmdevices.rules 3.创建文件 for i in a b c d e f g; do echo "KERNEL==\"sd?\",S 阅读全文
posted @ 2020-06-22 15:53 InnoLeo 阅读(1391) 评论(0) 推荐(0) 编辑
  2020年6月20日
摘要: 总结oracle sqlplus 带特殊字符密码输入方法,推荐使用最后一种. 阅读全文
posted @ 2020-06-20 00:44 InnoLeo 阅读(1171) 评论(0) 推荐(0) 编辑
  2020年6月19日
摘要: DRA: data recovery advisor ,数据恢复顾问,可主动和被动分析故障 制造故障 mv users01.dbf users01.dbf.bak 检测 SQL> alter system checkpoint; alter system checkpoint * ERROR at 阅读全文
posted @ 2020-06-19 21:03 InnoLeo 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 问题: SQL> startup; ORACLE instance started. Total System Global Area 4999610368 bytes Fixed Size 8803024 bytes Variable Size 1040190768 bytes Database 阅读全文
posted @ 2020-06-19 16:13 InnoLeo 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 恢复控制文件错误,数据库不能打开 SQL> startup ORACLE instance started. Total System Global Area 4999610368 bytes Fixed Size 8803024 bytes Variable Size 1040190768 byt 阅读全文
posted @ 2020-06-19 16:01 InnoLeo 阅读(480) 评论(0) 推荐(0) 编辑
  2020年6月16日
摘要: 错误信息:ORA-01017:invalid username/password;Logon denied 检查本地登录成功 [oralu8@lu8db dbs]$ sqlplus SQL*Plus: Release 12.2.0.1.0 Production on Tue Jun 16 16:33 阅读全文
posted @ 2020-06-16 16:43 InnoLeo 阅读(1924) 评论(0) 推荐(0) 编辑
  2020年6月15日
摘要: [root@lu8db hgfs]# cat /etc/yum.repos.d/media.repo [InstallMedia-BaseOS] name=Red Hat Enterprise Linux 8 - BaseOS metadata_expire=-1 gpgcheck=1 enable 阅读全文
posted @ 2020-06-15 21:19 InnoLeo 阅读(401) 评论(0) 推荐(0) 编辑
  2020年6月12日
摘要: redo :记录的数据库存的所有历史变更,它包含数据文件的所有变更,但不包含参数文件和控制 文件,其主要应用:实例恢复/日志挖掘/oracle 流复制/oracle dataguardundo:rollback/data recover/read consistency/flashbackreset 阅读全文
posted @ 2020-06-12 23:07 InnoLeo 阅读(173) 评论(0) 推荐(0) 编辑
  2020年6月11日
摘要: 1.mount CD [root@lu8db mnt]# cat /etc/fstab |grep -i cd /dev/cdrom /mnt/cdrom iso9660 defaults 0 0 2. 配置 #以iso光盘镜像作为yum源[root@lu8db yum.repos.d]# cat 阅读全文
posted @ 2020-06-11 15:18 InnoLeo 阅读(354) 评论(0) 推荐(0) 编辑
  2020年6月7日
摘要: 接https://www.cnblogs.com/tingxin/p/13060440.html 优化 默认用ssh key 登录,并在日志的文件名加入进程ID import paramiko import threading import sys,os import datetime from c 阅读全文
posted @ 2020-06-07 15:49 InnoLeo 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 在上次做了第一次尝试,现尝试优化 https://www.cnblogs.com/tingxin/p/11949317.html 首先日志文件和logging 配置文件都放在conf文件夹下 产生日志文件 newfile.py import os,time def newfile(targetfil 阅读全文
posted @ 2020-06-07 14:09 InnoLeo 阅读(255) 评论(0) 推荐(0) 编辑
  2020年6月4日
摘要: 问题: mysql root 没有任何权限 解决方案 1. add skip-grant-tables in /etc/my.conf [root@mysql~]# cat /etc/my.cnf|grep -i skip skip-grant-tables 2. restart mysql sys 阅读全文
posted @ 2020-06-04 23:11 InnoLeo 阅读(3487) 评论(0) 推荐(0) 编辑
  2020年6月3日
摘要: oracle hint 可以用V$sql_hint 来查询,比如有多少个INDEX相关的hint >set pagesize 500>set linesize 300>select NAME,CLASS,VERSION,PROPERTY from v$sql_hint where name like 阅读全文
posted @ 2020-06-03 23:42 InnoLeo 阅读(247) 评论(0) 推荐(0) 编辑
摘要: pd.show_versions()pd.__version__pd.read_csv? --help docu pd.set_option? --help docu 读取文件: oo=pd.read_csv('olympics.csv',skiprows=4) oo = pd.read_table 阅读全文
posted @ 2020-06-03 23:32 InnoLeo 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 相关的NOTE: https://launchpad.support.sap.com/#/notes/0002148910 https://launchpad.support.sap.com/#/notes/737625 https://launchpad.support.sap.com/#/not 阅读全文
posted @ 2020-06-03 14:50 InnoLeo 阅读(725) 评论(0) 推荐(0) 编辑
  2020年6月2日
摘要: MySQL 学习笔记 1.数据类型 数值、日期/时间和字符串(字符) 类型 所占字节数 说明tinyint 1 小整数值,如状态smallint 2 大整数值mediumint 3 大整数值int 4 大整数值bigint 8 极大整数值float 4 单精度浮点数值double 8 双精度浮点数值 阅读全文
posted @ 2020-06-02 21:57 InnoLeo 阅读(162) 评论(0) 推荐(0) 编辑
  2020年5月29日
摘要: 思路: 1.生成全字符的单密码有94个,两个密码有94*94,三个密码有94*94*94个 2.连接oracle 需要日志文件 3.日志文件要有详细描述用logging 3.连接到oracle数据库,将生成的密码字典插入oracle表 3 验证字典是否成功插入 第一步 def threefor(): 阅读全文
posted @ 2020-05-29 23:11 InnoLeo 阅读(289) 评论(0) 推荐(0) 编辑
  2020年5月28日
摘要: /etc/nginx/nginx.conf worker_rlimit_nofile#; --指定一个worker 进程所能打开的最大文件描述符数量worker_rlimit_sigpending#; --指定每个用户能够发往进程的信号的数量 性能优化相关的配置 1.work_processes - 阅读全文
posted @ 2020-05-28 22:59 InnoLeo 阅读(919) 评论(0) 推荐(0) 编辑
摘要: Nginx 四层代理理仅能存在于 main 段,以下是代理的配置 stream { upstream ssh_proxy { hash $remote_addr consistent; server 192.168.1.10:22; #实际的服务器IP及端口 } upstream mysql_pro 阅读全文
posted @ 2020-05-28 22:50 InnoLeo 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: 1.setting,py STATIC_URL = '/static/' #客户端显示的URL地址 具有欺骗性 STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static') #真实的物理地址 2.html <!DOCTYPE html> <html la 阅读全文
posted @ 2020-05-28 21:27 InnoLeo 阅读(91) 评论(0) 推荐(0) 编辑
  2020年5月27日
摘要: Matplotlib库 标注在工作有很大作用: Annotate的构造函数为 :Annotation(s, xy, xytext=None, xycoords=‘data’, textcoords=None, arrowprops=None, annotation_clip=None, **kwar 阅读全文
posted @ 2020-05-27 22:46 InnoLeo 阅读(2701) 评论(0) 推荐(0) 编辑
  2020年5月26日
摘要: netstat参数解释: -l (listen) 仅列出 Listen (监听) 的服务 -t (tcp) 仅显示tcp相关内容 -n (numeric) 直接显示ip地址以及端口,不解析为服务名或者主机名 -p (pid) 显示出socket所属的进程PID 以及进程名字 --inet 显示ipv 阅读全文
posted @ 2020-05-26 13:13 InnoLeo 阅读(248) 评论(0) 推荐(0) 编辑
  2020年5月25日
摘要: python 发送邮件 smtplib模块负责发送邮件:是一个发送邮件的动作,连接邮箱服务器,登录邮箱,发送邮件(有发件人,收信人,邮件内容)。 email模块负责构造邮件:指的是邮箱页面显示的一些构造,如发件人,收件人,主题,正文,附件等。 email模块下有mime包,mime英文全称为“Mul 阅读全文
posted @ 2020-05-25 23:53 InnoLeo 阅读(194) 评论(0) 推荐(0) 编辑
摘要: python 密码字典生成器 1.准备工作pycharm 设定 help-->Change Memory setting -->20GB Help-->Edit customer properties -->idea.max.intellisense.filesize=9999999 2,以下是生成 阅读全文
posted @ 2020-05-25 16:00 InnoLeo 阅读(2754) 评论(0) 推荐(1) 编辑
  2020年5月24日
摘要: 有严规则的密码生成器 import random from random import shuffle import string def generatepassword(): key='' for i in range(requirement['lowercase']): key=key+ran 阅读全文
posted @ 2020-05-24 23:28 InnoLeo 阅读(461) 评论(0) 推荐(0) 编辑
  2020年5月22日
摘要: 前台上传图片1. 前台templates/upload/upload.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form actio 阅读全文
posted @ 2020-05-22 19:51 InnoLeo 阅读(621) 评论(0) 推荐(0) 编辑
摘要: django 管理后台上传图片1.安装pillow pip install Pillow 2.创建app python manage.py startapp upload 3. project设定settings.py INSTALLED_APPS = [ 'django.contrib.admin 阅读全文
posted @ 2020-05-22 18:29 InnoLeo 阅读(1307) 评论(0) 推荐(0) 编辑
  2020年5月21日
摘要: 视图负责接受Web请求HttpRequest,进行逻辑处理,返回Web响应HttpResponse给请求者 - 在game应用下创建一个名字为urls.py的文件 from django.contrib import admin from django.urls import path, inclu 阅读全文
posted @ 2020-05-21 22:06 InnoLeo 阅读(130) 评论(0) 推荐(0) 编辑
摘要: one line for file in $(ls *.gz); do gunzip -c $file > ${file%%.*} ;done shell #!/bin/bash for((i=1;i<=100;i++)); do echo $(expr $i \* 3 + 1); done #!/ 阅读全文
posted @ 2020-05-21 18:34 InnoLeo 阅读(14355) 评论(0) 推荐(1) 编辑
摘要: Django默认Path转换器 str:匹配任何非空字符串,但不含斜杠/,如果你没有专门指定转换器,那么这个是默认使用的; int:匹配0和正整数,返回一个int类型 slug:可理解为注释、后缀、附属等概念,是url拖在最后的一部分解释性字符。该转换器匹配任何ASCII字符以及连接符和下划线,比如 阅读全文
posted @ 2020-05-21 17:45 InnoLeo 阅读(642) 评论(0) 推荐(0) 编辑
  2020年5月20日
摘要: 一行命令多线程自动化运维 前提, 1. 各个主机有一个共享的文件夹 /workon 2. ssh 自动登录设定完成 ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa ssh-copy-id root@host1 ssh-copy-id root@host2 host1 阅读全文
posted @ 2020-05-20 22:20 InnoLeo 阅读(210) 评论(0) 推荐(0) 编辑
  2020年5月19日
摘要: 1.下载包 https://downloads.mysql.com/archives/community/https://dev.mysql.com/downloads/mysql/https://downloads.mysql.com/archives/workbench/ 工具 2.卸载Mari 阅读全文
posted @ 2020-05-19 22:51 InnoLeo 阅读(1259) 评论(0) 推荐(0) 编辑
摘要: 1.service iptables stop 2. setting.py --> ALLOWED_HOSTS = ['*',] 3. python manage.py runserver 0.0.0.0:8000 阅读全文
posted @ 2020-05-19 09:11 InnoLeo 阅读(230) 评论(0) 推荐(0) 编辑
  2020年5月18日
摘要: SQLiteStudio工具: https://github.com/pawelsalawa/sqlitestudio Older versions (3.x.x) https://www.dropbox.com/sh/ao4nz2qjfsz2yuy/AABwiiss3do7n0wNecuk-uyn 阅读全文
posted @ 2020-05-18 17:08 InnoLeo 阅读(428) 评论(0) 推荐(0) 编辑
  2020年5月17日
摘要: #!/bin/bash #获取源码 wget https://mirrors.ustc.edu.cn/gnu/gcc/gcc-8.1.0/gcc-8.1.0.tar.gz #解压tar -xvf gcc-8.1.0.tar.gz cd gcc-8.1.0 #sudo ./contrib/downlo 阅读全文
posted @ 2020-05-17 16:45 InnoLeo 阅读(1941) 评论(0) 推荐(0) 编辑
  2020年5月15日
摘要: 先学习一下,以后再研究 create schema "TA"; create column table "TA"."A_MYTABLE"(ID INTEGER PRIMARY KEY,STRING nvarchar(200)); insert into "TA"."A_MYTABLE" values 阅读全文
posted @ 2020-05-15 23:06 InnoLeo 阅读(220) 评论(0) 推荐(0) 编辑
摘要: SCN SCN(System Change Number),也就是通常所说的系统改变号或者系统提交号,是数据库中非常重要的一个数据结构。 SCN用以标识数据库在某个确切时刻提交的版本。在事务提交时,它被赋予一个唯一的标识事务的SCN。SCN同时被作为Oracle数据库的内部时钟机制,可被看做逻辑时钟 阅读全文
posted @ 2020-05-15 22:54 InnoLeo 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 经典的print_table学习 存储过程接受两个参数:SQL语句和日期,还使存储过程可以使用role 权限 create or replace procedure print_table(p_query in varchar2,p_date_fmt in varchar2 default 'DD- 阅读全文
posted @ 2020-05-15 21:35 InnoLeo 阅读(749) 评论(0) 推荐(0) 编辑