配置ssh及使用公钥认证访问
配置ssh及使用公钥认证访问Ssh软件升级在安装redhat5EE时,可以选择安装ssh。默认安装的openssh是4.3版本,不能重设访问的根目录,也无法实现禁止访问根目录上层的系统目录。通过将openssh升级到当前最新版本5.5p1后,能够解决旧版本不具有的一些功能。 升级需要下载的软件包括zlib-1.2.5.tar.gz,openssl-1.0.0.tar.gz和openssh-5.5p1.tar.gz。下载地址可通过google查询到。升级过程可参考:http://hi.baidu.com/cnlongmeng/blog/item/eff9f1fc003a41f4fd037f8d.html下面摘录并修改下上面网页的主要内容(网页内容中升级的三个文件
行列转换
drop table test;create table test(name varchar2(10),val varchar2(10));insert into test values('aaa',20);insert into test values('aaa',30);insert into test values('aaa',40);insert into test values('aaa',50);insert into test values('aaa',60);insert into test values('bbb',15);insert into test values('bbb',25);insert into test values('bbb',35);insert into test values('ccc',12);insert into test values('ccc',22);select * from test;select Name,sum(decode(tmp.rn,1,val)) val1,sum(decode(tmp.rn,2,val)) va