Wednesday, April 10, 2013
Informatica(9.5.1) Preinstallation Check list
Hi All;
*For Informacitca 9.5.1. Hot fix 2 preistallation check list please click here
This is my Informatica 9.5.1 preinstallation check list for IBM AIX.
*For Informacitca 9.5.1. Hot fix 2 preistallation check list please click here
This is my Informatica 9.5.1 preinstallation check list for IBM AIX.
- Download Informatica software 9.5.1 HF1 for AIX from my.informatica.com via Global Customer Support.
- Get the correct licence files from Global Customer support
- Install Java version 6.
- Install JDK 1.6.0 build pap6460sr9fp2-20110627_03(SR9 FP2) exactly.
http://pic.dhe.ibm.com/infocenter/sb2bi/v5r2/index.jsp?topic=%2Fcom.ibm.help.sys_rqmts.doc%2FSysRqmts_DwnldAIXJDK.html - There are some problems with AIX TAR, Install GNUTAR.
http://www.gnu.org/software/tar/ - Create User for informatica. (ex: infa, infauser, etluser... etc.)
- Set u limit to 16.000 (or unlimited.)
set ulimit -n to 16000 - Create a database user for each Power Designer domain. (ex: INFADOM)
- Create a database user for each Power Designer repository. (ex: INFAREP)
- Verify that the database users have CONNECT, RESOURCE, and CREATE VIEW privileges.
- For Oracle repositories Set the open_cursors parameter to 1000 or higher
- If exist, open the following port range: 6000 to 6113 on firewall.
- Do not believe curse of 13.
- Reserve at least 1GB for Domain and repository database space (both users in the same tablespace)
- Reserve at least 30GB file system space for installation on the server
Friday, March 29, 2013
Sybase IQ equavalent for Oracle PL/SQl subtract dates
It'is realy unique and easy to substract dates in Oracle.
If you select
SELECT TO_DATE ('01/02/2013 11:07:16','DD/MM/YYYY HH24:MI:SS') - TO_DATE('01/02/2013 11:03:37','DD/MM/YYYY HH24:MI:SS') FROM DUAL;
Result is:
0,00253472222222222
To achive same result in Sybase IQ correct syntax is:
SELECT CONVERT(NUMERIC(16,10), DATEDIFF(SECOND, CONVERT(TIMESTAMP, '2013-02-01 11:03:37'), CONVERT(TIMESTAMP, '2013-02-01 11:07:16'))) / 60 / 60 / 24
DATEDIFF: Datepart, Small date, Big date returns: INT
Tric is converting datediff result to numeric :)
If you select
SELECT TO_DATE ('01/02/2013 11:07:16','DD/MM/YYYY HH24:MI:SS') - TO_DATE('01/02/2013 11:03:37','DD/MM/YYYY HH24:MI:SS') FROM DUAL;
Result is:
0,00253472222222222
To achive same result in Sybase IQ correct syntax is:
SELECT CONVERT(NUMERIC(16,10), DATEDIFF(SECOND, CONVERT(TIMESTAMP, '2013-02-01 11:03:37'), CONVERT(TIMESTAMP, '2013-02-01 11:07:16'))) / 60 / 60 / 24
DATEDIFF: Datepart, Small date, Big date returns: INT
Tric is converting datediff result to numeric :)
Monday, February 25, 2013
Developer'ın halleri
Live'da değişiklik yaparken
Google'da aramadan sorunun çözümünü bulunca
Değişiklikleri kaydetmeden programı kapatınca
Gece saat 3'te sorun çözmeye çalışırken
Regular Expression ilk seferde istediğimiz değeri döndürünce
Üzerinde çalıştığımız modülün asla kullanılmayacağını öğrenince
Yöneticiye çözdüğümüz bir sorunu gösterirken
Test etmeden canlı'ya aldığımız kod beklendiği gibi çalıştığında
Satışçılar ne sattıklarını developer'lara açıklarken
Monday, December 3, 2012
How to debug in Sybase IQ
Sybase IQ-
Debugging
1.1 Defining connection for Sybase Central and connectng to database
Open Sybase
Central for Java edition
"Choose Connection Profiles"
Choose "New" to define name & description
Click OK to choose or define ODBC connection
Important: To choose previously defined ODBC connections use
Browse..àShow all data sources .
Double click or choose connect:
1.2 Choosing code to debug and search criteria management
Choose Procedures
& Functions
Define filter in SQL like format
You may use settings buton to filter on users
Important: You have to use submit buton to apply search criteria
1.3 Debug mode
Double click on code to open in editor.
Choose dubug button to switch debug mode
Important: Choose only debug DB user to prevent affecting other users
1.4
Break point tanımlanması ve kodun debug
modda çalıştırılması
Click on the left side to define break point
Call procedure using a querry tool
Tuesday, November 13, 2012
Sybase IQ variable/parametric unload filename
To assign variable in set temporary option temp_extract_name1 use code below:
begin
declare file_name varchar(100);
declare option1 varchar(100);
set
file_name = '/myfolder/myfilename';
set
option1 = 'set
temporary option temp_extract_name1=''' + file_name + ''';';
execute immediate option1;
set temporary option date_format = 'dd.mm.yyyy';
set temporary option Temp_Extract_Null_As_Empty = 'ON';
set temporary option Temp_Extract_Quotes = 'OFF';
set temporary option Temp_Extract_Column_Delimiter = ',';
select * from my_table;
set temporary option Temp_Extract_Name1 = '';
end;
Wednesday, August 15, 2012
HTML mail from SybaseIQ- Sendmail linelength problem (weird ! character)
One of the best ways to send HTML mail from SybaseIQ on IBM AIX is to use sendmail.
Unfortunately sendmail has linelength limit (2040 characters default). After 2040th character sendmail is adding ! and new line characters to text which is ruining HTML.
To fix this problem:
Unfortunately sendmail has linelength limit (2040 characters default). After 2040th character sendmail is adding ! and new line characters to text which is ruining HTML.
To fix this problem:
- Change Linelimit info in Sendmail.cf file. Add L=4096 (or any other suitable value) to corresponding mailer.
- To identify correct mailer check mail log at /var/log/maillog file. Mailer name is mostly Mrelay
- After these steps ! character shall be removed from your mail.
- You may add || CHAR(13) || CHAR(10) after each </tr> statement to add new line in SQL as well.
execute immediate 'exec xp_cmdshell ''(echo "From: myadreess@mail.com."; echo "To: dest1@mail.com,dest2@mail.com"; echo "MIME-Version: 1.0";echo "Content-Type: text/html"; echo "<html><body bgcolor=black><blockquote><font color=green>GREEN</font> <font color=white>WHITE</font> <font color=red>RED</font><font color=blue>Powered by Sybase IQ</font></blockquote></body></html>") | sendmail -t''';