O816 to DB2 using TG4DB2 - generic questions

Hi,
I am trialing this product at the moment where I am trying to get a quick win on the product. Currently I have a situation where the db2 queries its database and produces a flat file which is ftp'd to an nt server where using sql-loader it is uploaded to the Oracle database, ugly I know! My idea is to wrap an insert statement around the db2 query on the as/400 which will write directly into the Oracle table.
Is this possible and if so can anyone give me a piece of sample code as I may be getting my db2 sql wrong.
Thanks
Anthony

No gateway log information generated even with setting trave level to DEBUG indcates that the listener cannot start the gateway process.
Please check the listener.log for details on the failure. Secondly, what kind of Linux is it? 32- or 64-bit?
Regards,
Ed

Similar Messages

  • Not able to connect to DB2 using generic connectivity

    Hi
    We are trying to connect to DB2 using Oracle Generic connectivity and we are getting ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from ODB2
    Log file is not even generated even though we set the parameter to debug. We are using Oracle 10g on Linux and Neon Shadow direct to connect to db2.
    The following are the setup we had done in our oracle db side
    initdb2.ora
    HS_FDS_CONNECT_INFO=NEON_dev_conn
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_SHAREABLE_NAME=/home/NEON/Shadow/lib/libscodbc_r.so
    added below entry in listener.ora
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ENVS=LD_LIBRARY_PATH=/home/oracle/product/10.2.0/lib:/home/NEON/Shadow/lib)
    (SID_NAME = db2)
    (ORACLE_HOME = /home/oracle/product/10.2.0)
    added below entry in tnsnames.ora
    DB2ODBC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test.db.com)(PORT =1523))
    (CONNECT_DATA =
    (SERVICE_NAME = db2)
    (HS = OK)
    Please suggest on this.
    Regards
    S. Senthil

    No gateway log information generated even with setting trave level to DEBUG indcates that the listener cannot start the gateway process.
    Please check the listener.log for details on the failure. Secondly, what kind of Linux is it? 32- or 64-bit?
    Regards,
    Ed

  • How can I just use a generic Realtek audio driver without "Beats Audio" interfering!?

    Beats audio is terrible! I just want to have a flat EQ with no stupid sound effects enabled. The only way I've been able to do this so far, is to uninstall the audio driver, and just use the generic windows one instead. But what I would like to do is use a generic Realtek audio driver, and completely remove Beats Audio from my computer.
    After uninstalling the audio driver that comes with my laptop, I tried getting a standard Realtek driver from their website. But when I install that, Beats Audio reappears! This is so frustrating! How can I uninstall Beats Audio? I want it gone forever! I can see from searching these forums that this is a common problem. But none of the solutions have shown how to just use a standard Realtek driver without this Beats Audio rubbish.
    Can anyone tell me how this is possible? I'll stick to the generic windows driver if I have to. But it would be nice if I could just use the Realtek drivers as they were meant to be.
    Thanks

    Thanks for the reply. But you've misunderstood the question. I know how to uninstall the sound driver and just use a generic Windows one instead. But what I'm actually looking to do, is install the Realtek audio driver without Beats Audio. Thanks.

  • Some generic questions on BPM of NW CE

    Hi Gurus
      i have over 6 years of ABAP business workflow experience and over 3 years of XI experience. Now i'm getting tough with this new stuff, BPM of NW CE. Here i have some generic questions of it:
    1. How can i trigger a BPM task while a document, like a sales order , has been created in the system? is there any processes to catch the event of R3 in NWDI?
    2. Can BPM consume RFC/BAPIs in R3?
    3. Is it possible to make message mapping in BPM? i found there is a 'mapping' choice in the context setting of NWDI whereas it is quite simple compared with PI.
    4. Can the BPM be integrated with webdynpro ABAP? or send the relevant tasks into R3 directly? Actually what i mean is , can i bypass java programing while dealing with BPM of CE, if possible.
    thanks

    Hi Stephen,
    In the first released version of SAP NetWeaver BPM it is not possible to catch events of R/3 directly. Anyway. In case you have the possibility to trigger a web service in that situation you could start off a specific (BPM) process instance that handles the situation.
    The same is basically true for the question regarding RFC: In the initial version you'd need to wrap the RFC into a web service in order to consume it.
    The mapping possibilities in SAP NetWeaver BPM are meant to perform data flow between different activities in a BPMN based process model. This way you could transform a message that came into the process in that way that if fits your needs in regards to the BPM process (data) context.
    Bypassing Java when using SAP NetWeaver BPM would be difficult as the supported UI technology is Web Dynpro for Java. In addition the possibility to add more flexibility to your mappings by defining custom functions is based on EJB, thus again Java.
    Best regards,
    Martin

  • Somewhat complicated nested generics question

    I have a slightly complicated generics question. I have some parameterized code that looks something like:
    public <T extends MyBaseObject> Map<String,T> loadObjectCache (Class<T> clazz) {
        // load objects of type T from somewhere (file, database, etc.)
        List<T> objs = loadObjects(clazz);
        // create map to store objects keyed by name
        Map<String,T> map = new HashMap<String,T>();
        for (T obj : objs) {
            map.put(obj.name(), obj);
        return map;
    public static void main (String[] args) {
        // load objects of type Foo (a subclass of MyBaseClass)
        Map<String,Foo> map = loadObjectCache(Foo.class);
        // retrieve a Foo by name
        Foo foo = map.get("bling");
    }This all works great, and the parameterization helps me avoid some annoying casts. Now let's suppose I want build these maps for multiple classes, and I want to create a second-order cache of objects: a Map which is keyed by Class and contains elements each of which is a Map as above (keyed by name, containing objects of the given class). So, I'd like to declare something like:
    Map<Class,Map<String,Object>> metaMap = new HashMap<Class,Map<String,Object>>();However, this doesn't quite work. The compiler complains about the following code added just before the return in loadObjectCache() because a Map<String,Foo> is not a subclass of a Map<String,Object>:
        metaMap.put(clazz, map);So, What I'd like is some way to make the above declaration of metaMap such that the objects in a given inner Map are checked to be of the same type as the Class used to store that Map in the meta-map, something like:
    Map<Class<T>,Map<String,T>> metaMap = new HashMap<Class<T>,Map<String,T>>();But this isn't quite right either. I don't want a Map that uses a particular Class as its key. Rather, I want a Map that uses multiple Class objects as keys, and the element stored for each is itself a Map containing objects of that type. I've tried a variety of uses of Object, wildcards, etc., and I'm stumped. I currently have the meta-map defined as:
    Map<Class,Map<String,?>> metaMap = new HashMap<Class,Map<String,?>>();Then in my new getObjectByName() method, I have to use an ugly cast which gives me a type safety warning:
    public <T> T getObjectByName (Class<T> clazz, String name) {
        Map<String,T> map = (Map<String,T>)metaMap.get(clazz);
        return map.get(name);
    }If anyone know how I should declare the meta-map or whether it's even possible to accomplish all this without casts or warnings, I would much appreciate it!
    Dustin

    Map<Class<?>,Map<String,?>> metaMap = new
    new HashMap<Class<?>,Map<String,?>>();
    public <T> T getObjectByName (Class<T> clazz,
    azz, String name) {
         Map<String,?> map = metaMap.get(clazz);
         return clazz.cast(map.get(name));
    }Cute. Of course, that's really only hiding the warning, isn't it?
    Also it doesn't generalize because there's no way to crete a type token for a parameterized class. So you can't use a paramterized class as a key, nor can you nest 3 Maps.
        public static <U> void main(String[] args) {
            MetaMap mm = new MetaMap();
            Appendable a = mm.getObjectByName(Appendable.class, "MyAppendable");
            Comparable<U> u = mm.getObjectByName(Comparable.class, "MyComparable"); //unchecked converstion :(
        }Hey, not to sound ungrateful though. The solution posed is very useful for a certain class of problem.

  • Raw use of Generics

    Something which makes me wonder: When I use own generic classes in a raw manner, I usually get the following warning:
    Type safety: The method myMethod() belongs to the raw type Generic. References to generic type Generic<T> should be parameterizedWhen using generic classes from the JDK, e.g. List or Map, I do not get any warning. Where is the trick? :)
    Is it possible to define or annotate methods of a class to not warn on raw usage? For example, when having a method in Generic<T>, that does not operate on T.
    Thanks,
    Stefan

    Well, I did not think, that code would be necessary to understand my question. And after some testing in order to reply here, I think, I may have fallen for an eclipse bug. If so, please let me know :)
    The following example might be semantically useless, but I wanted to point out my issue.
    Say we have the following custom class:
    public class Generic<T> {
         public int size() {
              return 0;
    }And a testing class:
    public class Test {
         public void testList(ArrayList aList) {
              aList.size();
         public void testGeneric(Generic aGeneric) {
              aGeneric.size();
    }Now, in eclipse I get a warning for "aGeneric.size()" but none for "aList.size()". Although, in my opinion, each call operates on a raw type. Using javac from shell does not produce any warning, so it might be eclipse.
    As a note: I know and appreciate warnings been thrown for generics. But in some cases, there is no need for warnings. For example, if a method's signature is independent of the generic's parametrization, hence the method is not "raw".
    If Java 5 already does that, I have to blame eclipse and myself for not thoroughly testing out before posting. :)
    Thanks,
    Stefan

  • Adobe Edge - generic questions

    Hi,  I've a couple of fairly generic questions regarding Adobe Edge:  - Is it part of the Adobe Creative Cloud? - I'm looking to produce animated online web ads (leader board / MPU) As far as I'm aware I can produce HTML 5 in this, is this correct?  Can I also produce .swf files too?  My overall aim to get trained on a package which can produce online interactive animated ads (which will play on both PC and Apple devices old and new).  Flash only seems to produce .swf (don't work on some Apple products) Is Edge the answer?  Thanks in advance,  Andy

    Hi, Andy-
    Edge Animate is available for download from the Creative Cloud, so you should already be able to see it in your offerings.  Animate works natively in HTML, so it can't output SWF.  I believe Flash can export to Canvas using CreateJS (http://www.adobe.com/products/flash/flash-to-html5.html), but Canvas support is uneven across all browsers.  We are working with other advertising agencies, so I can tell you that there is good interest in Edge Animate as a solution for HTML-based animated advertisements.
    Hope that helps you,
    -Elaine

  • When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?

    When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?
    All of a sudden I noticed that most of the folders on my computer were no longer using the folder icon, but the generic document icon. I had to manually change back the icon being used by opening Get Info for each folder and copying and pasting the generic folder icon from some folders that remained unchanged. Now whenever I create a New Folder (right click -> "New Folder"), the icon that shows up is the generic document icon (white page with top right corner turned down). And I have to manually change it so it shows up as a folder in Finder or on my desktop. I don't know why or how this switch happened. All of the folders now on my computer look ok, but I need to change the default so when I create a New Folder it uses the correct icon.
    I have also Forced Relaunch of my Finder and rebooted the system. I downloaded Candybar but am not sure what will fix anything, so I haven't proceeded.
    Anyone know how I can do this? Thanks.

    Anyone?

  • Is it possible for multiple users to use a "generic" account simultaneously without screen sharing?

    Hey and thanks for checking out the thread.
    I am wondering if it is possible to have users use a generic account at the same time without any sort of screen sharing.
    I have set up a generic user account (for example useraccount, password 1234) for users to use in the time before I can set up a custom user name for them. However, I have run into some issues with this.
    When multiple users log on using this generic account, their applications seem to be shared on each screen. In the room with multiple Mac workstations, if someone starts working on Photoshop, Photoshop will open on every one elses screen who is logged on under that generic account.
    Is it possible for users to log on using a generic network account and have their own isolated work environment or is this sort of sharing a feature? I am new to Mac servers and am not sure.
    Thanks for reading the thread.

    That shared-account approach seems impractical for the various reasons you've identified, as well as the inevitable issue of cleaning up the detritus that'll inevitably build up in a shared account, and for the lack of accountability for activities occuring under the shared account for both auditing and security, and sharing directories would tend to introduce obscure conflicts around which-file-version-wins file updates when the same file is used in several places, and would probably be contrary to any per-user application software licensing agreements that might be involved.
    Put another way, get unique accounts created for folks, and work toward the ability to create accounts for arriving folks, and — if it's applicable here — talk to management about getting any per-user software licensing issues sorted out, whether that's having spare copies purchased and ahead or some advanced notice on accounts, or establishing group software licensing where that's available.
    AFAIK, there are tools around which can automate account creation, too.  Either generic, a tool such as Passenger, or it's certainly feasible to script the account creation sequence.
    Trying this shared-access generic-account approach just looks like it can create more work and more hassles and more effort to me...

  • Use of Generics in ArrayList now mandatory?

    Hi,
    I'm writing a little Applet involving the population of ArrayList (my Java compiler is version 1.6.0_22).
    My code is similar to
    ArrayList vertexPoints = new ArrayList();
    - it compiles OK, but when I try and run the applet, it falls out saying that there is a NullPointerException in the above line. I was under the impression that the use of generics in ArrayLists is not compulsory? Or will I have to
    change the code to something like
    ArrayList<3DPoint> vertexPoints = new ArrayList<3DPoint>():
    Some websites with tutorials give the impression that providing a type is optional, hence my confusion.

    799615 wrote:
    but accessing a method of an array of objects. I'll soldier on....Since you have not provided any more information we can only make educated guesses. Perhaps you are doing something like:
    Foo[] fooList = new Foo[5];
    fooList[0].doStuff(); // NullPointerExceptionWhy? The first line only creates an array. It does not automagically create any Foo objects for you. Therefore the array is full of the deafult value and for Objects (reference types) it is null. So effectively the second line is null.doStuff().

  • What is the use of Generic class in java

    hi everyone,
    i want to know that
    what is the use of Generic class in java ?
    regards,
    dhruvang

    Simplistically...
    A method is a block of code that makes some Objects in the block of code abstract (those abstract Objects are the parameters of the method). This allows us to reuse the method passing in different Objects (arguments) each time.
    In a similar way, Generics allows us to take a Class and make some of the types in the class abstract. (These types are the type parameters of the class). This allows us to reuse the class, passing in different types each time we use it.
    We write type parameters (when we declare) and type arguments (when we use) inside < >.
    For example the List class has a Type Parameter which makes the type of the things in the list become abstract.
    A List<String> is a list of Strings, it has a method "void add(String)" and a method "String get(int)".
    A List<File> is a list of Files, it has a method "void add(File)" and a method "File get(int)".
    List is just one class (interface actually but don't worry about that), but we can specify different type arguments which means the methods use this abstract type rather than a fixed concrete type in their declarations.
    Why?
    You spend a little more effort describing your types (List<String> instead of just List), and as a benefit, you, and anyone else who reads your code, and the compiler (which also reads your code) know more accurately the types of things. Because more detail is known, the compiler is able to tell you when you screw up (as opposed to finding out at runtime). And people understand your code better.
    Once you get used to them, its a bit like the difference between black and white TV, and colour TV. When you see code that doesn't specify the type parameters, you just get the feeling that you are missing out on something. When I see an API with List as a return type or argument type, I think "List of what?". When I see List<String>, I know much more about that parameter or return type.
    Bruce

  • Some generic  questions about JMF

    Hi, as new to JMF, I would like to ask some generic questions about JMF from this community
    Though including RTP stack, JMF is only compatible to old RTP draft, RFC1889. I know that Sun stopped developing/supporting JMF. What is the alternative solution for JAVA RTP implementation suitable for a serious SERVER project, not just a school-term project? Has anyone thought about that or may have already moved forward? Is that any commercial or more updated Java based RTP stack currently? I searched with google. Besides jrtp, a school project, and I could not find a nice one. Majority of RTPstack implementation is C/C++.
    My second question is if there is the performance analysis and comparison of JMF. I know that some client applications such as SIP-Communicator adopt JMF for media delivery. But it is for one user in one machine. I wonder if any server application has adopt JMF as media relaying layer.
    I appreciate any input from this community.

    erwin2009 wrote:
    Hi, as new to JMF, I would like to ask some generic questions about JMF from this communitySure/
    Though including RTP stack, JMF is only compatible to old RTP draft, RFC1889. I know that Sun stopped developing/supporting JMF. What is the alternative solution for JAVA RTP implementation suitable for a serious SERVER project, not just a school-term project? Has anyone thought about that or may have already moved forward? Is that any commercial or more updated Java based RTP stack currently? I searched with google. Besides jrtp, a school project, and I could not find a nice one. Majority of RTPstack implementation is C/C++. There is one active project out there, Freedom for Media in Java, that has RTP capabilities. It's obviously not from Sun, but it's the only other RTP-capable project I am aware of, other than FOBS4Java, I believe is the name of it.
    What they are suitable for is beyond my scope of knowledge, I only know of the 2 projects.
    My second question is if there is the performance analysis and comparison of JMF. I know that some client applications such as SIP-Communicator adopt JMF for media delivery. But it is for one user in one machine. I wonder if any server application has adopt JMF as media relaying layer. None that I have seen, except for various projects I've helped people with on this forum. But, if someone is asking for help on a forum with his/her server application, it probably doesn't meet the guidelines you just laid out ;-)
    I appreciate any input from this community.Sorry I don't have more to add to your inquires...

  • Use HS Generic Connectivity in Oracle Express (XE)

    Can I use HS Generic Connectivity in Oracle Express (XE) or do I need a "full" database?

    I see you've managed to get HS working on Oracle XE. I am trying to do the same, but am hitting a wall when trying to set the hs_fds_connect_info parameter in that Oracle does not seem to recognise it:-
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    ORA-32003: error occured processing parameter 'hs_fds_connect_info'
    LRM-00101: unknown parameter name 'hs_fds_connect_info'
    SQL> show parameter hs
    NAME TYPE VALUE
    hs_autoregister boolean TRUE
    Is there anything I need to set elsewhere to enable this? Any help would be appreciated.

  • When I try to print using Windows 2008 print server I have to use the generic print drivers supplied. If I use the OEM driver the printer locks up. I have tried a HP 4 plus and a Canon Copier.

    When I try to print using Windows 2008 print server I have to use the generic print drivers supplied. If I use the OEM driver the printer locks up. I have tried a HP 4 plus and a Canon Copier.

    A number of vendor drivers written for OS X cannot be used when connecting via SMB to a printer that is shared by Windows. This is due to limitations of the driver.
    In some cases, if you were to enable the LPD Print Service in Windows, you can connect to the share using the same syntax as SMB but on the Mac you would use the LPD as the protocol.
    If you can reply with the brand and model of printer you have then we may be able to provide more information.

  • Can I use a generic leather holster with IPhone?

    Can I use a generic leather holster with IPhone?

    I had the Piel Frama from Cases.com and it is great, a horizontal case with belt clip and magnet closure. I have one on the way, just shipped, for the new iPhone 5:
    http://www.cases.com/piel-frama-602-black-leather-horizontal-pouch-for-apple-iph one-5.html

Maybe you are looking for

  • Opening and closing stock balances

    Hi What report can i use to show the opening and closing stock balances of materials for the last 12 months. Thanks Vinesh

  • IPad shows "No Data" for Videos when I have movies stored.

    Short version: I've had lots of issues with downloading movies to my iPad from iTunes.  When it works, the "videos" section under Settings > General > Usage shows "No data" as if it's not reading the storage.  I'll have 6 movies but it shows nothing

  • Keep your phone secure!

    The virus and worm threat has reached the mobile world, and like on your computer there are a few things you can do to prevent an attack: How can malware get on my phone? Via SMS, as an internet link Via Email, as an attachment or a link Via Bluetoot

  • On idvd how do I delete menu page?

    On iDVD as part of ilife 11, how do I delete the Menu page?

  • SRM Contract management personalization

    Dear SRM Gurus, We are currently implementing the CM for SRM 7.0 in standalone scenario. Here I got two questions about the personalization: 1. How is it possible to remove the catalog links in the "add item" button dropdown menu? In the Dynpro for t