1. 기동 스크립트 작성
[tibero6@tiberovm:/home/tibero6/script]$ cat start.sh
#!/bin/sh
#start tibero DB
tbboot
sleep 10
2. rc.local 등록
[root@tiberovm ~]# cd /etc/rc.d/
[root@tiberovm rc.d]# ls -al
total 16
drwxr-xr-x. 10 root root 127 Feb 13 15:56 .
drwxr-xr-x. 151 root root 8192 Feb 13 15:58 ..
drwxr-xr-x. 2 root root 85 Feb 10 09:50 init.d
drwxr-xr-x. 2 root root 45 Jan 16 23:47 rc0.d
drwxr-xr-x. 2 root root 45 Jan 16 23:47 rc1.d
drwxr-xr-x. 2 root root 45 Jan 16 23:47 rc2.d
drwxr-xr-x. 2 root root 45 Jan 16 23:47 rc3.d
drwxr-xr-x. 2 root root 45 Jan 16 23:47 rc4.d
drwxr-xr-x. 2 root root 45 Jan 16 23:47 rc5.d
drwxr-xr-x. 2 root root 45 Jan 16 23:47 rc6.d
-rwxr-xr-x 1 root root 527 Feb 13 15:56 rc.local
[root@tiberovm rc.d]# vi rc.local
3. rc.local 서비스 시작
[root@tiberovm rc.d]# systemctl start rc-local
[root@tiberovm rc.d]# systemctl status rc-local
● rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static; vendor preset: disabled)
Active: active (exited) since Mon 2023-02-13 15:58:52 KST; 2min 29s ago
Process: 1242 ExecStart=/etc/rc.d/rc.local start (code=exited, status=0/SUCCESS)
Tasks: 0
Feb 13 15:58:27 tiberovm systemd[1]: Starting /etc/rc.d/rc.local Compatibility...
Feb 13 15:58:29 tiberovm su[1248]: (to tibero6) root on none
Feb 13 15:58:35 tiberovm rc.local[1242]: Warning: The initialization parameter 'MEMORY_TARGET' value is greater than the physical system memory size. MEMORY_TARGET: 4294967296 Physical...
Feb 13 15:58:35 tiberovm rc.local[1242]: Change core dump dir to /tibero_engine/tibero6/bin/prof.
Feb 13 15:58:42 tiberovm rc.local[1242]: Tibero 6
Feb 13 15:58:42 tiberovm rc.local[1242]: TmaxData Corporation Copyright (c) 2008-. All rights reserved.
Feb 13 15:58:42 tiberovm rc.local[1242]: Tibero instance started up (NORMAL mode).
Feb 13 15:58:52 tiberovm systemd[1]: Started /etc/rc.d/rc.local Compatibility.
Hint: Some lines were ellipsized, use -l to show in full.
4. Test
[tibero6@tiberovm:/home/tibero6]$ tbdown immediate
Tibero instance terminated (IMMEDIATE mode).
[tibero6@tiberovm:/home/tibero6]$ ps -ef | grep tbsvr
tibero6 4454 4346 0 15:57 pts/1 00:00:00 grep --color=auto tbsvr
[root@tiberovm rc.d]# reboot -h now
[root@tiberovm ~]# ps -ef | grep tbsvr
tibero6 1614 1 7 16:04 ? 00:00:00 tbsvr -t NORMAL -SVR_SID TB6
tibero6 1686 1614 0 16:04 ? 00:00:00 tbsvr_MGWP -t NORMAL -SVR_SID TB6
tibero6 1687 1614 0 16:04 ? 00:00:00 tbsvr_FGWP000 -t NORMAL -SVR_SID TB6
tibero6 1688 1614 0 16:04 ? 00:00:00 tbsvr_FGWP001 -t NORMAL -SVR_SID TB6
tibero6 1689 1614 0 16:04 ? 00:00:00 tbsvr_PEWP000 -t NORMAL -SVR_SID TB6
tibero6 1690 1614 0 16:04 ? 00:00:00 tbsvr_PEWP001 -t NORMAL -SVR_SID TB6
tibero6 1691 1614 0 16:04 ? 00:00:00 tbsvr_PEWP002 -t NORMAL -SVR_SID TB6
tibero6 1692 1614 0 16:04 ? 00:00:00 tbsvr_PEWP003 -t NORMAL -SVR_SID TB6
tibero6 1693 1614 4 16:04 ? 00:00:00 tbsvr_AGNT -t NORMAL -SVR_SID TB6
tibero6 1694 1614 0 16:04 ? 00:00:00 tbsvr_DBWR -t NORMAL -SVR_SID TB6
tibero6 1695 1614 2 16:04 ? 00:00:00 tbsvr_RCWP -t NORMAL -SVR_SID TB6
root 1872 1801 0 16:04 pts/1 00:00:00 grep --color=auto tbsvr
▶ 정상적으로 올라와있는 것을 확인
'DB > Tibero' 카테고리의 다른 글
[Migration] Oracle Gateway를 활용한 Oracle to Tibero DB Link (0) | 2023.03.29 |
---|---|
[Install] Tibero 6 Installation (0) | 2023.01.25 |