New to the Tuxedo

I wrote simple service for Connecting Oracle the code is
file name is GETDB.ec
#include <stdio.h>          
#include <atmi.h>          /* TUXEDO */
#include <sqlcode.h>          /* TUXEDO */
EXEC SQL INCLUDE sqlca;
EXEC SQL begin declare section;
char name[20];
int eno;
EXEC SQL end declare section;
tpsvrinit(int argc, char *argv[])
return(0);
GETEMP(TPSVCINFO *transb)
          (void)strcpy(name,transb->data);
          EXEC SQL WHENEVER SQLERROR GOTO error_in_SQL;
          (void)fprintf(stdout,"empname: %s \n",name);
          EXEC SQL select EMPNO into :eno
          from EMP
          where ENAME='JAMES';
     error_in_SQL:
     (void)fprintf(stdout,"error in sql");
          (void)fprintf(stdout,"empno: %d",eno);
     tpreturn(TPSUCCESS, 0, transb->data, 0L, 0);
how to compile and create EXE? . please let me know the steps ....

Bala,
One point... Your server does not connect to the database, so it won't
work.
Use SQL CONNECT or (for xa access) tpopen() in the tpsvrinit routine.
To build the server, you must precompile the code with the Oracle proc
compiler, to generate GETDB.c from your GETDB.ec
then, run buildserver -f GETDB.c -o GETDB.exe [-r Oracle_XA ]
See Writing Servers
Regards,
Peter.
Got a Question? Ask BEA at http://askbea.bea.com
The views expressed in this posting are solely those of the author, and
BEA
Systems, Inc. does not endorse any of these views.
BEA Systems, Inc. is not responsible for the accuracy or completeness of
the
information provided
and assumes no duty to correct, expand upon, delete or update any of the
information contained in this posting.
Bala wrote:
I wrote simple service for Connecting Oracle the code is
file name is GETDB.ec
#include <stdio.h>
#include <atmi.h> /* TUXEDO */
#include <sqlcode.h> /* TUXEDO */
EXEC SQL INCLUDE sqlca;
EXEC SQL begin declare section;
char name[20];
int eno;
EXEC SQL end declare section;
tpsvrinit(int argc, char *argv[])
return(0);
GETEMP(TPSVCINFO *transb)
(void)strcpy(name,transb->data);
EXEC SQL WHENEVER SQLERROR GOTO error_in_SQL;
(void)fprintf(stdout,"empname: %s \n",name);
EXEC SQL select EMPNO into :eno
from EMP
where ENAME='JAMES';
error_in_SQL:
(void)fprintf(stdout,"error in sql");
(void)fprintf(stdout,"empno: %d",eno);
tpreturn(TPSUCCESS, 0, transb->data, 0L, 0);
how to compile and create EXE? . please let me know the steps ....[att1.html]

