If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > powershell vs perl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-11, 06:17
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
powershell vs perl

Some things cannot be avoided. I am getting involved in a conversion from DB2 to ms-sql

In the current situation I've got ksh-scripts which produce SQL and this SQL is fed into db2batch. All this on aix.
I am planning to convert my ksh-scripts into perl and use standard ODBC to communicate with DB2. The scripts will run on windows. Code SQL as agile as possible so in the next phase the ODBC can point to ..... the other database... <sigh> and the conversion is a fact.

But my hemlock is not empty yet. They would rather see a powershell solution. So I need arguments why perl is much betten than powershell. I do not know powershell and I was not planning to educate myself...
Is that wise or are powershell skills usefull for a DB2/DBA?
Please advise.

O and while we're at it: which is better on windows: activeState or strawberry perl?
Reply With Quote
  #2 (permalink)  
Old 10-04-11, 17:42
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Personally I'm happily using ActiveState on MS-Windows, but other distributions are equally well, certainly if you don't heavily rely on Perl modules (apart from the DBI).

Cannot say anything about Powershell, but imho Perl is certainly a good choice, especially in terms of stability. I know large companies which adopted perl as their standard (unix and Windows) scripting tool. And the DBI is fairly stable, and supported by IBM for DB2. For MS SQL-Server you'll have to use the ODBC driver of DBI.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #3 (permalink)  
Old 10-05-11, 06:31
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by Peter.Vanroose View Post
and supported by IBM for DB2.
and maintained?? the IBM documentation is not valid anymore. I do not have in depth knowledge of perl so it is hard for me to analyse and solve the problems:

on windows . A clean install of express-C, active state perl and then the DB2 DBD does not work as described. The IBM documentation is too old (looks sloppy to me).

on linux I had it working, but an upgrade of perl (arch linux) broke my db2 connection and I am not able to fix that. Guess I'll have to use debian-stable for such a configuration.
Reply With Quote
  #4 (permalink)  
Old 10-05-11, 07:33
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Perl (DB2 DBD) is certainly not high on the priority list of IBM, unfortunately :-(
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #5 (permalink)  
Old 10-07-11, 05:41
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On