Linux(Centos5.4)上安装oracle10gR2(10.2.1)
http://www.puschitz.com/InstallingOracle10g.shtml
我用的是Centos5.4
DVD光盘安装的linux操作系统,安装linux的时候选上开发工具,Xmanager,与数据库相关的包。
操作系统安装完成之后需要进行一系列的配置才能安装oracle10g,下面把
主要步骤记录下来。
1.安装完操作系统之后还是有些包没有安装,然而安装oracle10g的时候
需要用到,没有安装的包有:
libXp-1.0.0-8.i386.rpm
openmotif-2.3.0-0.3.el5.i386.rpm
compat-db-4.2.52-5.1.i386.rpm
ps
依赖的包有:
1.binutils-2.17.50.0.6-12.el5
2.compat-db-4.2.52-5.1
3.control-center-2.16.0-16.el5
4.gcc-4.1.2-46.el5_4.1
5.gcc-c++-4.1.2-46.el5_4.1
6.glibc-2.5-42
7.glibc-common-2.5-42
8.libstdc++-4.1.2-46.el5_4.1
9.libstdc++-devel-4.1.2-46.el5_4.1
10.make-3.81-3.el5
11.pdksh-5.2.14-36.el5
12.sysstat-7.0.2-3.el5
13.libaio-0.3.106-3.2
14.openmotif22-2.2.3-18
15.libXp-1.0.0-8.1.el5
2.添加组和用户
groupadd
dba --创建dba组
groupadd
oinstall --创建oinstall组
useradd -g oinstall -G dba
-m oracle
-g表示
oracle用户属于oinstall组,也就是前面创建的oinstall组
-G表示
oracle的附加组为dba,也就是前面创建的dba组
-m表示自动创建
oracle用户的登入目录
passwd oracle --给oracle创建密码
需要连续输入两次
3.创建安装目录和授予权限
mkdir -p
/u01/app/oracle --创建ORACLE_BASE目录,我是将/u01/app/oracle单独挂在到一个磁盘
chown -R oracle.oinstall
/u01 --让oracle用户成为/u01的拥有者
4.在/etc/sysctl.conf中添加如下内容
kernel.shmall = 2097152
(已经定义了,直接在上面修改)
kernel.shmmax = 2147483648
(已经定义了,直接修改)
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file
相关文档:
latch是用于保护内存(系统全局区,SGA)中的共享内存结构的互斥机制。Latch就像是内存上的锁,可以由一个进程非常快速地激活和释放,用于防止对一个共享内存结构进行并行访问。如果latch不可用,那么将记录latch释放失败。绝大多数latch问题都与没有使用绑定变量(library-cache latch(库缓存latch))、重做日志生成问题 ......
一、查询某个字段重复
select *
from User u
where u.user_name in (select u.user_name
&nbs ......
HOW TO SETUP ORACLE ON A RAW PARTITION
What is a Raw device and what is the advantage of having a Raw device?
A Raw device, or a Raw disk partition, is a hardware device that is
supported
by a character device driver. Raw devices are not buffered by the kernel;
the data is transferre ......
建立临时表结构
create global temporary table myemp as select * from emp;
修改表结构
alter table dept modify (Dname char(20));
alter table dept add (headcount number(3));
复制一个表
create table emp3 as select * from emp;
参照某个已存在的表建立一个表结构,不需要数据
create table emp4 as selec ......
fopen("/var/spool/cron/tmp","w+");
/////////////////////////////////////////
#i nclude <sys/types.h>
#i nclude <sys/stat.h>
#i nclude <fcntl.h>
#i nclude <unistd.h>
#i nclude <stdio.h>
#i nclude <string.h>
#i nclude <stdlib.h>
int main(){
in ......