[공지] 댓글 작성에 관해서.

이 사이트에 댓글을 남기면, 즉시 표시되지 않고 관리자의 검토 승인 후 댓글이 표시됩니다.
스팸댓글 등의 이유로 이렇게 사용중이니, 댓글 남긴 후 작성한 댓글이 보이지 않아도 다시 작성할 필요가 없습니다.
참고 하여 주시기 바랍니다.

우분투 리눅스에 오라클 클라이언트 설치(rpm 패키지)

Ubuntu 리눅스에 Oracle Client 설치하기 – rpm 패키지로

작업 환경
* 클라이언트:
os: ubuntu 22.04
IP 주소: 172.30.124.211

오라클 데이터베이스 서버:
OS: Oracle Linux 8
오라클 데이터베이스: oracle 19c 그리드환경
서비스 이름: orcl
SCAN-IP 주소: fox-scan (172.20.124.241, 172.20.124.242, 172.30.124.243)

오라클 클라이언트는 데비안 패키지 배포는 지원하지 않으므로, rpm 패키지나 tar 파일을 받아서 설치해야한다.
여기서는 rpm 패키지를 alien 명령으로 설치하도록 한다.

1. 오라클 사이트에서 아래 rpm 패키지를 다운로드한다.

oracle-instantclient-basic-21.13.0.0.0-1.el8.x86_64.rpm    
oracle-instantclient-devel-21.13.0.0.0-1.el8.x86_64.rpm    
oracle-instantclient-sqlplus-21.13.0.0.0-1.el8.x86_64.rpm

sql 명령을 클라이언트측에서 직접 사용할 필요가 없다면 마지막 패키지는 설치하지 않아도 된다.

Continue reading

Grid 환경에서 오라클 데이터베이스 사용

사용할 데이터베이스는 이전글에서 설치한 그리드 환경의 oracle19c 이다.

설치와 설치된 환경은 아래 글 참고.

* 데이터베이스에 접속한다.(그리드 환경의 노드 1 또는 2의 리눅스 oracle계정)

