2015. 10. 13. 09:34 오라클

max lun ASM 12c



12c 이전에는 디스크당 최대 LUN 크기는 2TB였음.


12c 부터는 겁나게 커짐..


Without any Oracle Exadata Storage, Oracle ASM has the following storage limits if the COMPATIBLE.ASM disk group attribute is set to 12.1 or greater:

  • 4 PB maximum storage for each Oracle ASM disk with the allocation unit (AU) size equal to 1 MB

  • 8 PB maximum storage for each Oracle ASM disk with the AU size equal to 2 MB

  • 16 PB maximum storage for each Oracle ASM disk with the AU size equal to 4 MB

  • 32 PB maximum storage for each Oracle ASM disk with the AU size equal to 8 MB

  • 320 exabytes (EB) maximum for the storage system


Posted by pat98

2015. 10. 1. 17:53 오라클

drop database


- drop database 하는 여러가지 방법

 

1.

SQL> startup mount exclusive restrict;
SQL> drop database;

 

2.

SQL> stratup mount (exclusive);
SQL> alter system enable restricted session;
SQL> drop database;

 

3.

SQL> startup nomount restrict;
SQL> alter database mount;
SQL> drop database;

Posted by pat98

오라클 설치전 kernel 값 변경, limits.conf 값 수정등이 귀찮다면 아래의 package 설치로 한방에 끝~~

 

Linux 11gR2 용

 

oracle-rdbms-server-11gR2-preinstall-1.0-12.el6.x86_64.rpm

 

Linux 12cR1 용

 

oracle-rdbms-server-12cR1-preinstall-1.0-14.el6.x86_64.rpm

 

Posted by pat98

증상 :


var/log/message 에 아래와 같은 메세지 지속적 발생 


May 17 11:55:23 db01 portmap[6404]: warning: cannot open /etc/hosts.allow: Permission denied 

 May 17 11:55:23 db01 portmap[6404]: warning: cannot open /etc/hosts.deny: Permission denied 

 May 17 11:55:23 db01 portmap[6404]: warning: cannot open /etc/hosts.allow: Permission denied 

 May 17 11:55:23 db01 portmap[6404]: warning: cannot open /etc/hosts.deny: Permission denied 

 May 17 11:55:23 db01 portmap[18262]: connect from 10.204.77.100 to callit(ypserv): request from unauthorized host


원인: 


원래 linux 에서 해당 화일 /etc/hosts.allow,/etc/hosts.deny 의 권한은 default 644 인데 Exadata는 보안을 이유로 600 으로 설정되어 있음.


NFS를 사용할때 쓰는 portmap 서비스는 rpc 유저로 실행하는데 rpc 유저가 root 소유인 해당화일을 읽지 못해 나는 에러임.


cat /etc/passwd


rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin


조치 : 


그냥 권한 바꾸면 됨. 단 DB node 만 바꾸고 셀은 건드리지 말것.


chmod 644 /etc/hosts.allow /etc/hosts.deny

Posted by pat98

- 11g listener log 위치 바꾸기 (ADR 위치변경)


1. $ORACLE_HOME/listener.ora 화일에


   ADR_BASE_LISTENER=/oralog


설정후 listener 재기동


lsnrctl reload 하면 반영안됨...설정후 listener 재기동


- ADR 하지 않고 옛날 format,또는 내 입맛대로 쓰고 싶다.


1. $ORACLE_HOME/listener.ora 화일에


DIAG_ADR_ENABLED_<LISTENER_NAME>=OFF

LOG_FILE_<LISTENER_NAME>=listener.log

LOG_DIRECTORY_<LISTENER_NAME>=/oralog


설정후 listener 재기동

Posted by pat98

Drop Tablespace Command Slow or Hanging (문서 ID 2060324.1)

 

10.2.0.5 이후

증상 : 파티션 테이블이 많이 포함되어 있어 Tablespace drop 시 시간이 오래 걸릴때

원인 : drop tablespace 명령을 내릴떄 drop table 명령이 반복적으로 수행되는데 인덱스파티션/서버파티션에 대한 정
       보를 로드하느라 과도한 "optimizer stats update retry" wait event가  발생하게 됨.

 

      drop tablespace <tablespace_name> including contents and datafiles ;

  

     Hang 걸림...


해결책 :

1. drop 전에 통계정보가 생성되어 있는지 확인하거나

2. alter session set events '14534 trace name context forever, level 1';

<drop tablespace.....>

 

(해당 이벤트를 걸면 파티션을 위한 라이브러리 캐쉬 데이타를 로딩할때 익스텐트 맵 읽는 것을 생략함으로 불필요한 이벤트가 발생하지 않게 된다)

Posted by pat98

2015. 9. 24. 14:07 오라클

12c standard edition


12c 의 12.1.0.2 부터 Enterprise 와 Standard 의 설치 Media 가 구분됨.

 

Standard Edition 은 Standard Edition Two(2 Socket 서버에서만 사용가능) 만 있으며 기존의 SE, SE one 은 없어짐

 

옵션은 Enterprise에서 사용하는 것은 아예 선택할수 없음.

 

 [oracle:/home/oracle]#ss

SQL*Plus: Release 12.1.0.2.0 Production on Thu Sep 24 13:54:40 2015
Copyright (c) 1982, 2014, Oracle.  All rights reserved.
Connected to:
Oracle Database 12c Standard Edition Release 12.1.0.2.0 - 64bit Production
<- 이전과 달리 Standard Edition 이라고 나옴

 

 

 

Posted by pat98

11.2 에서 ASM의 sys 패스워드 변경

 

1. single 환경

- DB shutdown 한후

$ export ORACLE_SID=+ASM

$ asmcmd

ASMCMD> passwd sys
Enter old password (optional): ******
Enter new password: ******

 

2. Cluster 환경

ASMCMD> orapwusr --modify --password sys

Enter password: ******
ASMCMD> exit

Posted by pat98

Cell 서버에서 아래와 같이 실행하면 된다.

 

단 Cell version 11.2.3.3.0 이상에서 해야 하고 Cell Disk 를 drop 하고 다시 생성해야 한다.

 

(root)# cellcli -e alter cell eighthRack=true

 

반대로

 

(root)# cellcli -e alter cell eighthRack=false

 

하면 disable 됨..Eighth Rack 에서 Quater Rack 으로 변경할 때 사용할듯.

 

확인은

 

(root)# cellcli -e list cell attributes eighthrack 

 

 

 

Posted by pat98


Dataguard 환경에서 sys의 암호를 바꾸면 passwd 화일을 standby 로 copy 해줘야 ora-16191 에러가 안 난다.


매번 Copy 하기 귀찮으면 DB단에서..


SQL> GRANT SYSOPER to &USER; 


SQL> ALTER SYSTEM SET REDO_TRANSPORT_USER = <user_name> SID='*';

Posted by pat98

02-12 19:02
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2025.2
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28

최근에 달린 댓글