srvctl start instance -d db -i instance
명령으로 인스턴스를 시작하려 할 때
아래처럼 에러가 나오는 경우가 있다.

 

PRKP-1001 : Error starting instance rac2 on node rac2
CRS-0215: Could not start resource 'ora.rac.rac1.inst'.

 

이 경우 db의 얼럿로그를 보거나 ocssd나 crsd나 crs의 얼럿로그를 봐야 한다.
그런데 이렇게 시작하려고 하면 db의 얼럿로그에 딱히 남는 로그가 없다.

 

제일 문제는 인스턴트가 왜 시작이 안되냐 이지만 왜 안되는지에 대한 정보를 로그에 남지 않을 경우가 있다.

 

이 때 먼저

which srvctl 명령으로 srvctl 이 어디서 실행되는 것인지 확인하고
vi로 OHOME과 CHOME이 제대로 설정되어있는지 확인한다.

 

또한 $ORACLE_HOME/bin/racgwrap 파일도 확인해 ORACLE_HOME과 CRS_HOME이 제대로 설정되어있는지 확인한다.

그리고 마지막으로

 

sqlplus / as sysdba 등의 방식으로 db에 접근해 직접 인스턴스를 시작시켜본다.

참고로 필자는 sqlplus로 인스턴스 시작시켜보니 log_archive_dest_2 가 NFS로 잡혀있는데 이것이 마운트되어있지 않아
시작을 못하고 있었다.

Posted by neo-orcl
,

HP-UX에서 발생하는 문제
아래 로그를 포함하는 트레이스 파일이 계속 생긴다. 심할 정도로
Ioctl ASYNC_CONFIG error, errno = 1

1. 만약 /dev/async 가 존재하고 설정이 맞게 되었다면 오라클은 ioctl을 통해 SGA 메모리의 async i/o를 사용하기 위해 메모리를 lock하게 된다(HP only)
2. 오라클은 /dev/async HP-UX 드라이버가 읽기/쓰기를 위해 제대로 설정되어있을 경우 /dev/async 를 open하게 된다.

위 둘이 제대로 설정되어 있다면 DISK_ASYNCH_IO 파라미터 값이 TRUE이건 말건 상관없이 적용되게 된다.

문제는 오라클이 init 셋팅에 관계없이(disk_asynch_io=false, filesystemio_options=none) async I/O를 사용하게 되는 점이다.
이 경우 filesystemio_options=none이 동작하지 않게 된다.

9.2~10.1의 경우 asynch_io를 비활성화하기 위해 아래처럼 설정한다.

chown bin:bin /dev/async
chmod 660 /dev/async

주의: 이 설정시 기존 어플리케이션에 영향을 줄 수 있기에 asynch_io를 비활성화하기 전에 db를 셧다운하는걸 권장한다.

트레이스 파일 에러가 생기는 것을 막기 위한 방법은 아래 처럼 dba 그룹에 MLOCK 권한을 주는 것이다.

# /usr/sbin/setprivgrp dba MLOCK
# vi /etc/privgroup
-- This should contain dba MLOCK RTSCHED RTPRIO
# cat /etc/privgroup
dba MLOCK RTSCHED RTPRIO

10.2 이후로는 파라미터 변경으로 asynch_io를 비활성화 하여 해결할 수 있다.
disk_asynch_io=FALSE
filesystemio_options=none

Posted by neo-orcl
,

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=29490

centos에서 booting시 sendmail 시작 과정에서 시간을 많이 잡아먹는 경우가 있다.
이때 /etc/hosts 파일이 도메인 형식을 가지지 않아서 그렇다고 한다.

※you must fully qualified domain name(FQDN)
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers
위 링크에 나온 내용

The /etc/hosts File The /etc/hosts file also is used by DNS clients and also needs to be correctly configured. Here is a brief example of the first line you should expect to see in it:

127.0.0.1 bigboy.my-site.com localhost.localdomain localhost bigboy
The entry for 127.0.0.1 must always be followed by the fully qualified domain name (FQDN) of the server. In the case above it would be bigboy.my-site.com. Then you must have an entry for localhost and localhost.localdomain. Linux does not function properly if the 127.0.0.1 entry in /etc/hosts doesn't also include localhost and localhost.localdomain. Finally you can add any other aliases your host may have to the end of the line.


예를 들어 위 링크의 변경된 내용이다.

My current hosts file:

Quote:
# Do not remove the following line, or various programs # that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.3.0.1 main
10.3.0.2 alt1

Change /etc/hosts to:

127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.3.0.1 main.my-site.com main
10.3.0.2 alt1.my-site.com alt1

도메인은 그냥 형식적으로 아무거나 써줘도 된다. 테스트로 검증됨

아니면 sendmail 서비스를 꺼주는 방법도 생각해볼만 하다

'Knowledge > OS' 카테고리의 다른 글

RHEL 4 or 5 recommended kernel parameters  (0) 2013.08.12
find: Argument list too long 해결  (0) 2013.06.14
Linux bash profile 설정팁  (0) 2013.01.22
Linux 압축관련  (0) 2013.01.21
Hdd add on Centos 5 without rebooting  (0) 2013.01.11
Posted by neo-orcl
,