'2007/11'에 해당되는 글 7건
Derby vs. HSQLDB :: 2007/11/23 22:44
이중에서 많이 쓰이는 것 중에 구 IBM Cloudscape에서 나온 Apache Derby 와 HSQLDB가 많이 쓰이는 듯 하다. 이들은 자바로 작성되어 있어 자바 가상 머신(JVM)이 있는 어느 곳에서나 실행될 수 있고, 모두 소형 DB에 적합한 형태이다.
구동 방식은 별도의 네트워크 서버로 동작하여 클라이언트-서버 연결(client-server connection) 형태로 동작하거나, Java 어플리케이션의 JVM에 안에 In-memory 형태의 임베디드 데이터베이스(embeded database)로 동작되어 질 수 있다.
Apache Derby 는 SUN의 JDK에 적극 채택되어 Java SE 6.0 에서 Java DB 라는 명칭으로 제공되어지고 있다. Derby 가 HSQLDB 보다 좀 더 큰 DB를 구성하는데 적합하다고 한다. 하지만 최근 HSQLDB도 버전업을 하면서 8G까지 지원을 하며, OpenOffice.org 2.0 의 데이어베이스 엔진으로 사용되어 지고 있고, 속도면에서는 HSQLDB가 Derby보다 우수하다고 한다.
최근 알게된 한 엔지니어에 따르면 국내 유명 APM 솔루션인 제니퍼(Jennifer)가 Derby를 DB로 사용하여 데이터를 게더링하고 있는데, 10G가 넘어도 잘 돌아간다고 Derby에 대한 칭찬을 아까지 않았다.
물론 메인 DB로 사용을 하려면 오라클, MySQL 과 같은 중대형 DB 솔루션을 찾아야 한다. 하지만 소형의 C/S 어플리케이션이나 솔루션에는 Apache Derby 나 HSQLDB 와 같은 소형 임베디드 데이터베이스가 좋은 대안이 될 수 있을 것 같다.
IBM 웹스피어 EJB 배포 및 DS 생성하기 :: 2007/11/22 23:52
최근 모 증권사 EAI 구축을 위한 PoC를 준비하면서 IBM 웹스피어를 오랜만에 다시 설치해 보았다. BEA 웹로직과는 EJB 배포 방식이나 DB 연결을 위한 데이터 소스 생성 방식이 사뭇 달랐다. EJB 배포 방법과 JDBC 데이터 소스 생성방법을 간단히 정리해 본다.
EJB 배포
웹로직 처럼 weblogic-jar.xml 등을 별도로 구성하여 따로 컴파일하지 않는데, 이점이 웹로직 서버와 EJB 배포방식에서 가장 큰 차이점이라고 할 수 있다. 배포 방식은 웹로직보다 더 편한 것 같다.
1. 표준 EJB 파일을 만들고, ejb-jar.xml 파일만을 포함하여 패키징한다.
2. 관리 콘솔의 응용프로그램 메뉴에서 '새 응용프로그램 설치'를 선택한다.
3. 컴파일한 파일을 지정하고 다음으로 넘어간다.
4. 기타 설치 옵션을 확인 후 다음으로 넘어간다. 엔터프라이즈 Bean 전개가 포함되어 있게 한다.
5. 서버에 모듈 매핑 확인 후 다음으로 넘어간다.
6. 대상 자원 JNDI 이름을 지정한다. 예로 BankAccountHome 와 같이 입력했을 경우 cell/nodes/belee01Node01/servers/server1/BankAccountHome 과 같은 JNDI 주소를 갖는다.
7. 최종 확인 후 완료 버튼을 누른다. 이후 EJB 전개 프로세스가 진행된다.
8. 완료되면 마스터 구성에 직접 저장을 클릭하여 저장한다.
9. 응용프로그램 목록에서 해당 EJB를 시작한다.
데이터 소스 생성하기
1. 관리 콘솔의 자원 메뉴의 하위 메뉴인 JDBC에서 JDBC 프로바이더를 새로 작성한다. 이때 데이터베이스 유형 및 구현 유형 등을 선택하는데, XA 지원을 위해서는 XA 데이터 소스를 선택한다.
2. JDBC 프로바이더 생섷 후 데이터 소스 메뉴에서 데이터 소스를 생성한다.
3. 데이터 소스 이름과 JNDI 이름을 지정하고, DB 사용자 인증를 위해 '컴포넌트 관리 인증 별명 및 XA 복구 인증 별명'을 지정한다. 없을 경우 'J2C 인증 별명 새로 작성하기'를 클릭하여 새로 작성한다.
4. 기존의 JDBC 프로바이더를 선택하여 이전에 작성한 JDBC 프로바이더를 지정한다.
5. JDBC 접속 URL 정보를 입력한다. (예 jdbc:oracle:thin:@localhost:1521:orcl)
6. 최종 확인 후 완료한 후 마스터 구성에 직접 저장을 클릭하여 저장한다.
7. 데이터 소스 목록에서 연결 테스트를 수행하여 확인한다.
Adobe CS3 설치 후 Bonjour 서비스 제거 :: 2007/11/10 22:07
##Id_String2.6844F930_1628_4223_B5CC_5BB94B879762##
CS3의 Version Cue와 관련된 Bonjour 이란 서비스인데, 서비스명을 바로 정정하거나 필요없다면 제거할 수 있다.
[서비스명 바로잡기]
1. C:\Program Files\Bonjour\mDNSResponder.exe -remove
2. C:\Program Files\Bonjour\mDNSResponder.exe -install
[서비스 제거하기]
1. C:\Program Files\Bonjour\mDNSResponder.exe -remove
2. C:\Program Files\Bonjour 디렉토리에 있는 mdnsNSP.dll 파일을 mdnsNSP.dll.old 등으로 리네임.
3. 컴퓨터 재시작 후 C:\Program Files\Bonjour 디렉토리 제거
참조: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb400982&sliceId=2
IBM AIX 5L에 Orable 10g 설치하기 :: 2007/11/06 20:35
IBM AIX 5L에 오라클 10g 설치하기
1. 파일시스템 점검
- AIX 파일 시스템 관리 명령
# smitty jfs2 --> 파일 시스템 크기를 조정하고, 파티션을 설정한다.
- 파일시스템 볼륨 보기
# lsvg
2. 네트워크 점검
/etc/hosts 파일
/etc/netsvc.conf 파일 설정 점검 --> hosts=local,bind 로 설정
# hostname
3. 유닉스 그룹 및 유저 생성
oracle 유정 생성
dba 및 oinstall 그룹 생성 --> oracle 유저 지정
# smitty user
# smitty group
# smit security
4. ~oracle/.profile 파일 환경 설정 --> 오라클 설치시 꼭 필요한 것은 아님.
ORACLE_BASE=/home/oracle
ORACLE_HOME=/home/oracle/product/10.2.0/db_1
ORACLE_SID=orcl --> 대소문자 주의
5. 설치시 필요한 어플리케이션 점검
6. AIX Common Desktop Environment (CDE) 에서 설치 시작
7. 서비스 중지/시작
- DB 인스턴스
$ sqlplus /nolog
SQL> CONNECT SYS/sys_password as SYSDBA
SQL> SHUTDOWN NORMAL
$ sqlplus /nolog
SQL> CONNECT SYS/sys_password as SYSDBA
SQL> STARTUP
- 리스너
$ ps -ef | grep tnslsnr
$ $ORACLE_HOME/bin/lsnrctl stop LISTENER
$ $ORACLE_HOME/bin/lsnrctl start LISTENER
- DB 관리 콘솔
$ $ORACLE_HOME/bin/emctl stop dbconsole
$ $ORACLE_HOME/bin/emctl start dbconsole
8. 오라클 자동 구동 설정
/etc/oratab 수정
참조: http://download.oracle.com/docs/cd/B19306_01/install.102/b19075/toc.htm
명태의 다른 명칭 :: 2007/11/05 13:01
새 노트북 HP 8510p 비즈니스북 :: 2007/11/04 23:47