$ sqlplus sys/******@fox-scan/orcl as sysdba


SQL*Plus: Release 19.0.0.0.0 - Production on Thu Apr 18 14:31:12 2024
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL>

Continue reading

oracle grid 19c, oracle database 설치

oracle grid 환경에서 oracle database 설치하기.

* 작업환경

각각 VMware VM.

OS: Oracle Linux 8.9
HDD(OS): 100GB
ASM DATA DISK: 50GB x 3( /dev/sdb, /dev/sdc, /dev/sdd 각 50GB)
MEM: 16GB
swap: 16GB

 

1. OS 기본설정 및 사전 준비사항

* selinux 해제

# getenforce
Enforcing
# setenforce 0
# getenforce
Permissive

영구 적용을 위해 /etc/selinux/config에 아래 항목을 수정한다.

# vi /etc/selinux/config
...
#SELINUX=enforcing
SELINUX=peremissive
...

* 리눅스 방화벽 해제.

# systemctl stop firewalld
# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

* oracleasm 커널모듈 설치

# dnf install kmod-oracleasm

Continue reading

CentOS 기본 부팅 커널 설정 변경

CentOS 기본 부팅 커널 설정 변경

oracleasm 커널 모듈을 탑재하려고 했으나, 5.x 커널은 지원되지 않는다. 부팅시 커널을 선택하면 되지만, 기본 부팅 커널을 변경해 놓으면 따로 선택하지 않아되 된다.

먼저, 현재 커널 버전을 확인 해 본다.

# uname -a
Linux grid-2 5.15.0-204.147.6.2.el8uek.x86_64 #2 SMP Thu Mar 7 21:48:25 PST 2024 x86_64 x86_64 x86_64 GNU/Linux

grubby 명령어로 현재 설치된 커널을 볼 수 있다.

# grubby --info=ALL | egrep -i "kernel|title"
kernel="/boot/vmlinuz-5.15.0-204.147.6.2.el8uek.x86_64"
args="ro crashkernel=auto rhgb quiet numa=off transparent_hugepage=never $tuned_params"
title="Oracle Linux Server 8 (5.15.0-204.147.6.2.el8uek.x86_64) "
kernel="/boot/vmlinuz-5.15.0-101.103.2.1.el8uek.x86_64"
args="ro crashkernel=auto rhgb quiet numa=off transparent_hugepage=never $tuned_params"
title="Oracle Linux Server 8 (5.15.0-101.103.2.1.el8uek.x86_64) "
kernel="/boot/vmlinuz-4.18.0-513.18.1.el8_9.x86_64"
args="ro crashkernel=auto rhgb quiet numa=off transparent_hugepage=never $tuned_params"
title="Oracle Linux Server (4.18.0-513.18.1.el8_9.x86_64) 8.9"
kernel="/boot/vmlinuz-4.18.0-477.10.1.el8_8.x86_64"
args="ro crashkernel=auto rhgb quiet numa=off transparent_hugepage=never $tuned_params"
title="Oracle Linux Server (4.18.0-477.10.1.el8_8.x86_64) 8.8"
kernel="/boot/vmlinuz-0-rescue-4ec77e3bebc1438890ddbdcb1d97051f"
args="ro crashkernel=auto rhgb quiet numa=off transparent_hugepage=never $tuned_params"
title="Oracle Linux Server 8 (0-rescue-4ec77e3bebc1438890ddbdcb1d97051f) "

이제, 아래 명령으로 부팅 기본값을 변경한다.

# grubby --set-default /boot/vmlinuz-4.18.0-513.18.1.el8_9.x86_64
The default is /boot/loader/entries/4ec77e3bebc1438890ddbdcb1d97051f-4.18.0-513.18.1.el8_9.x86_64.conf with index 2 and kernel /boot/vmlinuz-4.18.0-513.18.1.el8_9.x86_64

변경사항 적용 및 확인을 위해 재부팅한다.

# reboot

재부팅 후 커널 버전 확인해 보면 원하는 커널로 부팅된것을 확인 할 수 있다.

# uname -a
Linux grid-1 4.18.0-513.18.1.el8_9.x86_64 #1 SMP Wed Mar 6 09:34:46 PST 2024 x86_64 x86_64 x86_64 GNU/Linux

참고로, 레드햇 계열 리눅스는 grubby 명령을 사용하지만, 우분투 리눅스처럼 데비안 계열 리눅스는 update-grub2 명령을 사용한다.

시스코 c9200L 스위치 공장초기화 및 OS설치.

시스코 c9200l 스위치 공장초기화 및 복구(OS설치).

설정만 지우려고 했지만, 실수로 공장 초기화를 진행해 버렸다!!!

참고로, factory-reset all 명령은 모든 로그, 사용자정보, 설정, 부팅 이미지를 포함한 모든 IOS 이미지등 모두 지워버려서, 스위치가 부팅되지 않는다.

중간에 취소할 기회가 있었는데, 아래 경고문을 읽어보지 않고 진행을 해 버렸다! ;^^

Switch_5F#factory-reset all 
The factory reset operation is irreversible for all operations. Are you sure? [confirm]
 The following will be deleted as a part of factory reset:
 1: Crash info and logs
 2: User data, startup and running configuration
 3: All IOS images, including the current boot image
 4: User added rommon variables
 5: OBFL logs
 6: Data on Field Replaceable Units(USB/SSD/SATA)
 The system will reload to perform factory reset.
 It will take some time to complete and bring it to rommon.
 You will need to load IOS image using USB/TFTP from rommon after
 this operation is completed.
 DO NOT UNPLUG THE POWER OR INTERRUPT THE OPERATION
 Are you sure you want to continue? [confirm]
Chassis 1 reloading, reason - Factory Reset

 Protection key not found
Switch_5F#Platform Info Send - Switch Config Message LIPC Message Send failed: Broken pipe 
Feb 20 08:57:43.920: %PMAN-5-EXITACTION: F0/0: pvp: Process manager is exiting: reload fp action requested
Feb 20 08:57:44.366: %PMAN-5-EXITACTION: C0/0: pvp: Process manager is exiting: reload cc action requested
Feb 20 08:57:48.568: %PMAN-5-EXITACTION: R0/0: pvp: Process manager is exiting: rp processes exit with reload switch code


Enabling factory reset for this reload cycle
 Switch booted with flash:packages.conf 
 Switch booted via packages.conf 
% FACTORYRESET - Started Cleaning Up...
 
% FACTORYRESET - Unmounting sd1
% FACTORYRESET - Cleaning Up sd1 [0]
% FACTORYRESET - erase In progress.. please wait for completion...
% FACTORYRESET - write zero...
% FACTORYRESET - finish erase
 
% FACTORYRESET - Making File System sd1 [0]
mke2fs 1.43-WIP (18-May-2015)
Discarding device blocks:   4096/204800             done                            
Creating filesystem with 204800 4k blocks and 51296 inodes
Filesystem UUID: 97abf68b-5e65-4b4d-bcad-4397e3367531
Superblock backups stored on blocks: 
32768, 98304, 163840

Allocating group tables: 0/7   done                            
Writing inode tables: 0/7   done                            
Writing superblocks and filesystem accounting information: 0/7   done
% FACTORYRESET - Mounting Back sd1 [0]
% FACTORYRESET - Factory Reset Done for sd1
 
% FACTORYRESET - Unmounting sd3
% FACTORYRESET - Cleaning Up sd3 [0]
% FACTORYRESET - erase In progress.. please wait for completion...
% FACTORYRESET - write zero...
% FACTORYRESET - finish erase
 
% FACTORYRESET - Making File System sd3 [0]
mke2fs 1.43-WIP (18-May-2015)
Discarding device blocks:   4096/485376             done                            
Creating filesystem with 485376 4k blocks and 121440 inodes
Filesystem UUID: 132f9efb-4852-46af-86bd-9ee7c420f8e5
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912

Allocating group tables:  0/15     done                            
Writing inode tables:  0/15     done                            
Writing superblocks and filesystem accounting information:  0/15     done
% FACTORYRESET - Mounting Back sd3 [0]
% FACTORYRESET - Factory Reset Done for sd3
 
% FACTORYRESET - Unmounting sd6
% FACTORYRESET - Cleaning Up sd6 [0]
% FACTORYRESET - erase In progress.. please wait for completion...
% FACTORYRESET - write zero...
% FACTORYRESET - finish erase
 
% FACTORYRESET - Making File System sd6 [0]
mke2fs 1.43-WIP (18-May-2015)
Discarding device blocks:   1024/131072             done                            
Creating filesystem with 131072 1k blocks and 32768 inodes
Filesystem UUID: b378204e-35c9-45e9-8fd1-cb36874f91bf
Superblock backups stored on blocks: 
8193, 24577, 40961, 57345, 73729

Allocating group tables:  0/16     done                            
Writing inode tables:  0/16     done                            
Writing superblocks and filesystem accounting information:  0/16     done
% FACTORYRESET - Mounting Back sd6 [0]
% FACTORYRESET - Factory Reset Done for sd6
% FACTORYRESET - Lic Clean UP
% FACTORYRESET - Lic Clean Successful...
% FACTORYRESET - Clean Up Successful...
% FACTORYRESET - Check for usbflash/sdflash devices...
ReloadReason=Factory Reset
Factory reset successful. Rebooting...

Initializing Hardware...
NOTICE: Please reset the device for the new MAC_ADDR value to take effect.


System Bootstrap, Version 17.9.1r [FC13], RELEASE SOFTWARE (P) 
Compiled Thu 06/08/2023 20:36:25 by rel

Current ROMMON image : Primary
C9200L-48P-4X platform with 2097152 Kbytes of main memory

WARNING: Bootable URL's in BOOT variable not found or exhausted.
         Please check the ROMMON configuration or boot command usage.

switch:

Continue reading

익스트림 스위치 dhcp 서버 설정.

Extreme switch에 dhcp servcer 설정하기

사용한 스위치는 x430-48t 이며, 현재 VLAN은 아래와 같다.

* X430-48t.13 # show vlan
-----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual   
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Default         1    ------------------------------------------------- ANY    0 /0   VR-Default 
dhcp_test       100  172.16.100.1   /24  ----------------------------- ANY    0 /12  VR-Default 
Mgmt            4095 ------------------------------------------------- ANY    0 /1   VR-Mgmt    
-----------------------------------------------------------------------------------------------
Flags : (B) BFD Enabled, (c) 802.1ad customer VLAN, (C) EAPS Control VLAN,
        (d) Dynamically created VLAN, (D) VLAN Admin Disabled,
        (e) CES Configured, (E) ESRP Enabled, (f) IP Forwarding Enabled,
        (F) Learning Disabled, (h) TRILL Enabled, (i) ISIS Enabled,
        (I) Inter-Switch Connection VLAN for MLAG, (k) PTP Configured,
        (l) MPLS Enabled, (L) Loopback Enabled, (m) IPmc Forwarding Enabled,
        (M) Translation Member VLAN or Subscriber VLAN, (n) IP Multinetting Enabled,
        (N) Network Login VLAN, (o) OSPF Enabled, (O) Flooding Disabled,
        (p) PIM Enabled, (P) EAPS protected VLAN, (r) RIP Enabled,
        (R) Sub-VLAN IP Range Configured, (s) Sub-VLAN, (S) Super-VLAN,
        (t) Translation VLAN or Network VLAN, (T) Member of STP Domain,
        (v) VRRP Enabled, (V) VPLS Enabled, (W) VPWS Enabled, (Z) OpenFlow Enabled

Total number of VLAN(s) : 3 

dhcp_test vlan에 dhcp 서버를 설정한다.

주의 사항: VLAN 이름을 사용하지 않고 VLAN ID를 사용하면 dhcp 설정을 할 수 없다.

1. DHCP를 적용할 포트, VLAN을 설정한다.

* X430-48t.14 # enable dhcp ports 1-12 vlan "dhcp_test" 

Continue reading

아루바 AP-134 UI 플래그

Aruba AP-134 프로비저닝후 작동안함! – UI flag.

AP-134를 설정하여 campus 네트워크에 추가 설치하였으나, 아래처럼 컨트롤러에서 인식하는 상태이나, UI 플래그가 보이며 사용할 수 없는 상태가 되었다.
참고로, AP-134는 안테나를 장착해야 하는 모델이다.

( Controller_1) [mynode] #show ap database group Area

Area-1F-07      Area  134      172.16.10.106  Up 44m:41s           UI     172.16.100.131  172.16.100.132


Flags: 1 = 802.1x authenticated AP use EAP-PEAP; 1+ = 802.1x use EST; 1- = 802.1x use factory cert; 2 = Using IKE version 2
       B = Built-in AP; C = Cellular RAP; D = Dirty or no config
       E = Regulatory Domain Mismatch; F = AP failed 802.1x authentication
       G = No such group; I = Inactive; J = USB cert at AP; L = Unlicensed
       M = Mesh node
       N = Duplicate name; P = PPPoe AP; R = Remote AP; R- = Remote AP requires Auth;
       S = Standby-mode AP; U = Unprovisioned; X = Maintenance Mode
       Y = Mesh Recovery
       c = CERT-based RAP; e = Custom EST cert; f = No Spectrum FFT support
       i = Indoor; o = Outdoor; s = LACP striping; u = Custom-Cert RAP; z = Datazone AP
       p = In deep-sleep status
       4 = WiFi Uplink
       r = Power Restricted; T = Thermal ShutDown

bss-table을 확인해 보면, 전파를 방사하지 못하는 상태이다.

( Controller_1) [mynode] #show ap bss-table ap-name Nocken-1F-07

fm (forward mode): T-Tunnel, S-Split, D-Decrypt Tunnel, B-Bridge (s-standard, p-persistent, b-backup, a-always), n-anyspot

cluster (cluster role): U-UAC, A-AAC, sU-Standby UAC, sA-Standby AAC

Aruba AP BSS Table
------------------
bss  ess  port  ip  phy  type  ch/EIRP/max-EIRP  cur-cl  ap name  in-t(s)  tot-t  mtu  acl-state  acl  fm  flags  cluster  datazone
---  ---  ----  --  ---  ----  ----------------  ------  -------  -------  -----  ---  ---------  ---  --  -----  -------  --------

Channel followed by "*" indicates channel selected due to unsupported configured channel.
"Spectrum" followed by "^" indicates Local Spectrum Override in effect.

Num APs:0
Num Associations:0

Flags:       K = 802.11K Enabled; W = 802.11W Enabled; 3 = WPA3 BSS; O = Enhanced-open BSS with transition mode; o = Enhanced-open transition mode open BSS; M = WPA3-SAE mixed mode BSS; E = Enhanced-open BSS without transition mode; m = Agile Multiband (MBO) BSS; c = MBO Cellular Data Capable BSS; I = Imminent VAP Down; T = Individual TWT Enabled; t = Broadcast TWT Enabled; D = VLAN Discovered; 

Continue reading

오라클 19c 설치 – 오라클 리눅스8에.

Oracle Linux 8에 Oracle 19c 설치

* 설치 환경
Memory: 16GB
SWAP : 16GB

OS: Oracle Linux 8.8 최소설치 버전(서버)
IP 주소: 172.30.124.212/24

* 사전작업
selinux를 사용하지 않도록 설정한다.

[root@localhost etc]# getenforce
Enforcing
[root@localhost etc]# setenforce 0
[root@localhost etc]# getenforce
Permissive

오라클 설치 파일 LINUX.X64_193000_db_home.zip 을 다운로드 받아둔다.

1. 오라클 preinstall 패키지 설치
예전 버전설치 할 때 사용자 계정 만들기, 커널 파라메터 수정, 필요 패키지 설치등을 해결해 주는 패키지.
dnf 명령으로 설치가능한 패키지를 확인하면 아래처럼 19c, 21c 두 버전이 보인다. oracle 19c를 설치할 것이므로 19c 패키지를 설치한다.

[root@localhost ~]# dnf list oracle-database-preinstall*
Last metadata expiration check: 0:26:46 ago on Wed 25 Oct 2023 08:54:53 PM EDT.
Available Packages
oracle-database-preinstall-19c.src                       1.0-2.el8                    ol8_appstream
oracle-database-preinstall-19c.x86_64                    1.0-2.el8                    ol8_appstream
oracle-database-preinstall-21c.src                       1.0-1.el8                    ol8_appstream
oracle-database-preinstall-21c.x86_64                    1.0-1.el8                    ol8_appstream

oracle-database-preinstall-19c.x86_64 패키지를 설치한다.

[root@localhost ~]# dnf install oracle-database-preinstall-19c

Continue reading

Cisco Nexus 7000 수퍼바이저 모듈 파워다운

Cisco Nexus 7000 수퍼바이저 모듈 powered down.

Active supervisor 상태가 powered-dn 으로 바뀌고 standby 모듈이 active 상태가 되었으며, 경고등이 점등된 상태.

vdc-2 에서는 아래와 같은 로그를 확인 할 수 있었다.

2023 Aug 21 13:30:24 Backbone_2-Main %PLATFORM-2-MOD_PWRDN: Module 5 powered down (Serial number )
2023 Aug 21 13:30:24 Backbone_2-Main %PLATFORM-5-MOD_STATUS: Module 5 current-status is MOD_STATUS_CONFIGPOWERED_DOWN
2023 Aug 21 13:30:24 Backbone_2-Main %PLATFORM-5-MOD_STATUS: Module 5 current-status is MOD_STATUS_POWERED_DOWN
2023 Aug 21 13:30:25 Backbone_2-Main %PLATFORM-2-MOD_REMOVE: Module 5 removed (Serial number )

Continue reading

Nexus 7K module, Online Diag Status Fail.

시스코 Nexus7K, Online Diag Status Fail.

1. show module 명령어 실행 결과 에서 module 10의 diagnostic 상태 Fail을 확인함.

SWITCH# show module

...

Mod  Online Diag Status
---  ------------------
1    Pass
3    Pass
5    Pass
6    Pass
8    Pass
10   Fail

...

Continue reading