How to install Oracle Database 10g on Mac OS X Snow LeopardHow to install Oracle Database 10g on Mac OS X Snow Leopard
Posted at 2010. 12. 22. 21:00 | Posted in YD College우선 이 자료는 교육적 목적을 가지고 있으며, 실무에서 적용되지 않을 수 있음을 밝힌다.
본 자료의 기본은 Oracle® Database Installation Guide 10g Release 2 (10.2) for Apple Mac OS X (Intel) - 문서번호(B25286-01) (http://download.oracle.com/docs/cd/B19306_01/install.102/b25286.pdf) 과 오라클 ACE인 Ray의 Apps blog(http://blog.rayapps.com/2009/09/14/how-to-install-oracle-database-10g-on-mac-os-x-snow-leopard/)임을 밝힌다.
Pre-installation Tasks
1. Xcode가 설치되어 있어야한다.(V.3.2.4)
2. Oracle Database 10g R2 for MAC (V.10.2.0.4)
Creating the Oracle Inventory Group
# dscl . -create /groups/oinstall
# dscl . -append /groups/oinstall gid 50000
# dscl . -append /groups/oinstall passwd "*" -- 생략가능
Creating the OSDBA Group
# dscl . -create /groups/dba
# dscl . -append /groups/dba gid 50001
# dscl . -append /groups/dba passwd "* -- 생략가능
Creating an Oracle Software Owner User
1. Enter the following command to list existing users and user IDs (UIDs):
# dscl . -list /users uid name | more
2. Identify an unused UID for the new Oracle software owner user.
3. Enter commands similar to the following to create the oracle user:
# dscl . -create /users/oracle
# dscl . -append /users/oracle uid 5000
# dscl . -append /users/oracle gid 50000
# dscl . -append /users/oracle shell /bin/bash
# dscl . -append /users/oracle home /Users/oracle
# dscl . -append /users/oracle realname "Oracle software owner"
4. Create the home directory for the oracle user and change the owner and
group on that directory:
# mkdir /Users/oracle
# chown oracle:oinstall /Users/oracle
5. Set the password for the oracle user:
# passwd oracle
Configuring Kernel Parameters
Use any text editor, to create or edit the /etc/sysctl.conf file, and add or
edit lines similar to the following:
# vi /etc/sysctl.conf
kern.sysv.semmsl=87381
kern.sysv.semmns=87381
kern.sysv.semmni=87381
kern.sysv.semmnu=87381
kern.sysv.semume=10
kernel.shmall=2097152
kernel.sys.shmmax=2147483648
kernel.sys.shmmni=4096
kern.maxfiles=65536
kern.maxfilesperproc=65536
net.inet.ip.portrange.first=1024
net.inet.ip.portrange.last=65000
kern.corefile=core
kern.maxproc=2068
kern.maxprocperuid=2068
Setting Shell Limits for the oracle User
1. Change directory to the following directory:
# cd /System/Library/StartupItems
2. Open the vi IPServices script using any text editor.
3. Add the following ulimit commands to the start of the StartService function
in this script: (IPServices)
ulimit -Hu 2068
ulimit -Su 2068
ulimit -Hn 65536
ulimit -Sn 65536
4. Add the same ulimit commands to the /etc/rc script, before the
SystemStarter command. (vi /etc/rc)
#vi /etc/rc
ulimit -Hu 2068
ulimit -Su 2068
ulimit -Hn 65536
ulimit -Sn 65536
- Check ulimit parameter
# ulimit -Hn
# ulimit -Sn
Creating an Oracle Base Directory
■ Identifying an existing Oracle Inventory director
# more /var/opt/oracle/oraInst.loc
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
■ Identifying existing Oracle home directories
# more /etc/oratab
*:/u03/app/oracle/product/10.2.0/db_1:N
*:/opt/orauser/infra_904:N
*:/oracle/9.2.0:N
sh-3.2# mkdir -p /u01/app/oracle
sh-3.2# chown -R oracle:oinstall /u01/app/oracle/
sh-3.2# chmod -R 775 /u01/app/oracle/
sh-3.2# chown -R oracle:oinstall /u01/app/oraInventory/
sh-3.2# chmod -R 775 /u01/app/oraInventory/
Creating Directories for Oracle Database or Recovery Files
■ Database file directory
sh-3.2# mkdir -p /u02/oradata
sh-3.2# chown oracle:oinstall /u02/oradata
sh-3.2# chmod 775 /u02/oradata
■ Recovery file directory (flash recovery area)
sh-3.2# mkdir -p /u02/flash_recovery_area
sh-3.2# chown oracle:oinstall /u02/flash_recovery_area
sh-3.2# chmod 775 /u02/flash_recovery_area
■ Create symbolic link to newer version of Java
sh-3.2# sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2
After reboot you need to log in as new “Oracle software owner”user
Keontae-Kim-ui-iMac:~ oracle$
Keontae-Kim-ui-iMac:~ oracle$ echo $SHELL
/bin/bash
Keontae-Kim-ui-iMac:~ oracle$ vi .bash_profile
umask 022
export DISPLAY=:0.0
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export DYLD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_SID=orcl
PATH=$PATH:$ORACLE_HOME/bin
ulimit -Hn 10240 --- or 65536
ulimit -Sn 256 --- or 65536
--- 인스톨후 dbca 또는 manually create database 시 ORA-12547 발생하면
Check ulimit parameter
# ulimit -Hn
???????
# ulimit -Sn
??????? 나타나는 값으로 적용할 것.
Downloading and Extracting Oracle Software from the OTN Web Sit
Keontae-Kim-ui-iMac:~ oracle$ mkdir Oradb10gformac
Keontae-Kim-ui-iMac:~ oracle$ cd Oradb10gformac
# download db.zip to this directory
Keontae-Kim-ui-iMac:~ oracle$ unzip db.zip
Keontae-Kim-ui-iMac:database oracle$ cd database
Installing the Oracle Database Software
■ Running the OUI
Keontae-Kim-ui-iMac:database oracle$ ./runInstaller -J-d32
(* In Snow Leopard you need to pass -J-d32 option to installation script to force to run Java in 32-bit mode as some native libraries are 32-bit:)
■ Normal process
- Select Installation Method
Custom 선택 --> oinstall 선택
- Specify Inventory Directory and Credentials
Check the full path of the Oracle Inventory directory(권한확인)
- Configuration Assistant
dbca로 DB생성할 것임으로 S/W만 install할 것.
- Summary
■ Check Error
In the middle of installation you will get error message “Error in invoking target ‘all_no_orcl ipc_g ihsodbc32’ …” (message truncated). Please do not press anything and switch to Terminal application.
Keontae-Kim-ui-iMac:database oracle$ cd ~/oracle/product/10.2.0/db_1/rdbms/lib
Keontae-Kim-ui-iMac:database oracle$ vi ins_rdbms.mk
“HSODBC_LINKLINE”을 찾아서 “#” 처리할 것.
# $(HSODBC_LINKLINE)
At the end of installation,
■ 터미널 창을 하나 열어서 root계정으로 shell script를 수행할 것.
Keontae-Kim-ui-iMac:database oracle$ su - username(root 권한의 계정)
Keontae-Kim-ui-iMac:database oracle$ sudo /u01/app/oracle/product/10.2.0/db_1/root.sh
Keontae-Kim-ui-iMac:database oracle$ sudo /u01/app/oracle/product/10.2.0/db_1/oraInstroot.sh
Creation of Database
■ modify .bash_profile
Keontae-Kim-ui-iMac:database oracle$ vi $HOME/.bash_profile
export ORACLE_HOME= /u01/app/oracle/product/10.2.0/db_1/
export DYLD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin
Keontae-Kim-ui-iMac:database oracle$ . ~/.bash_profile
■ Modify java 32bit
Keontae-Kim-ui-iMac:database oracle$ vi $ORACLE_HOME/jdk/bin/java
...java -Xbootclasspath... --> ...java -d32 -Xbootclasspath 로 수정할 것.
■ 오라클 실행파일이 Snow Leopard에서는 지원이 되질 않아 이전 버전인 Leopard에서 컴파일된 파일을 사용하여야 한다.(첨부파일 oracle_ee.zip 참고,)
Keontae-Kim-ui-iMac:database oracle$ cd $ORACLE_HOME/bin
Keontae-Kim-ui-iMac:database oracle$ cp $HOME/oracle/oracle_ee.zip .
Keontae-Kim-ui-iMac:database oracle$ unzip oracle_ee.zip
Keontae-Kim-ui-iMac:database oracle$ chmod ug+s oracle
Keontae-Kim-ui-iMac:database oracle$ rm oracle_ee.zip
Keontae-Kim-ui-iMac:database oracle$ dbca
- Create a Database
- General Purpose
- Specify orcl as Global Database Name and SID
- Specify password for SYS and SYSTEM users
- I selected also Sample Schemas
- and in Character Sets I selected Use Unicode (AL32UTF8)
Setup network
■ Create listener.ora
Keontae-Kim-ui-iMac:database oracle$ vi $ORACLE_HOME/network/admin/listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
■ Create tnsnames.ora
Keontae-Kim-ui-iMac:database oracle$ vi $ORACLE_HOME/network/admin/tnsnames.ora
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
Post-Installation
Keontae-Kim-ui-iMac:database oracle$ lsnrctl start
Keontae-Kim-ui-iMac:db_1 oracle$ sqlplus '/as sysdba'
SQL> alter user hr identified by hr account unlock;
SQL> conn system/oracle
Connected.
SQL> @?/sqlplus/admin/pupbld
* EM은 지원이 안됨.
'YD College' 카테고리의 다른 글
오라클관련 유용한 사이트 (0) | 2011.03.09 |
---|---|
인재로 길러지는 2010년 (0) | 2010.02.12 |
가을하늘에서 하나님의 마음을 봅니다.가을하늘에서 하나님의 마음을 봅니다.
Posted at 2010. 10. 8. 14:29 | Posted in For God'For God' 카테고리의 다른 글
하나님의 음성을 듣는 열두 가지 원칙 (0) | 2014.11.28 |
---|---|
D-2 필리핀 단기선교 (0) | 2010.08.11 |
2010년 성공하는 이들을 위한 삶의 원리 -1 (0) | 2010.01.15 |
대구오라클교육센터 홈페이지 개편대구오라클교육센터 홈페이지 개편
Posted at 2010. 10. 6. 17:47 | Posted in Business- W3C 권고에 의한 웹표준 준수
크로스브라우징을 통해 익스플로러8.0이상, 파이어폭스,크롬, 사파리 등 다양한 브라우저에서 웹사이트를 볼 수 있기를, 내 Mac에서는 이전 홈페이지가 열리지가 않았다. 그렇다 보니 늘 직원들의 피시를 빌려야 했고...쯔쯔..
- Web2.0 기반의 커뮤니티 기능 강화
고객들의 다양한 요구사항을 표현할 공간이 부족했고, 특히 블로그에 익숙한 대부분의 고객들을 위한 환경이 필요했다.
- 모바일웹 표준화 적용
많은 이들이 가지고 있는 스마트폰에서 모바일에 최적화된 웹을 통해 우리의 정보를 공유하고 싶었다. 작은 화면에서 홈페이지를 손가락으로 넓히고 줄이는 것은 내게도 힘든 작업이었다.
- 페이스북, 트위터 등 SNS와 연동
"요즘 트위터하세요?" - 요즘 만나는 이들마다 묻는다.
그래서 누구나 하는 트위터를 홈페이지와 연동하고 싶었다.
- 세련되고 감성을 살려 디자인된 홈페이지
정말 원했던 사항이고, 앞으로 계속 발전시켜나가야할 숙제이다.
그 작업이 끝나서 오픈되었고, URL을 www.daeguoracle.com 으로 포워딩해 놓았다.
마음 한 켠에는 아쉬움도 있지만...
그동안 수고해준 웹액츄얼리에게 감사를 표한다.
많은 이들에게 좀 더 나은 서비스를 제공해 줄 수 있기를 기대하며....
'Business' 카테고리의 다른 글
제1회 Oracle Database 10g Championship대회 2,3등 수상 (0) | 2010.12.24 |
---|---|
오라클 DBA 9기 개강 (0) | 2010.08.04 |
[펌-알티스토리]직장에서 문제를 일으키는 10가지 대화유형과 그 대처법 (0) | 2010.05.28 |
오라클시험센터운영(VUE)과 더불어 프로메트릭 시험센터 개설 (0) | 2010.05.20 |
대구오라클교육센터, 오라클 OCP-DBA 7기 진행 (0) | 2010.05.20 |