OCIAttrGet() hangs after OCIStmtExecute()

I am trying to describe a select statement with OCIStmtExecute(....,OCI_DESCRIBE_ONLY); Everything seems to be fine up to the point where I want to do this:
OCIAttrGet(stmhp,OCI_HTYPE_STMT,&numcols,0,OCI_ATTR_PARAM_COUNT,err);
This call simply hangs. I have checked and double checked all parameters and all calls before this, and I am certain they are OK. What can be wrong? There are nothing in the alert log and The same connection has no problem with eg. OCIDescribeAny().
/jan

I'm using the following lines and it works fine (Server: Oracle 8.1.7 Linux / Client 9i Win2k):
CheckError(OCIStmtExecute(svchp, stmthp, errhp, (ub4)1, (ub4)0, (OCISnapshot *)NULL, (OCISnapshot *)NULL, (ub4)OCI_DESCRIBE_ONLY));
CheckError( OCIAttrGet(stmthp, OCI_HTYPE_STMT, &numcols, 0, OCI_ATTR_PARAM_COUNT, errhp));
Which SQL-Command are you executing? A SELECT-Command or something else?
Cheers
Johannes

Similar Messages

  • Satellite U400-22n and Win7 - screen hangs after 5 min

    Hi, This is my first post
    Ive purchased a new U400 with Vista preinstalled, last week ; 2 days ago Ive upgraded to windows 7 32bit professional when I stared Installing it windows prompted me that it requires a full installation , so I done a normal full install, windows 7 installed normally .
    Now my screen hangs after 5 min and windows gos black and reboots after 3-5 min, Ive downloaded all the drivers from the Toshiba site Ive used the auto detect, and installed the drivers one by one and tested if the reboot stops , Ive reinstalled windows now 4-5 time returned my copy to the shop and got a new copy of the windows DVD, its the same,
    Please has some one any advice for me. As the shop Ive perched this from will not upgrade to windows 7 for me.

    hi Mather,
    any bluescreens visible?
    win7 32bit i guess...
    you have to install all the drivers for win7 provided by toshiba in the right order!
    first chipset and patchfiles if available...
    i think a clean install will do the job!
    make sure that the hdd is error free!
    you can upgrade from vista 32bit to win7 32bit
    but no chance to upgrade to a win7 64bit when a vista 32bit is installed...

  • Iphoto hangs after upgrading to Yosemite and latest iPhoto version

    It tells me the library needs upgrading, and starts to search the library. The progress bar suggests something is happening then hangs after about 99% completion. I have had to force close twice after several hours stuck at that point and then start the whole process from scratch when I restart.

    Have you followed these instructions - http://www.fatcatsoftware.com/iplm/Help/rebuilding%20a%20corrupted%20iphoto%20li brary.html
    iPhoto Library Manager > Help > Rebuilding a corrupted iPhoto library
    Printable help
    Rebuilding a corrupted iPhoto library
    If you have an iPhoto library that is corrupt and causing iPhoto to crash or otherwise be unusable, iPhoto Library Manager provides the ability to rebuild your library based on the information found in its library data files. Note that iPhoto also has a built-in rebuild function that can be sometimes be used to repair a corrupted library database. You can find instructions on how to use that on Apple's website at http://support.apple.com/kb/HT2638 (iPhoto 6 or later) or http://support.apple.com/kb/HT2042 (iPhoto 5 or earlier).
    iPhoto Library Manager's rebuild works differently, in that instead of trying to repair the library in place, it creates a brand new library and tries to reimport the entire contents of the original library into the new one, including reconstructing albums, photo metadata, etc. Note that rebuilding a library has all the same limitations as other photo transfer operations as far as what can and can't be copied between libraries. Also, depending on how badly damaged the library is, iPhoto Library Manager may or may not be able to piece together some or all of the library metadata.
    To start a rebuild, select the library you would like to rebuild, then choose the "Rebuild Library" item from the "Library" menu. You will be prompted to choose a location for the rebuilt library, and whether or not you want iPLM to scavenge orphaned photos it finds in the library package. Once you've made your choices, iPLM will examine the library and rebuild the library structure and photos as best it can, then display you a preview of what it was able to find. If your library is badly damaged and the preview is missing a lot of content from the original library, this can save you from going through with a rebuild that won’t end up being of much help.
    Once you've had a chance to examine the preview, if you want to go forward and create the rebuilt library, click the "Rebuild" button in the upper right. iPhoto Library Manager will create a new library and start importing the contents of the original library into the new one.
    Scavenging photos
    In some cases, either the iPhoto library database is too damaged for iPhoto Library Manager to be able to salvage any information from it, or the library data is incomplete and there are photos that still exist inside the library package, but iPhoto has lost track of them. In these cases, you may want to check the "Scavenge orphaned photos" checkbox when choosing a location for the rebuilt library. After iPhoto Library Manager has read the library data as best it can, it will perform an additional pass through the package and locate any photos that are no longer referenced in the library database. Any additional photos that are found will be included in the rebuild, and a new "Scavenged Photos" album will be created in the rebuilt library containing any scavenged photos.
    LN

  • Am facing issue on my iphone 5s after updating to ios 7.1.1, every while the phone hang after lock it and cannot unlock and even cannot turn on the screen this is so annoying, kindly advice if i have to go back to the store as device still under warranty

    Am facing issue on my iphone 5s after updating to ios 7.1.1, every while the phone hang after lock it and cannot unlock and even cannot turn on the screen this is so annoying, kindly advice if i have to go back to the store as device still under warranty, and if its a hardware issue or software ??

    Hello HaithamOkeely,
    We've an article that provides the following troubleshooting steps that may help stabilize your iPhone.
    If the device is unresponsive or if certain controls aren't working as expected, restart your device.
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If there is no video or if the screen remains black, verify that the device has enough charge to turn on:
    If you are using an iPad, ensure that it's connected to the USB Power Adapter supplied with the device.
    Let it charge for at least twenty minutes, then see if it starts normally.
    If there is no image on the screen, press the Sleep/Wake button to attempt to wake the device.
    If the screen displays a red battery icon, continue charging the device until the battery is fully charged. Learn more about charging iPhone and iPod touch, or iPad.
    If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes:
    Connect the device to your computer and open iTunes.
    If the device appears in iTunes, select and click Restore on the Summary pane. Learn more aboutrestoring iOS software.
    If the device doesn't appear in iTunes, try to force the device into recovery mode, and then restore it.
    If the above steps do not resolve the issue, contact Apple.
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Cheers,
    Allen

  • Oracle 11g R2 client installation on Windows 7 64 bit hangs after performing prerequisite checks

    Windows 7 Professional SP1 64bit OS
    6 GB RAM
    380 GB free space
    Extracted client to C:\Stage\win64_11gR2_client\client
    Ran setup.exe as administrator, but the installation always hangs after step 5 of 7 is completed (Perform Prerequisite checks). Install log ends with entry "INFO: Get view named [SummaryUI]"
    What am I missing here? Any help would be greatly appreciated.
    C:\Stage\win64_11gR2_client\client>dir
    Directory of C:\Stage\win64_11gR2_client\client
    06/15/2013  02:56 PM    <DIR>          .
    06/15/2013  02:56 PM    <DIR>          ..
    06/15/2013  02:56 PM    <DIR>          doc
    06/15/2013  02:56 PM    <DIR>          install
    06/15/2013  02:56 PM    <DIR>          response
    06/15/2013  02:55 PM           341,304 setup.exe
    06/15/2013  02:55 PM                56 setup.ini
    06/15/2013  02:59 PM    <DIR>          stage
    06/15/2013  02:55 PM             4,327 welcome.html
                   3 File(s)        345,687 bytes
                   6 Dir(s)  412,474,404,864 bytes free
    Last few lines of install log:
    WARNING: Active Help Content for InstallLocationPane.cbxOracleBases do not exist. Error :Can't find resource for bundle oracle.install.ivw.client.resource.ContextualHelpResource, key InstallLocationPane.cbxOracleBases.conciseHelpText
    WARNING: Active Help Content for InstallLocationPane.cbxSoftwareLoc do not exist. Error :Can't find resource for bundle oracle.install.ivw.client.resource.ContextualHelpResource, key InstallLocationPane.cbxSoftwareLoc.conciseHelpText
    INFO: View for [InstallLocationUI] is oracle.install.ivw.client.view.InstallLocationGUI@75f0f8ff
    INFO: Initializing view <InstallLocationUI> at state <getOracleHome>
    INFO: inventory location isC:\Program Files\Oracle\Inventory
    INFO: Completed initializing view <InstallLocationUI> at state <getOracleHome>
    INFO: Displaying view <InstallLocationUI> at state <getOracleHome>
    INFO: Completed displaying view <InstallLocationUI> at state <getOracleHome>
    INFO: Loading view <InstallLocationUI> at state <getOracleHome>
    INFO: Completed loading view <InstallLocationUI> at state <getOracleHome>
    INFO: Localizing view <InstallLocationUI> at state <getOracleHome>
    INFO: Completed localizing view <InstallLocationUI> at state <getOracleHome>
    INFO: Waiting for completion of background operations
    INFO: Completed background operations
    INFO: Executing action at state getOracleHome
    INFO: Completed executing action at state <getOracleHome>
    INFO: Waiting for completion of background operations
    INFO: Completed background operations
    INFO: Moved to state <getOracleHome>
    INFO: inventory location isC:\Program Files\Oracle\Inventory
    INFO: Waiting for completion of background operations
    INFO: Completed background operations
    INFO: Validating view at state <getOracleHome>
    INFO: Completed validating view at state <getOracleHome>
    INFO: Validating state <getOracleHome>
    INFO: custom prereq file name: oracle.client_Administrator.xml
    INFO: refDataFile: C:\Stage\win64_11gR2_client\client\stage\cvu\oracle.client_Administrator.xml
    INFO: isCustomRefDataFilePresent: false
    INFO: InstallAreaControl exists: false
    INFO: Checking:NEW_HOME
    INFO: Checking:COMP
    INFO: Checking:COMP
    INFO: Checking:COMP
    INFO: Checking:COMP
    INFO: Checking:COMP
    INFO: Checking:COMP
    INFO: Checking:COMP
    INFO: Checking:COMP
    INFO: Checking:ORCA_HOME
    INFO: Reading shiphome metadata from c:\Stage\win64_11gR2_client\client\install\..\stage\shiphomeproperties.xml
    INFO: Loading beanstore from file:/c:/Stage/win64_11gR2_client/client/install/../stage/shiphomeproperties.xml
    INFO: Translating external format into raw format
    INFO: Restoring class oracle.install.driver.oui.ShiphomeMetadata from file:/c:/Stage/win64_11gR2_client/client/install/../stage/shiphomeproperties.xml
    INFO: inventory location isC:\Program Files\Oracle\Inventory
    INFO: inventory location isC:\Program Files\Oracle\Inventory
    INFO: size estimation for Administratorinstall is 1068.0003070831299
    INFO: PATH has :==>C:\Temp\OraInstall2013-06-17_02-55-15PM\jdk\jre\bin;.;C:\windows\system32;C:\windows;C:\Perl\site\bin;C:\Perl\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\APPS\PuTTY\;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\
    INFO: Completed validating state <getOracleHome>
    INFO: InstallLocationAction to INVENTORY_NO
    INFO: Verifying route INVENTORY_NO
    INFO: Waiting for completion of background operations
    INFO: Completed background operations
    INFO: Executing action at state prereqExecutionDecider
    INFO: Completed executing action at state <prereqExecutionDecider>
    INFO: Waiting for completion of background operations
    INFO: Completed background operations
    INFO: Moved to state <prereqExecutionDecider>
    INFO: Waiting for completion of background operations
    INFO: Completed background operations
    INFO: Validating view at state <prereqExecutionDecider>
    INFO: Completed validating view at state <prereqExecutionDecider>
    INFO: Validating state <prereqExecutionDecider>
    WARNING: Validation disabled for the state prereqExecutionDecider
    INFO: Completed validating state <prereqExecutionDecider>
    INFO: Verifying route executeprereqs
    INFO: Get view named [PrereqUI]
    INFO: View for [PrereqUI] is [email protected]e4b
    INFO: Initializing view <PrereqUI> at state <checkPrereqs>
    INFO: Completed initializing view <PrereqUI> at state <checkPrereqs>
    INFO: Displaying view <PrereqUI> at state <checkPrereqs>
    INFO: Completed displaying view <PrereqUI> at state <checkPrereqs>
    INFO: Loading view <PrereqUI> at state <checkPrereqs>
    INFO: Completed loading view <PrereqUI> at state <checkPrereqs>
    INFO: Localizing view <PrereqUI> at state <checkPrereqs>
    INFO: Completed localizing view <PrereqUI> at state <checkPrereqs>
    INFO: Waiting for completion of background operations
    INFO: Completed background operations
    INFO: Executing action at state checkPrereqs
    INFO: custom prereq file name: oracle.client_Administrator.xml
    INFO: refDataFile: C:\Stage\win64_11gR2_client\client\stage\cvu\oracle.client_Administrator.xml
    INFO: isCustomRefDataFilePresent: false
    INFO: Completed executing action at state <checkPrereqs>
    INFO: Waiting for completion of background operations
    INFO: Finishing all forked tasks at state checkPrereqs
    INFO: Waiting for completion all forked tasks at state checkPrereqs
    INFO: Creating PrereqChecker Job for leaf task Physical Memory
    INFO: Creating CompositePrereqChecker Job for container task Free Space
    INFO: Creating PrereqChecker Job for leaf task Free Space: PN-PC:C:\Temp
    INFO: Creating PrereqChecker Job for leaf task Architecture
    INFO: Creating PrereqChecker Job for leaf task Environment variable: "PATH"
    INFO: CVU tracingEnabled = false
    INFO: Nodes are prepared for verification.
    INFO: *********************************************
    INFO: Physical Memory: This is a prerequisite condition to test whether the system has at least 128MB (131072.0KB) of total physical memory.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:SUCCESSFUL
    INFO: -----------------------------------------------
    INFO: Verification Result for Node:PN-PC
    INFO: Expected Value:128MB (131072.0KB)
    INFO: Actual Value:5.9491GB (6238064.0KB)
    INFO: -----------------------------------------------
    INFO: *********************************************
    INFO: Free Space: PN-PC:C:\Temp: This is a prerequisite condition to test whether sufficient free space is available in the file system.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:SUCCESSFUL
    INFO: -----------------------------------------------
    INFO: Verification Result for Node:PN-PC
    INFO: Expected Value:130MB
    INFO: Actual Value:384.1495GB
    INFO: -----------------------------------------------
    INFO: *********************************************
    INFO: Architecture: This is a prerequisite condition to test whether the system has a certified architecture.
    INFO: Severity:CRITICAL
    INFO: OverallStatus:SUCCESSFUL
    INFO: -----------------------------------------------
    INFO: Verification Result for Node:PN-PC
    INFO: Expected Value:64-bit
    INFO: Actual Value:64-bit
    INFO: -----------------------------------------------
    INFO: *********************************************
    INFO: Environment variable: "PATH": This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
    INFO: Severity:CRITICAL
    INFO: OverallStatus:SUCCESSFUL
    INFO: -----------------------------------------------
    INFO: Verification Result for Node:PN-PC
    INFO: Expected Value:1023
    INFO: Actual Value:369
    INFO: -----------------------------------------------
    INFO: All forked task are completed at state checkPrereqs
    INFO: Completed background operations
    INFO: Moved to state <checkPrereqs>
    INFO: Waiting for completion of background operations
    INFO: Completed background operations
    INFO: Validating view at state <checkPrereqs>
    INFO: Completed validating view at state <checkPrereqs>
    INFO: Validating state <checkPrereqs>
    INFO: Using default Validator configured in the Action class oracle.install.ivw.client.action.PrereqAction
    INFO: Completed validating state <checkPrereqs>
    INFO: Verifying route success
    INFO: Get view named [SummaryUI]

    Yes, I've tried using the -jreLoc option but it doesn't seem to like the path.
    Version 6.0.200.2 is at C:\Program Files (x86)\Java\jre6\bin
    C:\Stage\win64_11gR2_client\client>setup.exe -jreLoc "C:\Program Files (x86)\Java\jre6"
    Starting Oracle Universal Installer...
    Checking monitor: must be configured to display at least 256 colors Higher than 256 .    Actual 4294967296     Passed
    Preparing to launch Oracle Universal Installer from C:\Temp\OraInstall2013-06-17_04-47-16PM. Please wait ...
    The Java RunTime Environment was not found at "C:\Program Files (x86)\Java\jre6"\bin\javaw.exe. Hence, the Oracle Universal Installer cannot be run.
    Please visit http://www.javasoft.com and install JRE version 1.3.1 or higher and try again
    I downloaded a newer version to C:\APPS\Java thinking the space in the path for Program Files (x86) might be a problem, but that also fails with the same error message
    Version 7.0.210.11 is at C:\APPS\Java\bin
    C:\Stage\win64_11gR2_client\client>setup.exe -jreLoc "C:\APPS\Java\"
    Starting Oracle Universal Installer...
    Checking monitor: must be configured to display at least 256 colors Higher than 256 .    Actual 4294967296     Passed
    Preparing to launch Oracle Universal Installer from C:\Temp\OraInstall2013-06-17_05-09-13PM. Please wait ...
    The Java RunTime Environment was not found at C:APPS\Java"\bin\javaw.exe. Hence, the Oracle Universal Installer cannot be run.
    Please visit http://www.javasoft.com and install JRE version 1.3.1 or higher and try again

  • Powerbook G4 hangs after few minutes of usage

    Since February 06 I have a PB G4: 1.67GHZ, model Powerbook5,8
    Since this weekend it hangs after a few minutes of usage.
    I tried a whole load of possible solutions, like resetting the RAM, removing the battery and holding the powerbutton for 5 seconds...I even held it once for half a minute, but that didn't help. Checking the harddrive with disk utility (tried it often, but only once did the PB work long enough to get the end result: hard drive is healthy).
    Often, when it hangs, I can get it to work by simply turning it off and on again. That gives me another window of 2 minutes of usage! Handy throughout the day when I need a file, or a document: I simply boot the machine, get the file and shut it down.
    Carbon copy to an external HD does not work: the system hangs a few minutes after copying.
    I installed a utility named applejack, and the first time I tried it, I got an interesting error: there were errors with the USB controller or USB bus, and system hangs. I didn't make a screenshot so this is out of the top of my head.
    This was interesting because when I tried to make a HD copy (and believe me: I tried lots and lots of times), the system freezes first, and then an error about not unmounting a device popped into the screen. As if the touchpad, keyboards, and all other i/o devices stop working, and the system goes on for a few seconds more.
    Sometimes the system just hangs, sometimes I get that black kernel panic screen.
    Just before writing this, I tried the hardware test on the install CD once more:
    Held down the option key, chose the hardware test -> quick test and..
    system hangs after completion of the test
    A message appeared in the bottom-left corner. Several lines of information, starting with:
    "ERROR, Write to location ZERO detected!!, Loc zero was originally zero
    Current File: Localization/en/Scripts/enAHTscript.sc"
    etc
    I live on a nice island in the Caribbean, so popping into the nearest Apple store means getting on a flight to Miami first.
    What -if any- are my options? Is there something I can try to do myself before shipping it to Apple? Opening the case, checking this or that?
    By the way, I originally posted this in the Titanium folder, but someone mentioned that I might actually have a Aluminum PB.
    see http://discussions.apple.com/message.jspa?messageID=2074854#2074854

    hi joeuu,
    I have 1.5GB mem: one 512 stick and one 1GB and I already tried the sticks one at a time: it hangs with the original 512, it hangs with the 1GB and it hangs with them together in both possible slot settings.
    I managed to copy the panic.log in /Library/Logs/ and here it is:
    Fri Apr 7 15:27:21 2006
    panic(cpu 0 caller 0x000A8D00): Uncorrectable machine check: pc = 00000000000AF340, msr = 0000000000141020, dsisr = 42000000, dar = 000000000280C200
    AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000
    L2FIR = 0000000000000000, BusFir = 0000000000000000
    Latest stack backtrace for cpu 0:
    Backtrace:
    0x00095698 0x00095BB0 0x0002683C 0x000A8D00 0x000A7F90 0x000ABC80
    Proceeding back via exception chain:
    Exception state (sv=0x41381A00)
    PC=0x000AF340; MSR=0x00141020; DAR=0x0280C200; DSISR=0x42000000; LR=0x000AF158; R1=0x2211B8E0; XCP=0x00000008 (0x200 - Machine check)
    Backtrace:
    0x404E9F24 0x404E1F6C 0x404E7B2C 0x002CEFB8 0x41C3F2C8 0x002BC0E8
    0x002CDA70 0x002BC690 0x002BBB4C 0x002BBA5C 0x404E3954 0x404E3B98 0x002CE900 0x002CD7C8
    0x000A9814
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.driver.AppleUSBTrackpad(1.3.0f1)@0x41c3d000
    dependency: com.apple.iokit.IOUSBFamily(2.2.5)@0x404aa000
    dependency: com.apple.iokit.IOHIDFamily(1.4.3)@0x32671000
    com.apple.driver.AppleUSBOHCI(2.2.5)@0x404df000
    dependency: com.apple.iokit.IOUSBFamily(2.2.5)@0x404aa000
    dependency: com.apple.iokit.IOPCIFamily(1.7)@0x323bf000
    Exception state (sv=0x402ABA00)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.2.2: Mon Aug 22 18:43:11 PDT 2005; root:xnu-792.5.11.obj~1/RELEASE_PPC
    Now what can we read from this?
    I see in here "AppleUSBTrackpad" and "AppleUSBOHCI".
    Referring to my original post: I have seen an error (a few days ago, when working with applejack) that also mentioned USB.
    I'm very afraid that this is a hardware issue. Reading through some other posts, I saw something about a ribbon that gave problems. What are your thoughts?

  • Database hangs after retrieving some records....

    hi,
    I create a two level B+-tree index, for the first level i'm using key as logical database name, for the second level B+-tree i'm using some other field in my data. I am retrieving the records based on logical database name. I am using C++ to implement my index.
    In the following code i'm retrieving records from database. Program is behaving differently for different logical database names. For example in my database i have around 4 lakhs records with logical database name 'A' and around 1 lakh of records with logical database name 'B'. The following code displays all B records but programs hangs after retrieving some A records.
    I'm using PAGE_SIZE=8192, numBuffers=2048, and runnig in Fedora Core3.
    DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         myEnv.set_data_dir("/home/raviov/new/database");
              try {
                   myEnv.open("./", DB_CREATE | DB_INIT_MPOOL, 0);
              catch (DbException &e) {
                   cerr << "Exception occurred: " << e.what() << endl;
                   exit(1);
              db=new Db(&myEnv,0);
              db->set_pagesize(PAGE_SIZE);     
              db->set_bt_compare(compare_int);
         dbname=itoa(p);
         try
         db->open(NULL,
                   "treedb.db",
                   dbname,
                   DB_BTREE,
                   0,
                   0);
         catch(DbException &e)
              cerr << "Failed to open DB object" << endl;
              exit(1);
         db->cursor(NULL,&cursorp,0);
         key=new Dbt();
         data=new Dbt();
         while(ret=(cursorp->get(key,data,DB_NEXT))==0)
              j=*((int*)key->get_data());
              q=(*((struct tuple*)data->get_data())).startPos;
              r=(*((struct tuple*)data->get_data())).endPos;
              s=(*((struct tuple*)data->get_data())).level;
              cout<<"position : "<<j<<"\t";
              cout<<"start : "<<q<<"\t";
              cout<<"end : "<<r<<"\t";
              cout<<"level : "<<s<<"\n";
         if(ret==DB_NOTFOUND)
              cout<<"no records";
              exit(1);
         if(cursorp!=NULL)
              cursorp->close();
         try
              db->close(0);
         catch(DbException &e)
              cerr << "Failed to close DB object" << endl;
              exit(1);
         myEnv.close(0);

    HI Andrei,
    thank you for giving reply, I'm not using any secondary indecies, subdatabases and not using any threads.
    the following code displays index...
    #include <stdio.h>
    #include <db_cxx.h>
    #include <iostream.h>
    #include <db.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    int PAGE_SIZE=8192;
    int numBuffers=2048;
    char *itoa(const int x)
          char buf[100];
          snprintf(buf, sizeof(buf), "%d", x);
           return strdup(buf);
    int compare_int(Db dbp, const Dbt a, const Dbt *b)
      int ai;
      int bi;
      memcpy(&ai,a->get_data(),sizeof(int));
      memcpy(&bi,b->get_data(),sizeof(int));
      return(ai-bi);
    struct tuple
           int startPos;
           int endPos;
           int level;
    main()
         FILE *fp;
         int i,j,k,l,m,n,total=0;
         char dbname[500],filename[500],str [500];
         tuple t;
         Db *db;
         Dbt key,data;
         DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         try {
                myEnv.open("/home/raviov/Desktop/example", DB_CREATE | DB_INIT_MPOOL, 0);
           catch (DbException &e) {
                  cerr << "Exception occurred: " << e.what() << endl;
                  exit(1);
         for(n=0;n<=84;n++)
              db = new Db(&myEnv, 0);     // Instantiate the Db object
                    db->set_bt_compare(compare_int);
               db->set_pagesize(PAGE_SIZE);
              strcpy(filename,"/home/raviov/Desktop/GTCReport/code/sequence/splitter/tree/");
              strcat(filename,itoa(n));
              fp=fopen(filename,"r");
              if(fp==NULL)
                   cout<<"error in opening the file";
                   exit(0);
              while(fgets (str , 500 , fp)!=NULL)
                   sscanf(str,"%d(%d,%d,%d,%d)",&i,&j,&k,&l,&m);
                   key=new Dbt(&i,sizeof(int));
                   if(total==0)
                        strcpy(dbname,itoa(j));
                   t.startPos=k;
                   t.endPos=l;
                   t.level=m;
                   data=new Dbt(&t,sizeof(t));     
                   if(total==0)
                        try
                             db->open(NULL,
                             "tree.db",
                                       dbname,
                              DB_BTREE,
                                DB_CREATE,
                                0);
                        catch(DbException &e)
                               cerr << "Failed to create DB object" << endl;
                             exit(1);
                        total=99;
                   int ret=db->put(NULL,key,data,DB_NOOVERWRITE);
                   if(ret==DB_KEYEXIST)
                        cout<<"key already exist\n";
                        exit(1);
                   delete key;
                   delete data;
              total=0;
              fclose(fp);
              try
                   db->close(0);
              catch(DbException &e)
                     cerr << "Failed to close DB object" << endl;
                   exit(1);
         myEnv.close(0);
    }The following code retrieves the records from database that we had built above...
    #include <stdio.h>
    #include <db_cxx.h>
    #include <iostream.h>
    #include <db.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    int PAGE_SIZE=8192;
    int numBuffers=2048;
    char *itoa(const int x)
          char buf[100];
          snprintf(buf, sizeof(buf), "%d", x);
           return strdup(buf);
    int compare_int(Db dbp, const Dbt a, const Dbt *b)
      int ai;
      int bi;
      memcpy(&ai,a->get_data(),sizeof(int));
      memcpy(&bi,b->get_data(),sizeof(int));
      return(ai-bi);
    struct tuple
           int startPos;
           int endPos;
           int level;
    main()
         FILE *fp;
         int i,j,k,l,m,n,total=0;
         char *dbname;
         char filename[200],str [100];
         tuple t;
         Db *db;
         Dbt key,data;
         Dbc *cursorp=NULL;
         int ret,x=4;
         char *ravi;
         int p=84763;
         int y=2134872;
         int r,s,q,count=0;
         DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         myEnv.set_data_dir("/home/raviov/new/database");
              try {
                      myEnv.open("./", DB_CREATE | DB_INIT_MPOOL, 0);
               catch (DbException &e) {
                      cerr << "Exception occurred: " << e.what() << endl;
                      exit(1);
              db=new Db(&myEnv,0);
              db->set_pagesize(PAGE_SIZE);     
              db->set_bt_compare(compare_int);
         dbname=itoa(p);
         try
              db->open(NULL,
                    "tree.db",
                     dbname,
                     DB_BTREE,
                     0,
                     0);
         catch(DbException &e)
                cerr << "Failed to open DB object" << endl;
              exit(1);
         db->cursor(NULL,&cursorp,0);
         key=new Dbt();
         data=new Dbt();
         while(ret=(cursorp->get(key,data,DB_NEXT))==0)
              j=*((int*)key->get_data());
              q=(*((struct tuple*)data->get_data())).startPos;
              r=(*((struct tuple*)data->get_data())).endPos;
              s=(*((struct tuple*)data->get_data())).level;
              cout<<"position   : "<<j<<"\t";
              cout<<"start : "<<q<<"\t";
              cout<<"end   : "<<r<<"\t";
              cout<<"level   : "<<s<<"\n";
              delete key;
              delete data;
         if(ret==DB_NOTFOUND)
              cout<<"no records";
              exit(1);
         if(cursorp!=NULL)
              cursorp->close();
         try
              db->close(0);
         catch(DbException &e)
                cerr << "Failed to close DB object" << endl;
              exit(1);
         myEnv.close(0);     
    }

  • System hang after key in YF98 (Report for sales tax payable)

    Hi all,
    do u know wat is the problem of sys hang? i already terminate the transaction code, but sys hang also........
    Thanks for helping

    Dear V.Krishnan ,
    I already told BASIS to restart the server, but they reject to restart the server cos they worry later they cannot up the server.
    They keep asking me debug the program, but the problem is the sys hang after i key in the transaction code, i cant do nothing after that. In development server, the sys is OK after i enter the transaction code. Can u tell me wat to do now?
    regards;
    jee

  • Problem in reading data from serial port continuously- application hangs after sometimes

    I need to read data from two COM port and order of data appearance from COM port is not fixed. 
    I have used small timeout and reading data in while loop continously . If my application is steady for sometime it gets hangs and afterwards it doesnt receive any data again. 
    Then I need to restart my application again to make it work.
    I am attaching VI. Let me know any issue.
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    Scanning.vi ‏39 KB

    billko wrote:
    Ranjeet_Singh wrote:
    I need to read data from two COM port and order of data appearance from COM port is not fixed. 
    I have used small timeout and reading data in while loop continously . If my application is steady for sometime it gets hangs and afterwards it doesnt receive any data again. 
    Then I need to restart my application again to make it work.
    I am attaching VI. Let me know any issue.
    What do you mean, "not fixed?"  If there is no termination character, no start/stop character(s) or even a consistent data length, then how can you really be sure when the data starts and stops?
    I probably misunderstood you though.  Assuming the last case is not ture - there is a certain length to the data - then you should use the bytes at port, like in the otherwise disastrous serial port read example.  In this case, it's NOT disastrous.  You have to make sure that you read all the data that came through.  Right now you have no idea how much data you just read.  Also, if this is streaming data, you might want to break it out into a producer/consumer design pattern.
    Not fixed means order is not fixed, data from any com port can come anytime. lenght is fixed, one com port have 14 byte and other 8 byte fixed..
    Reading data is not an issue for me as it works nice but I have a query that why my application hangs after sometime and stops reading data from COM PORT.
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet

  • Lenovo T61 (Product 6458-W2R): explorer.exe hangs after logon - WinXP SP2

    +++ english below +++
    [german/deutsch]
    Wir setzen in unserem Unternehmen mehrere ThinkPad T61 ein.  Bei einigen dieser ThinkPad T61 (und nur beim ThinkPad T61!) haben wir inzwischen ein seltsames Phänomen, welches im Laufe der letzten 1-2 Monate auftrat und noch auftritt.  Dieses Phänomen trat nicht gleichzeitig auf, sondern nacheinander.  Und es tritt willkürlich auf.  Der jüngste Fall ist gerade 1 Tag alt.  Inzwischen sind 6 ThinkPad T61 davon betroffen.
    Alle ThinkPad T61 sind Mitglieder einer Domäne (Windows Server 2003) und durchlaufen ein Loginscript.  Das Loginscript beinhaltet Batchbefehle, Kix32 (für das Mappen von Netzwerklaufwerken und Druckern) und Teile der Matrix42 Empirum Management Software (für Softwaredistribution und Inventarisierung).  Es werden Gruppenrichtlinien angewendet.  Es werden via Matrix42 Empirum automatisch die neuen Patches und Updates seitens Microsoft auf alle Computer verteilt.  Alle Computer erhalten eine unbeaufsichtigte/standardisierte Installation via Matrix42 Empirum Management Software (ähnlich einem Image und der unbeaufsichtigten Windows-Installation).  Auf allen Rechnern ist Windows XP mit Service Pack 2 installiert.  Spezielle Software ist in der Regel nicht drauf, nur Microsoft Office 2003, der aktuelle Acrobat Reader sowie die aktuellen Standardplayer: Windows Media Player, Quicktime Player, RealPlayer, VLC media player.  Ggf. noch Nero 7 Standard bzw. Platinum (Spezielle Version).  Alle IBM/Lenovo ThinkPad verwenden zusätzlich die IBM/Lenovo-Utilities „ThinkVantage“.  Das Phänomen tritt unabhängig davon auf, ob das ThinkPad T61 in einer Dockingstation betrieben wird oder nicht.  Es ist auf jedem Computer in der Windows Registrierung eingestellt, dass der Desktop erst geladen wird, wenn das Loginscript durchgelaufen ist.
    Nun zur genauen Fehlerbeschreibung:
    Manchmal kann es bei einem Kaltstart vorkommen, dass nach der Anmeldung und nach dem Loginscript –während der komplette Desktop und die Startleiste bereits sichtbar sind und noch einige Dienste geladen werden– sich die explorer.exe aufhängt.  Die Startleiste lässt sich nicht bedienen.  Ebenfalls lassen sich dann auch auf dem Desktop keine Symbole doppelklicken.
    Wir setzen auch andere Computer ein, wo dieses Phänomen nicht auftritt, u.a.:
    - HP-Computer (Desktops, Evo SFF Series)
    - Fujitsu-Siemens-Computer (Desktops, ESPRIMO E Series)
    - IBM ThinkPad T20/21
    - IBM ThinkPad T40/T41/T42
    - IBM/Lenovo ThinkPad T60
    Das Problem tritt nur auf den noch relativ neuen ThinkPad T61 auf.
    Wir haben bereits einen ziemlich ähnlichen Fall unter…
    http://forums.techarena.in/showthread.php?t=694888&page=1
    http://forums.techarena.in/showthread.php?t=694888&page=2
    http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_22718276.html …gefunden.
    [english]
    Unfortunately, I’m not fluent in the english language.
    We use a few ThinkPad T61’s in our company.  Meanwhile, at some ThinkPad T61’s (only ThinkPad T61!) we have a strange problem. This problem appears since the last 1-2 months and it still does exist.  This problem does not appear at the same time, it does appear successive.  And it appears random.  The last case is 1 day old.  Meanwhile, 6 ThinkPad T61 are concerned.
    All ThinkPad T61 are members of a domain (Windows Server 2003) and do execute a logon script.  The logon script contains Batch commands, Kix32 (for mapping network drives and printers) and parts of the Matrix42 Empirum Management software (for software distribution and inventory scan).  Group policies will apply.  Patches and updates will install on every computer via Matrix42 Empirum automatically.  All computers get a default/unattended installation via Matrix42 Empirum Management software (everywhere between an image and an unattended Windows installation).  All computers have installed Windows XP with Service Pack 2.  As a rule, special software isn’t installed, only Microsoft Office 2003, the actual Acrobat Reader and the actual default players: Windows Media Player, Quicktime Player, RealPlayer, VLC media player.  Sometimes, there is installed the Nero 7 Standard or rather Platinum (Special Edition) yet.  All IBM/Lenovo ThinkPad use IBM/Lenovo-Utilities „ThinkVantage“ additionally.  The problem exists if the ThinkPad T61 is connected to a docking station and also if the ThinkPad T61 is disconnected from a docking station.  On every computer exists a registry key which arranges it that the desktop only will be loaded after the logon script did run.
    Now the detailed error description:
    Sometimes the explorer.exe hangs after the cold start.  i.e.: The desktop (with icons and task bar) appears complete.  But the computer hangs if you try to click on the task bar or double click on any icons.  The computer will only run if we kill the process ‘explorer.exe’ and if we restart the explorer.exe.
    We use also other computers with the same installation and the same group policies where the problem does not exist, for example:
    - HP-Computer (Desktops, Evo SFF Series)
    - Fujitsu-Siemens-Computer (Desktops, ESPRIMO E Series)
    - IBM ThinkPad T20/21
    - IBM ThinkPad T40/T41/T42
    - IBM/Lenovo ThinkPad T60
    Only the new ThinkPad T61’s have this problem.
    We have found a similar case at…
    http://forums.techarena.in/showthread.php?t=694888&page=1
    http://forums.techarena.in/showthread.php?t=694888&page=2
    http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_22718276.html
    Vielen Dank / Many thanks!

    I would run System Update and make sure I had all the updates available.
    Another thing to try is:
    1. Right-click on My Computer and click Properties
    2. Click on the Advanced tab
    3. Click on Settings under Performance
    4. Click on Data Execution Prevention
    5. Click on Turn on DEP for all programs and services except those I select, then check Windows Explorer
    We had to do that to some machines here after a push from corporate of the new ScriptLogic.This solved the problem.
    ThinkPad T61 15 Widescreen with nVidia Quadro graphics 6459CTO
    Windows 7 Enterprise and Windows XP Pro

  • Video hangs after burning on a DVD

    Hi,
    after burning a project with menus and several chapters, I notice the DVD is hanging after a few chapters. My DVD burner itself should be ok, I got no hardware failures and it's working fine with Nero Burning ROM. Any suggestions??
    Tx a lot,
    Kristof

    You used iTunes to burn the CD? If so, it should work. The question is, did you choose "back up to disc," or did you create a playlist, and choose "Burn playlist to disc?"
    If you do it the first way, you are just saving the actual music files (not in CD format) to a CD.
    If you create playlist and burn playlist to disc, you are making an actual Audio CD that will play in any CD player.
    If you are already using the second method, are you using a CD-R, or CD-RW? Some players have problems w/RW's.
    Btw, iTunes songs are not MP3 format, so I don't think you'll be able to find a "converter." LOL

  • Queries on oracle hang after index creation

    Hi,
    I have a problem where queries issued on an oracle database hang after I create indexes on some of the tables used by these queries.
    I have a script where I drop indexes :
    DROP INDEX EVP_PCON00_CDSITC_IX;
    DROP INDEX EVP_PCS202_STIMP1_IX;
    DROP INDEX EVP_PECT00_ONAECT_IX;
    DROP INDEX EVP_PVAL01_ONAVAL_IX;
    After this script I load data into those tables.
    Then I launch another script where I recreate the indexes I just dropped :
    CREATE INDEX EVP_PCON00_CDSITC_IX  ON EVP_PCON00(CDSITC) TABLESPACE TS_ODS_INDEX;
    COMMIT;
    CREATE INDEX EVP_PCS202_STIMP1_IX  ON EVP_PCS202(STIMP1) TABLESPACE TS_ODS_INDEX;
    COMMIT;
    CREATE INDEX EVP_PVAL01_CDORIV_IX  ON EVP_PVAL01(CDORIV) TABLESPACE TS_ODS_INDEX;
    COMMIT;
    When the script ends, I try to execute a query using some of the tables I created indexes on :
    SELECT ...
    FROM ....
    WHERE ....
    The query never return a result set, it just hangs, I look at the session browser in toad and the scan of the first table used in the query hangs.
    When I drop those indexes and re execute the query everything works fine.
    Thanks
    Edited by: 946359 on Jul 13, 2012 9:20 AM

    This is the result I get :
    Execution Plan
    Plan hash value: 1198043594
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 1343 | 12 (17)| 00:00:01 |
    | 1 | HASH UNIQUE | | 1 | 1343 | 12 (17)| 00:00:01 |
    |* 2 | HASH JOIN OUTER | | 1 | 1343 | 11 (10)| 00:00:01 |
    | 3 | NESTED LOOPS OUTER | | 1 | 1257 | 9 (12)| 00:00:01 |
    | 4 | NESTED LOOPS OUTER | | 1 | 1033 | 8 (13)| 00:00:01 |
    | 5 | NESTED LOOPS OUTER | | 1 | 809 | 7 (15)| 00:00:01 |
    |* 6 | HASH JOIN | | 1 | 585 | 6 (17)| 00:00:01 |
    | 7 | NESTED LOOPS | | | | | |
    | 8 | NESTED LOOPS | | 1 | 490 | 3 (0)| 00:00:01 |
    | 9 | TABLE ACCESS FULL | EVP_PTIP00 | 1 | 452 | 2 (0)| 00:00:01 |
    |* 10 | INDEX RANGE SCAN | EVP_PTIC00_CDROLE_IX | 1 | | 1 (0)| 00:00:01 |
    |* 11 | TABLE ACCESS BY INDEX ROWID| EVP_PTIC00 | 1 | 38 | 1 (0)| 00:00:01 |
    | 12 | TABLE ACCESS FULL | EVP_PTIF00 | 1 | 95 | 2 (0)| 00:00:01 |
    |* 13 | TABLE ACCESS BY INDEX ROWID | EVP_PTAB00 | 1 | 224 | 1 (0)| 00:00:01 |
    |* 14 | INDEX RANGE SCAN | EVP_PTAB00_CLTABL_IX | 1 | | 1 (0)| 00:00:01 |
    |* 15 | TABLE ACCESS BY INDEX ROWID | EVP_PTAB00 | 1 | 224 | 1 (0)| 00:00:01 |
    |* 16 | INDEX RANGE SCAN | EVP_PTAB00_CLTABL_IX | 1 | | 1 (0)| 00:00:01 |
    |* 17 | TABLE ACCESS BY INDEX ROWID | EVP_PTAB00 | 1 | 224 | 1 (0)| 00:00:01 |
    |* 18 | INDEX RANGE SCAN | EVP_PTAB00_CLTABL_IX | 1 | | 1 (0)| 00:00:01 |
    | 19 | TABLE ACCESS FULL | EVP_PRIB00 | 1 | 86 | 2 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("EVP_PRIB00"."NOTIER"(+)="EVP_PTIP00"."NOTIER")
    6 - access("EVP_PTIF00"."NOTIER"="EVP_PTIP00"."NOTIER")
    10 - access("EVP_PTIC00"."CDROLE"='EMP')
    11 - filter("EVP_PTIC00"."CDDDRX"='CL' AND "EVP_PTIP00"."NOTIER"="EVP_PTIC00"."NOTIER")
    13 - filter("EVP_PTAB00_SITF"."CDTABL"(+)="EVP_PTIP00"."CDSITF")
    14 - access("EVP_PTAB00_SITF"."CLTABL"(+)='SITF')
    15 - filter("EVP_PTAB00_TITR"."CDTABL"(+)="EVP_PTIP00"."CDTITR")
    16 - access("EVP_PTAB00_TITR"."CLTABL"(+)='TITR')
    17 - filter("EVP_PTAB00_RMAT"."CDTABL"(+)="EVP_PTIP00"."CDRMAT")
    18 - access("EVP_PTAB00_RMAT"."CLTABL"(+)='RMAT')

  • Update to Firefox 3.6.17 hangs after Checking Compatibility of Java Console - I have sceenshot

    Update to Firefox 3.6.17 hangs after Checking Compatibility of Java Console - I have a sceenshot

    I promised a screenshot, but you did not provide a way to submit it with the original post!

  • IMovie Hangs After Full Quality Sharing Is Complete

    Hi,
    Why does this happen? I did a Full Quality Share on a 2-1/2 hour multi-clip movie (using Share Selected Clips Only). The export progress dialog hung after the export was clearly finished. I eventually had to Force Quit iMovie.
    The exported movie looks fine in QT Pro. However, Movie Properties in QT shows that this movie is 24 frames longer than what I exported from iMovie. Doesn't seem to be a big deal, but annoying nonetheless.
    I'm more concerned about iMovie hanging after a long movie export as described.

    2-1/2 hour multi-clip movie (using Share Selected Clips Only)
    so, your project is in timeline even longer then 150min? how much did you import into iM, to create such a "beast"? must be a gigantic project, hm?... Titanic II... ;-))
    iM is a consumer product, we do read of reports here, that from some point of size (imported data, length, complexity of project), iM is a little "overwhelmed..." esp., iM is part of iLife, meaning, mainly meant exports go to tape (=60min max.) or iDVD (120min max.)
    secondly, MacOsX is a UNIX system, which makes excessive use of socalled temp-files on (startup-) harddrive... it is recommended, not to overcrowd the drive 80 - 90% of max.
    probably, your ~35GB of data transfer from a ~60GB project was simply too much for your Mac?
    helpful?

  • My ipod cclassic 80gb is hang after trying dat press and hold method then also its not working please tell me solution

    My ipod cclassic 80gb is hang after trying dat press and hold method then also its not working please tell me solution

    Thanks for your response and good luck wishes, I suspect I will need them!
    In principle, I agree re: the manufacturer's warranty. However, I am pretty upset that this is now my second iPod to develop a critical fault within weeks of the warranty expiring, and frankly, it is not unreasonable to expect a state-of-the-art $500 electronic device to last well beyond one year of life.
    I agree talking to Apple is not likely to do me any good (the clue is in how impossible they make it to talk to them in the first place) - but that is not necessarily OK. I expect I will have to pay money to get the battery replaced - again, not OK (full stop - but especially given the cost of the device and the money I have spent with Apple). Yes, the batteries have a limited lifespan, but it should last longer than this (and surely, I should notice a gradual decline in its functionality, not an instant stop).
    I will try Deggie's suggestion (see my reply post), but probably won't hold my breath (think I have already done this). I probably will have to get the new battery - and probably under my own steam. It is a principle at stake and I feel I should be able to let Apple know how I'm feeling - and am frustrated that they make this virtually impossible. It sends the very clear message that they are not interested in listening to their customers.

Maybe you are looking for

  • Is it OK to install Photoshop Elements 12 on Mac OS 10.9.2?

    My old Photoshop Elements6 is not working in 10.9.2. Am thinking of getting the new Photoshop Elements 12 on disk, but have heard too many complaints about the difficulties of even installing in 10.9.2. Adobe sez ok on 10.9. Has anyone had any experi

  • Using OLE Objects in Forms 6i

    Hi I need to use OLE object (VSFlexGrid) in my forms 6i. can anybody help with some code by which I can achieve this. Warm Regards Vivek Bajaj

  • Pulling particular attributes from the XML Object

    Hi ! My requirement is onChange of a value from the first drop down, particular values needs to load in the second drop down. Values that needs to pull are designed in XML Object as Map entries Key,Pair Values. We can pull the first drop down values

  • JMS Drivers for PI7.1

    Right now we are on XI3.0 and using JMS Version 6.40.0 (which I can see in my Visual Admin). Soon we will be upgrading to PI7.1 So I need to know if the existing JMS drivers will support to our new PI7.1 or do we have to upgrade our MQ as well? Also

  • QuickLookSatellite quit unexpectedly while using the GSRoot plug-in??

    I have this problem repoport for QuickLookSatatellite when I was opennig finder, thanks for help.