process search
17
[root@merkezora root]# ps -efw|grep ora_
oracle 21891 1 0 08:14 ? 00:00:00 ora_pmon_orcl
oracle 21893 1 0 08:14 ? 00:00:00 ora_dbw0_orcl
oracle 21895 1 0 08:14 ? 00:00:00 ora_lgwr_orcl
oracle 21897 1 0 08:14 ? 00:00:00 ora_ckpt_orcl
oracle 21899 1 0 08:14 ? 00:00:00 ora_smon_orcl
oracle 21901 1 0 08:14 ? 00:00:00 ora_reco_orcl
oracle 21903 1 0 08:14 ? 00:00:00 ora_cjq0_orcl
oracle 21905 1 0 08:14 ? 00:00:00 ora_qmn0_orcl
oracle 21907 1 0 08:14 ? 00:00:00 ora_s000_orcl
oracle 21909 1 0 08:14 ? 00:00:00 ora_d000_orcl
root 22058 21957 0 08:19 pts/0 00:00:00 grep ora_
[root@merkezora root]#
ftp script
#!/bin/sh
HOST='10.206.145.42'
USER='oracle'
PASSWD='AnGntk06'
FILE='/GANTEKT/mini2.dmp'
ftp -n $HOST <
quote USER $USER
quote PASS $PASSWD
bin
put $FILE /ata031/bscs5/tempo/mini3.dmp
quit
END_SCRIPT
exit 0
disk mount etmek
root@sdpool # mount -F nfs 10.200.165.11:/patches /A
unix df-k yazma hızı
df -k /ata* | grep -v File | awk 'BEGIN{s=0}{s+=$3}END{print s}' ; date
Tru64 Xterm login
Arkadaslar,
Tru64 Unix server’lara (toros,alaca, anadolu, trakya....) Xterm (GUI) “root” login olmak istediginizde “Root login refused on this terminal"
Hatasi alacaksiniz muhtemelen . Bunu kaldirmak icin.
Makinaya telnet olup,
# vi /etc/securettys
Satirin sonuna Laptopunuzun ıpsini yazip sonuna :0 yazmaniz lazim.
Ornek : 10.204.101.121:0 gibi...
unix banner yaratmak
banner $ORACLE_SID
export KMENU_DAT=/usr/users/bscsadm/newpih/ana.kmn
# bill_menu settings
export WD=/bgh/BGH_WORK
export COBRUSER=postbgh
export COBRPW=sysadm
export PBGHUSER=postbgh
export PBGHPW=sysadm
export PATH=$PATH:/bgh/BGH_WORK/_BGH_BIN
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export SKGFR_TRACE_ENABLED=MEMCMP
#################################################
export RIH_NO_REASON_CODE_CHECK=1
#BATUHAN Settings
alias "d=ls -l|grep ^d"
alias "ll=ls -la"
alias "psg=ps -ef|grep -v grep |grep"
alias "lt=ls -ltr"
export RIH_NO_REASON_CODE_CHECK=1
alias "FTAM7=cd $DATA/DIH70/FTAM_IN/"
:q
ratingk1@aksu:/usr/users/ratingk1>banner deneme
##### ###### # # ###### # # ######
# # # ## # # ## ## #
# # ##### # # # ##### # ## # #####
# # # # # # # # # #
# # # # ## # # # #
##### ###### # # ###### # # ######
ratingk1@aksu:/usr/users/ratingk1>banner deneme
tar kullanmak unix
tar -cvf 10103patch.tar 10103patch
install uninstall java tru64
aasdo01:/users/TRU64/kit/JAVA/ makinasında java142-3.tar dosyası var. Ordan alabilirsiniz.
Setld –i komutu ile yüklü olan paketleri görüyorsunuz.
Setld –d – paketleri uninstall etmek için
Tar dosyasını açıp aynı dizinde setld –d . ile javayı kuruyorsunuz...(Ekran görüntüleri aşağıda)
aasdo01:/users/TRU64/kit/JAVA/ 79967296 19208978 60390624 25% /mnt
anadolu:/usr/sbin> ls /mnt
Motif2.1.tar java142-3.tar
anadolu:/usr/sbin>
anadolu:/usr/sbin> setld -i|grep JAVA
JAVA142 installed Java 1.4.2-3 Environment (General Applications)
JAVADEV142 installed Java 1.4.2-3 Development Environment(Software Development)
JAVADOC142 installed Java 1.4.2-3 Online Documentation (Documentation Kit)
OSFEVMJAVADEV540 installed Event Management Development Environment(Software Development)
OSFJAVA540 not installed Java 1.3.1-2 Environment (General Applications)
OSFJAVADEV540 not installed Java 1.3.1-2 Development Environment(Software Development)
OSFJAVADOC540 not installed Java 1.3.1-2 Online Documentation (Supplemental Documentation)
setld: Exiting
anadolu:/usr/sbin> setld -d JAVA142 JAVADEV142 JAVADOC142
Deleting "Java 1.4.2-3 Development Environment" (JAVADEV142).
Deleting "Java 1.4.2-3 Online Documentation" (JAVADOC142).
Deleting "Java 1.4.2-3 Environment" (JAVA142).
anadolu:/usr/sbin> cd /java
anadolu:/java> ls
anadolu:/java> setld -l .
*** Enter subset selections ***
The following subsets are mandatory and will be installed automatically
unless you choose to exit without installing any subsets:
* Java 1.4.2-3 Environment
The subsets listed below are optional:
There may be more optional subsets than can be presented on a single
screen. If this is the case, you can choose subsets screen by screen
or all at once on the last screen. All of the choices you make will
be collected for your confirmation before any subsets are installed.
- Documentation Kit :
1) Java 1.4.2-3 Online Documentation
- Software Development :
2) Java 1.4.2-3 Development Environment
Or you may choose one of the following options:
3) ALL mandatory and all optional subsets
4) MANDATORY subsets only
5) CANCEL selections and redisplay menus
6) EXIT without installing any subsets
Estimated free diskspace(MB) in root:2957.1 usr:1699.2 var:8557.5
Enter your choices or press RETURN to redisplay menus.
Choices (for example, 1 2 4-6): 1 2 3
You are installing the following mandatory subsets:
Java 1.4.2-3 Environment
You are installing the following optional subsets:
- Documentation Kit :
Java 1.4.2-3 Online Documentation
- Software Development :
Java 1.4.2-3 Development Environment
Estimated free diskspace(MB) in root:2957.1 usr:1607.5 var:8557.5
Is this correct? (y/n): y
Checking file system space required to install selected subsets:
File system space checked OK.
3 subsets will be installed.
Loading subset 1 of 3 ...
Java 1.4.2-3 Environment
Copying from . (disk)
Verifying
Loading subset 2 of 3 ...
Java 1.4.2-3 Online Documentation
Copying from . (disk)
Verifying
Loading subset 3 of 3 ...
Java 1.4.2-3 Development Environment
Copying from . (disk)
Verifying
3 of 3 subsets installed successfully.
Java 1.4.2 is now the default for the system.
Configuring "Java 1.4.2-3 Environment" (JAVA142) on member0
Configuring "Java 1.4.2-3 Online Documentation" (JAVADOC142) on member0
Configuring "Java 1.4.2-3 Development Environment" (JAVADEV142) on member0
Configuring "Java 1.4.2-3 Environment" (JAVA142) on member1
Configuring "Java 1.4.2-3 Online Documentation" (JAVADOC142) on member1
Configuring "Java 1.4.2-3 Development Environment" (JAVADEV142) on member1
Configuring "Java 1.4.2-3 Environment" (JAVA142) on member2
Configuring "Java 1.4.2-3 Online Documentation" (JAVADOC142) on member2
Configuring "Java 1.4.2-3 Development Environment" (JAVADEV142) on member2
anadolu:/java>
anadolu:/usr/sbin> java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition
Fast VM (build 1.4.2-3, native threads, mixed mode, 03/23/2004-19:27)
anadolu:/usr/sbin>
direct root disable
serverda başka bir dizine kurulmuş olabilir.SSH konfigürasyon dosyası
açılır.
Protocol ile başlayan satır remarklıysa açılır ve
Protocol 2
şeklinde değiştirilir.
PermitRootLogin yes satırı bulunur.remarklıysa açılır ve
PermitRootLogin no
şeklinde değiştirilir.Dosya kaydedilir.
/sbin/init.d/secsh stop
/sbin/init.d/secsh start
ile SSH servisi stop start edilir.Bu değişikliği yaptığınız session'u
kapatmadan , bu sisteme root dışında bağlanabilecek bir kullanıcı
olduğundan mutlaka emin olunuz.
linux search string
unix profile set(frito)
alias gohome='cd $ORACLE_HOME;pwd;ls'
alias goarch='cd /oracle/ORACLONE/archive/$ORACLE_SID; pwd; ls;'
alias lsvra='sqlplus /nolog @/home/oraclone/ins.sql'
alias psdb='/home/oraclone/psdb.sh'
alias invalid='sqlplus /nolog @/home/oraclone/invalid.sql'
alias listener='/home/oraclone/xt_lsnrctl.sh status'
golog() {
echo "set line size"echo "line size="read rs
if [ "$ORACLE_SID" = "CLONE" ]
then
cd /oracle/ORACLONE/clonedb/9.2.0/admin/CLONE_fsthqzz5/bdump
tail -$rs alert_$ORACLE_SID.logls -lrt alert_$ORACLE_SID.logpwdelse
cd /oracle/ORACLONE/clonedb/9.2.0/admin/$ORACLE_SID/bdumptail -$rs alert_$ORACLE_SID.logls -lrt alert_$ORACLE_SID.logpwd
fi}
setclone() {export ORACLE_SID=CLONE}
setsd() {export ORACLE_SID=SDTC}
sqlclone() {export ORACLE_SID=CLONE lsvra}
sqlsd() {export ORACLE_SID=SDTC lsvra}