Is it possible To Debug (trace) a Pro C program..in UNIX plattform..?

I want to debug Pro C programs in UNIX plattform. Now i am tracing the program by inserting several printfs in program. its difficult.Please let me know any easier method exists..
Thanks
Rinson

     Is it possible To Debug (trace) a Pro C program..in UNIX plattform..? raised question is not related to this forum.

Similar Messages

  • Running Pro*C program in Unix environment.

    I have a program developed in Pro*C running on AIX version 5.3 and at the moment compiled in a 10g release 2 environment.
    This program find some job to start via a system() call. On previous release of Oracle software I have the possibility to get error detected in these job, but now every job return error code 0!
    I have found out that it easily can be seen, if you start a sqlplus on the unix commandline and start a host command (!) inside this sqlplus, then all command called from this new unix prompt will return error code 0, and no error can be detected! Try run the command diff x y where file x and y does not exist, and see the error code (type echo $?).
    My question is have anyone seen this problem, and have somebody found a solution? My guess is that it is a problem in the AIX port, but I have not the possibility to try on other hardware running Unix.

    unix> uname -a
    AIX david 3 5 00C5E53B4C00
    unix> echo My C-program
    My C-program
    unix> diff x y
    diff: x: A file or directory in the path name does not exist.
    diff: y: A file or directory in the path name does not exist.
    unix> echo $?
    2
    unix> ./bostst1 ksh
    tor 12 okt 09:09:20 2006
    unix> diff x y
    diff: x: A file or directory in the path name does not exist.
    diff: y: A file or directory in the path name does not exist.
    unix> echo $?
    2
    unix>
    unix> echo My Pro*C program:
    My Pro*C program:
    unix> diff x y
    diff: x: A file or directory in the path name does not exist.
    diff: y: A file or directory in the path name does not exist.
    unix> echo $?
    2
    unix> ./bostst ksh
    Dato: 2006.10.12 09:13:15
    unix> diff x y
    diff: x: A file or directory in the path name does not exist.
    diff: y: A file or directory in the path name does not exist.
    unix> echo $?
    0
    unix> sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.1.0 - Production on To Okt 12 09:13:55 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Forbindelse er oprettet til :
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> !diff x y ; echo $?
    diff: x: A file or directory in the path name does not exist.
    diff: y: A file or directory in the path name does not exist.
    0
    SQL>
    I hope this show the problem !!!
    On what platform are you (Kamal Kishore) running?

  • How to compile and execute a Pro*C program on Unix?

    Hello Gurus,
    I am new to Pro*C. I just wrote a sample Pro*C program 'first.pc' to read some information from some tables and print it on screen.
    I am not sure how to compile it and execute it to see the output of my very first program.
    After searching a lot I tried following ..
    -- Step 1 compile the program into .c program
    $->ls -lrt first.pc
    -rwxrwxrwx    1 sqloper4 staff          1069 Oct 31 03:39 first.pc
    $->proc first.pc
    Pro*C/C++: Release 8.1.7.0.0 - Production on Sat Oct 31 05:43:35 2009
    (c) Copyright 2000 Oracle Corporation.  All rights reserved.
    System default option values taken from: /oracle/app/oracle/product/8.1.7/precomp/admin/pcscfg.cfg
    $->ls -lrt first*
    -rwxrwxrwx    1 sqloper4 staff          1069 Oct 31 03:39 first.pc
    -rw-r--r--    1 sqloper4 staff             0 Oct 31 05:43 first.lis
    -rw-r--r--    1 sqloper4 staff          6648 Oct 31 05:43 first.c
    $->
    -- Step 2 Generate the .o file
    $->cc -I${ORACLE_HOME}/precomp/public -c first.c
    first.c: In function 'main':
    first.c:154: warning: return type of 'main' is not 'int'
    $->
    $->ls -lrt first*
    -rwxrwxrwx    1 sqloper4 staff          1069 Oct 31 03:39 first.pc
    -rw-r--r--    1 sqloper4 staff             0 Oct 31 05:43 first.lis
    -rw-r--r--    1 sqloper4 staff          6648 Oct 31 05:43 first.c
    -rw-r--r--    1 sqloper4 staff          3709 Oct 31 05:45 first.o
    $->
    -- Step 3 After that link the .o to libraries and produce the exe
    $->cc -o exe_name -L $ORACLE_HOME/lib -lclntsh
    ld: 0711-317 ERROR: Undefined symbol: .main
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit status
    $->
    $->ls -lrt first*
    -rwxrwxrwx    1 sqloper4 staff          1069 Oct 31 03:39 first.pc
    -rw-r--r--    1 sqloper4 staff             0 Oct 31 05:43 first.lis
    -rw-r--r--    1 sqloper4 staff          6648 Oct 31 05:43 first.c
    -rw-r--r--    1 sqloper4 staff          3709 Oct 31 05:45 first.o
    $->After all above still I am not sure how to proceed and 'execute' the program.
    Could you please help me with the steps to 'Compile and execute' a Pro*C program ?
    Oracle DB Version : Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    OS : Unix
    Thanks in advance!

    Hi All,
    After reading Pro*C Question thread I have tried below steps to compile my .C program, but failed with the given errors
    $->cc -I$ORACLE_HOME/precomp/public -L$ORACLE_HOME/lib first.c -o sample
    ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit statusAfter receiving above error I tried below command as an alternative
    $->cc -I$ORACLE_HOME/precomp/public -L$ORACLE_HOME/lib first.c -o first -lclntsh -lsql10
    collect2: library libsql10 not foundCould you please help in resolving above error? Whats missing exactly?

  • Debug/trace info from .c program.....

    Is there a way to capture debug info from a c file that was executed by teststand (dll adapter)? To be more clear....I have a dll that has a lot print to screen statements all over the place. I would like to be able to see those prints in somekind of trace or debug window while teststand is running.

    Hello Gregg,
    I assumed you are using printf commands in your code. As far as I know, if you are printing to the screen I don't think you can get it from TestStand. However, there are a couple of options.
    1. you may modify your code and write to a file intead of screen and read this file in a separate module that will be running in parallel to your sequence.
    2. you may create a panel in the CVI DLL and update your messages to a control. Also you may need to have an additional function in your DLL to be called to display the panel
    3. you may pass the sequence context to your DLL function and write the text messages to TestStand Variables and create additional functions to read and display this variables.
    4. You can use message boxes in your CVI
    code instead of printing to the screen
    Regards,
    Roberto Piacentini
    National Instruments
    Applications Engineer
    www.ni.com/support

  • How far is it possible to upgrade a Mac Pro mid-2010 to the maximum extract.

    Hello
    How far is it possible to upgrade a Mac Pro mid-2010 to the maximum performance. I would be interested how far one could come close to the performance of the new Mac Pro 2013, or is it hopeless.
    My computer
    Mac Pro
    mid-2010
    Processor 2 x 2.4 GHz Quad-Core Intel Xeon
    Memory 14 GB 1066 MHz DDR3 ECC
    Graphics Card ATI Radeon HD 5770 1024 MB
    Software OS X 10.9.1 (13B42)
    Please excuse my english is not the best because.

    For what apps?
    Okay, you have the slower 2.4GHz processors, most have found that MHz still rule and matter, meaning a 6-core 3.4GHz for some applications (most) was the best and the sweet spot.
    So you could upgrade to a pair of 3.2GHz 4-core (cheapest) rather than splurge on two 6-core 3.34GHz (more expensive and more cores).
    First thing to do, put the system on a 256GB Samsung 840 SSD.
    For photoshop and graphics, invest in some more SSD ($US300 for 500GB) and put those on a PCIe SSD controller ($300 Sonnet Tempo Pro) and put Aperture/Lightroom on one, and use the 2nd SSD for scratch.
    RAM: 24-32GB would probably help all but the more casusalist of user.
    Tips and articles:
    http://www.macperformanceguide.com head to the TOPICS main page and there are dozens of sections each a different area of upgrade and optimization for applications. Storage, memory, how to, use arrays, backup strategy.

  • Is it possible to connect a MacBook Pro (prev model 2009, 2.26ghz) to an Apple Thunderbolt display:  will the cable fit?

    Is it possible to connect a MacBook Pro (prev model 2009, 2.26ghz) to an Apple Thunderbolt display:  will the cable fit?

    Sorry it won't work.  It will fit but the laptop can't communicate with it.  Please see many of the other threads here, specifically this one just above your post, that is discussing this exact question.
    Apple's specs for the ThunderBolt display state that it needs a ThunderBolt-enabled computer.  Your laptop has a mini-display port connection so it is not compatible with the new displays.

  • Debug/Trace a proxy client?

    Hi,
    I've created a proxy client and logical port to consume a web service in SAP 6.40. However, I'm getting an error upon testing from SAP that one required field in missing; I'm not getting any error when I test from WFETCH.
    Is there any way to decode the xml soap error messages? Is there a way to do a trace?
    There are couple of checkboxes in the logical port for increasing trace and logging, but there are those file??
    Thank you all for your help!

    Hi,
    use /h is another dubugging methos run the total program in debugging mode and check total program.
    and check below link for sql trace
    /people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
    Regards,
    Madhu

  • Is it possible to upgrade a macbook pro 15 late 2008 memory upgrade to 8 go

    Hi from Belgium,
    Is it possible to upgrade a macbook pro 15 late 2008 memory from 4 to 8 go. And if yes would i have to replace both memory modules.
    I'm also experiencing problems with the battery. Could you tell me if the new replacement batteries are based on the new techonology (long lasting) or if the replacement battery will be the same as the original one.
    Thanks and have a good day.
    Francis

    Hi CMCSK and thanks.
    Maybe it's because of the SMC reset I've done.
    My computer wasn't responding to the power button when pressed and used to shut down unexpectedly so I did the SMC reset as per the procedure hereafter.
    http://support.apple.com/kb/HT3964?viewlocale=en_US
    So according to you, the battery seems to work properly and doesn't need to be replaced.
    Don't know if it's important but the figures I gave where the one with magsafe connected.
    In fact for the time beeing I only use my computer with magsafe plugged.
    I just unplugged the magpower and here are the new figures after 10 minutes.
    Charge Information:
      Charge Remaining (mAh):          3103
      Fully Charged:          No
      Charging:          No
      Full Charge Capacity (mAh):          3491
      Health Information:
      Cycle Count:          245
      Condition:          Normal
      Battery Installed:          Yes
      Amperage (mA):          -1431
      Voltage (mV):          11816
    Are these figures still ok ? Thanks for your help and have a good day.
    Francis

  • Is it possible to export Final Cut Pro X or .MOV to DVD Studio Pro (Final Cut Studio)?

    Is it possible to export Final Cut Pro X projects or .MOV to DVD Studio Pro (from Final Cut Studio v.3)? I'm using the free trial of Final Cut Pro X and later acquired a copy of Final Cut Studio (FCP 7, Compressor 3.5, DVD Studio Pro 4, Color 1.5, Motion 4, Soundtrack Pro 2).
    I don't like the default DVD export in FCPX, so I would like to do it on DVD Studio Pro. Is it possible to export the project or the final .MOV file to DVD Studio Pro?
    Additionally, can I use unfinished FCPX projects on FCP7?
    Is it possible to export from FCPX to Compressor 3.5 (Final Cut Studio)?
    Feedback would be greatly appreciated. As of this post, I have about 13 days left on my FCPX trial. Or would it just make sense to just use Final Cut Pro 7, since I have a permanent copy of it?
    Thank you.
    P.S. Where would be the best place to store projects or any other file related to Final Cut Studio or Final Cut Pro X? My MacBook Pro has 320GB built in storage (only 60GB available), and I have a 1TB external hard drive.
    What is best to store on the Macintosh internal hard drive?
    What is best to store on the external hard drive?

    Yes you can make DVDs in DVDSP using video exported from FCPX.
    There are some apps that will translate between X and 7- that said I would highly recommend not going back and forth as the translations are not 1:1 perfect.
    I would recommend storing all Events and Projects on the External drive.
    Compressor 3.5 will not accept exports directly from FCPX- you'll need Compressor 4 which is $49.
    Totally up to you whether you want to make the jump to X. 7 is an EOL'ed program, meaning there will not be another version of that application. Final Cut Pro X is the version being actively developed now.

  • Trace File in pro*c program !!

    Hiiii,
    I want to set the trcae file in my pro*c program but unable to do so. can anyone here help me out ... also i would like to know whether we can generate trace file for remote database connections, in my client program.
    I was using the syntax as " EXEC SQL ALTER SESSION SET SQL_TRACE TRUE; ".
    Thank U.

    There should not be a significant impact to setting the oraca.orastxtf = ORASTFERR. Any impact that is present will not impact the steady-state performance, only the error cases.

  • Is it possible to order a macbook pro online (thailand) with a german keyboard??

    hi, i am german and live in thailand, i need a new macbook pro soon, but i cant find out if it is possible to get a macbook pro with a german keyboard here in thailand (it is not very helpful to ask one of the reseller, sorry)
    thanks
    alex

    The Thai online Apple Store lists only Thai and International English as keyboard options, so you can't order a German keyboard from there. I doubt that the German KB is available from Thai resellers either, unless there is one who serves a primarily foreign clientele, and a large part of that clientele is German.

  • Is it possible to debug the selection screen???

    Hi Frdz,
    Is it possible to debug the selection screen.
    eg: if i want to know what is happening in PBO and PAI modules of the selection screen i am not able to debug that.
    Even in code if i click on MODULES present in PBO and PAI modules it is saying MODULE doesnot exist!!!!. So i can't put the break point. even if i press /h it will go to Report events like INITIALIZATION, AT SELECTION-SCREEN but not PBO and PAI modules!.
    Also what is the meaning of exclamatory mark here(Before select option name)
    MODULE !SO_UDATE.
    MODULE !SO_UNAME.
    Thanks,
    Vinod.

    Hi Vinod,
    Double click on the module and then put the break point for the first statement of it. It will work.
    Reward points if useful.
    Thanks,
    Khan.

  • Still possible to download Acrobat X Pro?

    3 years ago I purchased Acrobat X Pro for download. My computer crashed and I want to install it on a new computer now but I can't find any download link to Acrobat X Pro version. It is still possible to download Acrobat X Pro?
    Also: I have a serial number for Pro X, but this does not work in Acrobat Pro XI. Should I purchase the full version or an upgrade if I want to use Pro XI version?

    Hi ,
    You can surely download Acrobat X pro from the link mentioned below . If you wish to upgrade, you can surely get the upgrade pricing based on the Acrobat X that you currently own .
    Before downloading the product , please make sure that we go through the Very Important Information :
    Link to download : http://prodesigntools.com/adobe-cs6-direct-download-links.html
    Cheers,
    Kartikay Sharma

  • R12 12.0.4, System Administration, Debug, trace, log enabled monitoring

    Hi guys,
    I posted the same question with oracle.ittoolbox few days back and yet to get an answer. During the initial stages of implementation, I remember the consultants using a particular jsp/html page under System Administrator responsibility to view the status of diag, trace, log enabled status of the system, akka, if a profile option is enabled to debug, trace, or log was listed...
    Now, I want to access the same page (I have system administrator resp). The SQL query provided by metalink is too complex to understand
    Please help

    Hello again Hussein and others
    Our issue was NOT just with FND% profiles, rather with the consultants turning on diag and debug against their respective modules and later forgetting to turn them off. Take our case, we had SLA Debug enabled from last 2010 Feb until two days back, which has created 21 million rows of data with XLA diag table :)
    Once after turning the SLA debug and truncating the table (following Oracle guidelines) we have a database which is 1/3 of the size until recent times. Oracle has provided us an SQL query which produces the present status of all profiles with latest values (enabled or disabled). We were able to see a number of profiles with debug enabled and successfully disabled them.
    I represent the internal IT team and always have the acceptance for human errors like the SLA debug event. Oracle "apologized" for not having a screen or html form for monitoring such resource hungry activities. The output from the SQL script they provided is too complex for a person who doesn't have core techno functional knowledge about the system.
    Anyway, finally feeling a bit better...
    Thanks guys

  • How it is possible to debug the transfer of an order from CRM to ECC

    Hello,
    how is it possible to debug the coding when a CRM sales order is replicated to R/3?
    The outbound of SCM APO and/or the inbound of SAP R/3?
    Thank you in advance.

    Hello,
    Data flow from CRM to R/3 is like below:
    - Write the data to outbound queue of CRM
    - Wrtie data to Inbound queue of R/3
    - Validation and Save in R/3
    So you can debug from CRM outbound queue, by de-registering the queue in txn:SMQR
    R3AI_<OBJECT-NAME> In case of Initial Load
    R3AR_<Request-Name> In case of Request Load
    R3AD_*                           In case of Delta load
    Similarly you can de-register the queue in R/3 as well to debug the R/3 inbound queue.
    As you might be aware that MW generic module CRM_UPLOAD_TO_OLTP, would be called for any data transfer
    between CRM to R/3. You can start debugging from this point.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

Maybe you are looking for

  • Tkprof High query value

    Hi friend; I have one tkrpof and end of the file the query value is too high like 43830952, what doest it mean? How i can solve this problem

  • Abstract class and interface having same method

    Hello, Here is my problem. Suppose we have one abstarct class and one interface.Here is code- //Abstarct class abstract class X{ abstract void myMethod(); //Interface public interface Y{ abstract void myMethod(){} Now i have a class which extends bot

  • Dynamic Service Registeration

    Hi, I have an existing service but it don't have the listener to that service.How can i register this service to a listener?... while i executing the the "lsnrctl service" command i am getting the following output.... F:\Program Files>lsnrctl service

  • ISync will not open and will not synchronize

    I had recently let SOHO Organizer finish a third 30 day trial. I waited about one week after the trial was over. I had been having sync troubles on my computer which I thought were .mac sync problems. After awhile I decided the problems were with som

  • Connecting two business locations with VPN

    I'm attempting to establish a connection between two offices of a business. The first office has the VPN configured on 10.4 server, and allows external clients to connect without any problems. The only drawback is that only one connection can be esta