오라클관련 유용한 사이트오라클관련 유용한 사이트
Posted at 2011. 3. 9. 11:08 | Posted in YD College'YD College' 카테고리의 다른 글
How to install Oracle Database 10g on Mac OS X Snow Leopard (0) | 2010.12.22 |
---|---|
인재로 길러지는 2010년 (0) | 2010.02.12 |
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 |
오라클 DBA 9기 개강오라클 DBA 9기 개강
Posted at 2010. 8. 4. 13:21 | Posted in Business이번 9기는 많지 않은 인원으로 단촐하게 시작을 한다.
무덥고 휴가 기간이 낀 상황인데도 배움에 대한 열의를 가진 이들을 환영한다.
한 달여의 기간이 이들에게 주어졌고, 주어진 시간을 마음껏 사용해야할 것이다.
최선을 다한 결과가 HRD를 통해 나오는 것을 보면서
단순 비즈니스 측면이 아닌 사회적 책임을 느끼게 되곤 한다.
실업의 상태를 벗어나 그들의 원하는 일들을 척척해내는 것을 보면서 나름 뿌듯함을 가지게 된다.
사회적 약자라는 표현이 과할지는 몰라도 정보와 환경이 그들을 사회적으로 약하게 만드는 것을 보면서
좀 더 이들을 위해 도울 수 있는 방법과 전략에 힘을 모으고 싶다.
'Business' 카테고리의 다른 글
제1회 Oracle Database 10g Championship대회 2,3등 수상 (0) | 2010.12.24 |
---|---|
대구오라클교육센터 홈페이지 개편 (1) | 2010.10.06 |
[펌-알티스토리]직장에서 문제를 일으키는 10가지 대화유형과 그 대처법 (0) | 2010.05.28 |
오라클시험센터운영(VUE)과 더불어 프로메트릭 시험센터 개설 (0) | 2010.05.20 |
대구오라클교육센터, 오라클 OCP-DBA 7기 진행 (0) | 2010.05.20 |
대구오라클교육센터, 오라클 OCP-DBA 7기 진행대구오라클교육센터, 오라클 OCP-DBA 7기 진행
Posted at 2010. 5. 20. 16:09 | Posted in Business각자의 각오들이 남달라 수업을 진행하기가 수월하다는 강사의 말을 들었다.
자신들의 앞날을 위해 끊임없이 자신을 갈고 닦으며, 채찍질해나가는 모습에 큰 박수를 보낸다.
강사들 또한, 수업시간에 아낌없이 이들에게 교육내용을 전달하고자 한다.
전달자나 수강생 모두가 저녁 늦게 까지 밤을 잊고 기술을 연마하고 있다.
그렇다.
강호무림의 수 많은 고수들을 상대할려면, 끝없는 자기 성찰이 필요하다.
또한 끊임없는 노력,인내가 필수다.
오늘 수업하는 이들을 만나게 된다. 벌써부터 가슴이 뛴다.
준비한 내용을 모두 전해 줄려면, 시간이 부족할 수 도 있지만, 이들을 위해 나 또한 최선을 다하리라.
LET'S GO.
'Business' 카테고리의 다른 글
오라클 DBA 9기 개강 (0) | 2010.08.04 |
---|---|
[펌-알티스토리]직장에서 문제를 일으키는 10가지 대화유형과 그 대처법 (0) | 2010.05.28 |
오라클시험센터운영(VUE)과 더불어 프로메트릭 시험센터 개설 (0) | 2010.05.20 |
홈퍼이지 개편을 앞두고 (0) | 2010.05.14 |
예담직업전문학교, 대구오라클교육센터 (0) | 2010.01.15 |
입학한지 벌써 6년이 지나 초등학교 졸업을 하는
진휘.
생일이 다른 이보다 늦어 잘 적응할까 고민도 했지만, 누구보다 잘 적응하고 친구들과
함께 잘 지내는 모습을 보면서 감사의 말만이 입에서 나왔다.
학교가 멀어 할아버지의 손 잡고 하교한 1학년.
누구보다 할아버지를 기다리고 좋아라 했던 모습이
눈에 선하다. 학년이 올라가면서 혼자 버스도 타고,
학원도 잘 다니는 모습에 어엿함이 보였다.
간혹 투덜대며 자기의 생각을 주장하지만, 엄마아빠의 말에는 순종을 먼저 보이는 진휘가 사랑스럽다.
앞으로 무엇을 할 것인가? 또한 삶의 목표를 어떻게 잡고 갈 것인가? 많은 숙제들이 있지만,
지금까지 함께 해주신 하나님의 보호하심으로 앞으로 진휘의 인생에 변함없으실 것을 확신한다.
축하한다. 진휘야!
'SO' 카테고리의 다른 글
말의 능력 ㅡ 최종 (0) | 2010.06.04 |
---|---|
섹소폰 연주 (0) | 2010.05.19 |
말의 능력 (0) | 2010.05.19 |
차세대 DoitforG's Car (0) | 2010.01.15 |
Tistory를 통해 소통의 장을 열어 보고자... (0) | 2010.01.15 |
예담직업전문학교, 대구오라클교육센터예담직업전문학교, 대구오라클교육센터
Posted at 2010. 1. 15. 19:42 | Posted in Business10여년의 학교 생활을 접고, 새로운 도전의 땅을 향해 발걸음을 내 딛은 날이다.
많은 이들이 힘들지 않을까요?라는 우려속에, 지금이 아니면 기회가 없을 것이라
생각이 들었고, 가족들의 힘을 빌어 사업을 시작하였다.
예담직업전문학교!
지역의 다른 교육기관과 달리 전문적인 Advanced IT 교육을 꿈꾸고 있으며,
제대로 된 교육을 통해 IT업계의 첫 발을 내 딛는 이들이 당당하게 가슴을 펴고
나아갈 수 있기를 원하는 마음이 담겨 있다.
대구오라클교육센터!
사업의 태동을 일으킨 원인 제공자.
단순히 돈벌이 수단으로서가 아닌, 이 곳을 밞는 모든 이들이 그들이 원하는
무언가를 반드시 채워줄 수 있는 기관이 되길 원한다.
'Business' 카테고리의 다른 글
오라클 DBA 9기 개강 (0) | 2010.08.04 |
---|---|
[펌-알티스토리]직장에서 문제를 일으키는 10가지 대화유형과 그 대처법 (0) | 2010.05.28 |
오라클시험센터운영(VUE)과 더불어 프로메트릭 시험센터 개설 (0) | 2010.05.20 |
대구오라클교육센터, 오라클 OCP-DBA 7기 진행 (0) | 2010.05.20 |
홈퍼이지 개편을 앞두고 (0) | 2010.05.14 |