VC++ 2008 Express Edition, OCCI oraocci10d.dll 10.2.0.1, DB Oracle 10g

I am not able to run some basic code using OCCI. I am able to successfully compile and link the code.
using namespace oracle::occi;
class occidml
private:
     Environment *env;
     Connection *conn;
     Statement *stmt;
public:
     occidml(string user, string passwd,string db)
          //env = Environment::createEnvironment(Environment::DEFAULT);
          env = Environment::createEnvironment();
          conn = env->createConnection(user, passwd,db);
Every time the constructor is called, it successfully creates the environment it appears, I have a watch on the env pointer and it has some address. But the createConnection fails so I catch the exception and try to getMessage, but that fails with
"Unhandled exception at 0x005b8dcb in Oracle_Proj.exe: 0xC0000005: Access violation reading location 0xcccccccc."
I am using the occi sample code and havent changed much. please help me. I have a long way to go to make the app work. I can provide you with any additional information required.
Chad

My suspicion is that you are using mismatched versions between OCCI/Oracle Client and the Microsoft runtime libraries. That's why I've asked about the versions. I don't know what version of OCCI/Oracle Client you are using, but if it is the version that ships with Oracle Database Expression Edition, that will be incorrect since that version is for VS2003/VC7.1. One potential issue when using mismatched versions is that the memory allocators/deallocators used to build OCCI may be different from the runtime versions, for example.
EDIT1: Also, if using the debug build, you'll need to make sure that the oraocciXXd.dll is in the path. If it's not you should get an "application unable to start" type of message though. I don't have an Oracle Database Express Edition install handy at the moment, so I'm going somewhat from memory.
Thanks,
Mark
Edited by: Mark Williams on Sep 1, 2010 1:42 PM

