Powershell and DB2

Hi -
I'm wondering if anyone has had any luck/experience with getting DB2 command file scripts to run via Powershell?
In addition, I have a situation where I need to query two different DB2 databases for information.  First database has a list of customers that use a GUID for their identification.   I would like to run a Powershell/DB2 script to dump the
list of customers to a .CSV file.
I then need to hop over to another server and would like to run another Powershell/DB2 script that basically reads the .CSV file with list of customers and executes against another table on current server and matches the customer GUID identification against
the GUID's in the current DB2 tables.    If these two databases where on the same servers, I could probably do a JOIN or something, but since they're not -- I have do to this mickey-mouse routine.
Anyway, if anyone has any ideas, it would be greatly appreciated.   Trying to match up GUIDs to determine what customer is what is no fun and very tedious.
I didn't write this software, do don't blame me! ;-)

I've done a little with DB2 and powershell, the trick is to open the DB2 prompt, and then run powershell, that will allow you to run db2 commands in powershell.. if you run powershell and then db2, it doesn’t work...
im not sure you really need that, you could probably just use ODBC or some other .NET database method.
I've almost been able to rip the provider out of the a DB2 service pack so that I can run queries remotely. I've done it, just not sure exactly how I did it so I cant provide steps yet.
very interested in the work youve done here.  do you have an update on this?