Similar Messages

  • New to the WRT300N - Firmware & help needed

    Hi. First off, I apologize that this is going to be very long.  I really hope someone will take the time to read it all and give me some help.
    I posted about a week ago about problems with my WRT54GS.  All of a sudden with no changes, the wireless stopped working.  I tried for a few days to fix it with no luck.  I decided to order the WRT300N (I figured if I was going to buy a new one, I'd upgrade and this is the one that Linksys recommended).
    I should mention that after ordering the new router, the wireless on the old one started working again but it wasn't working normal.  The signal quality had always pretty much been excellent and now it started going up & down but at least it was staying connected.
    The new router came today.  I disconnected the old one and connected the new one and everything went smoothly.  Both my wired & wireless computers worked great.  Less than an hour later, the wireless disconnected.  I went to view available networks and my network (I use our last name) was gone.  I shut off the laptop and it still didn't see the network.  So I started looking at the router settings just to be sure that nothing had changed.  About 15 minutes later, the laptop found the network and connected again.  The signal quality dropped to good and has stayed there ever since.
    Just for information, when the laptop is on the desk (which it is 90% of the time), it's only about 5 feet away from the router.  I have not tried to take the laptop out of the room yet.  Also more information if it helps.  I have a large "U" shaped desk.  My monitor for my desktop sits in the middle.  On either side are the speakers.  To my left (in front of me) is a UPS (plugged into this UPS is the tower, monitor, speakers, cradle for my mouse, modem & router), then the tower (I can't put it on the floor because I have physical issues that would prevent me from accessing it there).  Now if I turn my chair to the left, the desk has an upper level.  This is where my DSL modem & the router are.  They are on the end near where the computer is on the lower level.  This is the same setup we were using before.  Old router worked great for almost 2 years with signal strength at excellant on the laptop.  It just started acting up all of a sudden.  If I go back to facing center and then turn to the right, that's where my husband's laptop sits.  The only other equipment there is a calculator and a lamp and on the floor is another UPS which has his laptop (which has an Intel wireless G card in it), a laser printer, and the above mentioned calculator & lamp plugged in.
    Prior to today, I had the Logitech MX3100 keyboard & mouse set.  I had purchased a new mouse (Logitech MX Revolution).  So I was using the keyboard from the MX3100 with the new mouse and everything was fine running that way for weeks before the problem kicked in.  So I don't think it's got anything to do with the mouse.  Today's setup is a little different.  I am no longer using the MX3100 keyboard.  I am using Logitech DiNovo Edge, which uses a bluetooth dongle.  I also don't think it's any interference from this keyboard since this is a pre-existing problem.
    I do have a cordless phone in the room (it's on the left hand side of the desk from where I sit at the opposite end from the modem & router...also it's one of those that doesn't need a phone line)but it's a 5.8 ghz.
    The old router had the option to change the channel, etc.  This one has auto for standard channel & wide channel & there's no way to change it that I can see.  Radio band is also set to auto but does have 2 choices under it (standard & wide).  As I said before, I use our last name for our SSID.  It's the same one I've been using for years.  There is no one else around here with that SSID.  Network mode is mixed.
    Concerning the firmware....the information for mine is WRT300N V1.1 firmware v1.51.2.  I tried to look for an update but the only one in the list is the WRT300N V1.0.  I did click on that but the firmware version is lower and I don't want to screw anything up.  Is there a firmware update for me or not?  If so, please point me in the right direction as I can't find it.
    Concerning the signal strength....would it help to buy a new wireless card for the laptop?  The Intel card has been updated with the newest software.  The card is internal and to my knowledge can only be replaced with the same card or a bluetooth card.  (Computer is a Dell XPS M140.)  I do have a card slot but I'm confused because I think Dell called it an Express Card slot and I don't know whether or not the Linksys notebook card that is recommended for this router would work in this slot.  If the card would work, is it worth the expense?
    What else can I try.  I thought about moving the router furthur to the left but it would require moving a few other items and I'm not sure if the cords are long enough.  Would it help if the router & modem were not plugged into the same UPS?  I do have a regular surge protecter near where my phone is.  I would really rather leave them plugged into the UPS though for obvious reasons.
    Also if it helps, I have the router on it's side with the 2 antennas on the end pointing straight up and the flat one in the middle I have angled this way.
    I hope I have given enough information for some suggestions.
    Thanks,
    Lisa

    Thanks for the response.  I was wondering if anyone would take the time to read such a long post.  I wanted to be sure to try to give as much information as possible.
    My desktop (Dell XPS400) tower is made out of metal...but the router is actually not sitting on it.  There is a shelf to the left of my tower (when I'm facing it, otherwise it's to the right of it).  That's where the modem & router sit.  The shelf sits about 3" over from the edge of the computer and it's about 7" above it.
    As far as the wireless card for my husband's laptop...I'm still thinking about it.  I'm wondering if there would be any improvement in speed or the quality of the connection with the N card.
    Now I just went into the router's settings and tried to make the changes you suggested.  I was able to change  the radio band from auto to wide BUT once I do that, I loose the ability to leave the wide channel & standard channels on auto.  The options for the wide channel are 3-9 and the standard are 1 & 5.  I don't know which ones are best to pick so for now I'm not changing anything.  I didn't change the advanced settings either as I wasn't sure if I could do that without changing the other settings first.
    My husband has noted that he does see the quality of the connection occasionally jump to excellant.  For the most part it's staying on good in here.  We haven't brought it out into the living room yet to see what it does out there.  He hasn't needed to.  He has had it disconnect on him a couple of times as well.
    I did forgot to mention in that book I wrote that we do live in an apartment building.  We are on the 1st floor in the back of the building.  Our office is between our living room & another bedroom.  There is an apartment above us.  There is another apartment on the other side of the other bedroom.  Our bathroom is across the hall from this room, other side of that is the kitchen and then there is an apartment in the front of the building.  Our front door is off the living room, a hallway seperates our apartment from another one.  There are 4 apartments on each floor.  Laundry (directly under us) & storage in basement.
    I give all these details to try to get the best help.  I don't know if all this extra info is helpful or not.  We have been using Linksys routers for quite a few years now.  This is our 3rd one and our 2nd wireless one.  We have been in this apartment for a year now and had no trouble until a few weeks ago.  Previously lived in another apartment of the same floor plan in the same complex but on the 3rd floor (boy did we hate walking up those stairs!) with no trouble.
    Looking forward to hearing back from  you so I can try to make the changes you suggested.
    Thanks,
    Lisa

  • Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Remove the extensions, redownload Safari, reload the extensions.
    http://www.apple.com/safari/download/
    And if you really want a better experience, use Firefox, tons more choices and possibilities there.
    Firefox's "NoScript" will block the Trojan going around on websites. Best web security you can get.
    https://addons.mozilla.org/en-US/firefox/addon/noscript/
    Ghostery, Ad Block Plus and thousands of add-ons more have originated on Firefox.

  • What is new in the iPod Touch 5?

    Hello I was wondering what is going to be new in the iPod Touch 5? Thanks!

    Apple has not yet made any announcement with regards to the 5G iPod Touch.  It is against the erms of use of this forum to speculate on such things.  Google if you want to see what others are speculating.

  • New to the game and need some quick help

    I have been thrown our exisiting phone infrastructure and what do you know we are having some issues.
    We have a new series of DID's and when they are dialed from our directory they go anywhere? Not routing to the proper extension.  Translation pattern looks good in comparison to the extensions that are working.
    Cisco Unified CM Administration System version: 6.1.3.3000-1
    Cisco Application Administration - 5.0(2)_Build064
    Package: Unified CCX Enhanced
    Regards,
    Dan

    First thing to know is that everything that has a DN can be used for routing, so it's a good idea to look at the route plan report to find matches.
    If you can't find an exact match, chances are you're hitting something with wildcards ie X, [1-2], etc
    An easy way to check routing if you're new to the game is to use DNA
    Cisco Unified Communications Manager Dialed Number  Analyzer Guide, Release 6.1(1)
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/dna/6_1_1/bw-dna.html
    HTH
    java
    If this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • New to the SRM

    Hi All,
    I am new to the SRM.I have 2 years of Exp in SAP MM. Now wanted take SRM.
    Please help in guiving some guidence.
    thanks,
    Raju

    Hi,
    You can find all the config guides at https://websmp201.sap-ag.de/ibc
    Please look at:
    http://service.sap.com/instguides
    mySAP Business Suite Applications -> mySAP SRM -> mySAP SRM Server 5.0
    Download MasterGuide and scenario-specific instructions.
    Follow this link for detailed understanding of srm business process.
    http://help.sap.com/saphelp_srm50/helpdata/en/8d/f6a93e08503614e10000000a114084/frameset.htm
    The below link will have the total documentaion about SRM
    http://help.sap.com/content/documentation/erp/docu_sbs_erpsrm.htm
    http://www.sap.com/solutions/business-suite/srm/technicaldetails/technology.epx
    http://www.ies.state.pa.us/srm/cwp/view.asp?a=3&q=197102&srmNav=
    Please check the wiki.
    https://wiki.sdn.sap.com/wiki/display/SRM This is good starting point.
    BR,
    Disha.

  • New to the community

    hello, I'm new to the forum and I would like to post an issue however I don't seem to find how to do it! Could anybody help? Thanks!

    Welcome to the community.
    This link should help.
    http://community.bt.com/t5/Forum-Guidance-Ideas/How-to-An-archive-of-sticky-posts-on-how-to-use-the-...
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • New to the game, expose help.

    New to the mac game here, some mac experience otherwise though. Anyways so I've got my shiny macbok pro here and I want to expose my windows, I know I hit F9 to get that going, but it brings up the lighting for the backlit keyboard.... what do I do.

    Welcome to the Apple discussions.
    As louie points out, your MacBook Pro questions really should be posted in the MacBook Pro area at http://discussions.apple.com/category.jspa?categoryID=190

  • Performance issues with the Tuxedo MQ Adapter

    We are experimenting some performance issues with the MQ Adapter. For example, we are seeing that the MQ Adapter takes from 10 to 100 ms in reading a single message from the queue and sending to the Tuxedo service. The Tuxedo service takes 80 ms in its execution so there is a considerable waste of time in the MQ adapter that we cannot explain.
    Also, we have looked a lot of rollback transactions on the MQ adapter, for example we got 980 rollback transactions for 15736 transactions sent and only the MQ adapter is involved in the rollback. However, the operations are executed properly. The error we got is
    135027.122.hqtux101!MQI_QMTESX01.7636.1.0: gtrid x0 x4ec1491f x25b59: LIBTUX_CAT:376: ERROR: tpabort: xa_rollback returned XA_RBROLLBACK.
    I am looking for information at Oracle site, but I have not found nothing. Could you or someone from your team help me?

    Hi Todd,
    We have 6 MQI adapters reading from 5 different queues, but in this case we are writing in only one queue.
    Someone from Oracle told us that the XA_RBROLLBACK occurs because we have 6 MQ adapters that are reading from the same queues and when one adapter finds a message and try to get that message, it can occurs that other MQ Adapter gets it before. In this case, the MQ adapter rollbacks the transaction. Even when we got some XA_RBROLLBACK errors, we don´t lose message. Also, I read something about that when XA sends a xa_end call to MQ adapter, it actually does the rollback, so when the MQ adapter receives the xa_rollback call, it answers with XA_RBROLLBACK. Is that true?
    However, I am more worried about the performance. We are putting a request message in a MQ queue and waiting for the reply. In some cases, it takes 150ms and in other cases it takes much more longer (more than 400ms). The average is 300ms. MQ adapter calls a service (txgralms0) which lasts 110ms in average.
    This is our configuration:
    "MQI_QMTESX01" SRVGRP="g03000" SRVID=3000
    CLOPT="-- -C /tuxedo/qt/txqgral00/control/src/MQI_QMTESX01.cfg"
    RQPERM=0600 REPLYQ=N RPPERM=0600 MIN=6 MAX=6 CONV=N
    SYSTEM_ACCESS=FASTPATH
    MAXGEN=1 GRACE=86400 RESTART=N
    MINDISPATCHTHREADS=0 MAXDISPATCHTHREADS=1 THREADSTACKSIZE=0
    SICACHEENTRIESMAX="500"
    /tuxedo/qt/txqgral00/control/src/MQI_QMTESX01.cfg:
    *SERVER
    MINMSGLEVEL=0
    MAXMSGLEVEL=0
    DEFMAXMSGLEN=4096
    TPESVCFAILDATA=Y
    *QUEUE_MANAGER
    LQMID=QMTESX01
    NAME=QMTESX01
    *SERVICE
    NAME=txgralms0
    FORMAT=MQSTR
    TRAN=N
    *QUEUE
    LQMID=QMTESX01
    MQNAME=QAT.Q.NACAR.TO.TUX.KGCRQ01
    *QUEUE
    LQMID=QMTESX01
    MQNAME=QAT.Q.NACAR.TO.TUX.KGCPQ01
    *QUEUE
    LQMID=QMTESX01
    MQNAME=QAT.Q.NACAR.TO.TUX.KPSAQ01
    *QUEUE
    LQMID=QMTESX01
    MQNAME=QAT.Q.NACAR.TO.TUX.KPINQ01
    *QUEUE
    LQMID=QMTESX01
    MQNAME=QAT.Q.NACAR.TO.TUX.KDECQ01
    Thanks in advance,
    Marling

  • Im new to the iCloud and Mac in general. After experincing a hard drive crash out of the blue, I lost everything. I want to make sure this doesn't happen again. I show backups for my iPhone and my daughter's iPod but my mac doesn't exist. How do I fix tho

    I'm new to the iCloud and Mac in general. After experiencing a hard drive that went out of the blue, I lost everything. I wanted to use the icloud to back my documents up. I went into the iCloud under settings but it only shows my iPhone and daughter's iPod. How do I get my Mac to back up too? Is there something I need to use to have the documents back up?

    You cannot back up your Mac to iCloud. Even backing the whole thing up to another online service would be dubious because it would take a very long time. You should buy an external hard disk and back up to that - even better, buy two and use one to make a Time Machine backup and the other to clone your Mac from time to time, thus giving you a backup from which you can boot in an emergency.
    If you wanted to back up a suitably sized selection of data to an online service there are a number of third-party methods available, some of which are examined here:
    http://rfwilmut.net/missing3

  • Using Firefox 4.0 Beta 4. When I open a link in a new window, the web address does not show in the location bar. Why?

    When I open a web page link in "a new window" the link opens, but the web page information does not appear in the location bar. It is blank. If I open the link in a new tab, there is ho problem.
    Further, if a open a link from the tab without a location in a new tab on the same window and then go back to the original tab, the location bar fills with the web address.
    Have done this starting in several locations, so it not location dependent.

    That behaviour is likely top be caused by an add-on, and in your case the likely culprit is IE Tab 2, the various versions of IE Tab have caused problems with Firefox 4 beta including issues with the location bar not being updated.
    You can test to see if IE Tab 2 is causing your problem by disabling it and then seeing if the location bar in a new window shows the address. If it is not that add-on causing the problem, see [[troubleshooting extensions and themes]].
    For info, the IE Tab Plus add-on has been updated recently to improve compatibility with Firefox 4 beta, you may want to try that one instead. The latest version is available from http://coralietab.mozdev.org/installation.html

  • I have a canon hf10 and need to be able to transfer my video from my camera to my computer so I can burn them to dvd is there a step by step process? i'm new 2 the mac world.  I tried downloading imovie 7.1.2 but it said, "An eligible iMovie application

    i have a canon hf10 and need to be able to transfer my video from my camera to my computer so I can burn them to dvd is there a step by step process? i'm new 2 the mac world.  I tried downloading imovie 7.1.2 but it said, "An eligible iMovie application was not found in the location /Applications." can anyone give me step by step instructions? i would hate to call the geek squad!!!LOL

    and what's a firewire port? how do i know if i have one?

  • Discoverer Report whenever we create a new customer , the information is dropping off the Property manager module

    Dear Friends,
    whenever we create a new customer , the information is dropping off the Property manager module.
    Can you please help as its a very critical business issue now.
    Thanks a lot in advance.
    Kind Regards
    Siva Charan

    Dear Friends,
    whenever we create a new customer , the information is dropping off the Property manager module.
    Can you please help as its a very critical business issue now.
    Thanks a lot in advance.
    Kind Regards
    Siva Charan

  • I'm new to the Mac world. I installed my Epson printer on my IMAC and it worked fine. Then I installed Windows7 through Bootcamp and I think it reconfigured a port and now I get a communication error and it won't print. Any help on how do to fix this?

    Sorry, I'm new to the Mac world. I recently got a new IMAC and installed my Epson CX5800F printer and it worked fine. Then a few weeks later I installed Windows7 through Bootcamp and I think it reconfigured a port or something and now I get a communication error and it won't print. Can anyone help me with this problem, and/or help me get the port back the way it was? Thanks, Barry

    While looking through profile first aid, I came across this that might help explain my problem.
    Searching for profiles...
    Checking 20 profiles...
    /Library/Printers/EPSON/InkjetPrinter2/ICCProfiles/Standard.profiles/Contents/Re sources/Epson IJ Printer.icc
       Tag 'desc': Tag size is not correct.
       Tag 'dmdd': Tag size is not correct.
       Tag 'desc': Description tag has a bad Macintosh string.
       Tag 'dmdd': Description tag has a bad Macintosh string.
       The file is locked. Could not be fixed.
    Repair done - 0 out of 1 profiles fixed.

  • I have just getting a new phone and I have forgot my password an Apple ID what I made new for the new phone now I cannot get on it because asking for id and password what should I do help plz thank u

    I have just getting a new phone and I have forgot my password an Apple ID what I made new for the new phone now I cannot get on it because asking for id and password what should I do help plz thank u

    Try
    https://iforgot.apple.com

Maybe you are looking for

  • Re: Windows Recovery Partition is not working

    Hi All! My brother's Toshiba A500 laptop with Windows 7 32bit got antimalware doctor and after deleting it fully, got problems with the OS (such as programs slowing considerably after randomly minimising during operation) and so we backed up everythi

  • No internet for mac?

    ADSL via Motorola SBV 5220 plugged directly into my Vista PC and works fine. Plugged into brand new MacBook Pro Snow Leopard... nothing. Tried all the usual resets and reboots... nothing. Purchased airport express... same problem. No IP address... se

  • Want to access non SAP system from EP

    Hey Guys, We are having a system (CRMS) which is a non SAP system. I know through EP we can connect to the non SAP system. Can somebody pls tell me the steps to do this.  I want to access the data from non SAP system on Enterprise Portal. Pls provide

  • I suggest organising this forum by printer supplier for driver issues

    Here's a suggestion for the Moderators. I suggest organising this forum by printer supplier. A lot of the questions in here are supplier - specific. It would be nifty to be able to either a). check out general Leopard issues with wireless, set-up, sh

  • Any solutions yet with noise issu

    Has anyone found a solution yet with the audigy?2 platinum crackling, static and popping issue? I find this is obviously not a top priority with creative, as they continue to release new products with the same problem. I've been searching everywhere