易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle 10.2g 在CentOS 5.1的安装过程

第一步、检查操作系统环境
rpm -q gcc make binutils openmotif glibc setarch compat-db compat-gcc-34 openmotif compat-gcc-34-c++ compat-libstdc++-33
如果检测到哪个包没有装,则分别在ISO镜像文件中找到进行安装
挂载6张或7张ISO文件,
比如说:rpm -ivh /mnt/iso/3/CentOS/openmotif*
只要是没有装的都要进行安装
 
第二步、检查硬件环境
默认的为
kernel.shmmax = 33554432
kernel.shmall = 2097152
kernel.shmmni = 4096
vm.hugetlb_shm_group = 0
kernel.sem = 250        32000   32      128
fs.file-max = 191147
net.ipv4.ip_local_port_range = 32768    61000
 
运行如下命令设置:
cat &gt;&gt; /etc/sysctl.conf <&lt;EOF
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 191147
net.ipv4.ip_local_port_range = 32768 65000
fs.file-max = 65536
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
EOF
/sbin/sysctl -p
 
以 root 用户身份运行以下命令来验证您的设置:
# /sbin/sysctl -a | grep shm
# /sbin/sysctl -a | grep sem
# /sbin/sysctl -a | grep file-max
# /sbin/sysctl -a | grep ip_local_port_range
 
如果系统的参数设置的比上述参数值小,则编辑 /etc/sysctl.conf 文件,添加或更改这些参数。完成后,运行以下命令激活更改:
/sbin/sysctl -p
 
第三步、
1.vi /etc/security/limits.conf 行末添加以下内容:
#use for oracle
* soft     nproc   2047
* hard      nproc 16384
* soft      nofile 1024
* hard nofile 65536
 
2.vi /etc/pam.d/login 行末添加以下内容:
session required pam_limits.so
 
3.vi /etc/selinux/config 确保以下内容:
SELINUX=disabled
关闭 SELIINUX
 
第四步、设置主机名和 ip
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.100 &


相关文档:

Oracle笔记

Oracle 的代码表示及事例
 
1.  select + xxx + from + xxx   //查询语句  xxx 表示一个表  
     Select  *  from  + xxx   // * 表示一个列表中所有的内容
 
  类: 1)//  select * from country
 
   ......

解析oracle的rownum

对于rownum来说它是oracle系统顺序分配为从查询返回的行的编号,返回的第一行分配的是1,第二行是2,依此类推,这个伪字段可以用于限制查询返回的总行数,而且rownum不能以任何表的名称作为前缀。
举例说明:
例如表:student(学生)表,表结构为:
ID       char(6)      --学号
name    VA ......

oracle 索引

2009-07-16 10:59
索引创建策略
1.导入数据后再创建索引
2.不需要为很小的表创建索引
3.对于取值范围很小的字段(比如性别字段)应当建立位图索引
4.限制表中的索引的数目
5.为索引设置合适的PCTFREE值
6.存储索引的表空间最好单独设定
创建不唯一索引
create index emp_ename on employees(ename)
table ......

Oracle存储过程的执行

declare
msg varchar(1000);    --定义一个变量用于显示传出的信息
begin
PRO_TACCOUNT_RECOUNT ('B9D2B59A955541298D59EA8C35668CFD',msg);   --执行存储过程
dbms_output.put_line(msg);   --输出变量
end; ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号