Install mirror E 11g on Solaris 10 iSCSI 64 bit
I went to a client yesterday to install the 11g database, and made a record of the entire installation process and encountered problems. Because the customer cannot remotely connect to the server using his own machine or copy any files through a USB flash drive or a mobile hard disk, some records cannot be detailed and can only be roughly written by memory.
HOST: SUN Netra T4-1 M4000CPU: 8 core 2.85GHz memory: 32g system: Solaris 10 I. Check hardware requirements
-- View memory
#/Usr/sbin/prtconf | grep "Memory size" Memory size: 32768 Megabytes #/usr/sbin/swap-lswapfile dev swaplo blocks free/dev/dsk/c0t0d0s1 32, 9 16 8405360 8405360 -- a block is 512 k, so here is the 4G -- view the system architecture #/bin/isainfo-kv64-bit sparcv9 kernel modules note that if you download the solaris x86 media, it cannot be installed on, in addition, The iSCSI media can only be installed on a real machine and cannot be simulated by a virtual machine-view the available disk space # df-k/tmp must be at least 1 GB, currently, the installation of 30G # df-k for Oracle Enterprise requires 4.68G space, currently 197g ii. check software requirements-view Solaris kernel version # uname-r5.10 $ cat/etc/releaseSolaris 10 5/09 s10s_u7wos_08 iSCSI-swap (ISO8859-1) of the package to be installed) SUNWi15cs (ISO8859-15) mounts -- check the package # pkginfo-I SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibm SUNWlibms too large SUNWi1of SUNWi1cs SUNWi15cs too large if an unmounted mounting disk is found to be installed, run the pkgadd command to install the installation package pkgadd-d/path SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibm SUNWlibms bare metal SUNWi1of SUNWi1cs SUNWi15cs bare metal/path, which is the path to attach the disk. the following groups of users: the Oracle Inventory group (typically, oinstall) The OSDBA group (typically, dba) The Oracle software owner (typically, oracle) The OSOPER group (Optional. typically, always) -- The option group is optional -- view the oinstall group information # more/var/opt/oracle/oraInst. locinventory_loc =/oracle/oraInventoryinst_group = oinstall -- View dba group information # grep dba/etc/groupdba: 100: wcadmin, oracle -- add group #/usr/sbin/groupadd oinstall #/usr/sbin/groupadd dba -- View permission groups of oracle users # id-a oracleuid = 103 (oracle) gid = 102 (oinstall) groups = 100 (dba)
Note that the last item cannot be seen without the-a parameter, for example, # id oracle
Uid = 103 (oracle) gid = 102 (oinstall)
-- Add oracle users to the oinstall and dba groups #/usr/sbin/useradd-g oinstall-G dba oracle
-- Add the password file # passwd-r files oracle needs to enter the password and confirm 4. Configure OS Kernel Parameters -- Modify/etc/system set noexec_user_stack = 1 set semsys: seminfo_semmni = 100 set semsys: seminfo_semmns = 1024 set semsys: seminfo_semmsl = 256 set semsys: seminfo_semvmx = 32767 set shmsys: shminfo_shmmax = 4294967296 -- the actual value must be greater than the value set shmsys: shminfo_shmmni = 100 note that vim is not installed on solaris 10 by default. You can use vi or gedit, modify the value of each parameter to meet the minimum requirement for installation. The actual value of/etc/system already exists more than the preceding value. You can only modify the value listed above -- View project id # su-oracle
$ Id-puid = 103 (oracle) gid = 102 (oinstall) projid = 3 (default)
Here, it is different from the values in the official document. It is default rather than group. dba, but it does not affect the smooth installation. View project # cat/etc/project
System: 0 ::: user. root: 1: noproject: 2: default: 3: group. staff: 10 ::: group. dba: 100: Oracle default -- if there is no last line of content, you need to manually add 5. Create the relevant path and grant the oracle read and write permissions # mkdir-p/oracle # chown-R oracle: oinstall/oracle
# Chmod-R 775/oracle 6. Configure environment variables -- View shell type $ echo $ SHELL
/Bin/sh -- the environment variable file for modifying the environment variable solaris is. /. profile, with the Linux bash shell. bash_profile is different. For example, the oracle user's environment variable is/home/oracle /. profile # su-oracle $ TMP =/tmp $ TMPDIR =/tmp $ export tmp tmpdir $ ORACLE_SID = orcl
$ ORACLE_BASE =/oracle $ export ORACLE_SID oracle base $ DISPLAY = 192.168.1.181: 0.0 -- note that the IP address here is a host with a graphic interface, not db Server $ export DISPLAY $ umask 022 -- make sure that the ORACLE_HOME and TNS_ADMIN environment variables are not set (recommended for Oracle) $ unset ORACLE_HOME
$ Unset TNS_ADMIN -- after setting the above variables, you can run the env command to check $ env | more note: this is only valid for the current session and is not written. in the profile file. profile file, and finally use .. /. make the change take effect. Note that the source command cannot be used on solaris. 7. Copy the installation media #/usr/sbin/mount-r-F hsfs/dev/dsk/c0t0d0s1/dvd.
8. Install the database software #/mount_point/database/runInstaller-if the command cannot be found, Add. note: The oracle user must have the read permission for the mounted directory. Otherwise, the operation fails mainly because of the above steps. In fact, it is easier to configure than Linux, it is only possible that many people are not quite used to installing oracle databases on solaris for the first time. Everything has the first time. If you try to install oracle databases, you will experience the following problems: 1. swap is insufficient because the physical memory is 32 GB, but currently swap only provides 4 GB. The swap-l command can view the swap size currently configured. Add and solidify the swap file and run runInstaller again. OS-related patch missing: the package 124861-15 is mainly used for Oracle XML Developer's Kit (XDK), SunOS 5.10 Compiler Common patch for Sun C ++ (optional ), note that this description is optional. Therefore, you can select ignore to solve swap insufficiency and ignore the patch missing error. After the database software is successfully installed, dbca is followed, the steps on other platforms are the same, so the Appendix: solaris solution to swap insufficiency is not described in detail: 1. Add Swap
1. Become a Super User $ su-root
2. Create a swap file # mkfile nn [klblm]/path/filename for example: # mkfile 100 m swapfile
3. Activate the swap file #/usr/sbin/swap-a/path/filename
The swap file must be specified as an absolute path. filename indicates the file created in the previous step.
4. Fixed the swap and recorded the file name and Swap type in the/etc/vfstab file, for example,/path/filename--swap-no-
5. Verify whether/usr/sbin/Swap-l is added to the swap file
Ii. Delete swap
1. Become a Super User $ su-root
2. Use the swap-d command to reclaim swap space #/usr/sbin/swap-d/path/filename
3. Edit the/etc/vfstab file and remove the entity of the swap file.
4. reclaim this file from the file system # rm swap filename
5. Of course, if the swap space is not a file but a partition, you need to create a new file system and then mount it to the original file system.
Install Oracle 11gR2 (x64) in CentOS 6.4)
Steps for installing Oracle 11gR2 in vmwarevm
Install Oracle 11g XE R2 In Debian