2017年8月19日

17.08.03

摘要: oracle管理 体系结构 SGA: 大的缓冲区 $ sqlplus / as sysdba SQL> show sga 显示sga的设置 SQL> show parameter sga_max_size 查看系统里面初始化参数 SQL> select * from V$SGAINFO; 动态性能视 阅读全文

posted @ 2017-08-19 08:51 zhang_x 阅读(93) 评论(0) 推荐(0) 编辑

17.08.02

摘要: instead of trigger视图触发器 replace 序列: SQL> create sequence test_seq increment by 1 start with 1 maxvalue 1000 nocycle cache 20; SQL> create table t1(x i 阅读全文

posted @ 2017-08-19 08:49 zhang_x 阅读(79) 评论(0) 推荐(0) 编辑

17.08.01

摘要: 集合操作 当列的数量和列的数值类型,要完全一致, 不能确定的时候,要用null和数值类型函数来确定 select employee_id, job_id from employees union all select employee_id, job_id from job_history; sel 阅读全文

posted @ 2017-08-19 08:46 zhang_x 阅读(110) 评论(0) 推荐(0) 编辑

17.07.29 分组函数 多表连接 子查询

摘要: 分组函数: 将得到的原始数据进行进一步的处理 count 对非空的数值做统计 只有 count(*) 不去除空值 处理过程: select From from where group by sum having 阅读全文

posted @ 2017-08-19 08:39 zhang_x 阅读(77) 评论(0) 推荐(0) 编辑

17.7.31

摘要: 有员工的部门名称; SQL> select department_name from departments where department_id in(select department_id from employees where department_id is not null); (i 阅读全文

posted @ 2017-08-19 08:39 zhang_x 阅读(73) 评论(0) 推荐(0) 编辑

17.07.26 Oracle安装

摘要: 修改主机名: 在root用户下, hostname node1.test.com vi /etc/sysconfig/network vi /etc/hosts vi ~oracle/.bash_profile $ netca 监听 $ lsnrctl status 监听状态 $ netstat - 阅读全文

posted @ 2017-08-19 08:38 zhang_x 阅读(62) 评论(0) 推荐(0) 编辑

17.07.28 SQL 函数

摘要: 排序:order by SQL> select last_name, salary from employees order by salary; 默认升序 SQL> select last_name, salary from employees order by salary desc; 降序 S 阅读全文

posted @ 2017-08-19 08:38 zhang_x 阅读(95) 评论(0) 推荐(0) 编辑

17.07.25 Linux8 任务计划

摘要: ps aux tty为 “?” 说明为后台进程 ps -ef | grep …… ps -fu root top M P q 退出 * 杀死进程 kill -l sleep 999& ps -ef | grep sleep pstree 21763(sleep的父进程pid) * 任务计划 serv 阅读全文

posted @ 2017-08-19 08:38 zhang_x 阅读(100) 评论(0) 推荐(0) 编辑

2017年7月27日

17.07.27 Oracle

摘要: * 操作数据 DML 语句 数据操作语言,在现有的结构上对表里的数据进行操作,增删查改 DDL 会改变表的数据结构 查找,行和列的交叉点: select list_name,salary 对列的筛选 from employees 表 where department-id=90; 对行的筛选 dis 阅读全文

posted @ 2017-07-27 19:40 zhang_x 阅读(105) 评论(0) 推荐(0) 编辑

2017年7月25日

17.07.24 Linux 7 文件系统管理

摘要: * 挂载和卸载文件系统 mount 挂载 -t 指定文件系统类型 -o 挂载选项 ro 以只读方式挂载 mount -o remount 尝试重新挂载一个已经挂载的文件系统 mount -o ro /dev/vg01/lv01 /dir01 mount touch /dir01/file01 报错 阅读全文

posted @ 2017-07-25 18:50 zhang_x 阅读(129) 评论(0) 推荐(0) 编辑

导航