Proper use of ConnectionPool in occi

Hi,
I am developing a client server application using Windows server 2003 x64, Oracle 11.1.0.6.0 client connecting to oracle 10.1.0.2.0 database, Visual studio 2008, visual c++ 9.
The scenario is something like this,
upon receiving the client request, the server executes a stored procedure as per the request. I have a number of classes thru which the stored procedure gets called. Currently, in every method of these classes, I am creating new connection to the database as follows..
+Environment *env = Environment::createEnvironment(Environment::OBJECT);+
+Connection *conn = env->createConnection( USERID, PASSWORD, ORACLESID );+
But now I want to use a ConnectionPool to improve performance of the application.
My question is, where do I create the ConnectionPool object so that it is accessible from all the methods of the classes?

Got it!!
I did the following..
Declare the Environment and StatelessConnectionPool objects above main function.
+oracle::occi::Environment *env;+
+oracle::occi::StatelessConnectionPool *connPool;+
+int tmain(int argc, TCHAR* argv[])+
+{+
+......+
+}+
Then declare these objects as EXTERN from wherever you want to access them.
+extern oracle::occi::Environment *env;+
+extern oracle::occi::StatelessConnectionPool *connPool;+
+//Method that uses these objects+
The objects can directly be used in the methods where the they are declared as 'extern'.
Enjoy!