코어2 듀오(2.0GHz T7300) 프로세서에 2G 메모리, 160G 하드디스크, 15.4인치 WSXGA... Bluetooth는 지원 안되지만 노트북 사양은 그런데로 괜찮다. 가격은 150만원대.
윈도우 비스타를 설치하고 하루정도 쓰다가 XP로 다시 깔았다. 비스타의 기능은 뛰어나고 인터페이스도 상당히 매력적이었지만, 폰트가 미묘하게 흐릿하고 깔끔하지 않아 자꾸 눈에 거슬리고 개발 목적으로는 아직 XP가 더 나은 듯 하다.
이전에도 비슷한 경험이 있지만, 이번 새 PC에도 XP 설치시 좀 애먹었다. 일단 하드용량이 160G로 윈도우 XP 초기 설치 버전으로 설치 시 오류가 발생하면서 설치되지 않는 문제가 있었다. 결국 여기저기 해결책을 찾다가 서비스팩2를 합쳐 새로운 설치 디스크를 만든 후에야 정상으로 깔리기 시작했다 (윈도우 XP SP2 부팅 디스트 만들기 참조).
이전에는 SATA 하드디스크를 직접 지원하지 않는 문제 때문에 설치시 애먹었던 문제가 있었는데, 8510p 노트북에서는 아래와 같은 방법으로 했다.
1. 바이오스 셋업에서 SATA Native Mode를 Disable한다.
2. 윈도운 XP 설치한다.
3. HP 싸이트에서 Intel SATA AHCI Controller Driver 다운로드 후 푼다.
4. 장치관리자에서 IDE 컨트롤러 드라이버를 강제로 업데이트한다.
iaahci.inf 파일 지정 후 "Intel(R) 82801HEM/HBM SATA AHCI Controller"를 선택한다. <-- Intel(R) 82801HBM I/O Controller Hub (ICH8M)
5. 재부팅하고 바이오스 셋업에서 SATA Native Mode를 Enable한 후 윈도우를 재시작한다.
윈도우 XP SP2 부팅 디스크 만들기 :: 2007/11/02 23:25
출처: http://www.helpwithwindows.com/WindowsXP/winxp-sp2-bootcd.html
Slipstreaming Windows XP Service Pack 2 and Create Bootable CD
Slipstreaming a Service Pack, is the process to integrate the Service Pack into the installation so that with every new installation the Operating System and Service Pack are installed at the same time.
Slipstreaming is usually done on network shares on corporate systems. But with the advent of CD burners, it does actually make some sense for the home user or small business user to do the same.
Microsoft added the ability to Slipstream a Service Pack to Windows 2000 and Windows XP. It not only has the advantage that when you (re)install your OS, you don't have to apply the Service Pack later, also if you update any Windows component later, you'll be sure that you get the correct installation files if Windows needs any.
Slipstream Windows XP Service Pack 2
Download the (full) "Network Install" of the Service Pack (English version [266 MB]), and save it to a directory (folder) on your hard drive (in my case D:\XP-SP2). Other languages can be downloaded from the Microsoft Download Web site.
Note: do not use spaces in the folder name!
Next copy your Windows XP CD to your hard drive. Just create a folder (I used \XP-CD), and copy all the contents of your Windows XP CD in that folder.
Next, open a Command Prompt (Start > Run > cmd), and go to the folder where you downloaded SP2 (cd \foldername). Type the command: servicepack filename /integrate:drive/path. In my example the command is WindowsXP-KB835935-SP2-ENU /integrate:D:\XP-CD.

