How to take backup of a oracle schema

How to take backup of a oracle schema You can use Export/Import OR Data pump. For export(this command can be used to generate a backup file on the client machine) exp user/password@database owner=user file=datafile.dmp log=logfile.log where database=db entry from tnsnames.ora,user=user-id to connect with, password=password of the user connected with,  owner=schema which needs to be exported,… Continue Reading How to take backup of a oracle schema

Recover/Reinstall grub bootloader

To recover the boot loader for Ubuntu Linux or any other linux after the boot loader has been erased due to a dual windows installation or some other reason. We need a bootable CD or USB to boot into a Linux shell. Once looged in a Linux shell on the same machine, these steps are… Continue Reading Recover/Reinstall grub bootloader

Download all files in a directory using WGET

To download all files in the directory using WGET in Linux, the following command can be used wget -H -r –level=1 -k -p http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/ -r, –recursive Specify recursive download. -l, –level=NUMBER Maximum recursion depth (inf or 0 for infinite). -k, –convert-links Make links in downloaded HTML point to local files. -p, –page-requisites Get all images,… Continue Reading Download all files in a directory using WGET

Shutdown Linux after pre-determined time

This is an alternative for Cron Issue the following command in terminal: /sbin/shutdown -h +300 Command Details: sudo : This is to execute the command as root, you will need the password here. /sbin/shutdown : Command to shutdown the computer. -h : This tell the shutdown command to power off i.e. halt. +300 : The… Continue Reading Shutdown Linux after pre-determined time

Search and delete files in Unix

This is a useful tip to find and remove some files by searching recursively in a directory and sub directories This will list down all the *.tmp/*.log files find . -type f -name "*.tmp" -exec echo {} ; find . -type f -name "*.log" -exec echo {} ; This will delete down all the *.tmp/*.log files find .… Continue Reading Search and delete files in Unix

How to comment all lines in VI editor ?

How to comment all lines in VI editor ? This can be done with a using a command like ‘search and replace’ 1.Open the file in ‘vi’ editor.2.Press Escape and type :1,$s/^/##/g3.Press Enter 1,$s/^/##/g can be broken down as1: To start from 1st line $s :To end at the last line/^ : Search for the… Continue Reading How to comment all lines in VI editor ?

From Half duplex to Full duplex in GNU/Linux

From Half duplex to Full duplex in GNU/Linux This can be one of the reasons for slow network performance with Linux.one of the issues that I have faced was that the half duplex mode was selected with the network card and the network switch when the option of ‘auto negotiation’ was set to ON We… Continue Reading From Half duplex to Full duplex in GNU/Linux