Similar Messages

  • Security issue in SQL Server replication in SQL 2008 Express edition

    Hi,
    I am trying to do merge replication through web sync in SQL server 2008 express edition. i tried the merge replication using RMO with C# code but no luck. i am getting the security related error.
    my Publisher and distribution are on SQL server 2008 R2 Standard edition. machine name "Printserver",
    I created subscription on SQL server 2008 express edition.
    I hosted the web service for merge syncronization on another machine named "ANUJVMWIN7".
    I installed SSL cerificate on all the machine (server, hosted server and subscriber machine.)
    here is the error description.
    The upload message to be sent to Publisher ‘PRINTSERVER’ is being generated
    The merge process is using Exchange ID ’0B23EBE2-D502-4D92-A9A1-88B8F738CFFC’ for this web synchronization session.
    A security error occurred
    A security error occurred
    The Merge Agent could not connect to the URL ‘https://ANUJVMWIN7.prospecta.in/WebSyncTest/replisapi.dll’ during Web synchronization. Please verify that the URL, Internet login credentials and proxy server settings are correct and that the Web server is reachable.
    The same process i tested with the SQL server 2008 standard edition and all the things are working fine. i could able to merge the databases but no luck with SQL 2008 express edition.
    Please help.
    Thanks
    Anuj Sharma
    Thanks Anuj Sharma Software Engineer

    Hi Brandon,
    I am not using self signed certificate. I installed SSL certificate provided by RapidSSL CA. This certificate is installed on my publisher machine ("Printserver"),
    web hosting machine ("ANUJVMWIN7") and my subscriber machine as well.
    Here are the certificate details which i installed on each machine.
    Thanks
    Anuj Sharma
    Thanks Anuj Sharma Software Engineer

  • How to copy a database to another location in sqlserver 2008 express edition

    Hi,
    Please help for to copy a database to another location in sqlserver 2008 express edition
    With many thanks
    Pol
    polachan

    if you are using SQL Server 2008 express edition
    you are NOT able to use Copy database wizard so the only option you have is to try as mentioned above 
    a) Backup /Restore
    Create a new DB to where you want the copy should go and
    Make a Full Backup with .BAK of your original database and Restore the backup on other system and Right click on the the new DB you created and Restore by navigate to your .BAK and make sure MDF and LDF file match the new.
    http://msdn.microsoft.com/en-us/library/ms190436.aspx
    b) Detach/Attach
    Detach the database and copy the database files to other system; and attach these database files.
    I hope this is more informative for you and Good-luck
    Please remember to click “Mark as Answer” on the post that has answered your question as it is very relevant to other community members dealing with same problem in seeking the right answer

  • Upgrading from SQL Server 2005 Compact Edition [ENU] to SQL Server 2008 Express Edition OR HIGHER for Microsoft Security Compliance Manager

    I have downloaded the MS Security Compliance Manager, which is in two parts:  MS SQL Server 2008 Express Edition & the SCM. The install instructions state the the server needs to be install before the SCM.  So as the install continues I get
    an error message, which cancels the installation.  So, I am trying to install SQL 2008 EE separate from SCM.  My question is: 
    Can I upgrade from my current SQL Server 2005 Compact Edition [ENU]
    directly to SQL Server 2008 Express Edition (or higher)?

    So as the install continues I get an error message, which cancels the installation. 
    And which error message did you got?
    SQL Server Compact Edition is something different then SQL Server Express (or Standard) Edition, you can't upgrade it as you asked for,.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Problems with Registration Key, VB 2008 Express Edition

    VB 2008 Express Edition. Installed on a pc using Windows 8. Problem with registration key.
    I was given an executable program by a colleague that had already been used and I am currently making changes to the program to fit the specifics of my project. Thirty days after I started analyzing/manipulating the code, when I tried to open the program
    a pop-up came up that stated that I needed a registration key. When I click on the link on the pop-up to try to obtain a registration key, the link takes me to a page that states "the page doesn't exist" (http://www.microsoft.com/404.htm).
    That said, instead of trying to obtain a registration key I then downloaded a new version of VB 2008 Express Edition from Microsoft DreamSpark. I successfully downloaded the program. The website stated that if I ever needed a registration key, I could obtain
    it from within the program. However, even still, when I try to open up VB, the pop-up still comes up that states that I need a registration key.
    Does anyone have any suggestions or quick fixes? Thanks

    I'm not sure that registration keys are available any more for the 2008 version. There have been three versions since then (2010, 2012 and 2013) and  a fourth (2015) is currently being previewed.
    Is there any reason why you can use the current version? Visual Studio 2013 Community Edition is free for individuals and small companies.

  • Create linked server between MS SQL Server 2008 standard edition to MS SQL Server 2008 express edition

    For the captioned issue, is it possible?  We have successfully created linked server between 2 MS SQL server 2008 standard edition, but failed for the standard and express edition.  Is there any trick to setup?  Thanks.

    Hello,
    SQL Server Management Studio Express Edition may not allow to create a linked server, but the workaround is to use the T-SQL. You can use sp_addlinkedserver and sp_addlinkedsrvlogin.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • OBIEE 11g Prerequisites with SQL Server 2008 Express Edition

    Hi,
    I want to install OBIEE 11g with SQL Server Express Edition 2008.
    Is it possible to install OBI with SQL server express edition or not.
    Please send me prerequisites of OBIEE11g with SQL server.
    Thanks...................

    Hi,
    The link above gives a excel document with pre-requists, However if not working see below links;
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10539/c3_requrmnts.htm and
    http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html
    In the second link serach for System Requirements and Supported Platforms for Oracle Business Intelligence Suite Enterprise Edition 11gR1 (11.1.1.3.0-11.1.1.6.0) ( xls)
    Don't forget to mark Correct.
    Thanks and Best of Luck,
    Kashi

  • Accidentaly installed SP4 for Express Edition 2008 (express edition 2008 only supports SP3)

    SQL 2008 SErvice pack 4:
    Microsoft SQL Server 2008 Service Pack 3 is not a prerequisite for installing SQL Server 2008 Service Pack 4. These packages may be used to upgrade any of the following editions of SQL Server 2008:
    Enterprise
    Standard
    Evaluation
    Developer
    Workgroup
    No express edition listed... Express edition is listed only until 2008 SP3...
    Will i face problems because of this upgrade ? would you recommend a downgrade to SP3 ? (is this even possible)
    YEah i know... I DIDN'T READ THE FUUU MANUAL :(
    Thanks for your help
    Regards, Dominic

    Now im confused... because i could install it... now it sais:
    Select @@version
    Microsoft SQL Server 2008 (SP4) - 10.0.6000.29 (X64)   Sep  3 2014 04:11:34   Copyright (c) 1988-2008 Microsoft Corporation 
    Express Edition (64-bit)
    Or do you mean with nothing will happen... "no files have been changed/updated, during installation of SP4"
    Thanks a lot for your help :)
    You lowered my "pulse" a lot :) hehe

  • SQL Server 2008 Express edition install issue.

    Ok, i've been looking around forums for a while now and have not found a post similar to this one or one that offers a solution; so here it goes.
    I'm trying to install management studio and in the web platform installer i keep getting this error:
    "You must install visual C++ 2008 SP1 before you can install SQL server 2008 Express with tools"
    I managed to get the install to "work", but it didn't actually install the studio app. So heres my questions:
    Firstly...why? i've installed this before and not had any issues at all, so why the sudden need for C++?
    Secondly, does anyone have any insight into my problem and how i cant actually install it?
    The only real difference between this install and previous installs is that i'm not running it on vista home premium 64-bit (previously 32-bit).
    I tried installing visual C++ express, but that didn't work.
    Thank you in advance and for giving up your time to read this.

    Hi,
    Based on the error message, your computer has Visual C++ 2008 before you install SQL Server 2008. However, Visual Studio 2008 does not support having Visual Studio 2008 without a service pack. The error message indicates you to install Service Pack 1 for Visual C++.  Please download Microsoft Visual Studio 2008 Service Pack 1 from the following link and install it:
    http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
    For more information, please refer to "Actions that are required before you install SQL Server 2008 on a computer that has Visual Studio 2008 or the prerelease version of SQL Server 2008 installed":
    http://support.microsoft.com/kb/956139
    If there are any more questions, please let me know.
    Thanks.
    ***Xiao Min Tan***Microsoft Online Community***

  • SQLServer 2008 Express Edition and Database Mail

    All,
    BOL says that "Database Mail is not available in SQL Server Express." is not supported.
    Though, the express edition does not have the UI to configure database mail, I was able
    to configure it by setting up a "Database Mail Account" and "Database Mail Profile". I
    was also able successfully send an email with the sp_send_dbmail.
    Is the BOL wrong or am I missing something?
    ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_4deptrbl/html/14cbf88f-d9d1-41a5-994e-532e2973ac9e.htm
    Thanks,
    MS

    So MS, can you help me with the steps to make it available?  I executed   dbo.sysmail_start_sp received an error indicating database mail xp must be enabled.  Successfully ran.
    sp_configure 'show advanced options', 1;
    GO
    RECONFIGURE;
    GO
    sp_configure 'Database Mail XPs', 1;
    GO
    RECONFIGURE
    GO
    then the stored procedure was successful. Restarted SQL express and still I don't see in SSMS, under management  'database Mail' therefore can't setup an account and profile . (NO database WIZARD).
    Can you please tell me what I am missing?
    Thanks, Pat_c

  • Installation of SQL Server 2008 express edition

    I have successfully downloaded MS SQL Server 2008 Express. At the end of down loading I got message "Installation Successful". I may have mis-read the writing - it could be down-loading successful. The files are there in all program folder.
    I am not sure if I have done the installation. I do not see any exe file. I cannot use the server.
    How can I get to use it? How can I get connected to the Server?
    S.ZAMAN
     

    Hello,
    Verify you have installed SQL Server Express successfully using the following report:
    http://blogs.msdn.com/b/petersad/archive/2009/11/13/sql-server-2008-discovery-report.aspx
    If you did not install it then use the following post:
    http://www.sqlservergenius.com/sql-server-2008-express-windows-server-2003-2008-howto/
    Once you finish the installation, you need to enable TCP/IP and Named Pipes protocols to be able to get connected to SQL Server. Use the following article:
    http://technet.microsoft.com/en-us/library/ms191294(v=sql.100).aspx
    Now download SQL Server Management Studio Express (SSMSE) from the following link to be able to connect and manage the SQL Server Express you have installed.
    http://www.microsoft.com/en-us/download/details.aspx?id=7593
    Use “(local)\SQLEXPRESS” or computername\SQLEXPRESS as name of the server when connecting using
    SSMSE.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • No of maximun users in oracle 10g express edition

    what is the maximum number of concurrent users (session) in oracle 10g express edition.
    coz right now, we have one server with oracle 10g express edition, and a front end application of asp.net (.net 1.1)

    The only limit that Oracle places on the number of concurrent users on an XE database is through the limit of 1GB of RAM. You can have as many concurrent sessions as you can open in 1GB of RAM.

  • Unknown exception: Environment:createEnvironment() - VC++ 2008 Express

    Hello,
    I saw someone some where in the forum has the same problem but found no answer. So afterall, does OCCI support Visual C++ 2008 Express edition?
    I can build the occidml.cpp demo program (which comes with the Instant Client SDK) but running it causes unreadable exception right from the beginning:
    env = Environment::createEnvironment(Environment::DEFAULT);
    Could anyone point out the problem here?
    Thanks alot.
    My Info:
    OS: Windows XP sp2
    Instant Client 11.1.0.6.0
    OCCI: occivc9win32_111060
    Edited by: user10686041 on Dec 5, 2008 11:30 AM

    My suspicion is that you are using mismatched versions between OCCI/Oracle Client and the Microsoft runtime libraries. That's why I've asked about the versions. I don't know what version of OCCI/Oracle Client you are using, but if it is the version that ships with Oracle Database Expression Edition, that will be incorrect since that version is for VS2003/VC7.1. One potential issue when using mismatched versions is that the memory allocators/deallocators used to build OCCI may be different from the runtime versions, for example.
    EDIT1: Also, if using the debug build, you'll need to make sure that the oraocciXXd.dll is in the path. If it's not you should get an "application unable to start" type of message though. I don't have an Oracle Database Express Edition install handy at the moment, so I'm going somewhat from memory.
    Thanks,
    Mark
    Edited by: Mark Williams on Sep 1, 2010 1:42 PM

  • How to install SQL server 2008 express on Windows server 2008 R2 standard OS

    Hi,
    I have Windows server 2008 R2 Standard edition (64-bit) and trying to install SQL server 2008 express edition since I do not have SQL server 2008. When I install it I am unable to see Management Studio so I am trying to install management studio as well
    but still I am facing issue. Please let me know whether SQL server 2008 express edition is compatible with  Windows server 2008 R2 Standard. If not then pls let me know the proper steps to install it.
    Regds

    Hello,
    Service Pack 1 for SQL Server 2008 is required to be compatible with Windows Server 2008 R2.
    Please download QL Server 2008 Express with SP1 included from the following link:
    http://www.microsoft.com/en-us/download/details.aspx?id=25052
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQL Server 2008 Express Installation fails.

    I am trying to install SQL server 2008 Express edition on my desktop (OS: Win 7 HP - 64 bit). I have been unable to do so on all of my 3 attempts.
    The installation gets to the end and then gives a error with an installation failed message.
    Here is the installation summary - Installation Summary
    Here is the core DB Engine Install Log - DB Engine Install Log this log is copied from the location referenced in the summary document.
    System Config Check Report - Sys Config Check Report
    Any and all help is welcome. Let me know if I can provide any additional information.
    I already have MySQL 5.5 installed on the same machine - would that be a problem and conflict with the MS SQL installation.
    Abhi Oommen

    Hello,
    Please try to uninstall all SQL Server components using Control Panel -> Add/Remove Programs.
    If you have already uninstalled SQL Server before trying to reinstall, please perform the following steps to manually uninstall SQL Server:
    1. Uninstall all SQL Server components you can using Control Panel -> Programs and Features
    2. Backup the registry.
    3. Delete the following keys in regedit:
    --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
    --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server.
    5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server.
    6. Rename all the SQL Server folders in the computer like
    C:\Program Files\Microsoft SQL Server and subfolders.
    Once you have uninstalled, please try to reinstall again.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • How to add multiple images to a JLabel from the jar file

    I want to add multiple images in a JLabel but the icon property only allows me to add one. I thought I could use html rendering to add the images I need by using the <img> tab, but I need to use a URL that points to the image. How do I point to an im

  • Adding my own music to iTunes Store

    i know i saw this information some place. Since it wasnt what i was looking for at the moment, i just glanced over it. What are the details for individuals to add their own music to iTunes, and make it available for purchase? Would ther requirements

  • Wiping out MS Office 2008

    I recently purchased a used MacBook to have as a spare. It still has the previous owner's copy of MS Office on it and I would like to replace it with my own registered version. However, despite running the MS utility for removing Office, after I inst

  • How to change cursor size in InDesign?

    My InDesign cursor suddenly became huge after the previous before last update. I can't find any settings in preferences, but probably I'm looking in the wrong place.

  • OS Update/Connection to PC fails/ says device not installed properly???

    I connected my Playbook to my computer after the most recent OS update to back it up. Windows 7 ticked along and then said it could not install the device properly. Now with the Playbook connected I cannot get the Blackberry Desktop Software to work