If you get the error:

This is caused by the fact that your Windows XP CD contains updates that will be automatically installed when you run setup. This type of CD's will usually be from larger OEM suppliers (like Dell, HP, or others).
You cannot use this type of CD to create a slipstreamed SP2 install.
First, the files will be extracted, and next they will be integrated in your Windows XP files:

When ready, you should get a confirmation. Windows XP Service Pack 2 has now been Slipstreamed into your original Windows XP files.

Creating a Bootable CD
For this part I used IsoBuster and Nero Burning ROM 6 (make sure you have the latest version, but at least 5.5.9.0).
After you install IsoBuster, you can choose to use only the product's free functionality for what we want to do, IsoBuster will look like the image below (you need to have your original Windows XP CD in the CD-ROM drive).
Start to extract the boot loader from the original Windows XP CD. Using IsoBuster, select the "folder" Bootable CD, and right-click Microsoft Corporation.img. From the menu choose Extract Microsoft Corporation.img, and extract it to the folder on your hard drive where you have your Windows XP files (D:\XP-CD in my case).

Next, start Nero Burning ROM, and choose CD-ROM (Boot) in the New Compilation window. On the Boot tab, select Image file under Source of boot image data, and browse to the location of the Microsoft Corporation.img file. Also enable Expert Settings, choosing No Emulation, and changing the Number of loaded sectors to 4 (otherwise it won't boot!)

The ISO tab should be configured correctly as shown below:

If you have an older version of Nero you won't have the option Do Not Add ";1" ISO file version extention under Relax ISO Restrictions. You won't be able to boot your new CD, so update Nero!
You can configure the Label tab to your liking, I would however recommend that you keep the Volume Label the same as on your original Windows XP CD. Here are some (English) Labels:
- Windows XP Professional: WXPCCP_EN
- Windows XP Home: WXHCCP_EN
- Windows XP Professional OEM: WXPOEM_EN
- Windows XP Home OEM: WXHOEM_EN