Similar Messages

  • Proper Use Of Sessions

    Hi everyone,
    My fellow developers and I were having a discussion as to the proper use of sessions in a web application built with Servlets. The situation was we were building a method to get search results from a database and we wanted to have the ability to limit the number of results displayed per page.
    One method of doing this was to get the entire search result, load that into a hashtable or some other data structure, and put that into a session variable to preserve the hashtable.
    The other method was to re-query the database every time the person clicked the 'view next' button and get a new result set every time.
    I tend to favor the use of session variables to maintain the ResultSet...as I was taught that database connections are expensive and should be limited. However, according to one of the other developers, storing objects (especially when they are potentially large) in session variables is not recommended.
    So what do you guys think? Should be store large objects in session variables, or should we re-query the database every time the person loads the page?
    As a side note, the servers we use are quite robust, but we know that that is not an excuse to write in-efficient code.

    Its a trade off between memory and database access.
    Storing stuff in session is expensive in terms of memory.
    The more stuff you store in session, the more overhead there is with each user of the system.
    Querying the database each time saves you memory on the app server, but means more work for the database.
    Which is better? As always it depends.
    - How many users are projected for the system? More users means you want to keep the session as light as possible.
    - Is the query is hugely expensive to run? A long running query that only returns a few records - you would want to cache that in session.
    - Are you able to limit the result set data returned via the database? Some database support this, some don't. ie if you did a database query each time would you have to step through "5 pages" of data to get to display the "6th" page, or could you just get the data for page 6 using row numbers?
    Database connections themselves aren't that expensive to acquire if you are using connection pooling, but they are still a limited resource.
    Hope that helps some,
    evnafets

  • Proper use of END-OF-SELECTION event in report programme

    Hi,
    If we will write "WRITE" statements in side START-OF-SELECTION then it will help me to display the output.Then what is the need of END-OF-SELECTION .
    Can any body please tell me the <b>proper use of END-OF-SELECTION event in report programme.</b>

    This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started.
    <b>In report programs using LDB for every value selected the program issues the output, to control this you would use END-OF-SELECTION.</b> Now if you call your output in this event, the output is made only after all the values are selected as per the selection criteria.
    suppose while coding, u need a logic like below:
    if a condition is satisfied continue with the report
    and if not satisfied, then display a message and end the report.
    then u can code like below.
    start-of-slection.
    if a = <condition>.
    do the following.......
    else.
    stop.
    end-of-selection.
    write: 'THIS IS END'.
    stop command triggers end-of-slection from anywhere.
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Proper use of Field symbol .. please help

    what is the proper use of field symbol in sap abap ?
    Moderator Message: Please do a proper search for such basic questions.
    Edited by: kishan P on Sep 13, 2010 4:01 PM

    hi Gopal,
    The parameter is used to color a cell in ALV grid.
    See this example how it is used
    http://www.sap-img.com/abap/line-color-in-alv-example.htm
    take a closer look at the code where the info is passed
    MOVE 'MATNR' TO wa_color-fname.
            MOVE '6'         TO wa_color-color-col.
            MOVE '1'         TO wa_color-color-int.
            MOVE '1'         TO wa_color-color-inv.
            APPEND wa_color TO it_color.
    Cheers
    VJ
    If it helps dont forget to mark points

  • Proper use of location in metadata

    I'm building my library of images now with LR and want to get started on the right foot. I store on CD. In Metadata "Location" I have entered the CD volume name as a way of identifying where the images are stored. But now I am wondering if the Metadata "Source" under workflow would be a better place to record the CD name such as "2007_03_08b" Can someone point me down the correct path so I don't regret my actions after thousands of images later? Thanks

    <blockquote><span style="font-size: 90%><i>In Metadata "Location" I have entered the CD volume</i></span></blockquote>The IPTC metadata location is intended to store the physical location the shot was taken (as in "Museum", "City Hall", "Home"). It is also recommended to fill out the other location fields (Country, State, City) to make proper use of the Location Metadata Browser.<br /><br />Alexander.<br><span style="font-size: 75%; color: #408080">-- <br>Canon EOS 400D (aka. XTi) &bull; 20" iMac Intel &bull; 12" PowerBook G4 &bull; OS X 10.4 &bull; LR 1 &bull; PSE 4</span>

  • Proper use of stacked sequence structure

    Hello
    I have been reading this forum up and down, trying to figure out what the proper use of a stacked sequence struckture is.
    The reason i ask was that almost evryone in this forum thinks it is miss used / and or hides code. And that there is berrer ways of doing it.
    I ask this question, wondering what is the PROPER use of SSS?
    attached is the code so you can see what i am doing. As you will see, the code in the SSS are all the same for each frame, only channel number and numeric indicator is different, making upscaling more efficiant.
    Faster readings is not an issue since i will be slowing it down later on, so we get a visual value evry 5-10 seconds or so.
    keep in mind i am a novice at LabView, and all input is much appreciated.
    Attachments:
    r read 1ch.vi ‏52 KB

    TorbH wrote:
    I tried using array as you showed, but i fail to get it to work properly, well it works as it should but i want it to be able to stop with a button, when i did that only channels 202 - 206 stopped. 201 kept going.
    The reason for me to have this opportunity is that later i will connect channels 207-212. and they also will need to be started/stopped seperatly.
    Put the stop button inside of the loop.  The button is read with the terminal.  The terminal is read outside of the loop, so it will have the same value for every iteration of your loop.  By moving the terminal inside of the loop, your terminal will be read every iteration and you can therefore abort the loop.
    TorbH wrote:
    Also, frome here on out, how would i go ahead and use the data? Can i in a "state machine" use several for loops to perform the same tasks as i had in my previous version?
    A state machine is actually just a single loop.  You can use a state macine with other loops, you just need to be careful of how you pass the data around.
    State Machine
    Producer/Consumer
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Proper use of Iphone

    Does anyone know here the proper use of Iphone?
    1. Im wondering if it's okay if we expose it to sunlight? or sun raise?(walking in the street)
    2. and in Charging mode. we cannot safely remove the iphone in the Computer if its fully charge, is it safe to remove the usb without doing the safely remove?
    3. Is it okay if we charge it overtime? (ex. if we forgot to remove it?)

    1. Im wondering if it's okay if we expose it to sunlight? or sun raise?(walking in the street)
    Not a problem but you don't want to expose an iPhone to extreme heat such as being left in a vehicle.
    2. and in Charging mode. we cannot safely remove the iphone in the Computer if its fully charge, is it safe to remove the usb without doing the safely remove?
    Not required. When the iPhone is connected to your computer, it is not connected as an external drive which requires being ejected or safely removed before being disconnected from the computer.
    3. Is it okay if we charge it overtime? (ex. if we forgot to remove it?)
    Yes. Doing so will not cause any damage.

  • Proper use of undefined

    Proper use of undefined
    Leslie:  I bet you have an answer for this one...
    I am on version 6.0.7.1 (1961)
    My goal is to check and see if a dictionary is not present because its permission was accidently set to NONE.
    When I use this ISF nothing happens...
       if (serviceForm.TRA_INSTRUCTION == undefined)  
       alert('Service form is missing the Instructions dictionary')
    but if I change it to a double negative it works
       if (!serviceForm.TRA_INSTRUCTION != undefined)
       alert('Service form is missing the Instructions dictionary')
    Is this the way that the use of "undefined" was intended - or did I miss something in class.   Like I said, the double negative works fine,  But I would think that "equal to undefined" would work too.
    Thank you
    Daniel

    What you're trying to do is figure out if the dictionary object is defined. The more technically correct expression to do this would be to compare the typeof the object (ie, typeof serviceForm.TRA_INSTRUCTION) to "undefined" -- that would work with an equivalence expression. A longer discussion of, or reference to, object usage in JavaScript should ensue, but it's Saturday. (I think your original attempt is a little like comparing values in a relational database to null -- nothing is ever equal

  • Proper Use of States

    I have a question about how to properly use states.
    I am developing an application that requires login.
    I have two primary states, Authenticated and Unauthenticated. Once the user authenticates successfully, they are taken from the Unauthenticated state to the Authenticated state.
    Under the Authenticated state, I have a menu bar. When a menu item on the menubar is clicked, the application switches to a sub-state of the authenticated state that contains a TitleWindow with the content that I want to display. When the user clicks the close button of the TitleWindow, the application switches back to the Authenticated state.
    For those of you that know, is this proper use of States in Flex?

    As you can see in this sample code, the big factor is the size of the first view in the ViewStack. All the other views "might" be limited based on the size of the first view.
    The first view does not have to necessarily display first, that can happen programmatically, so at startup you could set the ViewStack selectedIndex to something other than 0.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      verticalGap="20" horizontalAlign="center">
      <mx:LinkBar dataProvider="{vs1}"/>
      <mx:ViewStack id="vs1">
        <mx:VBox label="One" width="300" height="200" backgroundColor="0xFFFFFF"/>
        <mx:VBox label="Two" width="600" height="400" backgroundColor="0x00FF00"/>
        <mx:VBox label="Three" width="150" height="100" backgroundColor="0x0000FF"/>
      </mx:ViewStack>
      <mx:Spacer height="50"/>
      <mx:LinkBar dataProvider="{vs2}"/>
      <mx:ViewStack id="vs2">
        <mx:VBox label="One" width="600" height="400" backgroundColor="0xFFFFFF"/>
        <mx:VBox label="Two" width="300" height="200" backgroundColor="0x00FF00"/>
        <mx:VBox label="Three" width="150" height="100" backgroundColor="0x0000FF"/>
      </mx:ViewStack>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Can't use MySQL connectionpool?

    I write two javabean in the package "lyo.bbs.xml...".I works well if I don't use MySQL ConnectionPool.But the jsp compiler report error if I use MySQL ConnectionPool in javabean.
    One of my javabean is:"
    ResultSet rs = null;
         Statement stm = null;
         Connection conn = null;
         String sql = "select * from problem";
         //String url = "jdbc:mysql://localhost:3306/test";
         public ReadData(){
              try{
              Context ctx=new InitialContext(); <------If I use it jsp report error :(
              DataSource ds=(DataSource)ctx.lookup("java:comp/env/jdbc/mysql");
              conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(sql);
         }catch(Exception e){
              System.out.println(e.toString());
         public List readD(){
              List booklist=new ArrayList();
              Readxml readbean=null;
              try{
              while(rs.next()){
                   readbean=new Readxml();
                   readbean.setId(rs.getInt("id"));
                   readbean.setName(rs.getString("name"));
                   readbean.setTitle(rs.getString("title"));
                   readbean.setContent(rs.getString("content"));
                   readbean.setTime(rs.getString("time"));
                   booklist.add(readbean);
    ////////////////////////////second javabean//////////////
    public void setId(int id){
    this.id=id;
    public int getId(){
    return this.id;
    .............. .........getter and setter method............. ...........
         public Element getXml(Document doc){
              Element root=doc.createElement("guestbook");
              NumberFormat idformat=NumberFormat.getCurrencyInstance(Locale.US);
              Element temp=doc.createElement("id");
              temp.appendChild(doc.createTextNode(idformat.format(this.getId())));
              root.appendChild(temp);
              temp=doc.createElement("name");
              temp.appendChild(doc.createTextNode(this.getName()));
              root.appendChild(temp);
              temp=doc.createElement("Title");
              temp.appendChild(doc.createTextNode(this.getTitle()));
              root.appendChild(temp);
              temp=doc.createElement("content");
              temp.appendChild(doc.createTextNode(this.getContent()));
              root.appendChild(temp);
              temp=doc.createElement("time");
              temp.appendChild(doc.createTextNode(this.getTime()));
              root.appendChild(temp);
              return root;
    //////////////////////////////End code////////////////////
    My jsp file is:
    <%@page contentType="text/html;charset=gb2312" import="lyo.bbs.xml.*,java.util.*"%>
    <html>
    <body>
    <%
    Readxml readbean;
    ReadData data=new ReadData();
    List list=data.readD();
    Iterator iter=list.iterator();
    %>
    <table border="1" bgcolor="#cceeee">
    <tr>
    <td>Topic</td><td>Name</td><td>Post time</td>
    </tr>
    <%
    while(iter.hasNext()){
         readbean=(Readxml)iter.next();
    %>
    <tr>
    <td><a href="showtitle.jsp?id=<%=readbean.getId()%>"><%=readbean.getTitle()%></a></td>
    <td><%=readbean.getName()%></td>
    <td><%=readbean.getTime()%></td>
    //////////////////error is://////////////////
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /showtopic.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\tomcat\work\Standalone\localhost\bbs\showtopic_jsp.java:7: package lyo.bbs.xml does not exist
    import lyo.bbs.xml.*;
    ^
    C:\tomcat\work\Standalone\localhost\bbs\showtopic_jsp.java:51: cannot resolve symbol
    symbol : class Readxml
    location: class org.apache.jsp.showtopic_jsp
    Readxml readbean;
    ^
    An error occurred at line: 6 in the jsp file: /showtopic.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\bbs\showtopic_jsp.java:52: cannot resolve symbol
    symbol : class ReadData
    location: class org.apache.jsp.showtopic_jsp
    ReadData data=new ReadData();
    ^
    An error occurred at line: 6 in the jsp file: /showtopic.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\bbs\showtopic_jsp.java:52: cannot resolve symbol
    symbol : class ReadData
    location: class org.apache.jsp.showtopic_jsp
    ReadData data=new ReadData();
    ^
    An error occurred at line: 16 in the jsp file: /showtopic.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\bbs\showtopic_jsp.java:68: cannot resolve symbol
    symbol : class Readxml
    location: class org.apache.jsp.showtopic_jsp
         readbean=(Readxml)iter.next();
    ^
    //////////////////////////////End error////////////////////////
    But I have the package lyo.bbs.xml.. really.If I don't use MySQL Pool (java:comp/env/jdbc/mysql)it can work property.
    I add the content in the server.xml and I registe in mysql console.
    /////////////////////////////server.xml///////////////////////////////////
    <Context className="org.apache.catalina.core.StandardContext" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper" cookies="true" crossContext="false" debug="0" displayName="Welcome to Tomcat" docBase="C:\tomcat\webapps\ROOT\bbs" mapperClass="org.apache.catalina.core.StandardContextMapper" path="/bbs" privileged="false" reloadable="false" swallowOutput="false" useNaming="true" wrapperClass="org.apache.catalina.core.StandardWrapper">
                             <Resource auth="Container" description="mysql BBS XML Testing " name="jdbc/mysql" scope="Shareable" type="javax.sql.DataSource"/>
                             <ResourceParams name="jdbc/mysql">
                                  <parameter>
                                       <name>factory</name>
                                       <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                                  </parameter>
                                  <parameter>
                                       <name>url</name>
                                       <value>jdbc:mysql://localhost:3306/test</value>
                                  </parameter>
                                  <parameter>
                                       <name>password</name>
                                       <value>qijiashe</value>
                                  </parameter>
                                  <parameter>
                                       <name>maxActive</name>
                                       <value>4</value>
                                  </parameter>
                                  <parameter>
                                       <name>maxWait</name>
                                       <value>5000</value>
                                  </parameter>
                                  <parameter>
                                       <name>driverClassName</name>
                                       <value>org.gjt.mm.mysql.Driver</value>
                                  </parameter>
                                  <parameter>
                                       <name>username</name>
                                       <value>lyo</value>
                                  </parameter>
                                  <parameter>
                                       <name>maxIdle</name>
                                       <value>2</value>
                                  </parameter>
                             </ResourceParams>
                             <ResourceLink global="jdbc/mysql" name="jdbc/mysql" type="javax.sql.DataSource"/>
                        </Context>
    Anyone can help me?

    I use Weblogic6.1's ConnectionPool and it works well.It MySQL' problem?Why?

  • How to use the ConnectionPool in the Classes12.jar?

    Who can tell me ,how to use the ConnectionPool in the classes12.jar of oracle817?

    Hi 415234,
    Pardon me if I am stating the obvious here, but are you familiar with the acronym, "RTFM"? I believe it is applicable here. Please refer to chapter 15 ("Connection Pooling and Caching") of the "Oracle8i JDBC Developer's Guide and Reference".
    Thereis also a Connection Pooling Sample Application available at Oracle's OTN Web site.
    Good Luck,
    Avi.

  • Proper using of index for parallel statement execution

    Hi all,
    I've created index for my table
    CREATE INDEX ZOO.rep184_med_arcdate ON ZOO.rep184_mediate(arcdate);It was before I started to think about parallel statement execution. As far as I've heard I should alter my index for proper using with parallel hint. Could you please suggest the way to go?

    marco wrote:
    Hi all,
    I've created index for my table
    CREATE INDEX ZOO.rep184_med_arcdate ON ZOO.rep184_mediate(arcdate);It was before I started to think about parallel statement execution. As far as I've heard I should alter my index for proper using with parallel hint. Could you please suggest the way to go?when all else fails Read The Fine Manual
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements006.htm#autoId63

  • Proper use of installFromAirFile() function in ApplicationUpdater

    We have an AIR client app that is composed of several sub programs. We want to be able to push out automatic updates to all the programs. We have a system set up so that each program can download its own update. For reliability purposes we would like to instead download one large AIR package and have the sub programs install themselves from AIR packages on the local drive.
    According to the documentationn found here:
    http://help.adobe.com/en_US/AIR/1.5/jslr/air/update/ApplicationUpdater.html#installFromAIR File%28%29
    You are supposed to be able to install from a locally stored AIR file but I can't seem to get it to work within a test program. Can anyone give me a hand working out the proper syntax?

    So I managed to figure it out, sorta.
    I didn't end up using the installFromAirFile() function at all. I was able to use the applicationUpdater normally by just pointing it to a local update.xml which pointed it to a local update.air file. Here is what I did.
    private function Update():void
         var update:File = File.applicationDirectory;
         update =  update.resolvePath("Update.updaterTest.xml");
         var updater:ApplicationUpdater = new ApplicationUpdater();
         updater.updateURL = update.url;
         updater.addEventListener(UpdateEvent.INITIALIZED, onUpdateInit);
         updater.addEventListener(DownloadErrorEvent.DOWNLOAD_ERROR, onErrorEvent);
         updater.addEventListener(ErrorEvent.ERROR, onErrorEvent);
         updater.addEventListener(StatusFileUpdateErrorEvent.FILE_UPDATE_ERROR, onErrorEvent);
         updater.addEventListener(StatusUpdateErrorEvent.UPDATE_ERROR, onErrorEvent);
         updater.initialize();
    private function onUpdateInit(event:UpdateEvent):void
         event.currentTarget.checkNow();
    private function onErrorEvent(event:ErrorEvent):void
         Alert.show(event.toString());
    With the update.xml formatted like this.
    <?xml version="1.0" encoding="utf-8"?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
      <version>1.1</version>
      <url>app:/updaterTest.air</url>
      <description>
        <![CDATA[
          Update
        ]]>
      </description>
    </update>
    This seems to work like a charm.

  • Proper use of the term "Podcast"

    A media company recently started advertising that they "Podcast" recent shows. In reality, they offer a program that listeners can down load and install. From there, the software allows you to access, listen to and save mp3 files to one's hardrive. From there, they can be imported to iTunes.
    Their files are not accessible directly from iTunes in the Podcast section of the Music Store.
    Is this a proper and legal use of the term "Podcast"?

    As I understand it, a podcast is something that is automatically fetched from the Internet and added to your portable audio player, most often via RSS to iTunes to iPod. The term "podcast" existed before Apple built the feature right into iTunes, so despite the fact that the name refers to iPods, the term isn't limited podcasts listed in the iTunes Music Store.
    In this specific case, I think you're correct in your assumption. Since it doesn't sound like the new episodes are fetched automatically nor are they automatically synched with a portable audio player, I don't think the term "podcast" should be used. However, people misuse computer terms all the time, even big media companies, so I wouldn't get too upset about it.

  • Linking error by using oracle11.1.0 OCCI in VS 2008 (Windows 64Bit)

    Hello *,
    I try to link a simple program in C++ (VS2008, Windows Professional 64 Bit) but I stiill get the LNK2001 error :
    error LNK2001: unresolved external symbol "public: static void __cdecl oracle::occi::Environment::terminateEnvironment...
    error LNK2001: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment
    I use the simple example from this thread Oracle 10g and OCCI in Visual Studio 2008
    but it doesn't work.
    Here my command line options in VS Project (Release):
    C/C++ Command Line: /O2 /Oi /GL /I "G:\OracleDB\product\11.1.0\db_1\OCI\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Gy /Fo"Release\\" /Fd"Release\vc90.pdb" /W3 /nologo /c /Zi /TP /errorReport:prompt
    Linker:
    /OUT:"G:\WissArbeit\TestOracleCLI\Release\TestOracleCLI.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"G:\Walther\Vesuch2\instantclient-basic-win-x86-64-11.1.0.7.0\instantclient_11_1\vc9" /MANIFEST /MANIFESTFILE:"Release\TestOracleCLI.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"G:\WissArbeit\TestOracleCLI\Release\TestOracleCLI.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT oraocci11.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
    PATH=G:\Walther\Vesuch2\instantclient-basic-win-x86-64-11.1.0.7.0\instantclient_11_1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jre6\bin;C:\Program Files (x86)\Tortoise SVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\
    The folder ...instantclient-basic-win-x86-64-11.1.0.7.0\instantclient_11_1\vc9 contains
    oraocci11.dll
    oraocci11.dll.manifest
    oraocci11.lib
    oraocci11d.dll
    oraocci11d.dll.manifest
    oraocci11.lib
    downloaded from http://www.oracle.com/technology/tech/oci/occi/occidownloads.html
    Can somebody say what is wrong?
    Thanks
    Christina

    Hi Christina,
    This is what I did using Visual Studio 2008 Professional Edition on Windows Server 2008 64-Bit:
    I downloaded the Instant Client Basic and Instant Client Package - SDK for Windows (x64) from here:
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winx64soft.html
    I then downloaded the OCCI for Visual C++9 (VS 2008)[Windows x64] from here:
    http://www.oracle.com/technology/tech/oci/occi/occidownloads.html
    I think these are the same downloads you used.
    1. I then extracted the Instant Client packages to C:\Temp which created the following directory:
    C:\Temp\instantclient_11_1
    2. The Instant Client SDK was extracted to C:\Temp as well into the following directory:
    C:\Temp\instantclient_11_1\sdk
    3. I extracted the OCCI package and then moved the libraries, dll files, and manifest files into C:\Temp\instantclient_11_1\sdk\lib\msvc\vc9
    4. I copied oraocci11.dll and oraocci11d.dll from C:\Temp\instantclient_11_1\sdk\lib\msvc\vc9 to C:\Temp\instantclient_11_1
    5. I removed oraocci11.lib from C:\Temp\instantclient_11_1\sdk\lib\msvc
    6. I added C:\Temp\instantclient_11_1 to the system path
    7. In Visual Studio 2008 I added the include and library paths as follows:
    Tools -> Options... -> Projects and Solutions -> VC++ Directories
    Platform: x64
    Show directories for:
    Include files -- here I added C:\Temp\instantclient_11_1\sdk\include (I removed all other Oracle include directories for the test)
    Library files -- here I added C:\Temp\instantclient_11_1\sdk\lib\msvc and C:\Temp\instantclient_11_1\sdk\lib\msvc\vc9 (I removed all other Oracle library directories for the test)
    8. Added oraocci11.lib to the linker in Project -> OCCITest Properties... -> Configuration Properties -> Linker -> Input -> Additional Dependencies -> oraocci11.lib
    9. I then built and executed the simple test you linked to above with no errors.
    Here's the build log for the release build:
    Build Log      Build started: Project: OCCITest, Configuration: Release|x64
    Command Lines      Creating temporary file "c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000923843192.rsp" with contents
    /GL /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Fo"x64\Release\\" /Fd"x64\Release\vc90.pdb" /W3 /c /Zi /TP ".\OCCITest.cpp"
    Creating command line "cl.exe @"c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000923843192.rsp" /nologo /errorReport:prompt"
    Creating temporary file "c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000A23843192.rsp" with contents
    /OUT:"C:\My Projects\Test\CPP\OCCITest\x64\Release\OCCITest.exe" /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"x64\Release\OCCITest.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"c:\My Projects\Test\CPP\OCCITest\x64\Release\OCCITest.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE:NO /MACHINE:X64 oraocci11.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
    ".\x64\Release\OCCITest.obj"
    Creating command line "link.exe @"c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000A23843192.rsp" /NOLOGO /ERRORREPORT:PROMPT"
    Creating temporary file "c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000B23843192.rsp" with contents
    /outputresource:".\x64\Release\OCCITest.exe;#1" /manifest
    ".\x64\Release\OCCITest.exe.intermediate.manifest"
    Creating command line "mt.exe @"c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000B23843192.rsp" /nologo"
    Creating temporary file "c:\My Projects\Test\CPP\OCCITest\x64\Release\BAT00000C23843192.bat" with contents
    @echo Manifest resource last updated at %TIME% on %DATE% > ".\x64\Release\mt.dep"
    Creating command line """c:\My Projects\Test\CPP\OCCITest\x64\Release\BAT00000C23843192.bat"""
    Output Window      Compiling...
    OCCITest.cpp
    Linking...
    Generating code
    Finished generating code
    Embedding manifest...
    Results      Build log was saved at "file://c:\My Projects\Test\CPP\OCCITest\x64\Release\BuildLog.htm"
    OCCITest - 0 error(s), 0 warning(s)And here is the output window results for executing the test from within Visual Studio:
    'OCCITest.exe': Loaded 'C:\My Projects\Test\CPP\OCCITest\x64\Release\OCCITest.exe', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\Windows\System32\ntdll.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\kernel32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Temp\instantclient_11_1\oraocci11.dll'
    'OCCITest.exe': Loaded 'C:\Temp\instantclient_11_1\oci.dll', Binary was not built with debug information.
    'OCCITest.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\advapi32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\psapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_99b61f5e8371c1d4\msvcr90.dll', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_99b61f5e8371c1d4\msvcp90.dll', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\Temp\instantclient_11_1\oraociei11.dll', Binary was not built with debug information.
    'OCCITest.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\nsi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\shell32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\gdi32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\user32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\ole32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\winmm.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\oleacc.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\IPHLPAPI.DLL', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\dhcpcsvc.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\dnsapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\secur32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\winnsi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\dhcpcsvc6.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\crypt32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\msasn1.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\userenv.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\dbghelp.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\imm32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\msctf.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\lpk.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\usp10.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_152e7382f3bd50c6\comctl32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\mswsock.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\wship6.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\winrnr.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\Wldap32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\nlaapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\NapiNSP.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\rasadhlp.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\WSHTCPIP.DLL', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\netapi32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\cscapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Unloaded 'C:\Windows\System32\netapi32.dll'
    'OCCITest.exe': Unloaded 'C:\Windows\System32\cscapi.dll'
    The program '[3680] OCCITest.exe: Native' has exited with code 0 (0x0).I'm not sure if that is helpful at all, but I didn't have any errors.
    Some of the lines are really long... hopefully that doesn't cause too much difficulty in reading them.
    Regards,
    Mark

Maybe you are looking for

  • Changing the Demo identity to custom identity

    Hi All, I am configuring an Oracle Business Process Management (11.1.1.4.0) environment to be used for production within our organisation. Out-of-the-box the domain successfully starts, with a soa, bam and AdminServer. However, when I change the cert

  • Field BSEG-MWSKZ does not exist in the screen SAPMF05A 0300

    Good day Geniuses, Electronic Bank statement upload error. Unable to correct in FEBA or FEBAN as the captioned error is received when an attempt to post is made. Thnk you for any help. Sapped

  • Oracle database 11g rel 2 installation

    hi gurus i have experienced strange experience while installing oracle database 11g rel 2 on vmware i will provide my system config os:win xp proff sp3 (vmware) 32 bit ram: 3.0(customized) hs dsk: 50gb i have popped up with this message File not foun

  • Auto-hiding of bookmarks panel rarely works

    I've seen a few posts on this subject. I agree with those finding it very annoying when the bookmarks panel stays open after the page has been loaded. The thing is, it actually does sometimes close automatically, say in one out of ten cases for me. I

  • Undeleting Audiobooks

    I have several audiobooks in my iTunes that I have read. I removed them from iTunes, however, I DID NOT remove them from my iTunes library. How do I get them back to show up in iTunes ?? Thanks