Dec 5, 2009

Install Oracle Internet Directory 10g

Uncompress the files 
        #cpio -icd < disk1.cpio
        #cpio -icd < disk2.cpio
        #cpio -icd < disk3.cpio
        #cpio -icd < disk4.cpio
Rename existing tnsnames.ora file
       $mv tnsnames.ora tnsnames.bkp
Unset some of the environment variables
        $unset TNS_ADMIN
Set the DISPLAY variable if not installing directly on server.
       $export DISPLAY=host-ip:0.0
Start the installation after  navigating to DISK1 directory which you extracted in the previous step.
     $cd Disk1
      $./runInstaller












Click Next in the Welcome Screen






































Specify the Name of the installation
and location to install the software.

Click Next.






















Select the option Oracle Application
server infrastructure 10g.

Click Next.





















Select the option Identity management
and Metadata repository.


Click Next.



















Make sure all the checks
are successful if not fix them before
proceeding to the next step.


Click Next.


















Select the checkbox that
pre installation requirements are met.


Click Next.





















Select the components that you wish
to install and configure.




Click Next






































Select the method of port configuration.
In my case i choose Automatic.


Click Next.



















Select the type of Namespace for OID.
Go with the default option.


Click Next.





















Mention Global DB name and SID for the
OID instance.



Click Next.



















Confirm the password for the
database schema's. You Can
either go with different passwords
or same password for all accounts.


Click Next.
















Mention the Instance Name and
Ias_admin password.



Click Next
















































Go through the summary of the
Installation.


Click Install
















































You need to run the root.sh script
as root user from another session and
click OK after you done with root.sh.


















































All the components you selected earlier will
be configured during this stage.




Click Next















































Keep note of the summary displayed
at the end of the installation.



Click Exit.
























Dec 3, 2009

Install & Configure ASMLib on Linux

Steps to install and configure ASMLib's on Linux


Download the RPM's
    Download the latest ASM libraries from the oracle website
     http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html


Install the RPM's
    Installation must be done as root user.
#rpm -Uvh oracleasm-support-2.1.3-1.el5.i386.rpm \
> oracleasm-2.6.18-8.el5-2.0.4-1.el5.i686.rpm \
> oracleasmlib-2.0.4-1.el5.i386.rpm
Preparing...                ################################## [100%]
  1:oracleasm-support      ############################### [ 33%]
  2:oracleasm-2.6.18-8.el5 ############################## [ 67%]
  3:oracleasmlib           ################################ [100%]
   
Configure and Loading the ASMLib 2.0 Packages
    Note:Before you proceed to configure the ASM you need to disable SELINUX 
            or you may come across the below error
   
        Initializing the Oracle ASMLib driver:                     [FAILED]
   
        Disable the SELINUX by running the below command from X-window.
        #/usr/bin/system-config-securitylevel &
   
   Go to SELinux tab and disable it.
       (Or) 
   Modify the file /etc/selinux/config in redhat or /boot/grub/grub.conf in other linux 
           with GRUB boot loader. 
   It looks like this:
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=enforcing ---> change it to SELINUX=disabled
   
     Reboot the machine to impliment the change.
    #init 6
   
# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Creating /dev/oracleasm mount point: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]

Dec 2, 2009

Remove Linux from dual boot windows pc

  • Delete the partition allocated for the Linux from windows using the Disk management
  • To get the disk management you need to follow these steps
    • Right click my computer icon
    • Click manage
    • Expand storage section
    • Select disk management
  • Restart the pc by placing the windows operating system CD in cdrom and boot from CD.
  • Press R to repair while booting.
  • After entering into the recovery console mode type the drive name we need to repair.
  • Provide the admin password when it prompts. [Type password if any or just press enter].
  • Type FIXMBR to write new boot record and type exit and boot from Hard disk.

Recover root password for Linux

GRUB:
You may be able to boot single-user mode directly. If your system boots, but does not allow you to log in when it has completed booting, try single-user mode.
If you are using GRUB, use the following steps to boot into single-user mode:
  1. If you have a GRUB password configured, type p and enter the password.
  2. Select Red Hat Linux with the version of the kernel that you wish to boot and type e for edit. You will be presented with a list of items in the configuration file for the title you just selected.
  3. Select the line that starts with kernel and type e to edit the line.
  4. Go to the end of the line and type single as a separate word (press the [Spacebar] and then type single). Press [Enter] to exit edit mode.
  5. Back at the GRUB screen, type b to boot into single user mode.
After you enter into single user mode type passwd command to change password
            #passwd
            New password:******
            Confirm password: *****
Type init 5 to go into run level 5 which is GUI.


LILO:
If you are using LILO, specify one of these options at the LILO boot prompt (if you are using the graphical LILO, you must press [Ctrl]-[x] to exit the graphical screen and go to the boot: prompt):
boot: linux single
boot: linux emergency

Search This Blog