'Solaris'에 해당되는 글 3건
- 2009.05.07
- 2009.05.07
- 2009.03.20
|
|
1. IP 및 hostname 변경과 관련된 파일들.
/etc/hosts
/etc/inet/ipnodes or /etc/inet/hosts
/etc/nodename
/etc/hostname.vmxnet0 (/etc/hostname.eth0 or /etc/hostname.pcn0 etc.)
/etc/netmasks
2. 변경후 진행할 작업.
- 설정파일에 default gateway 추가 및 DNS 등록.
default G/W
vi /etc/defaultrouter
10.103.118.1
DNS
vi /etc/resolv.conf
nameserver 168.126.63.1
nameserver 168.126.63.2
- default gateway 적용
route add default 10.103.118.1
|
|
mount -F hsfs -r /dev/dsk/c0t0d0s2 /cdrom
pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWbash
pkgadd SUNWbash
pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWdoc
pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWman
pkgadd SUNWdoc SUNWman
pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWscpu
pkgadd SUNWscpu
# ps -ef | grep send
root 1011 1 0 Mar 27 ? 0:04 /usr/lib/sendmail -bd -q15m
smmsp 1013 1 0 Mar 27 ? 0:00 /usr/lib/sendmail -Ac -q15m
#pkginfo | grep mail
system SUNWsndmr Sendmail (root)
system SUNWsndmu Sendmail (/usr)
#pkgrm SUNWsndmr SUNWsndmu
#mount -rF hsfs /dev/dsk/c0t0d0s0 /cdrom
#cp /cdrom/vmware-solaris-tools.tar.gz /tmp
#gunzip vmware-solaris-tools.tar.gz
#tar xvf vmware-solaris-tools.tar
#cd vmware-tools-distrib/
#./vmware-install.pl
#pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWtoo
#pkgadd SUNWtoo
usermod -d /u01 mmtxer
echo action=nocheck > /tmp/admin
echo conflict=nocheck >> /tmp/admin
echo rdepend=nocheck >> /tmp/admin
pkginfo -x | cut -f1 -d " " | grep staroffice> /tmp/ooo_packages
pkgrm -a /tmp/admin -n `cat /tmp/ooo_packages`
svcs -a | grep dmi
svcadm disable svc:/application/management/dmi:default
svcadm disable svc:/application/management/snmpdx:default
svcs -a | grep snmp
svcs -a | grep dmi
ps -ef | egrep "mib|snm" | grep -v gerp
pkgrm SUNWsacom
$ ifconfig hme0 211.192.191.171 netmask 0xffffff00 broadcast + up
* Solaris 에서 GATEWAY 변경 작업
$ netstat -rn
$ route add default [gateway ip]
$ vi /etc/defaultrouter
[gateway ip]
|
|
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
orcl:/u01/app/oracle/oracle/product/10.2.0/db_1:Y
cassis:/u01/app/oracle/oracle/product/10.2.0/db_1:N
2. 자동으로 뜨기 원하는 원하는 SID의 자동 시작 여부 필드가 Y가 되도록 변경하기.
3. dbstart 실행.
4. lsnrctl start실행. (ORACLE_HOME_LISTNER 이 정확하게 등록되어 있다면 dbstart시 이미 실행됨.)
5. sqlplus로 연력되는 것으로 정상 동작 확인.
$ sqlplus /nolog
SQL> CONNECT system@dev101ee
Enter password: <Enter SYSTEM password>