当前位置:首页 > Solaris 10下安装Oracle 11g - 图文
project:::project.max-shmmemory=(privileged,2147483648,deny)
用以下命令检查resource control是否激活和进程所有权:
# su - oracle $ id -p
uid=100(oracle) gid=100(dba) projid=100(group.dba) $ prctl -n project.max-shm-memory -i process $$ process: 5754: -bash
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT project.max-shm-memory privileged 2.00GB - deny
设置shell limits
建议设置成以下表格里对应的值: Shell Limit TIME FILE DATA STACK NOFILES VMEMORY Recommended Value -1 (Unlimited) -1 (Unlimited) Minium value: 1048576 Minium value: 32768 Minium value: 4096 Minium value: 4194304 用以下命令可以查看shell limit值: ulimit -t ulimit -f ulimit -d ulimit -s ulimit -n ulimit -v
创建目录 查看目录大小
# df -k
创建安装目录
# mkdir -p /u01/app/oracle
创建数据文件目录
# mkdir /u02/oradata
更改目录所有者
# chown -R oracle:oinstall /u01/app/oracle # chown -R oracle:oinstall /u02/oradata
更改目录权限
# chmod -R 775 /u01/app/oracle # chmod -R 775 /u02/oradata
修改Oracle用户环境变量 用以下命令使图形界面可用:
$ xhostfully_qualified_remote_host_name
例如
$ xhost somehost.us.example.com
用以下命令切换到oracle帐号:
$ su - oracle
用以下命令查看shell类型:
$ echo $SHELL
运行shell启动脚本,用以下命令: 1. Bash Shell下: $ . ./.bash_profile
2. Bourne或Korn Shell下: $ . ./.profile 3. C Shell下: % source ./.login
如果本地没安装软件,则用以下设置远程系统DISPLAY: ? Bourne, Bash or Korn shell:
? ?
$ export DISPLAY=local_host:0.0
C shell:
% setenv DISPLAY local_host:0.0
以下检查DISPLAY是否设置正常:
Run the following command on the remote system to check if the shell and the DISPLAY environmental variable are set correctly:
echo $SHELL echo $DISPLAY
Now to enable X applications, run the following commands on the local computer:
$ xhost + fully_qualified_remote_host_name
To verify that X applications display is set properly, run a X11 based program that comes with the operating system such as xclock:
$ xclock
In this example, you can find xclock at /usr/X11R6/bin/xclocks. If
the DISPLAY variable is set properly, then you can see xclock on your computer screen. 设置/tmp目录
a. To determine the free disk space on each mounted file system use the following command:
b. # df -h /tmp
c. If necessary, enter commands similar to the following to create a
temporary directory on the file system that you identified, and set the appropriate permissions on the directory:
d. $ sudomkdir /mount_point/tmp e. $ sudochmoda+wr /mount_point/tmp f. # exit
g. Enter commands similar to the following to set the TMP and TMPDIR environment variables:
o Bourne, Bash, or Korn shell:
o o o o o
$ TMP=/mount_point/tmp $ TMPDIR=/mount_point/tmp $ export TMP TMPDIR
C shell:
% setenv TMP /mount_point/tmp % setenv TMPDIR /mount_point/tmp
设置ORACLE_BASE/ORACLE_SID ? Bourne, Bash, or Korn shell:
? ? ? ? ?
$ ORACLE_BASE=/u01/app/oracle $ ORACLE_SID=sales
$ export ORACLE_BASE ORACLE_SID
C shell:
% setenv ORACLE_BASE /u01/app/oracle % setenv ORACLE_SID sales
挂载安装光盘
1. Switch user to root:
2. $ su - root
3. If necessary, enter a command similar to the following to eject the currently mounted disc, then remove it from the drive:
4. # eject
5. Insert the disc into the disc drive.
6. To verify that the disc mounted automatically, enter a command similar to the following:
7. # ls /dvd/dvd0
8. If this command fails to display the contents of the disc, then enter a command similar to the following:
9. # /usr/sbin/mount -r -F hsfs /dev/dsk/cxtydzs2 /dvd
In this example, /dvd is the disc mount point directory
and /dev/dsk/cxtydzs2 is the device name for the disc device, for example/dev/dsk/c0t2d0s2.
10. If Oracle Universal Installer displays the Disk Location dialog box, then enter the disc mount point directory path. For example:
o Disc mounted automatically:
o /dvd/dvd0
o Disc mounted manually:
/dvd
开始安装(图形化界面)
1. To start Oracle Universal Installer, enter the following command:
2. $ /mount_point/db/runInstaller
If Oracle Universal Installer does not start, then refer to Oracle Database Installation Guide for information about how to troubleshoot X Window display problems.
3. The following table describes the recommended action for each Oracle Universal Installer screen. Use the following guidelines to complete the installation:
o If you need more assistance, or to choose an option that is not a default, click Help for additional information.
o If you encounter errors while installing or linking the software, then refer to Oracle Database Installation Guide for information about troubleshooting.
Note:
If you have completed the tasks listed previously, then you can complete the installation by choosing the default values on most screens.
Screen Recommended Action Configure Enter your e-mail address, preferably your My Oracle Support e-mail addresSecurity Us or user name in the Emailfield. pdates You can select the I wish to receive security updates via My Oracle Support check box to receive security updates. Enter your My Oracle Support password in the My Oracle Support Password field. Click Next. Download Starting with Oracle Database 11g Release 2 (11.2.0.2), you can use the SoftSoftware Uware Updates feature to dynamically download and apply latest updates. Selpdates ect one of the following options and click Next:
共分享92篇相关文档