Oracle 10g Installation and Db Creation on Rhel5 With Steps

3
Pre Installation log in as a root user check the ipaddress with this command ifconfig then go to /etc/hosts file and edit the ipaddres at the eof. now set the kernel paramaters use vi /etc/sysctl.conf to change the parameters kernel.shmall = 2097152 kernel.shmmax = 2147483648 # half the size of system RAM atleast kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144 edit that file and then from the promt issue this command /sbin/sysctl -p to check the new kernel values.. now create a new group and assing this group to a newuser groupadd dba useradd -g dba oracle #oracle is the username now change the password for the newly created user passwd oracle Edit the /etc/redhat-release file replacing the current release information (Red Hat Enterprise Linux Server release 5 (Tikanga) ) with the following: redhat-4 If u are using rhel 5 then u need to run the following packages from the rhel 5 dvd cd /media/cdrom/Server rpm -Uvh setarch-2* rpm -Uvh make-3* rpm -Uvh glibc-2* rpm -Uvh libaio-0* rpm -Uvh compat-libstdc++-33-3* rpm -Uvh compat-gcc-34-3* rpm -Uvh compat-gcc-34-c++-3* rpm -Uvh gcc-4* rpm -Uvh libXp-1* ------now log out from root user and log in to the new user oracle go to home directory of oracle user and paste the oracle software in the home di rectory.... Installation launch a new terminal from the home directory unzip the .zip file unzip 10201_database_linux32.zip the files will be automatically extracted in the directory named as database in the /home directory. now cd /home/database ./runInstaller copy the oracle home path from the first page of installation /home/nik/oracle/product/10.2.0/db_1 install the software while dbase creation window (if u want to create dbase manually then exit the cr

Transcript of Oracle 10g Installation and Db Creation on Rhel5 With Steps

8/6/2019 Oracle 10g Installation and Db Creation on Rhel5 With Steps

http://slidepdf.com/reader/full/oracle-10g-installation-and-db-creation-on-rhel5-with-steps 1/3

Pre Installationlog in as a root usercheck the ipaddress with this commandifconfigthen go to /etc/hosts file and edit the ipaddres at the eof.now set the kernel paramatersuse vi /etc/sysctl.conf to change the parameters

kernel.shmall = 2097152kernel.shmmax = 2147483648 # half the size of system RAM atleastkernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=262144

edit that file and then from the promt issue this command/sbin/sysctl -pto check the new kernel values..

now create a new group and assing this group to a newusergroupadd dbauseradd -g dba oracle #oracle is the usernamenow change the password for the newly created userpasswd oracleEdit the /etc/redhat-release file replacing thecurrent release information (Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following:

redhat-4If u are using rhel 5 then u need to run the following packages from the rhel 5dvdcd /media/cdrom/Server

rpm -Uvh setarch-2*

rpm -Uvh make-3*rpm -Uvh glibc-2*rpm -Uvh libaio-0*rpm -Uvh compat-libstdc++-33-3*rpm -Uvh compat-gcc-34-3*rpm -Uvh compat-gcc-34-c++-3*rpm -Uvh gcc-4*rpm -Uvh libXp-1*

------now log out from root user and log in to the new user oraclego to home directory of oracle user and paste the oracle software in the home directory....

Installation

launch a new terminalfrom the home directory unzip the .zip fileunzip 10201_database_linux32.zipthe files will be automatically extracted in thedirectory named as database in the /home directory.nowcd /home/database./runInstallercopy the oracle home path from the first page of installation

/home/nik/oracle/product/10.2.0/db_1install the softwarewhile dbase creation window (if u want to create dbase manually then exit the cr

8/6/2019 Oracle 10g Installation and Db Creation on Rhel5 With Steps

http://slidepdf.com/reader/full/oracle-10g-installation-and-db-creation-on-rhel5-with-steps 2/3

eation window)and launch a terminal log in as root user and run these 2 scriptssh /home/nik/oraInventory/orainsRoot.shandsh /home/nik/oracle/product/10.2.0/db_1/root.shclick next and the finish on the installation.

Post Installation

nowvi .bash_profileadd these lines at the end of the fileexport ORACLE_HOME=/home/nik/oracle/product/10.2.0/db_1export ORACLE_SID=orclexport PATH=$ORACLE_HOME/bin:$PATHexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHsave the file and run it

. .bash_profilenow login to databasesqlplus sys as sysdbaif u get the sql prompt then be sure that the installation is done correctly.---------------------------------------------------------

CREATION OF DATABASE1> Edit the bash_profile file

edit the Oracle_sid parameterSave this file and run it

2> make the directory wherever u want to have all the datafiles.mkdir -p /home/nik/oracle/nikhil/{datafile,controlfile,auxfile,temp,logfile

,dump/{bdump,udump}}3> go to oracle home directorycd $ORACLE_HOMEcd dbscreate a init filevi initnikhil.oradb_name=nikhildb_files=500control_files=/home/nik/oracle/nikhil/controlfile/ctrl.ctlshared_pool_size=500mundo_management=autobackground_dump_dest=/home/nik/oracle/nikhil/dump/bdumpuser_dump_dest=/home/nik/oracle/nikhil/dump/udumpcompatible=10.2.0save this file and quit4> recompile bash_profile file to sync the parameter file with it. .bash_profile5> Now loginsys as sysdbasys6> start the database in no mount phasestartup nomount7> Create the database with this create table syntax

create database testdatafile'/home/nik/oracle/nikhil/datafile/system01.dbf' size 100msysaux

8/6/2019 Oracle 10g Installation and Db Creation on Rhel5 With Steps

http://slidepdf.com/reader/full/oracle-10g-installation-and-db-creation-on-rhel5-with-steps 3/3

datafile '/home/nik/oracle/nikhil/auxfile/sysaux01.dbf' size 100mdefault temporary tablespace temptempfile '/home/nik/oracle/nikhil/temp/temp01.tmp' size 100mundo tablespace undo1datafile '/home/nik/oracle/nikhil/datafile/undo01.dbf' size 100mlogfile group 1 '/home/nik/oracle/nikhil/logfile/redo01.log' size 50m,group 2 '/home/nik/oracle/nikhil/logfile/redo02.log' size 50m;

8> now run some predefined scriptssql>@ ?/rdbms/admin/catalog.sqlSQL> @ ?/rdbms/admin/catproc.sqlSQL>@ ?/rdbms/admin/utlsampl.sqlnow shut down the databaseSQL> shut immediatestart the databasestartupand run this scriptSQL> @ ?/rdbms/admin/pupbld.sqlfinish with the db creation