Minimal installation of Oracle10gR2 on VMWare

Source: Internet
Author: User
Welcome to the Oracle community forum and interact with 2 million technical staff to install RedHatAdvancedServer. I have always installed RedHatAdvancedServer with minimum installation options, and then installed the necessary development environment and X11 components, this saves a lot of space (RHEL3 is installed at least 580 M, RHEL4 is 646M, and X11 and necessary

Welcome to the Oracle community forum and interact with 2 million technical staff> go to RedHat Advanced Server Installation. I have always installed RedHat Advanced Server with minimum installation options, then install the necessary development environment and X11 components to save a lot of space (RHEL3 is installed at least 580 M, RHEL4 is around M, and X11 and necessary

Welcome to the Oracle community forum and interact with 2 million technical staff> enter

Install RedHat Advanced Server
I have always installed the RedHat Advanced Server with the minimum installation, and then installed the necessary development environment and X11 components. This saves a lot of space (RHEL3 is installed at a minimum of 580 MB, RHEL4 is about 64 6 m, plus X11 and the necessary development environment, a little more than m ). how to manually install necessary development libraries and X11 environments?
RHEL3
Put the second installation disk and run the following command:
Mount/mnt/cdrom
Cd/mnt/cdrom/RedHat/RPMS
Rpm-ivh cpp *. rpm
Rpm-ivh XFree86-4.3 *. rpm XFree86-base-fonts-4 *. rpm \
XFree86-font-utils-4 *. rpm XFree86-xauth-4 *. rpm \
XFree86-xfs-4 *. rpm chkfontpath *. rpm xinitrc *. rpm \
Switchdesk *. rpm ttmkfdir *. rpm XFree86-tools *. rpm \
Desktop-file-utils *. rpm gtk +-1.2 *. rpm qt-3.1.2 *. rpm \
Libmng-1 *. rpm XFree86-Mesa-libGLU *. rpm xterm *. rpm \
Gdk-pixbuf *. rpm
Put the third installation disk and run the following command:
Mount/mnt/cdrom
Cd/mnt/cdrom/RedHat/RPMS
Rpm-ivh gcc-3 *. rpm glibc-devel *. rpm glibc-headers *. rpm \
Glibc-kernheaders *. rpm \
Gcc-c ++-3.2.3-42. i386.rpm \
Libstdc ++-devel-*. i386.rpm \
Compat-libstdc ++-*. i386.rpm


RHEL4
RedHat Installation Development Kit
Disk2: rpm-I cpp-3.4.3-22.1.i386.rpm
Disk3: rpm-I gcc-3.4.3-22.1.i386.rpm \
Glibc-devel-2.3.4-2.9.i386.rpm \
Glibc-headers-2.3.4-2.9.i386.rpm \
Glibc-kernheaders-2.4-9.1.87.i386.rpm \
Kernel-devel-2.6.9-11.EL.i686.rpm
RedHat install X11
Disk2: rpm-I xorg-x11-font-utils-6.8.2-1.EL.13.6.i386.rpm \
Xorg-x11-xauth-6.8.2-1.EL.13.6.i386.rpm \
Xorg-x11-xfs-6.8.2-1.EL.13.6.i386.rpm \
Switchdesk-4.0.6-3.noarch.rpm \
Ttmkfdir-3.0.9-14.i386.rpm \
Xterm-192-1.i386.rpm \
Xorg-x11-Mesa-libGLU-6.8.2-1.EL.13.6.i386.rpm
Disk 3 rpm-I xorg-x11-6.8.2-1.EL.13.6.i386.rpm \
Chkfontpath-1.10.0-2.i386.rpm \
Xinitrc-4.0.14-1.noarch.rpm \
Fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm \
Xorg-x11-6.8.2-1.EL.13.6.i386.rpm \
Preparations before installation
1. Change the default value of sys. shmmax to 32 M. You can change it to M or M. Add sys. shmmax = To the end of/etc/sysctl. conf. <你的值> , Run sysctl-p to make it take effect.
2. Run ln-s/usr/lib/libstdc ++. so.6.0.3/usr/lib/libstdc ++. so.5 on RHEL4 Update1.
3. Install the libaio library on the third installation disk.

Install Oracle 10g Release 2
There will be no problems during the installation process. To save space, I have deleted some items. The $ ORACLE_HOME directory contains the jre and jdk directories. You can delete the contents under the jre, create a software connection. The command is as follows:

Rm-fr $ ORACLE_HOME/jre
Ln-s $ ORACLE_HOME/jdk/jre $ ORACLE_HOME/jre/1.4.2

In addition, some large files under $ ORACLE_HOME/assistants/dcba/templates are deleted. The two files can have a total space of MB. there is no problem during installation, and there is no essential difference with the first version or Oracle 9i.
Create a database
You can use dbca to create and generate the database's corner book, exit dbca, and then run the generated corner book. There is no problem. I installed the operating system on a 3G VMware 5 Workstation machine, and Oracle generated a library, which is about MB of space.
Appendix A: Database creation statement
Connect "SYS"/"& sysPassword" as SYSDBA
Set echo on
Spool/home/oracle/createdb/CreateDB. log
Startup nomount pfile = "/home/oracle/createdb/init. ora ";
Create database "DB10G"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
DATAFILE '/home/oracle/oradata/DB10G/system01.dbf' SIZE 256 M REUSE EXTENT MANAGEMENT LOCAL
Sysaux datafile '/home/oracle/oradata/DB10G/sysaux01.dbf' SIZE 64 M REUSE SMALLFILE
Default temporary tablespace temp tempfile '/home/oracle/oradata/DB10G/temp01.dbf'
SIZE 48 M REUSE SMALLFILE
Undo tablespace "UNDOTBS1" DATAFILE '/home/oracle/oradata/DB10G/undotbs01.dbf' SIZE 128 M REUSE
Character set WE8ISO8859P1
National character set AL16UTF16
LOGFILE
GROUP 1 ('/home/oracle/oradata/DB10G/redo01.log') SIZE 51200 K,
GROUP 2 ('/home/oracle/oradata/DB10G/redo02.log') SIZE 51200 K,
GROUP 3 ('/home/oracle/oradata/DB10G/redo03.log') SIZE 51200 K
User sys identified by "& sysPassword" user system identified by "& systemPassword ";
Spool off

Appendix B: create the required role library for Database creation
Connect "SYS"/"& sysPassword" as SYSDBA
Set termout off
Set echo on
Spool/home/oracle/createdb/CreateDBCatalog. log
@/Home/oracle/product/10g/rdbms/admin/catalog. SQL;
@/Home/oracle/product/10g/rdbms/admin/catblock. SQL;
@/Home/oracle/product/10g/rdbms/admin/catproc. SQL;
@/Home/oracle/product/10g/rdbms/admin/catoctk. SQL;
@/Home/oracle/product/10g/rdbms/admin/owminst. plb;
Connect "SYSTEM"/"& systemPassword"
@/Home/oracle/product/10g/sqlplus/admin/pupbld. SQL;
Connect "SYSTEM"/"& systemPassword"
Set echo on
Spool/home/oracle/createdb/sqlPlusHelp. log
@/Home/oracle/product/10g/sqlplus/admin/help/hlpbld. SQL helpus. SQL;
Spool off

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.