Similar Messages

  • Best Practice to Setup an application to work with both oracle and db2 db

    Hi,
    We have an application that currently supports both oracle and db2 databases . It is currently using JPA with eclipselink as backend mechanism and we want to move to ADFBc as our backend . So what is best practice to do this?
    I came across an old post in https://groups.google.com/forum/#!topic/adf-methodology/UlJZSTu14Io that states to create two different model projects to support oracle and db2 .
    Is this still the standard ? Is there a way that we could work around rather than creating multiple projects?
    How do i get the view controller to work with multiple model projects if this is the case?
    Thank you.

    Thanks for the response .
    The problem is i would have the same schema on both the databases (both in oracle and db2) .
    I don't see a scenario where i want both the application model projects at the same time . What i meant is , Application will either be deployed with Oracle DB or DB2 but not with both on a production environment .
    So is there a way where i just change the connection parameters alone rather having two different models ?
    If i have to use two model projects ,  would it be possible say i built the view controller for Oracle , and use it for DB2 if i make sure the BC objects names are similar between model projects and switch just the model jar based on the deployment environment ?
    -Sam

  • Powershell and Sharepoint workflow

    Oke I got this a really strange problem.
    I got a ps1 file with powershell code in it. The code create a list item in sharepoint with all information and on the information I want to trigger a workflow.
    But now if I activated the ps1 file powershell as administrator(automatic) and then run the code thats in the file. But no Workflow tiggered in sharepoint the workflow is automatic activated when a new item is created.
    And the strange thing is if I open my script with notepad copy the text insert it into powershell and press enter my workflow runs...
    So any1 have an idea to fix this?

    Below is code snippet in c#.net for fetching all the attachements for a specific list item.
    try
                    // Set the Site Url
                    SPSite objSite = new SPSite("http://Testsite/");
                    using (SPWeb objWeb = objSite.OpenWeb())
                        objWeb.AllowUnsafeUpdates = true;
                        // Get the List
                        SPList objList = objWeb.Lists["MyList"];
                        // Get the item by ID
                        SPListItem objItem = objList.GetItemById(1);
                        // Get the attachments of the item
                        SPAttachmentCollection objAttchments = objItem.Attachments;
                        // Iterate the attachments
                        foreach (string fileName in objItem.Attachments)
                            // Perform action on
    the extracted attachment
     Hope it
    answer the questions.Any suggestions are appreciated.
    Cheers, Eliza

  • Installation on AIX and Db2 9

    Hi,
    I am due to start an upgrade project for 4.7 on AIX and DB2, the originating release of DB2 is 8.2.
    But to save myself time I want to use the export of the SAP system to install it on a DB2 version 9 system, using SAPInst.
    I know this is a valid operation on a Windows Oracle platform, but was wondering if there any limitations on the DB2 side of things.
    TIA
    Chris

    That does not accomplish anything of what I wanted.
    To reduce the complexity of the upgrade, I want to use the import process to facilitate a database upgrade.
    What you are proposing is a system copy, and means I will have to do a database upgrade later.
    If my idea is not workable then fine, I will do it that way but you have not addressed any of the requirements I have stated in my post.
    Thanks
    Chris

  • HA Installation of ERP EHP4 on AIX and DB2

    Dear All,
    I have to do a HA installation of ERP EHP4 system on AIX and DB2. I have followed the standard inst.guide from SAP but I want more information. Can anyone help me in understanding how to go about installing HA in detail. I would be very grateful if anyone can provide me a guide/document of what and how they have done. Can you pls explain me the steps.
    I also have few questions
    1. Shall i do a Central installation or distributed installation ( meaning CI, ASCS and DB in one server failover to other; CI,ASCS on one server and DB running on different server which in case of failure will move to other server)
    2. I know that OS team will do the cluster configuration but is there any other software to be bought for an automatic switchover in case of failures?
    3. Mainly, as a BASIS consultant what is our role in HA configuration?  What file systems should be defined and nfs mounted?
    Request you to take time and answer. Thanks in Advance.
    Lastly, i hope this is the right forum. If not , please let me know.

    Hi,
    >
    > 1. Shall i do a Central installation or distributed installation ( meaning CI, ASCS and DB in one server failover to other; CI,ASCS on one server and DB running on different server which in case of failure will move to other server)
    >
    I think you did not get basic of HA installation. Its neither central nor distributed installation. You need to install CI and Dialog Instance locally on 2 nodes. DB and ASCS instance on the disk that will move across 2 nodes.
    > 2. I know that OS team will do the cluster configuration but is there any other software to be bought for an automatic switchover in case of failures?
    >
    OS team will do file system config so that file system having ASCS and DB should move across 2 nodes. And rest of the file system should be local.
    After installation making cluster movement automatic both OS and SAP Basis guy have to work together.
    > 3. Mainly, as a BASIS consultant what is our role in HA configuration?  What file systems should be defined and nfs mounted?
    >
    I would say primary role in HA installation is of Basis guy. Because he is the person who will decide what approach will you take to install HA either active-active or active-passive. Its you on whom requirement OS guy will work.
    Thanks
    Sunny

  • Jsp and db2 problem

    Hi guys:
    I installed tomcat4, db2 run time client on one red hat 7.2. Everything works fine. My jsp can access db2 database.
    Now I am installing the same thing into another box, red hat 7.2, tomcat4 and db2 run time client.
    I can write a java code to access the db2 database, and I can access db2 table in the command line. Jsp file is running fine. But when I use the jsp code which is working in another red hat box to access the db2 database, it can not go through and it stops in "Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");" statement.
    Does any body have any idea what could be the problem?
    Regards,
    David

    hi,
    could you please send me the jsp-db2 connection code.i am really distressed.i can't find it anywhere..must i install db2 run client. i have only db2 personal edition and the rest( tomcat,jre,jsdk,etc..)
    Thx
    (while tipping my e-mail in registration,i wrote it false)
    My treu e-mail is [email protected]
    please please send me this code....

  • OWB and DB2

    I have connected Oracle 9i and DB2 v7 and query DB2 in SQL Plus is fine. However, it doesn't for the connection between OWB and DB2.
    Anyone can help?
    Thanks!

    Try the following and use the database link as the source.
    1. Copy inithsodbc.ora to initQA_DB2.ora in $ORACLE_HOME\hs\admin
    HS_FDS_CONNECT_INFO=DNS_NAME_OF_YOUR_CONNECTION
    HS_FDS_TRACE_LEVEL=0
    2. Add the following lines to listener.ora in Oracle server ($ORACLE_HOME\NETWORK\ADMIN)
    (SID_DESC =
    (SID_NAME = QA_DB2)
    (ORACLE_HOME = $ORACLE_HOME)
    (PROGRAM = hsodbc)
    3. Add the following lines to tnsnames.ora in Oracle server ($ORACLE_HOME\NETWORK\ADMIN)
    DB= (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)
    (HOST=localhost)
    (PORT=1521)
    (CONNECT_DATA = (SERVICE_NAME=QA_DB2)
    (HS = OK)
    4. Execute CATalog script for Heterogeneous Services in Oracle server ($ORACLE_HOME\RDBMS\ADMIN\caths.sql)
    5. Create database link
    drop public DATABASE LINK dwh_qa_db2;
    CREATE public DATABASE LINK dwh_qa_db2 CONNECT TO "carlosmo" IDENTIFIED BY "E1Qual" USING 'DB2';
    6. Test the connection
    SELECT *
    FROM SomeTable@dwh_qa_db2

  • OWB and DB2 connection

    I have connected Oracle 9i and DB2 v7 and query DB2 in SQL Plus is fine. However, it doesn't for the connection between OWB and DB2.
    Anyone can help?
    Thanks!

    Try the following and use the database link as the source.
    1. Copy inithsodbc.ora to initQA_DB2.ora in $ORACLE_HOME\hs\admin
    HS_FDS_CONNECT_INFO=DNS_NAME_OF_YOUR_CONNECTION
    HS_FDS_TRACE_LEVEL=0
    2. Add the following lines to listener.ora in Oracle server ($ORACLE_HOME\NETWORK\ADMIN)
    (SID_DESC =
    (SID_NAME = QA_DB2)
    (ORACLE_HOME = $ORACLE_HOME)
    (PROGRAM = hsodbc)
    3. Add the following lines to tnsnames.ora in Oracle server ($ORACLE_HOME\NETWORK\ADMIN)
    DB= (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)
    (HOST=localhost)
    (PORT=1521)
    (CONNECT_DATA = (SERVICE_NAME=QA_DB2)
    (HS = OK)
    4. Execute CATalog script for Heterogeneous Services in Oracle server ($ORACLE_HOME\RDBMS\ADMIN\caths.sql)
    5. Create database link
    drop public DATABASE LINK dwh_qa_db2;
    CREATE public DATABASE LINK dwh_qa_db2 CONNECT TO "carlosmo" IDENTIFIED BY "E1Qual" USING 'DB2';
    6. Test the connection
    SELECT *
    FROM SomeTable@dwh_qa_db2

  • Oracle 11G,10g and DB2 replication?

    Oracle 11G,10g and DB2 replication?
    =======================================
    We are using Oracle 11gR2. We have a table in Oracle filled with partial data (over 200K+, it may grow to 1M). The rest need to be obtained from DB2. It is not from one DB2 table.
    The DB2 is configured to run Oracle 10g within it. We have given http interface, where we need to supply(Push) the partial data using HTTP_UTIL package for each row, then DB2/Oracle 10g return the result as XML.
    It is a network heavy, slow and not reliable.
    Are we able to replicate tables between Oracle 11g and DB2/oracle 10g?
    We like to leverage the features on 11gR2 effectively.
    I find some interesting folks in this forum.
    Did anyone face such situation?
    I like to know the best approach with good performance options.
    Any idea?
    Thanks in helping.

    qwe16235 wrote:
    The DB2 is configured to run Oracle 10g within it. We have given http interface, where we need to supply(Push) the partial data using HTTP_UTIL package for each row, then DB2/Oracle 10g return the result as XML.
    Any idea?http://en.wikipedia.org/wiki/Rube_Goldberg_machine
    why is DB2 required to produce XML?

  • Powershell and -contains

    Hi, 
    I have a little problem with powershell and "contains"
    In this situation works well and return "true"
    $test = "where is the word"
    ($test).Contains("word")
    but in this other return always "false" 
    $test = Get-Process
    ($test).Contains("winlogon")
    Why? 
    Thanks
    Andrea Gallazzi
    windowserver.it - blog:
    andreagx.blogspot.com
    This posting is provided AS IS with no warranties, and confers no rights.

    Hi,
    Try looking at the ProcessName property:
    PS C:\Scripts\PowerShell Scripts\Misc Testing\1-10-2014> $test = Get-Process
    PS C:\Scripts\PowerShell Scripts\Misc Testing\1-10-2014> $test.ProcessName.Contains('winlogon')
    True
    EDIT: If I remember correctly, I believe this requires PS3+ though.
    EDIT2: This will work if you only have v2 (I'm sure there's a better way to do this, but this'll work in a pinch):
    PS C:\> $found = $false
    PS C:\> $test = Get-Process
    PS C:\> $test | ForEach { If ($_.ProcessName.Contains('winlogon')) { $found = $true } }
    PS C:\> $found
    True
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Powershell and robocopy pausing

    I am using powershell and Robycopy to move files from volume to another.  Server 2008R2 iSCSI volumes on
    It seems that powershell window occasionally pauses.  When I hit enter the process just starts up again.  It is taking more that a day to move 2TB of data.  Command is: robocopy h:\ j:\ /e /mov /R:5 /W:10 /log:c:\movedidson.log /TEE /NP /ETA
    Also an empty folder remains on the first drive.  Why is it not deleting the folders after it copies.
    Thanks,
    Mark

    Hi Mark,
    Total shot in the dark, perhaps this will help:
    http://social.technet.microsoft.com/Forums/en-US/ab36656d-bfbd-4ff1-ac7a-84e2ac975c1d/powershell-hangs?forum=winserverpowershell
    EDIT: Also, this isn't exactly a PowerShell question. You may be using PowerShell to launch robocopy, but that's pretty much the end of anything PowerShell related.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Which files are require for sap IDES ecc6.0 ehp6 with windows 2008 and db2 LUW 10.1

    Hi professionals,
    Please help me out which file are require to download for SAP IDES ecc6.0 ehp6 with windows 2008 and db2 LUW 10.1
    My requirement is to install Windows2008 R2 Service pack 1 + ECC6.0 ehp6 + DB2 LUW
    So according to this i found these files,please tell me which one i require. second thing i am not able to find instalation master DVD in it.So which file is best for my environment.
    51044815_1           BD IDES SAP ERP 6.0 EHP6 Inst. Export 1 of 40
    51041991_1                 BS2011 Java Components - NW 7.03 1 of 4
      51041992                SAP ERP 6.0 EHP6 Components
    51041988_6                 NW703 UC-Kernel 720_EXT Windows Server on x64 64bit
    51041988_5
    NW703 Kernel 720_EXT Windows Server on x64 64bit
    51041988_7
    SL CONTROLLER 700
    51041988_8
    SL CONTROLLER 720
    51041991_1
    BS2011 Java Components - NW 7.03 1 of 4
    51048277_3
    721 NUC Kernel for SWPM SP06 - Windows Server on x64 64bit
    51048277_6
    721 UC Kernel for SWPM SP06 - Windows Server on x64 64bit
    51048277_7
    SL CONTROLLER 700 for SWPM SP06
    51048277_8
    SL CONTROLLER 721 for SWPM SP06
    51048285_2
    721_EXT NUC Kernel for SWPM SP06 - Windows Server x64 64bit
    51048285_4
    721_EXT UC Kernel for SWPM SP06 - Windows Server x64 64bit
    51048285_5
    SL CONTROLLER 700 for SWPM SP06
    51048285_6
    SL CONTROLLER 721 for SWPM SP06
    51048532
    DB2 LUW 10.1 FP4 RDBMS Windows x64
    51048533
    DB2 LUW 10.1 FP4 RDBMS CLI/JDBC-Driver
    51041988_9
    DB2 USER ENV
    51041988_11
    DB6 USER ENV
    51041988_10
    DB4 USER ENV
    Thanks & Regards,
    Bhipra Sakti

    Hi Bhipra,
    You need below DVDs for ERP 6.0 EHP6 IDES
    51041985_11
    DB2 USER ENV
    70SWPM10SP06_4-20009707.sar
    70SWPM10SP06
    51044815_1
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 1 of 40
    51044815_10
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 10 of 40
    51044815_11
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 11 of 40
    51044815_12
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 12 of 40
    51044815_13
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 13 of 40
    51044815_14
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 14 of 40
    51044815_15
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 15 of 40
    51044815_16
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 16 of 40
    51044815_17
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 17 of 40
    51044815_18
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 18 of 40
    51044815_19
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 19 of 40
    51044815_2
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 2 of 40
    51044815_20
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 20 of 40
    51044815_21
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 21 of 40
    51044815_22
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 22 of 40
    51044815_23
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 23 of 40
    51044815_24
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 24 of 40
    51044815_25
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 25 of 40
    51044815_26
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 26 of 40
    51044815_27
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 27 of 40
    51044815_28
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 28 of 40
    51044815_29
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 29 of 40
    51044815_3
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 3 of 40
    51044815_30
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 30 of 40
    51044815_31
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 31 of 40
    51044815_32
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 32 of 40
    51044815_33
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 33 of 40
    51044815_34
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 34 of 40
    51044815_35
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 35 of 40
    51044815_36
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 36 of 40
    51044815_37
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 37 of 40
    51044815_38
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 38 of 40
    51044815_39
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 39 of 40
    51044815_4
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 4 of 40
    51044815_40
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 40 of 40
    51044815_5
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 5 of 40
    51044815_6
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 6 of 40
    51044815_7
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 7 of 40
    51044815_8
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 8 of 40
    51044815_9
    BD IDES SAP ERP 6.0 EHP6 Inst. Export 9 of 40
    51048277_6
    721 UC Kernel for SWPM SP06 - Windows Server on x64 64bit
    51048277_8
    SL CONTROLLER 721 for SWPM SP06
    51048532
    DB2 LUW 10.1 FP4 RDBMS Windows x64
    51048533
    DB2 LUW 10.1 FP4 RDBMS CLI/JDBC-Driver
    Hope this helps.
    Regards,
    Deepak Kori

  • XI and DB2

    Good morning everybody,
    I'm a junior in SAP (Just started) ...I would like to know what are the different steps to make interfaces between SAP R3 and DB2 with SAP XI?
    Thanks in advance,
    Muraii

    Hi Murai,
      For connecting to R/3, you can use IDoc adapter or RFC adapter. Please see the below links for configuring the above adapters..
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    File-XI-IDoc Scenario - File to Idoc
    /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping
    For connecting to DB2, you need to use the type 4 adapter for DB2 and connect using the normal JDBC code. The below link gives the details for configuring JDBC.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    /people/ajay.kumar/blog/2005/03/24/writing-bsp-for-sap-r3-version-46
    /people/sugree.phatanapherom/blog/2005/08/14/configuring-sld-in-sneak-preview-sap-netweaver-04-sneak
    /people/sanyam.kapur/blog/2005/04/30/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-ii
    Hope these help... Dont forget to reward points if this is helpful..
    Also do get back to me in case you need further details...
    Regards
    Kiran..

  • Developer 6i and DB2 connectivity.

    I am using Oracle8i with Developer 6i.
    I need to connect to DB2/400 (running under OS/400) from Forms Developer 6i
    i have IBM AS400 Client Access (version : 3, release : 2,
    modification level : 0 ) installed on this machine, which
    is working allright, i have checked it by using datatransfer from
    AS/400.
    the username on DB2 is ORACLE (password is same as username).
    i have created ODBC system data source (named SYSDB2) for OCA connection
    while i connect from sqlplus, it connects with some error messages as
    shown below, however it works allright for querying.
    SQL> CONN ORACLE/ORACLE@ODBC:SYSDB2 ;
    ORA-00022: invalid session id; access denied
    ORA-00022: invalid session id; access denied
    ORA-00022: invalid session id; access denied
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    Server not available or version too low for this feature
    ORA-00022: invalid session id; access denied
    Connected.
    SQL>
    i have run PUPBLD.SQL but had no affect on these messages .
    When i try to create data dictionary views for DB2 from this connection
    by running script (Db4dmbld.sql) it does not create data dictionary.
    its fine till this happens, the real problem is that i am
    unable to connect to db2 by using odbc datasource from forms6i.
    when i try to connect it shows some special characters in a
    message box which can't provide any information.
    please let me know if there is any fix to this problem.
    regards,
    aamir.

    Hi,
    the site where you can find it is http://technet.oracle.com/doc/gateways.htm
    The gateway has no database functions. The gateway provides an interface by which the Oracle server can direct SQL operations to a DB2 database.
    Using a database link, the gateway is identified to the Oracle server. The database link is the same construct used to identify other Oracle server databases.
    Tables on the DB2 server are referenced in SQL as:
    table_name@dblink_name
    or
    owner.table_name@dblink_name
    If you create synonyms or views in the Oracle server database, you can refer to tables on the DB2 server using simple names as though the table is local to the Oracle server.
    When the Oracle server encounters a reference to a table on the DB2 server, the applicable portion of the SQL statement is sent to the gateway for processing. Any host variables associated with the SQL statement are bound to the gateway and, therefore, to the DB2 server.
    The gateway is responsible for sending these SQL statements to the DB2 server for execution and for fielding and returning responses. The responses are data or messages. Any conversions between Oracle datatypes and DB2 datatypes are performed by the gateway. The Oracle server and the application read and process only Oracle datatypes.
    --Samson
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Aamir Muhammad ([email protected]):
    Thanks Samson for you only reply on the
    topic, would you kindly tell me where can i find Oracle's Transaction Gateway for AS/400?
    Inspite all appreciation that i feel for you, What i think is that Gateways are used to establish connections between two databases not between a tool and a database like forms and AS400.<HR></BLOCKQUOTE>
    null

  • Time Zone issue with 7.0 and DB2

    Hi,
    We are having a time zone issue with weblogic server 7.0 and DB2 database. I would really appreciate if somebody provides a solution for this issue.
    Our db2 DB is located in PST time zone and weblogic server is located in EST time zone.
    When we access current timestamp from db2, we are getting PST time converted to EST and EST time zone attached with timestamp value.
    I tried to use resultset.getTimeStamp (1,<calendar>), unfortunately this method is not supported in the DB2 driver version I am using.
    We want to get same value as returned by db2 with db2 time zone not weblogic server time zone.
    And also when we add new record with timestamp column through web service, regardless the time zone value sent by web service client ".Net" ,
    Weblogic server converts the java.util.Date value to weblogic time zone and stores in the db.
    For example, client sent 17:00 hours CST, but when it gets stored in db through weblogic ws, weblogic converts 17:00 to 18:00 EST and stores in database as 18:00 hours without any time zone. When we read this value back, we are getting it 18:00 EST only not 17:00 CST.
    This is fine as long as writing and reading by same weblogic server. If another weblogic server instance in PST time zone read this value, it takes as 18:00 PST.
    Due to this our application always shows timestamp hours differently.
    Could some body help me to fix this problem, we are getting this problem in production after we moved our DB2 location to different time zone.
    Thanks
    Balaji

    Hi,
    Check whether document in the link below is of any use for you..
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFTIM/CAGTFTIM.pdf
    Regards
    K.M.Arun

Maybe you are looking for

  • Message: The ABAP program lines are wider than the internal table.

    sorry for stupid question.... can you please tell me what I need to check? The internal table "\FUNCTION=K_KKB_FIELDCAT_MERGE\DATA=L_ABAP_SOURCE[]" is 72 characters wide. The program line is 75 characters wide. Uf, I can't find the mistake BR

  • Adobe Air Fails in each reboot

    Mi machine is Win7 64 12 Gb RAM 8 cores and 3TB HD. I install adobe AIR and all is fine, but when I shut cown and start it adobe AIR tells me it's damaged... I am desperated... I have try to unistall and reinstall about 50 times. For aditional inform

  • CC desktop application won't launch, can't download from site

    I am a new CC member. I downloaded the application yesterday - it shows on my (Windows) desktop, but nothing happens when I click it. I tried logging into the Adobe website, but when I attempt to download an application, nothing happens again. I've t

  • Siemens Westinghouse Engineering Opening - Position in Orlando, Florida

    Job Opening for Instrumentation/Testing Engineer At Siemens Power Corp, I have an opening in my Testing and Instrumentation Department. The responsibility of my collective staff of 25 is to support all testing needs for our internal customers. This t

  • Correct use of Type declaration?

    Hello, I have a type declaration in a package like so: type get_rec_type IS   record   ( upl_id    table_name.id%TYPE   , doc_id    table_name.eff_from%TYPE     );I have refered to this type in my procedure declaration like so: PROCEDURE bulk_upload_