|
How will you create a swap size in your environment?
And how will you find free space in swap and RAM in your environment?
To find RAM size [oracle@sss-oracle ~]$ grep MemTotal /proc/meminfo
If you’re short on swap space, you can temporarily add a swap file to your server. As the root user, run the following commands to add approximately 1GB of swap space: # dd if=/dev/zero of=tempswap bs=1k count=1000000
After disabling the swap file, you should see the swap
space in /proc/meminfo return to its original value.
How will you print the 25th line in your file? $ cat -n filename|grep 25
Write a shell script to check analyzed objects #######################################################################
for i in `echo $*`
sqlplus -s /nolog <<EOF
output: [oracle@sss-oracle ~]$ ./check_analyze.sh test scott
---------- Analyzed status of test -------------
TABLE_NAME
LAST_ANAL
---------- Analyzed status of scott
-------------
TABLE_NAME
LAST_ANAL
|
|
More Linux Questions
Linux Forum - Do you have a Linux Question? Linux Books
Linux Home: Linux System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|