- 操作系统核心参数设置
- solaris的核心参数在/etc/system文件中配置。需要配置的核心参数如下:
- 共享内存相关核心参数
- SHMMAX 4294967296
- SHMMIN 1
- SHMMNI 200
- SHMSEG 30
- 信号量相关核心参数
- SEMMNI 100
- SEMMSL 510 (该参数由oracle数据库中的processes参数加10得到。数据库的processes设为500)
- SEMMNS 1520 (该参数由各个instance的processes值和加上各instance中processes的最大值,再加上10乘instance数的积得到。)
- SEMOPM 100
- SEMVMX 32767
- 按如下方式修改核心参数文件:
- #vi /etc/system
- set shmsys:shminfo_shmmax = 4294967296
- set shmsys:shminfo_shmmin = 1
- set shmsys:shminfo_shmmni = 200
- set shmsys:shminfo_shmseg = 30
- set semsys:seminfo_semmni = 100
- set semsys:seminfo_semmsl = 510
- set semsys:seminfo_semmns = 1520
- set semsys:seminfo_semopm = 100
- set semsys:seminfo_semvmx = 32767
- 注意:在修改完核心参数后,重启操作系统使修改生效。
- 用如下命令重启操作系统:
- #shutdown –y –g0 –i6
- 创建oracle文件系统
- 创建oracle文件系统使用的分区(c0t1d0s0)
- #format
- Specify disk (enter its number): 1
- FORMAT MENU:
- disk - select a disk
- type - select (define) a disk type
- partition - select (define) a partition table
- current - describe the current disk
- format - format and analyze the disk
- repair - repair a defective sector
- label - write label to the disk
- analyze - surface analysis
- defect - defect list management
- backup - search for backup labels
- verify - read and display labels
- save - save new disk/partition definitions
- inquiry - show vendor, product and revision
- volname - set 8-character volume name
- ! - execute , then return
- quit
- format> partition
- PARTITION MENU:
- 0 - change `0' partition
- 1 - change `1' partition
- 2 - change `2' partition
- 3 - change `3' partition
- 4 - change `4' partition
- 5 - change `5' partition
- 6 - change `6' partition
- 7 - change `7' partition
- select - select a predefined table
- modify - modify a predefined partition table
- name - name the current table
- print - display the current table
- label - write partition map and label to the disk
- ! - execute , then return
- quit
- partition> 0
- Part Tag Flag Cylinders Size Blocks
- 0 root wm 0 - 3868 8.69GB (3869/0/0) 18230728
- Enter partition id tag[root]:
- Enter partition permission flags[wm]:
- Enter new starting cyl[0]:
- Enter partition size[18230728b, 3869c, 8901.72mb, 8.69gb]: 6gb
- partition> label
- Ready to label disk, continue? y
- 创建文件系统
- # newfs /dev/rdsk/c0t1d0s0
- newfs: construct a new file system /dev/rdsk/c0t1d0s0: (y/n)? y
- # mkdir /oracle
- 修改vfstab文件
- # vi /etc/vfstab
- /dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 /oracle ufs 2 yes
- ……
- mount文件系统
- # mount /oracle
- 用户和组设置
- 数据库服务器上,除系统创建的用户外,应有如下一些用户:
- 用户名 home目录 所在组 用途
- Oracle /oracle Dba oracle用户
- #groupadd dba
- #useradd –g dba -u 101 -m -d /oracle –s /usr/ksh oracle
- 修改oracle用户的环境变量
- # su – oracle
- $ vi .profile如下:
- ORACLE_BASE=/oracle/app/oracle
- ORACLE_HOME=/oracle/app/oracle/product/8.1.7
- export ORACLE_BASE ORACLE_HOME
- ORACLE_SID=bill
- ORACLE_TERM=vt100
- TERM=vt100
- NLS_LANG=American_America.ZHS16CGB231280
- ORA_NLS33=/oracle/app/oracle/product/8.1.7/ocommon/nls/admin/data
- export ORACLE_SID ORACLE_TERM TERM NLS_LANG ORA_NLS33
- PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$ORACLE_HOME/bin:/usr/openwin/bin:/sbin:.
- export PATH
- CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORCLE_HOME/network/jlib:.
- Export CLASSPATH
- DISPLAY=135.161.25.5:0.0
- export DISPLAY
- 使环境变量生效可用如下两中方法:
- $exit
- #su – oracle
- 在/oracle目录下:
- $. ./.profile
- 最后是退出,然后用oracle用户登陆,开始安装oracle就可以了.剩下的都是一些截图,不会贴,只能写到这里了.安装的时候都有提示.就比较容易了.
阅读(2710) | 评论(1) | 转发(0) |