20 December 2008

DataStage: Can't connect by dsoper

ผมต้องการจะสร้าง user ชื่อ dsoper ขึ้นมาเพื่อให้ operator ใช้ในการ login เข้ามา run job เท่านั้น ไม่สามารถ view และ edit job ได้
ปัญหาคือ ไม่สามารถใช้ dsoper login ผ่าน DataStage Director ได้ และขึ้น error box ดังนี้
Error Code: 39202
Fail to open project
สิ่งที่ได้ทำไปแล้วคือ
1.    สร้าง user ชื่อ dsoper โดยให้อยู่ในกรุ๊ป dstage
$ id
uid=210(dsoper) gid=999(dstage) groups=1(staff),205(dba)
2.    Add dsoper ใน IBM Information Server ผ่าน Web Console โดยให้ Suite Component = DataStage and QualityStage User
3.    กำหนด Project Role = DataStage and QualityStage Operator ผ่าน DataStage Administrator
4.    ตรวจสอบ ds.rc ในโฟลเดอร์ $DSEngine/sample พบว่า umask 002 แล้ว
5.    ทำการ chmod -R g+w projpath แล้ว

วิธีแก้ไข
เปลี่ยน permission ของ path $UVTEMP ให้คนใน group มีสิทธิ์ write ได้ สามารถหา path $UVTEMP ได้ จาก

$ grep UVTEMP /Dstage/IBM/InformationServer/Server/DSEngine/uvconfig

# UVTEMP - is the name of the directory
#UVTEMP /tmp
UVTEMP /Dstage/IBM/InformationServer/Server/Scratch

จากตัวอย่างแสดงว่าต้องไป grant ที่ path /Dstage/IBM/InformationServer/Server/Scratch ให้เป็น 775

No comments: