Datastage problem summary

Source: Internet
Author: User

If you use datastage7.5.x for ETL, we recommend that you first read the bug officially released by IBM,
Http://www-01.ibm.com/support/docview.wss? Uid = swg21438499
My opinion: DS has many bugs!
If a problem occurs, go to the bug list to check the bug list. What a Bug might be there!

DS is used in work and many problems are encountered. Record it here! Wrong place, Please master the axe!

1. The operating system of DS
The ds environment used in this project (Galaxy ACRM) draws on the CIC data center experience, so we chose Red Hat Linux as 4 update 8 x86_64 + datastage 7.5.2.1.
Later, in the process of solving the problem, we found such a sentence from the release notes: "Windows/Linux platforms are only supported on intel X86 32-bit processor ",
It has been verified that the installation of Ds on Linux x86_64 has caused some problems in the future!
When installing software in the future, you must check the release notes of the software! If it is applicable to a 32-bit system, do not select a 64-bit operating system!
Suggestion: Red Hat Linux as 4 update 8x86 + datastage 7.5.2.1

2. Choice of complier
You will not encounter this problem in a 32-bit system!
Because a 64-bit system is selected, but datastage 7.5.2.1 only supports 32-bit systems, the compiler in the environment variables is adjusted as follows:
Configurations officially provided by IBM:
Apt_compileopt:-o-FPIC-wno-deprecated-C-M32
Apt_compiler: G ++ 32-M32
Apt_linker: G ++ 32-M32
Apt_linkopt:-shared-32-wl,-bsymbolic, -- allow-shlib-undefined

My own Configuration:
Apt_compileopt:-o-FPIC-wno-deprecated-C
Apt_compiler: G ++ 32-M32
Apt_linker: G ++ 32-M32
Apt_linkopt:-shared-wl,-bsymbolic, -- allow-shlib-undefined

3. Oracle lib Selection
Because it is a 64-bit operating system, Oracle 10 Gb 64-bit client is installed, and the lib and lib32 directories are available under the $ ORACLE_HOME directory,
DS uses lib32, so add $ ORACLE_HOME/lib32in LD_LIBRARY_PATH of $ dshome/dsenv.

4. Oracle Character Set Conversion Problems
Set nls_lang iN OS environment variables and DS environment variables, and perform Character Set ing,
Add the following to/home/dsadm/ascential/datastage/pxengine.752.1/etc/oracle_cs.txt:
GBK zhs16gbk
Zhs16gbk GBK
The first column is the DS built-in character set, and the second column is the Oracle character set. According to this statement, the second line is not required. I have added it here!

5. DS Shared Memory Optimization
In versions earlier than ds8.1, the command shmtest is only valid on Linux 32-bit. in Linux 64-bit, an infinite loop is selected. IBM has fixed it in 8.1!
Bug fixes: http://www-01.ibm.com/support/docview.wss? Rs = 14 & uid = swg1jr32113, which will not be excerpted here!

6. Connecting ds to Oracle RAC
If the Oracle database uses RAC, once called (Oracle Parallel Server, OPS), the database user used for data extraction must have access to SYS while having other permissions. GV _ $ instance permission.
In addition, you must add the project environment variable apt_oracle_no_ops = 1 in datastage administrator.

7. Oracle user permissions in DS
When using Oracle, DS must grant permissions to the following views:
Dba_extents
Dba_data_files
Dba_tab_partitons
Dba_objects
All_part_indexes
All_part_tables
All_indexes
SYS. GV _ $ instance (only if Oracle Parallel Server is used or RAC)
This is described in the online help documentation provided by datastage,
We suggest that you create a role that has the appropriate Select privileges, as follows:
Create role dsxe;
Grant select on SYS. dba_extents to dsxe;
Grant select on SYS. GV _ $ instance to dsxe;
Grant select on SYS. dba_data_files to dsxe;
Grant select on SYS. dba_tab_partitions to dsxe;
Grant select on SYS. dba_objects to dsxe;
Grant select on SYS. all_part_indexes to dsxe;
Grant select on SYS. all_part_tables to dsxe;
Grant select on SYS. all_indexes to dsxe;
Once the role is created, grant it to users who will run datastage jobs, as follows:
Grant dsxe to <Oracle userid>;

8. DS startup disabled
Before using UV-admin-stop in datastage to close ds, you must use PS-Ef | grep ds to view the processes connected to DS before exiting all client connections, find the PID and run the kill command to kill it,
Or clear all connections in ctor, and then use UV-admin-stop to close Ds. Otherwise, if DS connection exists, disable Ds, when UV-admin-start is used to start ds,
You may not be able to start dsrpcd. If you fail to start dsrpcd multiple times, refer to "dsrpc Tracing Method of datastage in Linux". The final method is to restart the server!

9. Slow extraction speed
Datastage 7.5.2 it is too slow to extract ORACLE data. Check the job log and find the default. APT file in the/home/dsadm/ascential/datastage/deployments directory during job running,
This file is used to specify the DS node. Generally, each CPU corresponds to one node, while my file only has one node. Based on the number of CPUs, this file increases the number of nodes and restarts Ds.
During extraction, the monitoring job finds multiple nodes are used at the same time, and the extraction speed increases dramatically!

10. text type conversion in ms SQL Server
When datstage acquires data from ms SQL Server through ODBC, the text field is set to longvarchar by default, and an error occurs when viewing data, convert text to varchar (4000) using convert in custom SQL statements ),
Change the field type to varchar. Otherwise, an error occurs: DSP. Open GCI $ DSP. Open error-100.

11. When DS extracts ORACLE data, spaces are converted to null by default.
In datastage 7.5.2.1, when the Oracle stage in DS extracts data from L, the space is converted to null by default. Even if apt_oracle_preserve_blanks In the DS environment variable is set to true, it will not help.
After finding out, IBM officially believes this is a bug and it is recommended to upgrade and install patches.
Patch address: http://www-01.ibm.com/support/docview.wss? Rs = 14 & uid = swg1jr33670
Before patching, back up the entire DS directory and patch it again!
When I patch myself, I shut down all ds-related processes, but the installation prompts an error. Let's go to the system administrator, however, no error is found in/home/dsadm/ascential/patches/patch_jr35216/log.
Error message during installation:
Upgrading the stage...
An error has occurred during datastage Initialization
Please contact the system administrator
Error code: 2 2
Done!
Fortunately, restarting DS is normal. By setting apt_oracle_preserve_blks In the DS environment variable, you can control the conversion of spaces to null!
Fortunately, after patching, the job that extracts SQL server data from ODBC reports an error. It looks like it is due to a patch problem!
Error message:
Main_program: Fatal error: Fatal: Shared Library (drsenu. So) failed to load: errno = (2 ),
System message = (/home/dsadm/ascential/datastage/dsengine/lib/drsenu. So: Undefined Symbol: dscuvtextmark)
Although there is a backup before patching, it is no problem to restore it back, so first think of a solution!
I found a solution on the Internet with the same error, but what others encountered was $ dshome/lib/dsdb2enu. So: Undefined Symbol: dscuvtextmark. Then I will try it!
Address: http://www.docin.com/p-42820466.html
Back up the $ dshome/etc/operator. APT file, use VI to edit the file, change dscapiop 1 to dscapiop @ dscapiop 1, save and exit!
Disable DS and restart! I don't know why! No relevant content was found in the official documents. The solution provided on the Internet is to solve the problem, but what is the basis?
Will this cause other potential problems ?!
Despise DS here!

12. Job troubleshooting, enabling detailed log output
If the log prompts a warning, but you do not know which stage prompts a warning, set apt_dump_score = true to view the stage name in the warning information of log.
In addition, there are some options for log output.
Memory usage, apt_pm_player_memory = true
CPU usage time, apt_pm_player_timing = true
Number of data entries extracted, apt_record_counts = true

13. DS Performance Tuning
For more information, see the official documentation.
Apt_default_transport_block_size = 131072 to apt_default_transport_block_size = 1048576
Apt_buffer_maximum_memory = 3145728 (3 MB) to apt_buffer_maximum_memory = 6291456 (6 MB)
Apt_buffer_free_run = 0.5 to apt_buffer_free_run = 0.6

14. Oracle DB problems found during DS running
When DS is running, log errors are both TNS and ora errors, especially when multiple parallel jobs fail.
Ask dBA for help to optimize the database!

15. Processing of special characters in Oracle in DS (for example: # $)
Ds_enable_reserved_char_convert = true special characters #, $

16. substr function in transformer stage
The substr function in the transformer stage truncates characters by character objects when extracting data. However, when loading data to the target database, the length is calculated in bytes.
In particular, when intercepting fields containing Chinese characters, the last character of some Chinese characters is truncated into garbled characters, and an error is returned when loading them to the target table,
You can find an error data entry in the bad file in the/home/dsadm/ascential/datastage/scratch folder. ,
Suggestion:
For fields containing Chinese characters, the Field Length of the target table should be the same as that of the source table.

17. Chinese garbled characters when extracting data from ms SQL Server 2005 to Oracle
NLS is GBK, and the View data is normal, but Chinese characters are garbled during the extraction to Oracle.
In transformer, set the extends of Chinese fields to Unicode.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.