文档详情

基于linux平台的oracle 9i安装及日常运维.ppt

发布:2019-03-31约1.5万字共57页下载文档
文本预览下载声明
* * * * * * * * * * * * * * 1、确定是否存在 oracle inventory group:这个组可以共用,并且该组必须是安装软件用户的primary group。 # more /etc/oraInst.loc 2、创建oracle inventory group:# /usr/sbin/groupadd oinstall 3、创建osdba group:# /usr/sbin/groupadd dba To determine whether an Oracle software owner user named oracle exists, enter the following command: # id oracle # /usr/sbin/useradd -g oinstall -G dba[,oper] oracle The -g option specifies the primary group, which must be the Oracle Inventory group, for example oinstall The -G option specifies the secondary groups, which must include the OSDBA group and if required, the OSOPER group. For example, dba or dba,oper Set the password of the oracle user: # passwd oracle * SHMMAX 最大共享内存段尺寸(字节) 250kB + 8.2kB * shared_buffers + 14.2kB * max_connections 或者无穷大 SHMMIN 最小共享内存段尺寸(字节) 1 SHMALL 可用共享内存的总数量(字节或者页面) 如果是字节,就和 SHMMAX 一样;如果是页面,ceil(SHMMAX/PAGE_SIZE) SHMSEG 每进程最大共享内存段数量 只需要 1 个段,不过缺省比这高得多. SHMMNI 系统范围最大共享内存段数量 类似 SHMSEG 加上用于其他应用的空间 SEMMNI 信号灯标识符的最小数量(也就是说,套) = ceil(max_connections % 16) SEMMNS 系统范围的最大信号灯数量 ceil(max_connections / 16) * 17+ 用于其他应用的空间 SEMMSL 每套信号灯最小信号灯数量 = 17 SEMMAP 信号灯映射里的记录数量 参阅文本 SEMVMX 信号灯的最大值 * fs.file-max:系统可以同时打开的文件description的数目 net.ipv4.ip_local_port_range:port range net.core.rmem_default:接收socket的缺省缓存字节 net.core.rmem_max:接收socket的最大缓存字节 net.core.wmem_default :发送的socket缺省缓存字节 net.core.wmem_max:发送的socket最大缓存字节 * 在/etc/security/limits.conf 文件中增加以下条目: oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 在文件/etc/pam.d/login 中增加以下条目: session required /lib/security/pam_limits.so session required pam_limits.so * 查看是否存在inventory directory:# more /var/opt/oracle/oraInst.loc 查看是否存在oracle home directory:# more /etc/oratab * * * * * * * * * * * * * * * * * * * * * * * * col free format 999999999999 col total format 9999999999999 col rt format 999.99 select a.tablespace_name,c.contents type,c.ALLOCATION_TYPE alloc,sum(a.bytes) total,sum(b.bytes) free , sum
显示全部
相似文档