9.2.0 OCCI's setString Won't Work, Need Help w Thks

Start exploring occi.h (oracle version 9.2.0) but hit a problem w no clue to solve it.
#include <iostream>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
int main()
// declare Environment, Connection, ResultSet, Statement
env=Environment::createEnvironment(Environment::DEFAULT);
con=env->createConnection("myname", "mypws", "myConString");
stmt=con->createStatement("select * from aTable where aFld=:1 and bFld=:2");
stmt->setInt(1, 10);
stmt->setString(2, "myValue");
rs=stmt->executeQuery();
rs->next();
// cout result, all fields empty, seems a result not found
stmt=con->createStatement("select * from aTable where aFld=10 and bFld='myValue'");
rs=stmt->executeQuery();
rs->next();
// cout result, got the record and print expected result.
// close connection on env, rs, stmt, con
the diff. between 1st & 2nd SQL stmt is one is parameterize and the other is not. If in 1st SQL stmt, I hard code :2 to 'myValue' and then execute setInt() only, it works as well. So it is the 'setString()' function that won't work.
Any idea?
You help is really appreciated.
Thanks
Message was edited by: chris
user459175

Hi Nikeda
The bFld is in char(10).
You are correct, so when I change the sql stmt to "select * from aTable where aFld=:1 and trim(bFld)=:2", it works. Or when I change "myValue" to "myValue<+ 3 space", it works as well.
Thanks

