Friday 4th of April 2025 03:25:40 AM
unix | database | Apps | obiee |
ULN | R12 Docs | Tahiti | 11gR2 docs | 10gR2 | APEX 4.1 | UPK | OTN forums |
bKbMbGb |
$INST_TOP |
$LOG_HOME |
$ORA_CONFIG_HOME |
$APPL_CONFIG_HOME |
ADMIN_SCRIPTS_HOME |
$APPL_TOP/admin/TEST/log
delete files | sendmail | set |
kill unix process | Mail a File | vncserver |
check for an installed package on Linux |
rpm -aq |grep snmp |
rpm -aq |grep telnet |
telnet 127.0.0.1 25 to escape :^] telnet>quit |
---|
nslookup earth.moon.com
|
ping earth.moon.com traceroute earth.moon.com |
telnet earth.moon.com 25 helo earth.moon.com MAIL FROM: venus@earth.moon.com RCPT TO: zeus@earth.moon.com DATA . |
telnet earth.moon.com 25 helo earth.moon.com MAIL FROM: venus@earth.moon.com RCPT TO: zeus@earth.moon.com DATA . |
sqlplus -s apps/apps@test <<EOF > run_id.txt |
---|
$ORACLE_HOME/OPatch/opatch lsinventory -invPtrLoc $ORACLE_HOME/oraInst.loc |
Create a password file
orapwd file=orapwTEST password=<password> entries=10 |
select name, log_mode from v$database;
alter system kill sessioni 'sid,serial#';
Kill oracle process to enable faster db shutdown.
Can be used to kill multiple process of other types. Substitute what you are grep'ing with the processes you want to kill. Test it first without the kill - (xargs kill -9. )
ps -ef|grep oratst |grep "LOCAL=NO" |awk '{ print $2 }' |xargs kill -9 |
ps -ef|grep oradev |grep "LOCAL=NO" |awk '{ print $2 }' |xargs kill -9 |
ps -ef|grep oracle |grep "LOCAL=NO" |awk '{ print $2 }' |xargs kill -9 |
ps -ef|grep applmgr|grep java |grep DCLIENT |awk '{ print $2 }' |xargs kill -9 |
find . -name '*.log' \! -mtime -10 -exec rm {} \;
by inod
ls -i
find . -inum 2818445 -exec rm {} \;
% find . -inum 6239 -exec mv {} newname \;
Add this anywhere in the script you want to turn trace off or on.
set -x (sets trace on)
set +x (turns it off)
set number set nonumber
unset -f functionname
function func_name() {}
UNIXSetup nfs mount to copy patches and disks over from different server
edit /etc/exports
/u09 earth(rw) venus(rw) pluto(rw)
/u10 earth(rw) venus(rw) pluto(rw)
/data earth(rw) venus(rw) pluto(rw)
service nfs stop service nfs start |
From earth:
mount pluto:/u09 /data/mo |
From Venus
mount earth:/u09 /data/lmu |
A forced umount "umount -f" usually doesn't resolve anything. The quick fix is:
a lazy unmount:
umount -l /mnt/deadmount
service sendmail stop
/etc/init.d/sendmail stop
/etc/init.d/sendmail start
/etc/init.d/sendmail restart
/u02/oracle/TEST/apps/apps_st/appl/admin/TEST/log/adamin_120109.log
In Red Hat Linux, uuencode is part of the sharutils package.
uuencode file file.name | mailx email@address uuencode input_file output_file | sendmail recipient(s)
uuencode input_file output_file | mail -s subject recipient(s)
uuencode input_file output_file | mailx -s subject recipient(s)
cat ${SUC_Template}.${DATE_TIME}.$$.tmp;uuencode ${ZIPFILE} "${SQL_NAME}.zp") | mailx -n -s "${SUBJECT}" ${BizEMailAddr} If change the mailx switch "-n" to "-m" it works. cat $tmpbody; uuencode $filename $filename) | mail -s "${subject}" $location
How to send MIME attachments from the command-line
uuencode -m input_file output_file | mail -s mail_subject recipient(s) |
To automate the startup of vncserver after boot, the /etc/sysconfig/vncservers must be configured. The syntax of configuration file is:
# VNCSERVERS="<display number>:<user account>" # VNCSERVERARGS[<number of display>]="-geometry <screen size> -nolisten tcp -nohttpd" |
The parameter "VNCSERVERS" indicates a vnc server is started as user <user account> on display ":<display number>". <user account> should be an existing user in the system. You can specify multiple userids to start servers, for example
VNCSERVERS="1:root 10:oracle" add the password to the user vncserver is started for. Login as the user and run: vncpasswd
This service is handled by init.d script /etc/init.d/vncserver. Its usage is as follows:
# service vncserver
#Usage:/etc/init.d/vncserver {start|stop|restart|condrestart|status}
You can check if the service is configured to start automatically at boot time:
# chkconfig --list vncserver
#vncserver 0:off 1:off 2:off 3:off 4:off 5:on 6:offStart the service
service vncserver start |
If you only have a two-button mouse, you may find you are unable to use some Xwindow mouse buttons.
Xwindow provides the ability to change the mapping of the mouse buttons with the "xmodmap" command, for example:
xmodmap -e "pointer = 1 3 2 4 5"
vncserver akullboz [root@roswell etc]# service vncserver start Starting VNC server: [root@roswell etc]# [root@roswell etc]# vncpasswd Password: Verify: [root@roswell etc]# [root@roswell etc] # vncserver New 'roswell:1 (root)' desktop is roswell:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/roswell:1.logUpdated Mon May 25, 2015 4:02 PM
Added Sun, April 18, 2010 9:24
© 2007-2025 LMU. All rights reserved.