??xml version="1.0" encoding="utf-8" standalone="yes"?>
You can disable integrity constraints temporarily so that large amounts of data can be loaded without the overhead of constraint checking. When the data load is complete,you can easily enable the integrity constraints, and you can automatically report any new rows that violate integrity constraints to a separate exceptions table.
看来oracleq点上做的比较完善,q可以将q反完整性约束的数据自动记录C个exception表中?
]]>
在sequential file stage中有个属性可以ignoreW一行。对于footerQ如果footer使用了与正文不同的格式,可以用用transformer stage?@INROWNUM stage来将footerL?br>Ҏ二:
在sequential file的filter option中用sed -e '$d' -e '1d'来讲header和footerL?br>Ҏ三:
写个before job subroutineQ可以先对这个文件做各种处理Q不q我想也是subroutine中调用DSExecute sed -e '$d' -e '1d'。当然Basic中也有专门对sequential file处理的函数?br>
]]>
The general callable format is : $orchadmin [options] [descriptor file]
1. Before using orchadmin, you should make sure that either the working directory or the $APT_ORCHHOME/etc contains the file “config.apt” OR
The environment variable $APT_CONFIG_FILE should be defined for your session.
Orchadmin commands
The various commands available with orchadmin are
1. CHECK: $orchadmin check
Validates the configuration file contents like , accesibility of all nodes defined in the configuration file, scratch disk definitions and accesibility of all the nodes etc. Throws an error when config file is not found or not defined properly
2. COPY : $orchadmin copy
Makes a complete copy of the datasets of source with new destination descriptor file name. Please not that
a. You cannot use UNIX cp command as it justs copies the config file to a new name. The data is not copied.
b. The new datasets will be arranged in the form of the config file that is in use but not according to the old confing file that was in use with the source.
3. DELETE : $orchadmin <> [-f -x] descriptorfiles….
The unix rm utility cannot be used to delete the datasets. The orchadmin delete or rm command should be used to delete one or more persistent data sets.
-f options makes a force delete. If some nodes are not accesible then -f forces to delete the dataset partitions from accessible nodes and leave the other partitions in inaccesible nodes as orphans.
-x forces to use the current config file to be used while deleting than the one stored in data set.
4. DESCRIBE: $orchadmin describe [options] descriptorfile.ds
This is the single most important command.
1. Without any option lists the no.of.partitions, no.of.segments, valid segments, and preserve partitioning flag details of the persistent dataset.
-c : Print the configuration file that is written in the dataset if any
-p: Lists down the partition level information.
-f: Lists down the file level information in each partition
-e: List down the segment level information .
-s: List down the meta-data schema of the information.
-v: Lists all segemnts , valid or otherwise
-l : Long listing. Equivalent to -f -p -s -v -e
5. DUMP: $orchadmin dump [options] descriptorfile.ds
The dump command is used to dump(extract) the records from the dataset.
Without any options the dump command lists down all the records starting from first record from first partition till last record in last partition.
-delim ‘’ : Uses the given string as delimtor for fields instead of space.
-field : Lists only the given field instead of all fields.
-name : List all the values preceded by field name and a colon
-n numrecs : List only the given number of records per partition.
-p period(N) : Lists every Nth record from each partition starting from first record.
-skip N: Skip the first N records from each partition.
-x : Use the current system configuration file rather than the one stored in dataset.
6. TRUNCATE: $orchadmin truncate [options] descriptorfile.ds
Without options deletes all the data(ie Segments) from the dataset.
-f: Uses force truncate. Truncate accessible segments and leave the inaccesible ones.
-x: Uses current system config file rather than the default one stored in the dataset.
-n N: Leaves the first N segments in each partition and truncates the remaining.
7. HELP: $orchadmin -help OR $orchadmin -help
Help manual about the usage of orchadmin or orchadmin commands
+
(40503) A call to an OLE server has failed, or a runtime error occured within the ole itself.
解决办法Q?br>1 首先q行命oQDELETE FROM DS_JOBS WHERE NAME = 'JobName'
2 再运行DS.CHECKER Q注意要q行DS.CHECKER必须要有exclusive access到project
Q通过如下命o可以看到有谁q连接到了服务器Qnetstat -a |grep dsrpc
使用DataStage Editor或其他编辑器创徏BASICE序源码Q这个源码成Z刚才创徏的文件的一条记录?/p>
使用BASIC命o来编译你E序Q这创Z个包含目标代码的文g。目标文件的名字不重要,因ؓL通过源文件名来引用程序?/p>
可以用RUN命o来执行你的程序,使用RAID命o来调试你的程序?/p>
二、基知识
数据cd、变量和操作W?br>所有数据在内部都是以字W串存储Q在q行时{换ؓ具体cd?br>主要有三U数据类型:字符丌Ӏ数字型、和unknownQnullQ?/p>
字符?br>在BASIC源码中,字符串量是ASCII字符的序列,所以不能有0QnullQ和10QlinefeedQ字W,而是要用CHAR(0)和CHAR(10)
数字?br>范围?0(-307)?0(307)Q最?5位小?br>unknown
null在内部是由单一字节CHAR(128)代表的,是一个stringQ可以用pȝ变量@NULL.STR来引用它。在BASICE序中可以用系l变量@NULL来引用null倹{?br>一个字W串与nullq接l果为null
数组
dimensioned array
在向量(一l数l)中,W一个元素的index?
向量可以看做W二位ؓ1的二l数l(矩阵Q?br>矩阵和向量的W一个元素分别用vector.name(0)和matrix.name(0,0)表示。它可以在MATPARSE、MATREAD和MATWRITE语句中用来存储不合格的字Dc?/p>
动态数l?br>动态数l的最高层是字D,?F)分割。字D包含有(V)分割的值组成。每个值又可以包含?S)分割的subvalue?/p>
字符串的比较
字符串的比较是一个个的比较每个字W的ASCII的倹{如果两个字W串可以转换为数字,L比较两个数字的数值大。Q何gnull相比较的l果都是unknown。空串不是简单的{于0。空格看做小??/p>
字符串匹?br>X代表M字符 A代表所有字?N代表所有数?前面的数字代表重复次数。如果前面的数字?Q代表后面的字符重复0到Nơ的Lơ数都可以?/p>
0是false IZ是false null非true非false
?事务和隔ȝ?br>?br>锁有两种_度Q细_度Q记录锁定)和粗_度Q文仉定)
DataStage支持以下几种锁:
记录׃n?br>记录更新?br>文g׃n?br>文g意向QintentQ锁 介于׃n与排他之?br>文g排他?/p>
事务
事务可以嵌套
子事务在父事务提交或回滚之前开始的话,子事务将变成zd事务Q而父事务l存在但是是非活动的。当子事务提交或回滚之后Q父事务再ơ变为活动的?br>在最高层的事务提交之前,缓存所有子事务的数据库操作。当q行一个读取操作时Q首先会去读取缓存的数据Q如果找不到才会从数据库文g中读取?br>