03 2020 档案

摘要:一键切换(慎用) team的四种模式 broadcast (广播模式) activebackup (主备模式) roundrobin (轮训模式) loadbalance (负载均衡) LACP team模式切换 [root@Develop ~] teamdctl nm team state [ro 阅读全文
posted @ 2020-03-31 10:35 LeoShi2020 阅读(2407) 评论(0) 推荐(0) 编辑
摘要:网络需要2个(物理隔离) Public共用网络提供服务 Private私有网络实例之间提供服务 实例的构成 内存SGA 进程backgroud process RAC特点 每一个节点的实例都有自己的SGA 每一个节点的实例都有自己的backgroud process 每一个节点的实例都有自己的red 阅读全文
posted @ 2020-03-29 15:52 LeoShi2020 阅读(476) 评论(0) 推荐(0) 编辑
摘要:子查询的返回值可以被外部查询使用,这样的复合查询等效与执行两个连续的查询 单行单列 内部select子句只返回一行结果(比较运算符 ,, =,最大的 最小的 <最大的 in 只要存在就符合 not in 只要不存在就符合 多行多列 成对比较必须一一对应 非成对比较 END 阅读全文
posted @ 2020-03-27 05:42 LeoShi2020 阅读(149) 评论(0) 推荐(0) 编辑
摘要:集合运算 交、并、差 union 并集,不包括重复,默认排序 union all 并集包括重复,不排序 intersect 交集操作不包括重复行,默认排序 minus 差集操作,不包括重复行,默认排序 以我为主减去交集部分 order by只能使用一次,必须在最后,只是对结果集进行排序 交集 差集 阅读全文
posted @ 2020-03-26 19:08 LeoShi2020 阅读(275) 评论(0) 推荐(0) 编辑
摘要:自然连接(属于等值连接) 新增字段 END 阅读全文
posted @ 2020-03-26 14:51 LeoShi2020 阅读(295) 评论(0) 推荐(0) 编辑
摘要:交叉连接(笛卡尔积) 连接条件无效或者被省略,两个表的所有行都发生连接,所有行的组合都会返回(n m) 非等值连接 原始的2个库结构 等值连接 外连接 左外 右外(基本不用) 全连 自连接 END 阅读全文
posted @ 2020-03-26 13:25 LeoShi2020 阅读(624) 评论(0) 推荐(0) 编辑
摘要:简单查询 全表扫描:指针从第一条记录开始,一次逐行处理,直到最后一行记录结束。 横向选择(where)+纵向投影(select)=结果集 多表连接 交叉连接(笛卡尔积) 非等值连接 等值连接 内连接 外连接(左外、右外、全连接) 自连接 自然连接(隐含连接条件,自动匹配连接字段) 集合运算 误操作需 阅读全文
posted @ 2020-03-26 11:55 LeoShi2020 阅读(208) 评论(0) 推荐(0) 编辑
摘要:空值运算表达式为空 比较表达式有空时返回假 非空字段与空字段"||"合并时,null转换为"",合并列的数据类型为varchar2 where 只能使用is 、is not 更新空值 nvl nvl2 nullif coalesce END 阅读全文
posted @ 2020-03-26 11:30 LeoShi2020 阅读(204) 评论(0) 推荐(0) 编辑
摘要:order by是在select执行之后运行的 排序可使用列名、列表达式、列函数、列别名、列位置编号 升序ASC 降序DESC 混合排序,多列排序逗号隔开 END 阅读全文
posted @ 2020-03-25 12:05 LeoShi2020 阅读(222) 评论(0) 推荐(0) 编辑
摘要:1. from子句组装来自不同数据源的数据; 2. where子句基于指定的条件对记录行进行筛选; 3. group by子句将数据划分为多个分组; 4. 使用聚集函数进行计算; 5. 使用having子句筛选分组; 6. 计算所有的表达式; 7. select 的字段; 8. 使用order by 阅读全文
posted @ 2020-03-25 09:27 LeoShi2020 阅读(290) 评论(0) 推荐(0) 编辑
摘要:重要的五个分组函数 SUM AVG MAX MIN COUNT NVL(eExpression1, eExpression2) 如果eExpression1为null则返回eExpression2 GROUP BY创建分组 分组函数的嵌套(最多两层) END 阅读全文
posted @ 2020-03-25 06:48 LeoShi2020 阅读(182) 评论(0) 推荐(0) 编辑
摘要:ACL的inbound/outbound都是对交换机而言 inbound是从外向交换机方向的流量,outbound是交换机发往外部的流量. 以连接服务器的GE0/0/2端口来说,inbound是服务器到交换机的流量,outbound则是交换机到服务器的流量. END 阅读全文
posted @ 2020-03-25 06:28 LeoShi2020 阅读(936) 评论(0) 推荐(0) 编辑
摘要:select 列 where 行 join 连接 运算符优先级 ()优先级最高 算术运算符: + / 逻辑运算符: not,and,all 比较运算符 单行比较:=, , =, 多行比较: any, all,<any,<all,in,not in 模糊比较:like (配合'%'和'_') 特殊比较 阅读全文
posted @ 2020-03-25 05:45 LeoShi2020 阅读(429) 评论(0) 推荐(0) 编辑
摘要:END 阅读全文
posted @ 2020-03-24 21:57 LeoShi2020 阅读(309) 评论(0) 推荐(1) 编辑
摘要:display license device-id display device manuinfo END 阅读全文
posted @ 2020-03-24 15:34 LeoShi2020 阅读(5016) 评论(0) 推荐(0) 编辑
摘要:隐性类型转换 Oracle自动完成类型转换 显性强制转换(建议使用强制转换) to_char to_date to_number END 阅读全文
posted @ 2020-03-24 11:47 LeoShi2020 阅读(4644) 评论(0) 推荐(0) 编辑
摘要:四种基本类型 字符型 数值型 日期型 大对象型 字符型 char 固定字符最长2000 varchar2 可变长字符,最长4000个 nchar/nvarchar2 国家字符集 raw 2进制最大2G LONG 可变长字符串 最长2G 数值型 number(p,s) 内部精度可达38位 int 整数 阅读全文
posted @ 2020-03-23 23:27 LeoShi2020 阅读(175) 评论(0) 推荐(0) 编辑
摘要:decode 相当于 if判断(简单应用) Oracle私有 case条件判断 通用SQL distinc(去重) chr(ASCII转字符)ascii(字符转ascii) sys_context 获取环境上下文函数 END 阅读全文
posted @ 2020-03-23 20:26 LeoShi2020 阅读(188) 评论(0) 推荐(0) 编辑
摘要:日期在Oracle里面是以数字形式存储的,所以可以进行加减运算,计算单位是天。 缺省格式: DD MON RR 修改本用户的环境变量即可 退出整个shell再连接 时间计算 END 阅读全文
posted @ 2020-03-23 19:27 LeoShi2020 阅读(1635) 评论(0) 推荐(0) 编辑
摘要:小数四舍五入(round) 小数不四舍五入(trunc) 余数(mod) END 阅读全文
posted @ 2020-03-23 14:20 LeoShi2020 阅读(169) 评论(0) 推荐(0) 编辑
摘要:单行函数每行处理一个值 多行函数,多行聚合一个值 |函数名称|作用| | | | |lower|小写| |upper|大写| |initcap|首字母大写| |concat('Hello','Oracle')|字符串拼接(只能拼接2个字符串)| |substr('String',1,3)|str从第 阅读全文
posted @ 2020-03-23 14:12 LeoShi2020 阅读(184) 评论(0) 推荐(0) 编辑
摘要:查询表时显示不全 设置列宽 清除配置(下次连接生效) END 阅读全文
posted @ 2020-03-23 13:27 LeoShi2020 阅读(2975) 评论(0) 推荐(0) 编辑
摘要:安装插件 添加环境变量 环境变量生效 END 阅读全文
posted @ 2020-03-23 13:14 LeoShi2020 阅读(533) 评论(0) 推荐(0) 编辑
摘要:学习测试使用oracle内置数据库scott 查看账户状态 重置密码为password并解锁 登录验证 END 阅读全文
posted @ 2020-03-23 13:06 LeoShi2020 阅读(796) 评论(1) 推荐(0) 编辑
摘要:官方下载地址 "官网" 基础包+扩展包一共四个(下载需要Oracle账户注意自己的版本) Basic(11.2.0.4) JDBC、SDK、SQLPLUS 创建文件夹 sudo mkdir p /opt/oracle 复制下载的文件 sudo cp instantclient /opt/oracle 阅读全文
posted @ 2020-03-23 11:13 LeoShi2020 阅读(1811) 评论(0) 推荐(0) 编辑
摘要:生成Key 上传公钥 阅读全文
posted @ 2020-03-19 14:13 LeoShi2020 阅读(162) 评论(0) 推荐(0) 编辑
摘要:一键命令 阅读全文
posted @ 2020-03-19 13:06 LeoShi2020 阅读(235) 评论(0) 推荐(0) 编辑
摘要:一键脚本 重启服务器 挂载驱动 END 阅读全文
posted @ 2020-03-19 10:26 LeoShi2020 阅读(1230) 评论(0) 推荐(0) 编辑
摘要:一键命令 图形化安装出现virbr0,我们需要将其删除 删除链接 禁用libvirtd服务 阅读全文
posted @ 2020-03-17 22:57 LeoShi2020 阅读(5221) 评论(0) 推荐(0) 编辑
摘要:生产环境 安装iSCSI工具 创建iSCSI目录 执行命令 END 阅读全文
posted @ 2020-03-16 14:42 LeoShi2020 阅读(276) 评论(0) 推荐(0) 编辑
摘要:网卡绑定 添加team0链接 将网卡eth0 eth1 加入team0 启动team 查看team状态 修改IP地址 END 阅读全文
posted @ 2020-03-16 13:10 LeoShi2020 阅读(404) 评论(0) 推荐(0) 编辑
摘要:查看当前物理网卡信息 我们需要将ens160变更为eth0 查看当前连接信息 新增eth0连接 删除ens160连接 修改物理网卡名称 修改Linux核心配置 重启 END 阅读全文
posted @ 2020-03-16 12:42 LeoShi2020 阅读(5856) 评论(0) 推荐(1) 编辑
摘要:一键脚本 cat > 01.yumrepo.sh << 'EOF' # 创建备份路径 mkdir -p /etc/yum.repos.d/repo.bak/ # 备份源 mv /etc/yum.repos.d/CentOS-* /etc/yum.repos.d/repo.bak/ # 导入镜像内容到 阅读全文
posted @ 2020-03-16 10:31 LeoShi2020 阅读(1457) 评论(2) 推荐(0) 编辑
摘要:下载地址 "CentOS官网" 安装 选择语言 安装界面 时间和时区设定 添加第二种语言(Language Support) 修改时区(Time&Date)shanghai 软件包服务器使用最小安装(Software Selection) 磁盘分区挂载点(Installation Destinati 阅读全文
posted @ 2020-03-16 09:54 LeoShi2020 阅读(398) 评论(0) 推荐(0) 编辑
摘要:交换机系统版本 添加账户 登录 END 阅读全文
posted @ 2020-03-14 17:41 LeoShi2020 阅读(1449) 评论(0) 推荐(0) 编辑
摘要:安装组件 npm WARN ajv keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@ 阅读全文
posted @ 2020-03-14 17:20 LeoShi2020 阅读(1139) 评论(0) 推荐(0) 编辑
摘要:进入项目目录 安装BootStrap npm WARN ajv keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm W 阅读全文
posted @ 2020-03-14 11:12 LeoShi2020 阅读(2436) 评论(0) 推荐(0) 编辑
摘要:$ vue init webpack myweb Command vue init requires a global addon to be installed. Please run npm install g @vue/cli init and try again. $ npm install 阅读全文
posted @ 2020-03-14 10:16 LeoShi2020 阅读(892) 评论(0) 推荐(0) 编辑
摘要:ESLint抛错(MacOS) TypeError: this.cliEngine is not a constructor 阅读全文
posted @ 2020-03-12 23:29 LeoShi2020 阅读(1270) 评论(0) 推荐(0) 编辑
摘要:运行环境MacOS 执行过程 Vue CLI v4.2.3 ✨ Creating project in /Users/Leo/Dropbox/Tutorial/VUE/vue admin. 🗃 Initializing git repository... ⚙️ Installing CLI plu 阅读全文
posted @ 2020-03-12 22:06 LeoShi2020 阅读(438) 评论(0) 推荐(0) 编辑
摘要:```` SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node sass/ npm install node sass node sass@4.13.1 install /Users/Leo/node_modules/node sass node 阅读全文
posted @ 2020-03-12 21:58 LeoShi2020 阅读(2665) 评论(0) 推荐(0) 编辑
摘要:$ vue ui 🚀 Starting GUI... 🌠 Ready on http://localhost:8000 使用IP访问 vue ui -H 10.0.0.1 END 阅读全文
posted @ 2020-03-10 21:19 LeoShi2020 阅读(633) 评论(0) 推荐(0) 编辑
摘要:安装nodejs 安装淘宝镜像 安装webpack 安装vue cli END 阅读全文
posted @ 2020-03-10 21:10 LeoShi2020 阅读(299) 评论(0) 推荐(0) 编辑
摘要:文件自动保存 配置快捷键 ⌘, HTML JS代码补全 Vue需要的插件 Vetur、ESLint、Prettier、Vue 2 Snippets npm安装支持包 settings.json配置文件 ` ` 阅读全文
posted @ 2020-03-09 12:14 LeoShi2020 阅读(284) 评论(0) 推荐(0) 编辑
摘要:END 阅读全文
posted @ 2020-03-09 11:04 LeoShi2020 阅读(176) 评论(0) 推荐(0) 编辑
摘要:清除配置信息 然后从 Application 里删掉.app END 阅读全文
posted @ 2020-03-09 11:01 LeoShi2020 阅读(663) 评论(0) 推荐(0) 编辑
摘要:下载地址 https://code.visualstudio.com/ 直接复制到应用程序文件夹 END 阅读全文
posted @ 2020-03-09 10:55 LeoShi2020 阅读(2724) 评论(0) 推荐(0) 编辑
摘要:202.181.202.140 202.181.224.2 205.252.144.228 联通60 70ms 阅读全文
posted @ 2020-03-07 12:03 LeoShi2020 阅读(4519) 评论(0) 推荐(0) 编辑
摘要:useradd主要参数 ` ` 阅读全文
posted @ 2020-03-07 09:09 LeoShi2020 阅读(1107) 评论(0) 推荐(0) 编辑
摘要:watch 用于侦听变量的变化,然后进行相应的处理 尽量不使用watch使用computed代替 示例源代码 END 阅读全文
posted @ 2020-03-06 17:46 LeoShi2020 阅读(191) 评论(0) 推荐(0) 编辑
摘要:computed 处理元数据,便于进行二次利用(比如:消费税自动计算功能) 源代码 END 阅读全文
posted @ 2020-03-05 15:44 LeoShi2020 阅读(138) 评论(0) 推荐(0) 编辑
摘要:filters 格式化变量输出内容(日期格式化、大小写转换、数字再计算) 类似Linux | 代码源文件 END 阅读全文
posted @ 2020-03-05 15:24 LeoShi2020 阅读(133) 评论(0) 推荐(0) 编辑
摘要:component 定义页面局部区域块,完成单独页面的小功能 代码块 END 阅读全文
posted @ 2020-03-05 14:59 LeoShi2020 阅读(230) 评论(0) 推荐(0) 编辑
摘要:v on 为页面元素定义各种事件 keydown,keyup,click,dbclick,load,etd html代码块 js代码 源代码文件 END 阅读全文
posted @ 2020-03-05 14:33 LeoShi2020 阅读(2833) 评论(0) 推荐(0) 编辑
摘要:textarea文本输入 END 阅读全文
posted @ 2020-03-05 11:38 LeoShi2020 阅读(8020) 评论(0) 推荐(0) 编辑
摘要:select数据绑定 汽车品牌选择 END 阅读全文
posted @ 2020-03-05 11:32 LeoShi2020 阅读(469) 评论(0) 推荐(0) 编辑
摘要:v model 为页面输入框进行数据绑定 input select textarea components 组件 input END 阅读全文
posted @ 2020-03-05 11:24 LeoShi2020 阅读(1535) 评论(0) 推荐(0) 编辑
摘要:v if 条件判断 v for 循环 综合示例 完整源码 当seen改为false时则不会显示列表信息 END 阅读全文
posted @ 2020-03-05 11:09 LeoShi2020 阅读(1618) 评论(0) 推荐(0) 编辑
摘要:js引用 html代码块 js代码块 index.html全代码 END 阅读全文
posted @ 2020-03-05 10:06 LeoShi2020 阅读(404) 评论(0) 推荐(0) 编辑
摘要:Atom启动报错 The package spell check cannot load the system dictionary for zh CN. See the settings for ways of changing the languages used, resolving miss 阅读全文
posted @ 2020-03-03 15:15 LeoShi2020 阅读(858) 评论(2) 推荐(0) 编辑
摘要:Atom下载地址 "Atom官网" 修改中文 安装语言包 重启APP END 阅读全文
posted @ 2020-03-03 14:57 LeoShi2020 阅读(719) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示