Dastage经验总结
? 用户以qdb01登录sisiu056, sisiu057, sisiu058, sisiu060中的任意
一台机器。
? 在/home/qdb01目录下创建名为.rhosts的文件。
vi /home/qdb01/.rhosts
? 将如下内容填加到.rhosts文件中。
sisiu056 qdb01--------hostname username sisiu057 qdb01 sisiu058 qdb01 sisiu060 qdb01
14.2 修改/etc/hosts.equiv文件
将如下内容分别追加到sisiu056, sisiu057, sisiu058, sisiu060四台机器的/etc/hosts.equiv文件末尾。
sisiu056 qdb01 sisiu057 qdb01 sisiu058 qdb01 sisiu060 qdb01
运行rlogin hostname命令查看rsh是否配置成功。
16 dsadmin命令的使用
15.1 dsadmin命令的使用
登陆DataStage服务器,输入:cd $DSHOME/bin;在输入dsadmin 回车,进入dsadmin命令;
Command Syntax:
dsadmin [-file
Valid primary command options are: -createproject -deleteproject -oshvisible -enablercp
-enablejobadmin -envadd -envdelete
Individual 2007-10 46 / 64
Dastage经验总结
-envset
-advancedruntime -basedirectory
-deploymentdirectory -customdeployment -listprojects -listproperties -listenv
-enablegeneratexml
命令 -createproject -deleteproject -oshvisible -enablercp -enablejobadmin -envadd 命令说明 创建一个工程Project 删除一个工程Project 使产生的OSH代码可见 使RCP有效或失效 使JOB处于可管理状态 增加环境变量,也即可作为JOB的参数 语法 dsadmin -createproject
Dastage经验总结
PXDeployGenerateXML=0 -listenv -enablegeneratexml 显示一个工程的所有环境变量 是否产生XML dsadmin -listenv
12.2 自定义环境变量的使用
在datastage中,使用Sequential_File的时候需要对NULL值做处理,但是前提是要在DataStage Administrator中的user defined中添加一个环境变量 Name: APT_IMPEXP_ALLOW_ZERO_LENGTH_FIXED_NULL Type: string Value: 0
17 如何启动JobMonApp
进入/Ascential/DataStage/PXEngine/java目录,或$APT_ORCHHOME/java,输入命令:sh jobmoninit 来启动JobMonApp
注:$APT_ORCHHOME是并行引擎的目录
18 DS.TOOLS
先进入 cd $DSHOME/bin
然后用uvsh命令进入到tcl语言界面,如下:
Individual 2007-10 48 /
64
Dastage经验总结
然后用LOGTO SGMINF_MQ 命令登录到project SGMINF_MQ的目录
然后输入DS.TOOLS命令就可以进入到DS.TOOLS对话框界面了,如下:
注意:退出的时候要先按‘回车键’,然后输入‘Q’再回车就可以了!
DS.TOOLS所包含的内容如下:
DataStage Tools Menu
1. Report on project licenses
2. Rebuild Repository indices ----------重建索引 3. Set up server-side tracing 4. Administer processes/locks 5. Adjust job tunable properties ………….
Which would you like? ( 1 - 5 ) ?
Individual 2007-10 49 /
64
Dastage经验总结
进入DS.TOOLS的步骤及释放锁:
1. Connect in the server through Telnet
2. Execute the dsenv file: cd $DSEngine ; . dsenv 3. Go to the directory of the project:cd $DSHOME/bin
4. Execute the uvsh或dssh located in $DSEngine/bin starting from the path of the
project.
5. Execute the command DS.TOOLS
6. Choose the option 4 for processes and locks. 7. Choose the option 4 again (to list all the locks)
8. Identify the name of the job and your respective PID.
9. Select the option 7 to liberate lock for number of the process and inform PID 10. It will be requested a confirmation, type Y to confirm.
11. To leave of the application, type enter until that returns to the prompt of the
universe “>” and type Q.
列出所有锁的命令:LIST.READU EVERY
方法一:该命令跟上面的Option 4 ? Option 4(list all the locks) 的功能一样 方法二:cd $DSHOME/bin, 然后输入命令list_readu
方法三:cd $DSHOME/bin, 然后输入命令uvsh 或者dssh ,
然后输入命令LIST.READU EVERY
Individual 2007-10 50 /
64