Similar Messages

  • Exchange Active Sync won't work need help

    I have been reading a few dozen of these post that people are having issues with there iphone sync with exchange. I am TOO!.
    For some i can get into owa and from the iphone safaria.
    The iphone was able verfy the ssl certificate, but nothing is syncing with mail server
    My network infrastructure.
    1. Clustered mail server . Running exchange server 2003.
    2. firewall- port 443 has been verified to be open and able to acces owa from iphone safari
    3. I have NO isa setup in my network.
    4. Called SSL verisign company and everything checked out to be fine.
    5. virtual folders have been verified to be correct.
    6. checked dns report no errors.
    7. AD exchange feature mobile services and protcols was verfied to all on.
    8. turned off wifi
    9. checked all creditals.
    And it just won't push anything. I have come to the conclusion that is either IIS or Iphone is using a multiply protocol ports to access the exchange. But i don't know i need HELP
    Simple troubleshooting steps to start with:
    1. Check your version of Exchange. Must be at least 2003 w/SP2.
    2. Check your security certificate. If you go to your "https://webmail.yourdomain.com/owa" or "https://webmail.yourdomain.com/exchange" and receive a certificate error, you may want to look into an external certificate from a recognized CA. I used SBS through my registrar.
    3. Check to ensure your "Front-End" and "Back-End" server are not both requiring SSL. That will cause issues with OMA.

    You don't want to check OWA (Outlook Web Access) as it is a full mail client for a notebook or desktop.
    The iPhone uses ActiveSync OMA for syncing. Thus, you want to check https://www.domain.com/OMA (where www.domain.com is the URL to the Exchange server - same URL as the OWA url) with a notebook or desktop. The "s" in https is needed at OMA requires SSL.
    You should see a login prompt for username and password followed by a list of Inbox messages. If you don't, the server is not correctly configured for OMA.
    Once OMA works from a desktop or notebook, it is an easy procedure to add an Exchange account to a phone. Just follow the iPhone on screen examples and provide only the path to the Exchange server and not the "/Exchange" following.
    This information can be found on many threads in this forum using the Search feature.

  • "add printer" utility won't work, need help

    I have an IMac “Lamp”. After I upgraded to 10.4.7 the ‘add printer’ utility will not work and so no printer is available.
    I had an older HP printer and one fellow at HP said that the problem was with the printer. I bought a new HP Photosmart 8250, installed the software and the same problem exists. The computer can see the printer and recognize it specifically as being plugged into the port but the ‘add printer ‘ utility still doesn’t work.
    A nice Canadian lady who works for HP spent well over an hour on the phone with me guiding me through quite a few moves dumping various files but to no avail.
    Does anyone have any ideas?

    Hi..
    I have a Poer Book G$ )S X 10.4.5. I am having the same problem with my printer utility....won't add printer. I am trying to install a new printer, HP 2575, all-in-one. With the instruction of HP support, I downloaded the latest driver, uninstalled all my other printers, re installed the HP 2575, threw out many files, etc., all with no success. My husband was able to install the printer on his PC (windows)...so it is a MAC problem. Now, there is nothing in my library/printer folder. My system does not list any printers either. When I plug the printer into my MAc with the UBS cable, it shows on the list of printers, but I can't add.
    Someone please help if you can.
    Beverly

  • Usb 1.0 won't work - need help urgently

    Happy holidays and hope Santa is working overtime
    Got iPod nano for my son and mrs. and can't get them to work properly. Long time mac users, G3 iBook at home (mac 10.3.9), g4 iMac at office but neither have usb 2.0 as older machinese.
    For some reason, even after downloading 7.5 iTunes, when we connect new nano with usb connector supplied in box, only get that apple icon popping up; can't connect for some reason, can't see nano on desktop.
    Tried it with old Sony Vaio, running WinXP but a gain older model, no usb 2 and only usb 1 ports. Can't read there either.
    Funny, when I plug with my old 3rd gen iPod charger, using firewire with common plug, it's charging fine.
    Can someone explain if it's the usb port that's a problem? Mrs. leaving to visit mother for few weeks early tomorrow morning and I have appointment with genius bar at 10 am - but too late to help her.

    Yep, on my iBook, got message finally that needed 10.4.8.
    Re-tried with WinXp (not sure if SP2) and got it connected, trying to rip some CD to sync and completed about 5 cd. After ejecting nano, couldn't get it to 'turn-on' which is weird - so i'm leaving it connected to pc to charge (instructions say 3 hrs).
    My suspicion is this is a lemon.
    Btw, can i charge this generation nano with the 'traditional' firewire charger that came with my old iPod (3rd gen)? If we do get it to work, my wife won't have pc to charge with when traveling and I'd like to give her my charger to take along?
    Thanks,

  • Pleeeeeaaaaaaaaae help new ipod won't work need help

    So I'm a total technophobe so please any help write it for idiots so i can follow it lol.
    So I get my new ipod this morning and very happy I am until I plug into into my computer. My computer recognises it as an ipod but then comes up with the message error during installation, then it says the data is invalid. it does this if I plug the ipod in or if i use the new hardware wizard. So far I have tried unistalling itunes, re installing windows xp. When I try to remove the device from device manager it will not remove from the list.Ive tried it in different usb ports, I've tried system restore and nothing is working pleasssssssssssseeeeeeee help ive been at it for 7 hours now and i feel like crying
    Ive been trying

    in the device manager it has a yellow question mark and according to the error code this is because the device is incorrectly configured i have no clue how to fix this
    I am reluctant to uninstall usb drivers as I have discovered today the system disc for my computer is broken so i wont be able to to reinstall major components of puter.
    thank you for any help u can give

  • HT201406 i have been having trouble my iphone 3gs doesn't work the slide to unlock is broken i have tired everything to get it open but it won't work please help me!

    i have been having trouble my iphone 3gs doesn't work the slide to unlock is broken i have tired everything to get it open but it won't work please help me!

    Basic troubleshooting steps are:  Restart, Reset, Restore,

  • I updated Firefox on my Mac (10.6.8), and now history is not remembered (that option is checked) and the back button won't work. Help?

    I updated Firefox on my Mac (10.6.8), and now history is not remembered (that option is checked) and the back button won't work. Help?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can also try to repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • I am trying to install the latest update for HP Printers, it will not completely install ,now my printers won't work. Help!

    I am trying to install the latest update for HP Printers, it will not completely install ,now my printers won't work. Help!

    Hello Carolyn -  Thank you for your quick response to my concerns, I had already gone to the HP support site and tried to get the latest HP drivers, the site said for Lion 10.7 there was NA version.  So, I just used my time machine to replaced the OS from that time spot. I got my printers working again, so all right with the printer.  But, the fact remains that I still keep getting the New Update HP Printer in the software update window.  But, what happens if I try to download and install it is this:  It starts the download, everything seems to come down fine, it starts write the files and then starts moving items into place, the blue bar fills to all most the end and slows down to a stop and never completes the installation.  I have left my laptop on over night and it never finishes the operation.  I can only force quit the software update.  Which has knock out my printer drivers.  Now, I just keep unchecking the box in the software updates for new HP printer software. Is anyone else having this problem or is it just my system?  Sincerely: Professor G

  • TS1398 My iPad & iPhone won't connect to iTunes store.... it worked just fine earlier today... but not now. Nothing has changed.  I've gone through all of Apples suggested troubleshooting guides but it still won't work! Help?

    My iPad & iPhone won't connect to iTunes store.... it worked just fine earlier today... but not now.
    My daughter also has an iPad and an iPhone and these too won't connect either (use the same iTunes account)
    Nothing has changed since this morning,  I've gone through all of Apples suggested troubleshooting guides but it still won't work!
    Help?

    p.s.  I just signed out of my apple id on daughters iPad and tried to create a new apple ID and still got the message CANNOT CONNECT TO ITUNES STORE......    
    so is this a problem with apple rather than my devices? Just seems weird that all our apple devices are doing this this afternoon when they were just fine this morning.......
    P.P.S  Just got a text from a friend with iphone and ipad......they are having same issue so at least I know it's not just me, so what's going on here APPLE?????

  • New PC - rezipped all music - most won't work. Help?

    Can anyone help?
    Bought a new PC (using XP Home). Had to set up new iTunes library, so re-zipped all my CDs. Now, 95% of my 2,800 songs have an exclamation mark next them and they won't work. If I try to play them from the PC, the message "Cannot be used because the original file cannot be found". This includes 24 of my 34 "Purchased from iTunes" songs!
    I can't believe it - am SO disappointed. Just downloaded/installed the new software upgrade - makes no difference.

    I took it to mean that he was working with a blank CD. The drive acts as expected if he is inserting a blank CD and does not have burn capability.
    One would think that it probably should read CD's, but it may not be so. The drive may be totally incompatible if you're trying to use a Combo drive without appropriate firmware. I'm not sure about that.
    Susan, take a look at this thread, will you?
    http://discussions.apple.com/thread.jspa?threadID=653877&tstart=0
    I believe it was you who said she had had trouble with a ribbon cable, yes? Maybe you can help this fella out?

  • button element won't submit, need help...

    This <button> element is used all throughout our site
    http://www.ocp.org flawlessly.
    However, on the particular page I'm working on right now it won't
    work in conjunction with the drop down menu I'm working with in IE
    6 or 7, can anyone help me out? Thanks!
    I'm working in a private network so I can't show you a live
    version of this page but I've attached the code.

    <button
    onclick='window.location.href='/account/orderHistory''
    type="submit">
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Spencer Hill" <[email protected]> wrote in
    message
    news:[email protected]...
    > This <button> element is used all throughout our
    site
    http://www.ocp.org
    > flawlessly. However, on the particular page I'm working
    on right now it
    > won't
    > work in conjunction with the drop down menu I'm working
    with in IE 6 or 7,
    > can
    > anyone help me out? Thanks!
    >
    > I'm working in a private network so I can't show you a
    live version of
    > this
    > page but I've attached the code.
    >
    > <form id="userdata" name="userdata" method="post"
    > action="/account/orderHistory">
    > <table cellpadding="0" cellspacing="0">
    > <tr>
    > <?php
    > if (isset($accounts)) {
    > $num_accounts = sizeof($accounts);
    > if ($num_accounts >= '2') {
    > echo "<select name=cust_id>";
    > foreach ($accounts as $cmid => $value) {
    > $name = $value['organization'];
    > if ($name == '') {
    > $name = $value['name'];
    > }
    > if ($cmid == $cust_id) {
    > echo "<option value='" . $cmid . "' selected>" .
    $name . ' (#' . $cmid .
    > ")</option>";
    > } else {
    > echo "<option value='" . $cmid . "'>" . $name . '
    (#' . $cmid .
    > ")</option>";
    > }
    > }
    > echo "</select><button
    >
    onclick='window.location.href='/account/orderHistory''>submit</button></tr>";
    > }
    > else {
    > foreach ($accounts as $cmid => $value) {
    > $name = $value['organization'];
    > if ($name == '') {
    > $name = $value['name'];
    > }
    > }
    > echo $name;
    > echo "</td></tr>";
    > echo "<input type=hidden name='cust_id' value='" .
    $cmid . "'>";
    > }
    > }
    > ?>
    >
    > <!--
    > <tr>
    > <td>Order Start Date:</td>
    > <td><input type='text' value='<?php echo
    $start_date ?>'
    > name='start_date'></td>
    > </tr>
    > <tr>
    > <td>Order End Date:</td>
    > <td><input type='text' value='<?php echo
    $end_date ?>'
    > name='end_date'></td>
    > </tr>
    > -->
    > </table>
    >
    > <input type=hidden name=action value=history>
    >
    > </form>
    >
    > <form id="userdata2" name="userdata2" method="post"
    > action="/account/orderHistory">
    > <table class="results" cellpadding="0"
    cellspacing="0">
    > <tr style="text-decoration: none; font-size: 14px;
    color: #fff;
    > background-image:
    url(/ocpimages/tabs/tabs_dscrptn_bg.gif); font-weight:
    > bold;">
    > <td style="border-right: solid 1px #999;
    padding-right: 0;">Date</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Invoice No.</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Status</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Ship Date</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Tracking</td>
    > <td style="border-left: 1px solid #ccc; border-right:
    solid 1px #999;
    > padding-right: 0;">Details</td>
    > <td style="border-left: 1px solid #ccc;
    padding-right: 0;">Amount</td>
    > </tr>
    >
    > <?php
    > if (isset($orders)) {
    > $td_class = 'white';
    > foreach ($orders as $i => $value) {
    > $entry_date = $value['entry_date'];
    > $invoiceID = $value['invoiceID'];
    > $order_amt = $value['order_amt'];
    > $status = $value['status'];
    > $ship_date = $value['ship_date'];
    > $tracking_id = $value['tracking_id'];
    > $tracking_id = explode('|', $tracking_id);
    >
    > switch ($status) {
    > case ('RTP'):
    > $status_desc = "Shipped";
    > break;
    > case ('RTI'):
    > $status_desc = "Shipped";
    > break;
    > case ('O'):
    > $status_desc = "Order Submitted";
    > break;
    > default:
    > $status_desc = "Order Picked";
    > }
    > if ($invoiceID != '') {
    > echo "<tr valign='top' class=' . $td_class . '>";
    > echo "<td>". $entry_date. "</td>";
    > echo "<td style='text-align: center;'>" .
    $invoiceID . "</td>";
    > echo "<td>" . $status_desc . "</td>";
    > echo "<td>" . $ship_date . "</td>";
    > if ($tracking_id != '') {
    > $suburl = '';
    > foreach ($tracking_id as $key => $val) {
    > $track_cnt = $key + 1;
    > $suburl = $suburl . "&InquiryNumber" . $track_cnt .
    "=" . $val;
    > }
    > $suburl =
    > "
    http://wwwapps.ups.com/etracking/tracking.cgi?tracknums_displayed="
    > $track_cnt .
    "&TypeOfInquiryNumber=T&HTMLVersion=4.0" . $suburl .
    > "&track=Track";
    > echo '<td><a target="_new" href="' . $suburl .
    '">Tracking
    > Detail</a></td>';
    > } else {
    > echo "<td> </td>";
    > }
    >
    > $suburl =
    "/account/orderHistory?action=detail&invoiceID=" . $invoiceID .
    > "&cust_id=" . $cust_id;
    > echo '<td><a href="' . $suburl . '">Product
    Detail</a></td>';
    > echo "<td style='text-align: right;'>$ " .
    $order_amt . "</td>";
    > echo "</tr>";
    >
    > $td_class = $td_class == 'white' ? 'blue' : 'white';
    > }
    > }
    > }
    > ?>
    > </table>
    > </form>
    >

  • Hard Drive icon missing - Desktop folders won't open - Need Help!

    I need help! I have a 400 MHz PowerPC G4 with 768 MB SDRAM, no DVD drive - was running OS X 10.3.9 quite happily. We became owners of a new iPod Nano - so we had to upgrade to 10.4.
    (I'm writing this on my 800 MHz PowerPC G4 with 768 MB SDRAM, (also no DVD drive) that I upgraded from OS X 10.3.9 to 10.4.11 without incident.)
    Installed 10.4 using a FireWire Hard Drive - installed software updates to 10.4.11 - ran Disk Utility - ran MacJanitor - ran DoktorKleaner - everything was working well.
    Rebooted and the Hard Drive Icon had disappeared from desktop. Folders on desktop have all lumped together in the top right hand corner of the screen, and refuse to open.
    Only programs in the dock still work - clicking on the Finder icon only gives the option to hide. New Finder Window does not work. Programs can be found in Spotlight, but if they're not in the dock they won't open. Trash won't open or empty.
    I attempted to reinstall Mac OS X using FireWire, but now the Hard Drive is full and is telling me it will erase and reinstall. I need to save files off this computer now (Sadly no backup exists) before my wife readies divorce papers.
    I tried using FireWire Target Disk Mode to copy files - with the 400MHz as Target I just get a spinning Beach Ball any time I click on the Icon. After far too long it opened up an empty window.
    With the 800MHz as the target, the 400MHz does not show it on the desktop, so I have no way of copying files to it.
    Anyone have some advice that doesn't involve a time machine?

    Whenever something starts going wrong with the computer I suggest you first boot from the installer disk, select language if applicable, choose utilities, run Disk Utility and verify (and repair if necessary) the drive. Then repair the permissions on your computer. You can also repair permissions from DU on your main drive while booted, but to properly verify and repair your drive you have to run it from a drive other than the boot drive.
    [Resolve startup issues and perform disk maintenance with Disk Utility and fsck|http://docs.info.apple.com/article.html?artnum=106214]
    [Using Disk Utility in Mac OS X 10.4.3 or later|http://docs.info.apple.com/article.html?artnum=302672]
    [Disk Utility's Repair Disk Permissions|http://docs.info.apple.com/article.html?artnum=25751]
    From BDaqua (couldn't have said it better):
    "Try Disk Utility
    1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk.
    Then Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes."
    A few questions:
    Was this a retail installer disc that you used to do the upgrade?
    How much free space do you have on the computer?
    Did you use the [PPC Combo updater|http://www.apple.com/support/downloads/macosx10411comboupdateppc.html] to get to 10.4.11?
    Did you do all these updates in one single session or restart and check your computer had accepted them okay between each update? It is critical to repair permissions before and after each update otherwise the installers won't install fully and you end up with a mix of versions.
    You can set the Finder Preferences, general, to display a hard drive icon, but it sounds like your problems are going beyond that?
    You can also try trashing your Users -> home folder -> Library -> Preferences -> com.apple.finder.plist file and see if that clears up the issue. That sets the Finder preferences and if it gets corrupted it will cause Finder problems.

  • Keyboard portrait view, some letters won't work. Help?

    When I'm on the keyboard using my iPod touch 8gb 3rd generation, on portrait view, the letters B, H, J, and U won't work. Buut when I have it on landscape view the work fine. Also when I try to unlock it, it takes a view slides before it will actually slide and unlock. I've tried powering down and resetting, but that doesn't help. I haven't dropped it or done any damage to it recently, it just started acting like this. Any suggestions beside sending it in for repairs or getting a new one?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      
    Since you say you have iOS 4.2.1 that likely means you have a 2G iPod. It is likely not worth getting a 2G repaired.

  • FAULTY THEME AND NOW MY BB WON'T WORK. HELP!

    After installing a theme, my blackberry suddenly stopped working. I can go to the home screen but when I try to press any button (messages, options, etc) it won't work. I've restarted my phone by pulling the battery for a million times but it still won't work. I tried connecting my phone to the computer and deleting the theme using app world, but app worl won't work. It says that my device is not connected even if it is. Please help. I just had my handset for a few months. I shouldn't have installed that theme  PLEASE PLEASE HELP ME I don't know what to do now.
    Solved!
    Go to Solution.

    Try booting the device in safe mode.
    Remove the battery. While holding down the 'back' key reinsert the battery. Continue to hold the back key for another 20 seconds or so into the boot sequence.
    If it boots up, remove the theme.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Linked text inside table won't work - please help!

    Inside a 3 column table, I linked some text to a file in a different folder but the same site, and the links won't work.  I have linked text in a table before and it worked. I don't know if it's the table properties that is wrong or something else I've done, but I've read everything I can find and cannot come up with the reason why my links won't work.  can you help me?

    Sorry!  I should have done this first:
    http://www.corinthiaestates.com.php5-15.websitetestlink.com/pricing_and_availability.html
    Thanks for your help!

Maybe you are looking for