You are on page 1of 9

ORACLE 10G INSTALLATION ON 172.24.143.143(LOCAL-SERVER) 1.

Take the Oracle users backup through exp command : Connect server with user oracle/oracle : $exp [user name]/[passwd] Enter array fetch buffer size: 4096 > 30000 Export file: expdat.dmp >[Your dmp file name ] (1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U > 2 Export grants (yes/no): yes >y Export table data (yes/no): yes >y Compress extents (yes/no): yes >y User to be exported: (RETURN to quit) > press only Enter .. .. Export terminated successfully without warnings 2. Take the cold back up as follows : a. Shutting down the database as follows : Connect server with user oracle/oracle $sqlplus /nolog SQL>/as sysdba SQL>shutdown immediate ; Please wait till the message displaysdatabase closed. b. Copy physically the SYS, Data , ctl, Redo and .dbf files with cp command which are located in the following destination : /u01/oradata/SSSREF/ in a new folder which are created by you for future using.e.g. $cp tbs_indx.dbf [path of new created folder] 3. Take the back up of init.ora file or pfile with cp command which is located in following location : /u01/oracle10g/dbs/ 4. Similarly take the back up of listener. ora and tnsname.ora which will be generally available in the following destination : u01/oracle10g/network/admin/ 5. Next take the back up of the oratab file which will be available on /var/opt/oracle/ 6. For our safer side take the whole export backup of the SSSREF Database as same as step 1. Now start up with installation stuff for Oracle -10g:-> Step1:- OS LEVEL SETTINGS. Step2:- Down loading the software.

Step 3: Down loading the GUI Based X-windows from down load.com Step 4 : Running the necessary scripts. Step 5:- check out and test with installation done.

Step1:- OS LEVEL SETTINGS :


1. Verify our OS version with the command : uname a 2. Verify weather our OS is 64 bit or 32 bit with command : isainfo -kv 3. Verify the below following patches are present or not , with using below command : patchadd -p | grep <patch_number> Patches : 112233-11: SunOS 5.9: Kernel Patch 111722-04: SunOS 5.9: Math Library (libm) patch 4 Check the following executables are present in OS side or not. i.e given below Executables must be present in /usr/ccs/bin/ : make, ar, ld, nm.

5. Check the OS level space for oracle binaries with command df h or df k. ***The Oracle installer will need access to a directory with at least 400 Mb of free space for writing temporary files during installation. Usually /tmp serves this purpose. If /tmp on your database server has less than 400 Mb of free space, then you will need to locate another directory with sufficient free space for use during the installation. 6. Set the ORACLE_HOME and LD_LIBRARY PATH in oracle users .profile ORACLE_SID=SSSREF export ORACLE_SID ORACLE_HOME=/u01/oracle10g/ export ORACLE_HOME PATH=/usr/bin:/usr/local/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:/u01/oracle10g /bin/ export PATH LD_LIBRARY_PATH=/usr/local/lib:/u01/oracle10g/lib32 export LD_LIBRARY_PATH

The changes we have done is bold black letters

Step2:- Down loading the software. 1. Create a folder e.g. ora10g_temp and Download the ship_rel10_sol64_db.cpio.gz file
Oracle Meta link to above folder. 2 Now gunzip and extract the following file as follows : $gunzip ship_rel10_sol64_db.cpio.gz $cpio -idm < ship_rel10_sol64_db.cpio

3. Create a folder named oracle10g (Because all files after installation will be copied here and our ORACLE_HOME will also be /u01/oracle10g).

Step 3: Database installation steps


1. Go to the X-window system : StartProgramXmanager2Xbrowser. 2. Given the IP of DB server in address box. 3. Given the user name and password as oracle/oracle. 4. Open a new terminal window. 5. Now go to the home path and then run the .installer.sh i.e Cd /u01/ora10g_temp/Disk1/install/ $ sh ./runinstaller.sh 6. After completing upto 80 % the command prompts you to ask to go to specific root in terminal mode directory and then we have to press enter in the GUI. 7. The GUI prompt will lead to next further screens we have to just press next &next in the one step before last we have to choose for the check box install oracle software without creating the database . 8. So it will install only the software, But it will not create the database in the next step the screen shows or displays that oracle 10g installation is successfully . 9.Before creating the database we have to do the necessary changes in init.ora like setting up the exact paths for data file, ctl and log file and comment the Archive destination.. 10. And only delete up the contents only the 9i s Data file, ctl file and SYS but dont delete the folders 11. Now to ahead for creating the Database so first start the database at no mount mode i.e illustrated below. Connect server with user oracle/oracle $sqlplus /nolog SQL>connect sys as sysdba SQL>startup nomount; SQL>connected to the idle instance;

12. In this step we have to create a database by running through the scripts which is given below SQL> CREATE DATABASE SSSREF USER SYS IDENTIFIED BY passw0rd USER SYSTEM IDENTIFIED BY passw0rd logfile GROUP 1 ( '/u01/oradata10g/SSSREF/redo/redo01_1.log', '/u01/oradata10g/SSSREF/redo/redo01_2.log' ) SIZE 50M, GROUP 2 ( '/u01/oradata10g/SSSREF/redo/redo02_1.log', '/u01/oradata10g/SSSREF/redo/redo02_2.log' ) SIZE 50M, GROUP 3 ( '/u01/oradata10g/SSSREF/redo/redo03_1.log', '/u01/oradata10g/SSSREF/redo/redo03_2.log' ) SIZE 50M maxdatafiles 254 maxinstances 8 maxlogfiles 32 maxinstances 1 maxloghistory 1 maxlogfiles 5 character set UTF8 national character set UTF8 DATAFILE '/u01/oradata10g/SSSREF/SYS/system01.dbf' SIZE 300M REUSE EXTENT MANAGEMENT LOCAL DEFAULT TEMPORARY TABLESPACE tempts1 TEMPFILE '/u01/oradata10g/SSSREF/SYS/tempts1.dbf' SIZE 20M REUSE UNDO TABLESPACE undotbs DATAFILE '/u01/oradata10g/SSSREF/SYS/undotbs01.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED; 13.Now after few seconds it will displays that the database is created i.e SQL> DATABASE CREATED 14. Now run the necessary scripts like catalog.sql, cataproc.sql ,and pupbld.sql which will be available in the following destination. SQL> /u01/oracle10g/rdbms/admin/catalog.sql SQL> /u01/oracle10g/rdbms/admin/catproc.sql 15. After successfully running of the above scripts we have to run the given for user authentication. SQL>@ /u01/oracle10g/sqlplus/admin/pupbld.sql 16. Next we to create table spaces ,datafiles, by running the below scripts i.e SQL> create tablespace LOB_SEGMENTS DATAFILE '/u01/oradata/SSSREF/tbs_lob_segments.dbf' SIZE 500M

DEFAULT STORAGE ( INITIAL 200K NEXT 200K MINEXTENTS 1 MAXEXTENTS 500 PCTINCREASE 0 ); create tablespace asset_data datafile '/u01/oradata/SSSREF/tbs_asset_data.dbf' SIZE 500M default storage ( INITIAL 200K NEXT 200K MINEXTENTS 1 MAXEXTENTS 500 PCTINCREASE 0 ); create tablespace indx datafile '/u01/oradata/SSSREF/tbs_indx.dbf' size 100M DEFAULT STORAGE ( INITIAL 160K NEXT 160K MINEXTENTS 10 MAXEXTENTS UNLIMITED PCTINCREASE 0); 17.Next have to create the necessary users by running the below script SQL> create user asv519 identified by asv519 default tablespace asset_data; grant connect, resource to asv519; 18.Now we have to unlock the user other wise it will not allow to login to user session area , i.e SQL>grant execute on dbms_lock to asv519; 19.Now again once bounce the database i.e Connect server with user oracle/oracle $sqlplus /nolog SQL>/as sysdba SQL>shutdown immediate 20. In this step up the tnsnames.ora and listener .ora in by doing necessary changes in the given path u01/oracle10g/network/admin/tnsnames.ora # TNSNAMES.ORA Network Configuration File: /u01/oracle/app/product/9.2.0.6/network/admin/tnsnames.ora # Generated by Oracle configuration tools. STANDBY = (DESCRIPTION = (ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 172.24.143.143)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = standby) (SERVER = DEDICATED) ) ) SSSREF = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.24.143.143)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = SSSREF) ) )

21. Next please configure and up the listener.ora # LISTENER.ORA Network Configuration File: / u01/oracle10g/network/admin/listner.ora # Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.24.143.143)(PORT = 1521)) ) (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = u u01/oracle10g/network/admin/listerer. ora) (PROGRAM = extproc) )

(SID_DESC = (GLOBAL_DBNAME = SSSREF) (ORACLE_HOME = u01/oracle10g/network/admin/listener.ora ) (SID_NAME = SSSREF) ) (SID_DESC = (GLOBAL_DBNAME = standby) (ORACLE_HOME = u01/oracle10g/network/admin/listner.ora ) (SID_NAME = standby) ) )

