ETL Tools/Oracle Data Integrator
[ODI 11g] JavaEE Agent 구성 따라하기 (Create JavaEE Agent in ODI 11g)
천정현
2011. 4. 20. 11:55
Oracle Data Integrator 11g 버전은 Agent를 Weblogic 에 올려 사용할 수 있다.
이점: 클러스터링, Failover, 로드밸런싱 기능
테스트 순서는 다음과 같다.
1. WLS 설치
2. ODI 설치
3. Topology에서 Agent 생성 & WLS Templete (jar 파일) 생성
4. WLS 도메인 생성
5. Credential 생성
6. WLS 도메인 확장
7. WLS 서버 시작
8. 접속 테스트
9. 작업 실행 후 로그 확인
참고 사항:
이 테스트는 환경에 따라 조금씩 달라지겠죠?
현 테스트 환경
1. Install Oracle Weblogic Server (웹로직 설치)
거진 넥스트니까 Skip
버전: 10.3.3.0
* 10.3.4.0 은 호환이 안된다고 한다. - Oracle 포럼에서 참조
참조: http://st-curriculum.oracle.com/obe/fmw/wls/10g/r3/installconfig/install_wls/install_wls.htm
거진 넥스트니까 Skip
버전: 11g
참조: http://www.artofbi.com/index.php/2010/10/odi-11g-installation-steps/
ODI에 Agent 를 설정하고 이후 WLS에 Deploy시킬 Jar 파일을 생성한다.
- Agent 정보 입력 & WLS 템플리트 생성 클릭

- 에이전트 정보 입력
접속 재시도 설정: 에이전트 모니터링 및 복구 기능
감독자 인증: Credential 정보 인듯?
감독자 인증: Credential 정보 인듯?

- 라이브러리 및 드라이버 (요건 뭔지?)

- 데이터 소스 (아까 만든 JNDI네)

- 템플릿 저장 경로 및 파일 명 지정

- 생성중

- 완료

4. Create Domain (Oracle WebLogic Server)
- 구성 마법사 실행

- 새 도매인 만들기

- 도메인 소스 선택 (구성할 제품 선택)
Console - ODIConsole
Agent - JavaEE Agent
Agent - JavaEE Agent

- 도메인 이름 및 위치 지정

- 관리자 사용자 이름 및 비밀번호 설정

- 서버 시작 모드 및 사용 jdk 설정

- Master & Work Repository JDBC 설정

- 접속 테스트

- 관리 서버 구성

- Agent 서버 구성
포트 번호는 Agent를 구성할 때의 포트번호와 같게 맞춰 준다.

- 클러스터 구성 (요건 어떻게?)

- 시스템 구성 (요건 또 뭐야?)

- 시스템에 서버 할당
Admin Server 오른쪽으로 이동

- 클러스터 또는 서버에 배치 대상 지정 (뭔지...?)
Oracle Support 가 걍 냅두고 패스하란다.

- 클러스터 또는 서버에 서비스 대상 지정
요것도 고대로 패스

- 생성

-완료

5. Create Credential Store (wlst.cmd)
웹로직에 접근하여 ODI에 접근하기 위한 보안키와 WebLogic Server를 위한 보안키를 생성한다.
키가 없으면 다음의 에러 발생
Credential not defined in the Credential Store.
C:\oracle\Middleware>cd Oracle_ODI1\common\bin
C:\oracle\Middleware\Oracle_ODI1\common\bin>wlst.cmd
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> connect('weblogic','welcome1','t3://192.168.0.15:7001')
Connecting to t3://192.168.0.15:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'AGENT_TEST'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
wls:/AGENT_TEST/serverConfig> createCred(map="oracle.odi.credmap", key="SUPERVISOR", user="SUPERVISOR", password="WIDETNS", desc="ODI SUPERVISOR Crendential")
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)
wls:/AGENT_TEST/serverConfig> createCred(map="oracle.odi.credmap", key="AGENT_TEST", user="weblogic", password="welcome1", desc="WLS SUPERVISOR Crendential")
Already in Domain Runtime Tree
wls:/AGENT_TEST/serverConfig> disconnect()
Disconnected from weblogic server: AdminServer
wls:/offline>
명령어:
connect('weblogic','welcome1','t3://localhost:<AdminServer_Port>')
connect('weblogic','welcome1','t3://localhost:<AdminServer_Port>')
createCred(map="oracle.odi.credmap", key="SUPERVISOR", user="SUPERVISOR", password="SUNOPSIS", desc="ODI SUPERVISOR Crendential")
createCred(map="oracle.odi.credmap", key="<domain's name>", user="weblogic", password="welcome1", desc="WLS SUPERVISOR Crendential")
disconnect()
기타 명령어: listCred(), updateCred(), deleteCred(), createCred()
Credential Store 관련 참조: http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/csfadmin.htm
이제 웹로직에 3에서 작업했던 WLS Templete jar 파일을 올린다.
- 웹로직 구성 마법사를 실행
- 기존 도메인 확장

- 구성한 도메인 선택

- 확장 소스 선택
기존 확장 템플리트를 사용하여 내 도메인 확장

생성한 Jar 파일 설정

- 뭔 충돌 나는데 패스

- Agent가 사용할 Master Repository 정보 설정

- 접속 테스트

- 구성 선택
both of them

- 이후 작업은 4와 비슷하므로 패스.
Admin Server Start:
시작 프로그램 - WebLogic Server - User Projects
- <Domain Name> - Start Admin Server for WebLogic Server Domain 실행
or
커멘드 창
C:\oracle\Middleware>cd user_projects\domains\AGENT_TEST\bin
C:\oracle\Middleware\user_projects\domains\AGENT_TEST\bin> startWebLogic.cmd
Managed Server Start:
C:\oracle\Middleware>cd user_projects\domains\AGENT_TEST\bin
C:\oracle\Middleware\user_projects\domains\AGENT_TEST\bin>startManagedWebLogic.cmd odi_server1
...
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:welcome1
8. Agent 연결 테스트
성공!!!!
- 성공하지 않을 시에는 서버를 껐다 켜고 다시해보기!
- 그래도 안될 경우에는 죽이고 서버 프로세스가 안 떠있는지 재차 확인 후에 띄우고 테스트!
- 그래도 안되면 재부팅.
- 그래도 안되면 처음부터 다시!
- 그래도 안되면 댓글 다시오.
- 못 참겠으면 Oracle Support에 SR 요청!
9. 작업 실행 후 Log 확인
- 그래도 안될 경우에는 죽이고 서버 프로세스가 안 떠있는지 재차 확인 후에 띄우고 테스트!
- 그래도 안되면 재부팅.
- 그래도 안되면 처음부터 다시!
- 그래도 안되면 댓글 다시오.
- 못 참겠으면 Oracle Support에 SR 요청!
9. 작업 실행 후 Log 확인
뭐 기본 인터페이스나 변수 새로고침 같은 거 해당 Agent를 사용하여 실행해보고 Operator를 통해 Log를 확인해보기.
에이전트 하나 올리기 빡세네.