본문 바로가기
728x90

분류 전체보기99

[Oracle] RMAN으로 아카이브 로그 삭제하기 Archive log 가 full이 되면 sys로만 접속이 가능하다.. rman으로 아카이브 로그를 삭제하여 서비스를 복구한다 -- oracle 계정으로 접속 $ su - oracle -- rman 실행 $ rman target / -- 7일 이상 된 아카이브 로그 모두 삭제 RMAN> delete noprompt archivelog until time 'sysdate-7' all; -- 아카이브 로그 모두 삭제 RMAN> delete noprompt archivelog all; -- 추가로 RMAN 카탈로그에서 지워진 archivelog 정보 정리(삭제) RMAN> crosscheck archivelog all; RMAN> delete noprompt expired archivelog all; nopr.. 2022. 8. 20.
[Ansible] Ansible playbook example - 3 Home directory 아래 폴더 생성 - Home directory 아래 폴더 ( tomcat, Jenkins, apps, logs (tomcat, apache) ) 를 생성하는 playbook --- - name: makedir hosts: all become: true tasks: - name: make directory - basic file: owner: "{{ USER_NAME }}" group: "{{ USER_GROUP }}" path: "/home/{{ USER_NAME }}/{{ item }}" state: directory mode: 0755 with_items: - jenkins - tomcat - apps - log - stat: path: "/home/{{ USER_NAME .. 2022. 8. 19.
[Ansible] Ansible playbook example - 2 Local repo 설정 파일 host server에 복사 - local repo 설정 파일을 host server에 복사하는 playbook --- - name: copyfile host: all become: true tasks: - name: copy local.repo file copy: src: /etc/yum.repos.d/local_repo dest: /etc/yum.repos.d/tmp/ - name: copy local_epel.repo file copy: src: /etc/yum.repos.d/local_epel.repo dest: /etc/yum.repos.d/tmp/ Ansible Playbook 예제 시리즈 2022.08.17 - [Dev/Linux] - [Ansible] Ansi.. 2022. 8. 18.
[Ansible] Ansible playbook example - 1 host server의 config file 변경 - host server의 config 파일을 수정하는 playbook --- - hosts: all become: true tasks: - stat: path: /tmp/local_test2.repo register: result - name: move old file command: mv /tmp/local_test2.repo /tmp/local_test2_old.repo when: - result.stat.exists - name: make local.repo file file: path: /tmp/local_test2.repo state: touch - name: modify line blockinfile: path: /tmp/local_test2.. 2022. 8. 17.
[Linux] traceroute traceroute : Show the pathway to the target and where the delay comes from. This commad helps basically in : - Providing the names and the identity of every device on the path - Reporting network latency and identify at which device the latency comes from. The output will provide the specified host, the size of the packet, the IP address, and the number of hops. traceroute can send UDP, TCP, and.. 2022. 8. 15.
[Network] Subnet subnet : logical subdivision of an IP network. subnetting : the process of dividing a network into 2 or more subnetworks subnet mask : A subnet mask is used so that a computer knows if a target computer is located in the same network or not. Subnet 1 2 4 8 16 32 64 128 256 Host 256 128 64 32 16 8 4 2 1 Subnet Mask /24 /25 /26 /27 /28 /29 /30 /31 /32 EXAMPLE 1. Question network ID : 192.168.4.0/2.. 2022. 8. 14.
728x90