Please start the the listner SunOS 5.9 login: oracle Password: Last login: Wed Feb 21 12:17:01 from 172.24.194.221 Sun Microsystems Inc. SunOS 5.9 Generic May 2002 $ lsnrctl LSNRCTL for Solaris: Version 10.1.0.2.0 - Production on 21-FEB-2007 16:33:22 Copyright (c) 1991, 2004, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> start Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.24.143.143) (PORT=1521))) STATUS of the LISTENER -----------------------Alias LISTENER Version TNSLSNR for Solaris: Version 10.1.0.2.0 - Production Start Date 16-FEB-2007 17:01:22 Uptime 4 days 23 hr. 32 min. 5 sec Trace Level off

Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/oracle10g/network/admin/listener.ora Listener Log File /u01/oracle10g/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.24.143.143)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) Services Summary... Service "SSSREF" has 1 instance(s). Instance "SSSREF", status READY, has 1 handler(s) for this service... The command completed successfully 22. Please check the the listner status by using the above command LSNRCTL> status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.24.143.143) (PORT=1521))) STATUS of the LISTENER -----------------------Alias LISTENER Version TNSLSNR for Solaris: Version 10.1.0.2.0 - Production Start Date 16-FEB-2007 17:01:22 Uptime 4 days 23 hr. 32 min. 5 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/oracle10g/network/admin/listener.ora Listener Log File /u01/oracle10g/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.24.143.143)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) Services Summary... Service "SSSREF" has 1 instance(s). Instance "SSSREF", status READY, has 1 handler(s) for this service... The command completed successfully 23.Now please up the oracle server by giving the following commands Connect server with user oracle/oracle $sqlplus /nolog SQL>Startup; 24. Now here you have to check the name of the database. SQL>select name from v$database; SSSREF.

25. From the above step you are confirmed with installation done properly.

You might also like