`
goinglw
  • 浏览: 35299 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
Apache首次安装为服务后,会以本地系统账号System运行。因为System的安全权限,会具对此WEB服务器有很大的威胁,所以最好的办法是创建一个权限较低的帐户来替代这个帐号启动apache: 1.在计算机管理里的本地用户和组里面创建一个帐户,例如:apacheuser,密码设置好,加入guests组(如果出现问题,可以赋予user权限); 2.打开开始->管理工具->本地安全策略,在用户权限分配中选择“作为服务登陆”,添加apacheuser; 3.计算机管理-服务-apache,先停止apache服务,右击->属性,选择登陆,把单选框从本地系统帐户切换到此帐户,然 ...
SGA重要组成部分 SGA包含如下内存区域: 共享池 数据块缓冲区 重做日期缓冲 其他区域 查看sga SGA_MAX_SIZE参数:决定sga最大值 granules是sga大小的基本单位,最大值不能超过SGA_MAX_SIZE sag是一段连续的内存区域 查看granules SGA各个重要组成部件 shared pool共享池:存储解析后的sql语句\存储数据字典信息 Library Cache:存储解析后的sql、plsql语句 Data Dictionary Cache:数据字典信息,比如用户对表的操作权限等内容。 修改shared pool大小: ALTER S ...
oracle instance:oracle实例 一个实例只能对应一个数据库 一个数据库可以对应多个实例 instance由内存块和后台的进程组成 Connection & Session:链接和会话 客户端pc与服务器建立的tcp链接叫做一个Connection,oracle客户端和服务器后端进程建立的链接。 当建立连接成功后,就开始了一个会话,当断开连接后,会话结束。 Oracle Database:oracle数据库 数据库实际就是一堆文件的集合。 三种基本文件类型: 数据文件:存储数据。 控制文件:提供控制信息。 重做日志文件:记录数据库的改变。 其他文件: 参 ...

python笔记

python中的集合类型: print "%s %s %s %s" % ("字串",["数","组"],("元","组"),{'字典':123})

oracle update

为了方便起见,建立了以下简单模型,和构造了部分测试数据: 在某个业务受理子系统BSS中, SQL 代码 --客户资料表 create table customers ( customer_id number(8) not null, -- 客户标示 city_name varchar2(10) not null, -- 所在城市 customer_type char(2) not null, -- 客户类型 ) create unique index PK_customers on customers (customer_id) 由于 ...
创建测试表    SQL>   create   table   a(a   date);       表已创建。       创建一个自定义过程    SQL>   create   or   replace   procedure   test   as        2     begin        3     insert   into   a   values(sysdate);        4     end;        5     /       过程已创建。       创建JOB    SQL>   variable   ...
hibernate中,是不允许出现同一主键对象有两个不同session同时关联的情况,如果出现这种情况hibernate会抛出"org.springframework.orm.hibernate3.HibernateSystemException: Illegal attempt to associate a collection with two open sessions; nested exception is org.hibernate.HibernateException: Illegal attempt to associate a collection with two ...
在网上找了2天,没有一个成功,东拼西凑终于搞定。 其实方法很简单在jetty.xml中加入如下代码: <Set name="handler"> <New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection"> <Set name="handlers"> <Array type="org.mortbay.jetty.Handler& ...
主题文件在附件中。 1) 把color-theme.el拷贝到某个load-path中,比如我的是D:\Program Files\Emacs\emacs\site-lisp 2) 把themes目录也要拷贝到上面的路径中 3)在~/.emacs里添加下面几行: (require ‘color-theme) (color-theme-initialize) (color-theme-oswald) 第3行是我自己选择的一个主题,你可以换成你自己喜欢的,浏览里面 的主题可以用M-x color-theme-select,然后一个个地试,觉得哪个好 就把第三行替换成那个。
原文地址:http://netsecurity.51cto.com/art/200512/15131.htm 本文选自ChinaITLab网校课程《CIW网络安全工程师V3.0》 本小节的要点包括: ●常用网络服务安全 ■DNS ■WWW ■WEB ■FTP ●LINUX帐户安全 ■LINUX系统帐户文件 ■LINUX系统帐户安全 ●LINU ...
首先,创建一张log表,用于记录对emp2表的操作 create table emp2_log ( uname varchar2(20), action varchar2(10), atime date ); 创建触发器,触发器必须依附于一张表存在 create or replace trigger trig --没有 for each row参数,出发其只会执行一次 --after指在执行操作后,还额可以是befor --insert or delete or update on emp2,对emp2表进行insert or delete or update操作时,激活触发器 ...
编写函数: create or replace function sal_tax --传入参数 (v_sal number) --返回参数 return number is begin if(v_sal < 2000) then return 0.10; elsif(v_sal < 2750) then return 0.15; else return 0.20; end if; end; 使用函数: select sal_tax(sal) from emp;
带参数的存储过程: create or replace procedure p (v_a in number, v_b number, v_ret out number, v_temp in out number) --v_ret为输出参数 --v_temp为输入输出参数 is begin if (v_a > v_b) then v_ret := v_a; else v_ret := v_b; end if; v_temp := v_temp + 1; end; oracle在定义存储过程参数时,使用in关键字定义的参数为传 ...
创建存储过程,存储过程名称:p create or replace procedure p is v_sal emp.sal%type; begin select sal into v_sal from emp where empno = 7369; if (v_sal < 1200) then dbms_output.put_line('low'); elsif(v_sal < 2000) then dbms_output.put_line('middle'); else dbms_output.put_line ...
declare cursor c is select * from emp2 for update; --v_temp c%rowtype; begin for v_temp in c loop if(v_temp.sal < 2000) then update emp2 set sal = sal * 2 where curre of c; elsif (v_temp.sal = 5000) then delete form emp2 where current of c; end if; ...
Global site tag (gtag.js) - Google Analytics