What is a parameter file Parameter file is a text or binary to store the database initialization parameters. The oracle instance reads the parameter file during startup which are then used to control the behavior of database instance and many other aspects as well. Such as : memory allocation (SGA and PGA), startup of optional background processes, Setting of NLS parameters etc. There are 2 types of parameter files, namely : 1. pfile (parameter file) - older way [ not recommended by oracle … [Read more...] about Oracle database : Basics about pfile and spfile
Archives for June 2016
CentOS / RHEL : How To Check FC Brocade HBA Firmware
Question : How To Check FC Brocade HBA Firmware in linux? Answer : You can use the "systool" command or else the file "/sys/class/scsi_host/host0/firmware_version" to check the firmware version of your Brocade FC HBA. Example: # systool -c fc_host -v | grep -i symbolic_name symbolic_name = "Brocade Brocade-415 FV2.0.0.0 DV2.0.0.0" or # cat /sys/class/scsi_host/host0/firmware_version 2.0.0.0 # cat /sys/class/scsi_host/host1/firmware_version 2.0.0.0 … [Read more...] about CentOS / RHEL : How To Check FC Brocade HBA Firmware
CentOS / RHEL 7 : How to start / Stop or enable / disable Firewalld
Question : How to Start or stop firewalld (iptables in earlier version) in CentOS / RHEL 7? Solution : The iptables service is replaced with firewalld service in Oracle Linux 7. The command iptables -L will list the set of rules that are in place on node. # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED ACCEPT all -- anywhere anywhere INPUT_direct all -- anywhere anywhere INPUT_ZONES_SOURCE all -- … [Read more...] about CentOS / RHEL 7 : How to start / Stop or enable / disable Firewalld
CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image
When adding new hardware to a system, or after changing configuration files that may be used earlier in the boot process, or when changing the options on a kernel module, it may be necessary to rebuild the initial ramdisk (also known as initrd or initramfs) to include the proper kernel modules, files, and configuration directives. In the examples below you will see the usage of $(uname -r), which is a way to pass the current kernel version into a command without actually typing it … [Read more...] about CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image
CentOS / RHEL 5 : How to rebuild Initial Ramdisk Image
When adding new hardware to a system, or after changing configuration files that may be used earlier in the boot process, or when changing the options on a kernel module, it may be necessary to rebuild the initial ramdisk (also known as initrd or initramfs) to include the proper kernel modules, files, and configuration directives. In the examples below you will see the usage of $(uname -r), which is a way to pass the current kernel version into a command without actually typing it … [Read more...] about CentOS / RHEL 5 : How to rebuild Initial Ramdisk Image
RHEL / CentOS : How to rebuild LVM from Archive (metadata backups)
Problem : The filesystem was corrupted and the LVM volumes could not be mounted, with the lvm partitions are lost. Solution : Metadata backups and archives are automatically created on every volume group and logical volume configuration change unless disabled in the lvm.conf file. By default, the metadata backup is stored in the /etc/lvm/backup file and the metadata archives are stored in the /etc/lvm/archive file. If the physical volume meta data has become corrupted, missing, or severely … [Read more...] about RHEL / CentOS : How to rebuild LVM from Archive (metadata backups)
Solaris 10 zones troubleshooting : Unable to Share NFS File Systems From a Non-global Zone
Question : I am unable to share nfs from a non-global zone. Answer : Consider the following example. - sysadmin creates a non-global zone and wants to share a zfs mount point from non-global zone. - While setting ZFS parameter "sharenfs", he encounters an error : cannot set property for 'findisk/faktudt_users': 'sharenfs' cannot be set on dataset in a non-global zone - Another case is when ufs file system is shared from the non-globa zone using the /etc/dfs/dfstab file or on command … [Read more...] about Solaris 10 zones troubleshooting : Unable to Share NFS File Systems From a Non-global Zone
How to configure additional IP address on the same interface in solaris zones
Question : Can I configure additional IP addresses on the same interface in non-global zone? If yes, how? Answer : Yes, you can add additional IP addresses on the existing interface configured in the non global zone. In fact the procedure remains the same. To add a secondary shared interface to configured shared ip zone you would use the zonecfg command. Below is an example of adding a second interface in a zone named zone01 that will be persistent upon reboots. In this example, the … [Read more...] about How to configure additional IP address on the same interface in solaris zones
How to verify non-global solaris zone is installed
It is important that the zone is in the appropriate installed state before one can boot it up. The configured zone has to be installed with the operating environment. That is, the zone configuration has to be instantiated and packages have to be installed under the zone's root path. The zone status should be marked as installed. To check the current status of the zone, run the zoneadm command with the subcommand list together with the -cv switches. The following zoneadm output confirms that … [Read more...] about How to verify non-global solaris zone is installed
How to send mails with attachments using the solaris mailx command
The post discusses the use of uuencode to send mails with attachments using mailx command. uuencode can also be used to sent multiple attachments. 1. Example using one attachment The syntax of uuencode command is : # uuencode [path of file to be encoded] [file to encode] >> [uuencoded filename] For example if you have a file named my_file in directory /var/tmp, use the command as : # uuencode /var/tmp my_file >> my_attachment # mailx -s "This is a mial with only one attachment" … [Read more...] about How to send mails with attachments using the solaris mailx command