Using Oracle 9i with OCCI in Visual Studio ?

Hi,
I'm trying to setup my environment so that I can work with new VS2008 and OCCI. We are running Orcale 9i 9.2.0.8.0.
So I downloaded "occivc9win32_111060" and unpacked it. There was no "%ORACLE_HOME%\oci\lib\msvc" directory to put it like described, so i created it, then i put this dir on the PATH.
But when compiling (just #include <occi.h> and an emtpy main method) it doesn't find the occi: "occi.h": No such file or directory
What's wrong?
Edited by: [email protected] on Mar 9, 2009 9:14 AM

just dont give up:
i have a common.h
------------------------- CODE--------------------
//This is just my way to make the prog...
// #define USEOCCI
#if defined USEOCCI
     #define WIN32COMMON     //wird gebraucht von OCCI
     #include <occi.h>
#else
     #include <oracl.h>     //wird gebraucht von OLE
     #include <obound.h>
#endif
then go to extras->Options->VC++ Directories (1st Entry on the left side and the 4th option on the left)
add there for OLE: C:\oracle\ora92\oo4o\CPP\INCLUDE /// ATTENTION this is my install path ... take ur path then VC2008 Express
add there for OCCI: C:\oracle\ora92\oci\include
add there for OCCI: C:\oracle\ora92\oci\lib
thats all in options!
after all add existing files to your project (for beeing save all the lib files 'cause they r needed by the .H Files)
not all of them are needed but some of them ... (works in VC2008 by drag and drop)
NOTE occi 9.2 only works in VC++ 6.0

Similar Messages

  • Oracle 10g with c# MS visual studio 2013 ultimate

    i am not able to connect oracle 10g with c#,i get the error :"oracle.dataaccess.client.oracleexception" ie . provider is not compatible with the version of oracle client. plz help

    Hello,
    Welcome to MSDN forum.
    But your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because this is an issue with Oracle data access on VS, I would post issues to Oracle forum:
    https://community.oracle.com/community/developer/english/oracle_database/windows_and_.net for better support.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use Oracle partitioning with JPA @OneToOne reference?

    Hi!
    A little bit late in the project we have realized that we need to use Oracle partitioning both for performance and admin of the data. (Partitioning by range (month) and after a year we will move the oldest month of data to an archive db)
    We have an object model with an main/root entity "Trans" with @OneToMany and @OneToOne relationships.
    How do we use Oracle partitioning on the @OneToOne relationships?
    (We'd rather not change the model as we already have millions of rows in the db.)
    On the main entity "Trans" we use: partition by range (month) on a date column.
    And on all @OneToMany we use: partition by reference (as they have a primary-foreign key relationship).
    But for the @OneToOne key for the referenced object, the key is placed in the main/source object as the example below:
    @Entity
    public class Employee {
    @Id
    @Column(name="EMP_ID")
    private long id;
    @OneToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ADDRESS_ID")
    private Address address;
    EMPLOYEE (table)
    EMP_ID FIRSTNAME LASTNAME SALARY ADDRESS_ID
    1 Bob Way 50000 6
    2 Sarah Smith 60000 7
    ADDRESS (table)
    ADDRESS_ID STREET CITY PROVINCE COUNTRY P_CODE
    6 17 Bank St Ottawa ON Canada K2H7Z5
    7 22 Main St Toronto ON Canada     L5H2D5
    From the Oracle documentation: "Reference partitioning allows the partitioning of two tables related to one another by referential constraints. The partitioning key is resolved through an existing parent-child relationship, enforced by enabled and active primary key and foreign key constraints."
    How can we use "partition by reference" on @OneToOne relationsships or are there other solutions?
    Thanks for any advice.
    /Mats

    Crospost! How to use Oracle partitioning with JPA @OneToOne reference?

  • How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?

    How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
    Here is a fictional sample layout of the data I have from My_Source_Query:
    Customer | VIN | Year | Make | Odometer | ... followed by 350 more columns/fields
    123 | 321XYZ | 2012 | Honda | 1900 |
    123 | 432ABC | 2012 | Toyota | 2300 |
    456 | 999PDQ | 2000 | Ford | 45586 |
    876 | 888QWE | 2010 | Mercedes | 38332 |
    ... followed by up to 25 more rows of data from this query.
    The exact number of records returned by My_Source_Query is unknown ahead of time, but should be less than 25 even under extreme situations.
    Here is how I would like the data to be:
    Column1 |Column2 |Column3 |Column4 |Column5 |
    Customer | 123 | 123 | 456 | 876 |
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE |
    Year | 2012 | 2012 | 2000 | 2010 |
    Make | Honda | Toyota | Ford | Mercedes|
    Odometer | 1900 | 2300 | 45586 | 38332 |
    ... followed by 350 more rows with the names of the columns/fields from the My_Source_Query.
    From reading and trying many, many, many of the posting on this topic I understand that the unknown number or rows in My_Source_Query can be a problem and have considered working with one row at a time until each row has been converted to a column.
    If possible I'd like to find a way of doing this conversion from rows to columns using a query instead of scripts if that is possible. I am a novice at this so any help is welcome.
    This is a repost. I originally posted this question to the wrong forum. Sorry about that.

    The permission level that I have in the Oracle environment is 'read only'. This is also be the permission level of the users of the query I am trying to build.
    As requested, here is the 'create' SQL to build a simple table that has the type of data I am working with.
    My real select query will have more than 350 columns and the rows returned will be 25 rows of less, but for now I am prototyping with just seven columns that have the different data types noted in my sample data.
    NOTE: This SQL has been written and tested in MS Access since I do not have permission to create and populate a table in the Oracle environment and ODBC connections are not allowed.
    CREATE TABLE tbl_MyDataSource
    (Customer char(50),
    VIN char(50),
    Year char(50),
    Make char(50),
    Odometer long,
    InvDate date,
    Amount currency)
    Here is the 'insert into' to populate the tbl_MyDataSource table with four sample records.
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    SELECT "123", "321XYZ", "2012", "Honda", "1900", "2/15/2012", "987";
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("123", "432ABC", "2012", "Toyota", "2300", "1/10/2012", "6546");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("456", "999PDQ", "2000", "Ford", "45586", "4/25/2002", "456");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("876", "888QWE", "2010", "Mercedes", "38332", "10/13/2010", "15973");
    Which should produce a table containing these columns with these values:
    tbl_MyDataSource:
    Customer     VIN     Year     Make     Odometer     InvDate          Amount
    123 | 321XYZ | 2012 | Honda      | 1900          | 2/15/2012     | 987.00
    123 | 432ABC | 2012 | Toyota | 2300 | 1/10/2012     | 6,546.00
    456 | 999PDQ | 2000 | Ford     | 45586          | 4/25/2002     | 456.00
    876 | 888QWE | 2010 | Mercedes | 38332          | 10/13/2010     | 15,973.00
    The desired result is to use Oracle 9i to convert the columns into rows using sql without using any scripts if possible.
    qsel_MyResults:
    Column1          Column2          Column3          Column4          Column5
    Customer | 123 | 123 | 456 | 876
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE
    Year | 2012 | 2012 | 2000 | 2010
    Make | Honda | Toyota | Ford | Mercedes
    Odometer | 1900 | 2300 | 45586 | 38332
    InvDate | 2/15/2012 | 1/10/2012 | 4/25/2002 | 10/13/2010
    Amount | 987.00 | 6,546.00 | 456.00 | 15,973.00
    The syntax in SQL is something I am not yet sure of.
    You said:
    >
    "Don't use the same name or alias for two different things. if you have a table called t, then don't use t as an alais for an in-line view. Pick a different name, like ordered_t, instead.">
    but I'm not clear on which part of the SQL you are suggesting I change. The code I posted is something I pieced together from some of the other postings and is not something I full understand the syntax of.
    Here is my latest (failed) attempt at this.
    select *
      from (select * from tbl_MyDataSource) t;
    with data as
    (select rownum rnum, t.* from (select * from t order by c1) ordered_t), -- changed 't' to 'ordered_t'
    rows_to_have as
    (select level rr from dual connect by level <= 7 -- number of columns in T
    select rnum,
           max(decode(rr, 1, c1)),
           max(decode(rr, 2, c2)),
           max(decode(rr, 3, c3)),
           max(decode(rr, 4, c3)),      
           max(decode(rr, 5, c3)),      
           max(decode(rr, 6, c3)),      
           max(decode(rr, 7, c3)),       
      from data, rows_to_have
    group by rnumIn the above code the "select * from tbl_MyDataSource" is a place holder for my select query which runs without error and has these exact number of fields and data types as order shown in the tbl_MyDataSource above.
    This code produces the error 'ORA-00936: missing expression'. The error appears to be starting with the 'with data as' line if I am reading my PL/Sql window correctly. Everything above that row runs without error.
    Thank you for your great patients and for sharing your considerable depth of knowledge. Any help is gratefully welcomed.

  • Can I use Oracle IPM with a third party content managemen system?

    Hello,
    Our client has a requirment to use Oracle IPM with a non-Oracle content management system. That is they don't want to Oracle UCM. Is it possible? If yes, can you please direct me to some kind of documentation.
    Any help is greatly appreciated.
    Regards
    Abhishek

    I think you should draw a scheme of your architecture for yourself.
    An A/P solution consists of:
    - scanning (hence, ODC/ODDC)
    - repository of images (IPM based on UCM)
    - workflows (BPM as a part of IPM license)
    - connector to an application (usually, Oracle EBS Adapter is used here)
    If you don't intend to use any part of the solution (e.g. you have a different ERP system than EBS, you have your own repository), you can replace it with your own parts. However, be aware that you will have take care of the integration - Oracle can integrate for you only those parts that Oracle has under control (ODC is integrated to UCM/IPM, IPM/UCM is integrated to EBS, workflows know how to call UCM/IPM services). Of course, it uses open standards (web services or RIDC), so you may implement the integration yourself.

  • Use Oracle Reports with Jdeveloper 11

    Hi,
    My next question. How to use Oracle Reports with jdeveloper 11. I have more oracle reports (used with a existing forms application) and i need to migrate this application to web-adf application. I think that is very powerful to use this oracle definition reports but i not know ho to do it.
    thanks,
    Jordi

    Read the publishing reports manual of Oracle reports to see how to Web enabled your Oracle reports. You can then invoke them from an ADF application either by calling a URL or using a Web service interface.

  • How to Use Oracle 8i with MapX?

    I am trying to work with oracle 8i 1.6 and mapX 4.5 but un-able to do so. I tried by adding server layer but couldn't do so.
    Help !!

    Crossposted: Re: How to use Oracle partitioning with JPA @OneToOne reference?

  • Editing pages created using dreamweaver with microsoft's visual studio express

    Here's a quick, somewhat vague, question for anyone who might have an answer. Is there a trick to editing pages created using dreamweaver with Microsoft Visual Studio Express? The reason I ask is I recently finished a web site for my first client who now wants to make edits herself using the program she uses, that being Microsoft. I thought it would be as easy as pulling the html files from the server (or the usb flash drive i gave her), making changes and then putting them back to the server, but apparently she is having some problems. I'm meeting with her soon. I have no experience with any other programs, other than Adobe, so I don't know how much good I'll be in helping her. Maybe it's an easy question, maybe not. Any info appreciated. Thanks!

    David wrote -
    Dreamweaver template commands are all wrapped in HTML comments, so they
    shouldn't cause any problems. They should simply be treated as comments.
    However, the concept of editable and locked regions will be ignored.
    Hi David, I meant the templates with the dwt extension, not the html files that are created from them. The full version of VS will recognize the dwt extension as 'Dynamic Web Template' but as this is a microsoft extension it does not recognize the code for editing and shows a large number of errors, (before anyone comments the dwt file extension is used by a number of other programs, all referring to a different file type).
    PZ

  • Help with C# Errors (Visual Studio 2013)

    Hello, I am working on a console application in Visual C#, with Visual Studio 2013. I have been experiencing two specific errors several times, but I am just beginning to learn C#, so I do not know the cause of these errors or how to fix them.
    I am using a console class (Console.WriteLine) and it is telling me that "The name 'Console' does not exist in the current context." I do not know what this means, or what is causing it. Because it is referring to the word Console as a "name"
    I think I may be incorrectly using the term "Console," but I feel like I have no way of knowing so.
    I am also receiving an error telling me that  "A using clause must precede all other elements defined in the namespace except extern alias declarations." Again, I have no idea what this means. If anyone could provide some help or explain to
    me what is causing these errors, I would greatly appreciate it. Thank you.

    Hello,
    Welcome to MSDN forum.
    But your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because this is an issue with Oracle data access on VS, I would post issues to Oracle forum:
    https://community.oracle.com/community/developer/english/oracle_database/windows_and_.net for better support.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to manage connectivity between Oracle 11g &9i Database and Visual Studio 2010 professional in window 7

    Hi,
     I am not able to resolve the error of
    “ORA-12514: TNS:listener does not currently know of service requested in connect descriptor”
    Below Link is the indication,  related to that error.

    Hi Surbhi.Gupta,
    Thank you for posting in MSND forum.
    According to your descriptiom, I suggest you could try the following blog to connect to Oracle from Visual Studio check your issue again.
    Reference:
    http://blogs.msdn.com/b/kaevans/archive/2009/07/18/connecting-to-oracle-from-visual-studio.aspx
    In addition, as you said the error message, I did some research about this error message. So I suggest you could refer then following thread to check your error, maybe you will get some useful message.
    http://dba.stackexchange.com/questions/36370/oracle-11g-listener-fails-with-ora-12514-and-ora-12505-errors
    However, since this issue is related to the third-party database oracle, so if possible, I suggest you could try to post your issue directly to this Oracle official website:http://www.oracle.com/us/corporate/contact/about-your-account-070507.html
    , you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Release management with Azure and Visual Studio Online (Cloud TFS)

    What strategy would you use to manage the releasing of versioned software to Azure cloud services (web and worker roles)? We are not looking for continuous integration. We are using Visual Studio 2013 and Visual Studio Online (Cloud TFS).
    At one point, we were releasing straight from Visual Studio using the Azure Cloud Project Publish tool. This is really bad practice in my opinion as you can never be sure what you are really releasing. Additionally, there is no automated control on the labeling
    or branching of code, or the running of unit tests and code analysis checks.
    Next, we employed Release builds on Visual Studio Online. Before deployment, one would edit the appropriate Build Definition (whether it be for Test or Production by and filling in the code label (under the "Get Version" build property) that is to
    be released. This would then get the appropriate code (by the label specified), build it, and release it to whatever cloud service is specified in the targeted Cloud Project profile (this is using the AzureContinuousDeployment.11.xaml template).
    There is still a degree of manual intervention involved. Also, the fact that a version of code is built every time before it is released is not ideal (as far as I understand it would be better if it was packaged once).
    Microsoft Release Management tools
    look ideal for the job, but are not supported with Visual Studio Online.
    Is there a better way of handling our releases?

    /waves hand.. These are not the tools you seek. You are looking for continuous integration.
    Although CI has the word continuous in there, it does not mean "all the time, every checkin". It can easily refer only to those bits you want to release - -and the way to tell the system which bits you want released is to merge them to a Releases
    branch.
    If you do this, not only do you get all the joy of controlled CI, but you guarantee what you release is exactly what is controlled in your SCM - under the Releases branch, preferably tagged or otherwise noted as a particular release. That means you can also
    rollback to a previous release by simply reverting to a previous release in your SCM!
    Of course you don't have to let it happen automatically, you can set it up to build 'continually' and then remove the check on the SCM to see if any changes have been committed. You can replace this with the manual build button.

  • Crystal report with chart und Visual studio 2008

    Hi, I have a question.
    It is possible to affect a dynamic Title of a chart in Crystal Report.
    I want to use the same Report to make different report and I want to know if we can affect the Text property of the Chart with the code-behind from Visual Studio.
    Thanks for your response

    I don't believe it's possible to programatically change the text boxes of a chart, but you could delete the title and use a formula in it's place.

  • How to control which Configuration File a package Opens with in MS Visual Studio 2008 ?

    When running our jobs, I know which Configuration File is being used, as it's specified in the path.
    But when opening SSIS Jobs in MS Visual Studio, lets say there is four different Config files.
    How do you control which one is used when you are working with the job in Visual Studio?
    For example in the above screen, you can 'Add' or 'Edit' or 'Remove' Configurations but you can seem to say
    "Reload this package with x Configuration", or "Select this particular one at the moment" for instance?

    The configuration file mentioned last in the above screen is the one loaded last and the values of this file are applied. You can specify the sequence of the file with the arrow buttons on the right in case if you want a different config file to be loaded
    in development and then change them back when you are deploying the package as a job. 
    Surender Singh Bhadauria
    My Blog

  • SAP logon pad with NCo and visual studio 2003

    Hi All,
    I'm struggling to find a way in visual studio 2003 utilising the dot net connector to allow the user to select the SAP system, client user name and password in a similar way that happens when done with activeX controls.
    E.g. with ActiveX this sort of code:
    Dim sapConn As Object 'Declare connection object
    Set sapConn = CreateObject("SAP.Functions") 'Create ActiveX object
    If sapConn.Connection.Logon(0, False) <> True Then
    The false in the last line prevents a silent logon i.e. a little pop up window is created with the server, client etc. for the user to select and fill in.
    I have been trying to use methods like availabledestinations and getdestinationbyname as well as the destinationname property of the saplogon proxy I dropped on my form. In fact I can see all the destinations when I drop down on the destinationname property on the proxy logon object. I though of maybe binding this to a list box but I can't seem to get that to work.
    I also tried setting the SAPgui value to 0,1 or 2 on the proxy logon object but this had no effect.
    Is there not a simple way of doing this similar to the ActiveX approach?
    PS. This is a windows forms project and not a web project.
    Thanks,
    Grant.

    Hi Jitesh,
    Thanks for the quick response!
    I declared _e as an iDictionaryEnumerator, is that correct?
    So the code looks like this:
    Dim _e As IDictionaryEnumerator
            For Each _destEntry As System.Collections.DictionaryEntry In SapLogonDestination1.AvailableDestinations
                Dim _destText As String = _e.Value.ToString
                Dim _destKey As String = _e.Key.ToString
            Next
    I get a Nullreference error: Object reference not set to an instance of an object at the line Dim _destText As String = _e.Value.ToString.
    What have I done wrong?
    Thanks,
    Grant.

  • Many FTP sync timeouts with GoodSync and Visual Studio

    Hi All,
    I'm trying to sync my azure Wordpress website with my local folder trough GoodSync. Analysing fails all the time. Only way to complete it is to pouze it everi 30 sec, wait, continue, repeat until done.
    150105 Error analyzing ftp://waws-prod-am2-015.ftp.azurewebsites.windows.net/site/wwwroot/wp-content/themes: Reading listing: receiving line: [receiving data 23.100.2.124:10001]: Time out
    I'm using GoodSync because editing my azure website trough Visual Studio is not stable eather. When visual studio is opening the recent FTP website, it needs minuts (15+) to open. Looks like its hanging all time. Looks like Visual Studio is trying to
    get directory listning and gets the same problem on the background.
    Firewall disabled. WIFI, cabel internet, all tested. I dont have the problem with non-azure FTP Hosts.
    What can I do to make it work?
    Kinds regards,
    Sven

    Hi,
    First, we need to ensure that this is azure side or googsync issue, I try to use this tool to sync the azure ftp site with my local, it runs as except, I am not familiar with googsync, I don't know the limit size of the files to sync, please
    try to create a clean azure web site to test, if you encounter the same issue, please try to get help from goodsync support:
    http://www.goodsync.com/support
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Upload using upload_blob

    I want to upload a document in Portal from a custom form. I understand that I should use the function wwsbr_api.upload_blob and then use add_item_post_upload. However I do not understand how to use upload_blob from a client browser. The upload_blob r

  • BDC error BM302 : Internal unit &, language & is not maintained

    Hi Experts, I have Unit of measurements defined as below in T006A Tables ( Configured through CUNI tcode) SPRAS MSEHI MSEH3 MSEH6  MSEHT      MSEHL EN        UNT     UNT      UNT       UNIT         Unit HU        UNT     DRB      DRB      Darab     

  • Problems with Printing Large Blocks of Colour in InDesign CS 5.5

    I am hoping someone can help me.  I purchased InDesign CS 5.5 and Konica Konica Magicolor 7450ll Printer for my business. Essentially I am creating A4 sheets with a background colour with three or four lines of white text.  I was advised that InDesig

  • Process for Integrating HD and STD Video in One Sequence?

    Here's the situation, I have footage of an event from 2 cameras.  The customer wants footage from both cameras in the final video.  Naturally when the standard footage is dropped into the timeline it is accompanied with ALOT of black space.  What is

  • Explorer Search Case Sensitive?

    The search functionality in Explorer is case sensitive.  Is there a way to make the search functionality be case insensitive?