Skip to main content

Posts

How to list all users in Linux

To list only usernames type the following awk command. awk -F':' '{ print $1}' /etc/passwd Eg: [root@jbsvr u01]#   awk -F':' '{ print $1}' /etc/passwd root bin daemon adm lp sync shutdown halt mail news uucp operator games gopher ftp nobody rpm dbus nscd vcsa pcap rpc mailnull smmsp sshd rpcuser nfsnobody haldaemon avahi apache ntp xfs gdm sabayon jboss jbtest apacheds avahi-autoipd oprofile exim oracle orafin amandabackup

Create a Local Repository on RHEL 6.3 for Yum Installer

Step1:  Mount the OS disk and copy the contents to a local path which will be the main repository path: mkdir -p /linuxdvd/   cp -RH /mnt/dvd/* /linuxdvd/ Step2:  Create new yum repository (e.g. rhel-local.repo) Create the repo file vi /etc/yum.repos.d/rhel-local.repo   Insert the below content to the file.Change the details according to your environment. [rhel6.3-local] name=RHEL 6.3 local repository baseurl=file:///linuxdvd/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release enabled=1  

Convert FAT32 disk to NTFS in Windows

Issue below command in DOS prompt. convert <Drive Letter>: /fs:ntfs Eg: C:\Documents and Settings\pubudu>convert l: /fs:ntfs The type of the file system is FAT32. Volume PUBUDU-SUPP created 8/3/2012 4:29 PM Volume Serial Number is B0FB-D07D Windows is verifying files and folders... File and folder verification is complete. Windows has checked the file system and found no problems.    15,609,312 KB total disk space.            32 KB in 4 hidden files.         3,344 KB in 413 folders.     3,453,464 KB in 2,611 files.    12,152,464 KB are available.         8,192 bytes in each allocation unit.     1,951,164 total allocation units on disk.     1,519,058 allocation units available on disk. Determining disk space required for file system conversion... Total disk space:              15624576 KB Free space ...

Change User Password in Linux

Steps to  Change User Password in Linux 1.Login as the root user 2.Type the following command: passwd oracle 3.Enter New password 4.Confirm the new password 5.Then open another terminal and login as Oracle with new password. Eg: login as: root root@191.161.201.111's password: Last login: Thu Mar  7 00:32:14 2013 from 191.161.201.111 [root@my ~]# passwd oracle Changing password for user oracle. New password:

Network Connection not getting up in RHEL 6

After installing RHEL 6 you may not be able to get network connection up on booting the machine. This is a reported bug in RHEL 6. Follow below steps to solve the issue. Edit   /etc/sysconfig/network-scripts/ifcfg-eth0  file, which is your default first NIC configuration file. If you are using DHCP server: Edit below file and change as given below #vi /etc/sysconfig/network-scripts/ifcfg-eth0 ONBOOT="yes" BOOTPROTO="dhcp" Save & restart networking service, #service network restart  If you are providing manual IP: Edit below file and change as given below #vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 IPADDR=192.10.110.10 NETMASK=255.255.255.0 NETWORK=10.10.10.0 GATEWAY=192.9.110.253 ONBOOT=yes BOOTPROTO=none USERCTL=no Save & restart networking service, #service network restart

ORA-12518: TNS:listener could not hand off client connection

You may get below error when trying to connect to the database using sqlplus or through an application login. ORA-12518: TNS:listener could not hand off client connection Reason: The process of handing off a client connection to another process failed. Solution;   Increase PROCESSES initialization parameter. Use the following command to check the value of the PROCESSES initialization parameter: show parameter processes; If the database was started using an spfile, then the following command can be used to increase the PROCESSES initialization parameter: alter system set processes=600 scope=spfile; If the database was started using a pfile, then the value of the processes parameter must be changed in the pfile and the database bounced.