Вы находитесь на странице: 1из 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

eation window) and launch a terminal log in as root user and run these 2 scripts sh /home/nik/oraInventory/orainsRoot.sh and sh /home/nik/oracle/product/10.2.0/db_1/root.sh click next and the finish on the installation. Post Installation now vi .bash_profile add these lines at the end of the file export ORACLE_HOME=/home/nik/oracle/product/10.2.0/db_1 export ORACLE_SID=orcl export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH save the file and run it . .bash_profile now login to database sqlplus sys as sysdba if u get the sql prompt then be sure that the installation is done correctly. ---------------------------------------------------------

CREATION OF DATABASE 1> Edit the bash_profile file edit the Oracle_sid parameter Save 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 directory cd $ORACLE_HOME cd dbs create a init file vi initnikhil.ora db_name=nikhil db_files=500 control_files=/home/nik/oracle/nikhil/controlfile/ctrl.ctl shared_pool_size=500m undo_management=auto background_dump_dest=/home/nik/oracle/nikhil/dump/bdump user_dump_dest=/home/nik/oracle/nikhil/dump/udump compatible=10.2.0 save this file and quit 4> recompile bash_profile file to sync the parameter file with it . .bash_profile 5> Now login sys as sysdba sys 6> start the database in no mount phase startup nomount 7> Create the database with this create table syntax create database test datafile'/home/nik/oracle/nikhil/datafile/system01.dbf' size 100m sysaux

datafile '/home/nik/oracle/nikhil/auxfile/sysaux01.dbf' size 100m default temporary tablespace temp tempfile '/home/nik/oracle/nikhil/temp/temp01.tmp' size 100m undo tablespace undo1 datafile '/home/nik/oracle/nikhil/datafile/undo01.dbf' size 100m logfile 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 scripts sql>@ ?/rdbms/admin/catalog.sql SQL> @ ?/rdbms/admin/catproc.sql SQL>@ ?/rdbms/admin/utlsampl.sql now shut down the database SQL> shut immediate start the database startup and run this script SQL> @ ?/rdbms/admin/pupbld.sql finish with the db creation

Вам также может понравиться