[Linux] stty
stty changes and prints terminal line setting. stty displays or changes the characteristics of the terminal. stty sane same as cread -ignbrk brkint -inlcr -igncr icrnl -iutf8 -ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop […]
[Linux] NFS server/client installation
NFS server/client installation Package Install (Server/Client 공통) yum install nfs-utils systemctl enable rpcbind systemctl enable nfs-server systemctl enable nfs-lock systemctl enable nfs-idmap systemctl start rpcbind systemctl start nfs-server systemctl start nfs-lock systemctl start nfs-idmap systemctl stop firewalld Server 작업, 폴더 공유 공유 대상 폴더 생성 mkdir /nfs_dir 공유 허용할 호스트 지정 #vi /etc/exports /nfs_dir 192.168.xxx.xxx(rw,sync,no_root_squash,no_all_squash) […]
[Linux] How to mount NTFS on CentOS
How to mount NTFS on CentOS Make sure that you have the rpmforge repo installed yum install fuse fuse-ntfs-3g yum –enablerepo=rpmforge install fuse fuse-ntfs-3g For CentOS 7 or 6, the EPEL repository is carrying later NTFS packages, EPEL is alose usable for CentOS 5. yum install ntfs-3g yum –enablerepo epel install ntfs-3g
[Tibero] REDO Logfile 관리
logfile 사이즈 변경 logfile 상태 확인 select l.group#, l.status, l.bytes, lf.member , l.first_time from v$log l, v$logfile lf where l.group# = lf.group# Inactive 파일 삭제 alter database drop logfile group 1; –실제 데이터파일 삭제 필요 logfile 추가 alter database add logfile group 1 ( ‘/tbdata/redo011.redo’,’/tbdata/redo012.redo’); redo log 관련 view v$log SQL> desc v$log COLUMN_NAME TYPE […]
[Tibero] 데이터베이스 주요 파일 RENAME
개별 파일 변경 LOGFILE RENAME 로그파일 조회 select member from v$logfile; DB 종료 후 기존 로그파일 이동 cp redo001_old.redo redo001_new.redo mount 모드 기동 RENAME alter database rename file ‘redo001_old.redo’ to ‘redo001_new.redo’; DATAFILE RENAME 데이터파일 조회 select name from v$datafile; DB 종료 후 기존 데이터파일 이동 cp usr001_old.dtf usr001_new.dtf mount 모드 기동 RENAME alter database rename […]
[Tibero] tbexport – remap_tablespace
실습용 예제 user,table 생성 #!/bin/bash #2017/03/29 #testcase_mig_fk.sh #dong1lkim TBL_CNT=0 #init TBL_CNT while (($TBL_CNT <= 500)) do PKTAB_NAME=TBL_PKTEST_echo $TBL_CNT FKTAB_NAME=TBL_FKTEST_echo $TBL_CNT sh cre_fktab.sh echo $filename ROW_CNT=0 #init cnt while (($ROW_CNT <= 500)) do sh insert_val_fktab.sh let ROW_CNT+=1 done let TBL_CNT+=1 echo -e “loop ends” done #!/BIN/BASH #2017/03/29 #cre_fktab.sh #DONG1LKIM tbsql -s fktest2/tibero <<EOF –SET ECHO ON […]
[Linux] crontab
현재 사용자의 cron 작업 목록 확인 crontab -l 현재 사용자의 cron 작업 수정 crontab -e 현재 사용자의 cron 작업 삭제 crontab -r cron 로그 경로 /var/log/cron cron 작업 등록 순서대로 아래 필드를 한 칸씩 띄어 입력하고 그 뒤에 실행할 명령 ex) m h dom mon dow cmd m(분) : 0~59 h(시) : 0~23 dom(일) : […]
[Linux] firewall-cmd
RHEL7부터 firewalld 데몬으로 방화벽 관리 firewall-cmd(cmd), firewall-config(X window) 커맨드로 설정 설치 및 실행 yum install firewalld systemctl start firewald systemctl enable firewalld ZONE 사전 정의된 존 목록 출력 firewall-cmd –get-zones 전체 존 목록 상세 출력 firewall-cmd –list-all-zones 기존 존 출력 firewall-cmd –get-default-zone 활성화 된 존 출력 firewall-cmd –get-active-zone SERVICE 서비스 목록 firewall-cmd –get-services Permanent로 등록된 […]
[Oracle] Oracle12c Installation on CentOS7
CentOS 사전 준비 및 오라클 다운로드 CentOS 패키지 설치 ##yum_for_oracle12c.sh yum update -y yum install binutils -y yum install compat-libcap1 -y yum install compat-libstdc++-33 -y yum install compat-libstdc++-33.i686 -y yum install gcc -y yum install gcc-c++ -y yum install glibc -y yum install glibc.i686 -y yum install glibc-devel -y yum install glibc-devel.i686 -y yum install ksh […]