How to validate prerequisite for ODP and Oracle Client connection

Hi.
I have a very simple application on .Net that connect to Oracle using ODP (was compiled with Oracle.DataAccess dll 10.2).
I want to check "connection prerequisite" (application will be able to connect to DB) before installing this aplication on other computers?
How can I check that ODP.NET version 10.2 or higher is installed on target host (registry check is not enopugh)?
I know that I can check ODP entries in registry - but this will not check Oracle Client and compatibility between client and ODP.
Also, if ODP was installed by ODAC XCopy installation - registry may be not updated by new ODP entry.
And - if I am installing on the computer, DB was installed on, Oracle Client can be not installed separately.
And one more issue: When I tried to run "test connection" method from installation, that use referenced dll on machine, that has only ODAC (with ODP) 11, - "Oracle.DataAccess.Client.OracleException The provider is not compatible with the version of Oracle client at Oracle.DataAccess.Client.OracleInit.Initialize()
at Oracle.DataAccess.Client.OracleConnection..cctor()" error message was thrown (policies for both ODAC 10.2 and 11 are exists in GAC (assembly), pointing to Oracle.DataAccess 11 from ODP 2x bin).
So, How and which components can I check to ensure appropriate versions of ODP and Oracle Client were installed and application will be connected?
Thank you in advance!

Hi,
You could check for the presense of Oracle.DataAccess.dll in the GAC. Bear in mind you'd also want to check the version and whether a policy files exists as well as a newer version + policy file will work too (but not without the policy file).
That wouldn't confirm the install is valid and works though, and I don't know of a way you could easily check that, apart from perhaps simply trying to run a small exe that attempts a connection to the database.
With respect to the type initializer exception, that occurs when ODP cant find the right oraops*.dll or oci.dll, usually due to the wrong one being found, but can also occur if one is not found at all. Quite often this is due to the application including ODP in its bin directory rather than letting ODP get picked up out of the gac. Prior to 10.2.0.2.20, ODP loads the dependencies based in PATH so multiple homes can cause it as well. 10.2.0.2.20 and higher ODP loads dll's based on DLLPATH registry entry.
Hope it helps,
Greg

Similar Messages

  • How can validate the ASM size and free space correctly?

    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,

    *Oracle DBA* wrote:
    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,
    I was having this problem. Im my case i couldn add datafiles to a tablespace despite the fact that i was having a lot of space in the asm. Try rebalancing. It might help. In my case rebalancing also didn work because it seems that there need to be a threshold space in all the disks for the rebalancing to happen which was not in my case, so i had to shrink some unused space in the tablespace and then after gaining the required space I rebalanced the disk and then the disks got rebalanced, also i was able to use the free space that was showing .

  • How to get LASTDAY for each and every month between given dates..

    Hi Friend,
    I have a doubt,How to get LASTDAY for each and every month between given dates..
    for ex:
    My Input will be look like this
    from date = 12-01-2011
    To date = 14-04-2011
    And i need an output like
    31-01-2011
    28-02-2011
    31-03-2011
    is there any way to achieve through sql query in oracle
    Advance thanks for all helping friends

    Here's a 8i solution :
    select add_months(
             trunc(
               to_date('12-01-2011','DD-MM-YYYY')
             ,'MM'
           , rownum ) - 1 as results
    from all_objects
    where rownum <= ( months_between( trunc(to_date('14-04-2011','DD-MM-YYYY'), 'MM'),
                                      trunc(to_date('12-01-2011','DD-MM-YYYY'), 'MM') ) );
    The above two query is worked in oracle 11GActually the first query I posted is not correct.
    It should work better with
    months_between(
       trunc(to_date(:dt_end,'DD-MM-YYYY'),'MM'),
       trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM')
    )Edited by: odie_63 on 12 janv. 2011 13:53
    Edited by: odie_63 on 12 janv. 2011 14:11

  • How to install Workshop for WebLogic and WebLogic Portal?

    Hi All,
    I am new to Weblogic Portal. I would like to start learning Oracle Weblogic Portals..
    Can anyone please guide me, how to install Workshop for WebLogic and WebLogic Portal?
    As per the ""Tutorials – Getting Started with WebLogic Portal"" (http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/tutorials/setup_dev_env.html)
    we need to install the Workshop for WebLogic and WebLogic Portal.
    Please suggest me where should i get the required environments/IDE?
    Thanks,
    Harish.

    Hi Harish
    1. If this is your first time with Weblogic Portal, I would recommend to download the latest Weblogic Portal Software Rel 10.3.2 from this bottom link. Check Accept Radio button, for windows download windows installer. Its about 1 GB file. This software includes Eclipse IDE, Weblogic Server and Weblogic Portal.
    http://www.oracle.com/technology/software/products/wlp/index.html
    2. During the installation process, make sure at one point you select Custom mode (NOT default Typical mode). In next following screens you will see all bundles checked EXCEPT for Samples. So make sure you check Samples Check box both under Weblogic Server and Weblogic Portal. Then proceed. This will install full Weblogic Workshop (Eclipse IDE), Weblogic Server and Weblogic Portal. This is the good installation package. Also it will install samples for Portal and Server. If you select all default typical mode, it will NOT install samples. You can install samples later on also, but its good at installation time itself you select custom and check Samples also.
    3. WLP 10.3.2 uses Eclipse IDE. If you are familiar with Eclipse IDE this should be helpful. Otherwise also, its ok.
    4. For learning WLP, in Eclipse IDE, you need to create Portal EAR Project, then Portal Web Project. Inside portal web project create simple jsp hello world portlets and a simple portal.
    5. For Deploying and Testing Portal application you need to create Portal Domain using config wizard. You can see this from Start -> Programs -> Oracle Weblogic Portal shortcut -> Weblogic Server -> Tools -> Configuration Wizard.
    6. You can start Workshop IDE from Start -> Program Files -> Oracle Weblogic Portal ...-> Eclipse For Weblogic 10.3.2
    Here are the links for quick start guide for portal development. Please do refer them.
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/tutorials/index.html
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/quickstart/newproject.html
    HTH
    Ravi Jegga

  • Volumes and Qtrees set up for SAP and Oracle

    Hi Gurus
    I Need your help Please
    I need to get Volumes and Qtrees set up for SAP and Oracle.
    I found a document from NetApp that helped a lot about the structure.
    But what I donu2019t know and canu2019t find anywhere is sizing for the volumes and Qtrees.
    I really need some guidelines on sizing these below:
    FlexVol saplog
    /usr/sap/SID
    /usr/sap/trans
    /sapmnt/SID
    /home/SIDadm
    /oracle/SID
    /oracle/SID/origlogA
    /oracle/SID/origlogB
    /oracle/SID/oraarch
    /oracle/SID/sapreorg
    /oracle/SID/sapbackup
    /oracle/SID/saparch
    FlexVol sapdata
    /oracle/SID/sapdata1
    /oracle/SID/sapdata2
    /oracle/SID/sapdataN
    FlexVol mirrlogs
    /oracle/SID/mirrlogA
    /oracle/SID/mirrlogB
    Thanks and appreciate your help

    > I have gone through the Inst Guide and I was surprised to see only 50 MB for Oracle software directory ?
    Where did you read that?
    > The sizing given in Installation guide is for typical setup or do we need to size as per our requirement ?
    The sizing give there is for the initial system setup. It does not contain customer specific requirements.
    The usual process is:
    - you contact your hardware vendor
    - you use http://service.sap.com/quicksizer together with him and fill in the data
    - the hardware vendor will offer you the storage and the machines for the setup
    - the vendor configures with you the storage and the necessary filesystem layout based on that sizing
    Each customers setup is different and requires the experience and knowledge from the respective hardware vendor how to set up the system so it performs well.
    You can follow the suggestions given here, this will be enough for the initial setup but the system will grow. This is not taken into account in the installation guide because it's customer specific.
    Markus

  • How to validate XML against XSD and parse/save in one step using SAXParser?

    How to validate XML against XSD and parse/save in one step using SAXParser?
    I currently have an XML file and XSD. The XML file specifies the location of the XSD. In Java code I create a SAXParser with parameters indicating that it needs to validate the XML. However, SAXParser.parse does not validate the XML, but it does call my handler functions which save the elements/attributes in memory as it is read. On the other hand, XMLReader.parse does validate the XML against the XSD, but does not save the document in memory.
    My code can call XMLReader.parse to validate the XML followed by SAXParser.parse to save the XML document in memory. But this sound inefficient. Besides, while a valid document is being parsed by XMLReader, it can be changed to be invalid and saved, and XMLReader.parse would be looking at the original file and would think that the file is OK, and then SAXParser.parse would parse the document without errors.
    <Book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="book.xsd" name="MyBook">
      <Chapter name="First Chapter"/>
      <Chapter name="Second Chapter">
        <Section number="1"/>
        <Section number="2"/>
      </Chapter>
    </Book>
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Book">
    <xs:complexType>
      <xs:sequence>
       <xs:element name="Chapter" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
           <xs:complexType>
            <xs:attribute name="xnumber"/>
          </xs:complexType>
          </xs:element>
         </xs:sequence>
         <xs:attribute name="name"/>
        </xs:complexType>
       </xs:element>
      </xs:sequence>
      <xs:attribute name="name"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    public class SAXXMLParserTest
       public static void main(String[] args)
          try
             SAXParserFactory factory = SAXParserFactory.newInstance();
             factory.setNamespaceAware(true);
             factory.setValidating(true);
             SAXParser parser = factory.newSAXParser();
             parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                                "http://www.w3.org/2001/XMLSchema");
             BookHandler handler = new BookHandler();
             XMLReader reader = parser.getXMLReader();
             reader.setErrorHandler(handler);
             parser.parse("xmltest.dat", handler); // does not throw validation error
             Book book = handler.getBook();
             System.out.println(book);
             reader.parse("xmltest.dat"); // throws validation error because of 'xnumber' in the XSD
    public class Book extends Element
       private String name;
       private List<Chapter> chapters = new ArrayList<Chapter>();
       public Book(String name)
          this.name = name;
       public void addChapter(Chapter chapter)
          chapters.add(chapter);
       public String toString()
          StringBuilder builder = new StringBuilder();
          builder.append("<Book name=\"").append(name).append("\">\n");
          for (Chapter chapter: chapters)
             builder.append(chapter.toString());
          builder.append("</Book>\n");
          return builder.toString();
       public static class BookHandler extends DefaultHandler
          private Stack<Element> root = null;
          private Book book = null;
          public void startDocument()
             root = new Stack<Element>();
          public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
             if (qName.equals("Book"))
                String name = attributes.getValue("name");
                root.push(new Book(name));
             else if (qName.equals("Chapter"))
                String name = attributes.getValue("name");
                Chapter child = new Chapter(name);
                ((Book)root.peek()).addChapter(child);
                root.push(child);
             else if (qName.equals("Section"))
                Integer number = Integer.parseInt(attributes.getValue("number"));
                Section child = new Section(number);
                ((Chapter)root.peek()).addSection(child);
                root.push(child);
          public void endElement(String uri, String localName, String qName) throws SAXException
             Element finished = root.pop();
             if (root.size() == 0)
                book = (Book) finished;
          public Book getBook()
             return book;
          public void error(SAXParseException e)
             System.out.println(e.getMessage());
          public void fatalError(SAXParseException e)
             error(e);
          public void warning(SAXParseException e)
             error(e);
    public class Chapter extends Element
       public static class Section extends Element
          private Integer number;
          public Section(Integer number)
             this.number = number;
          public String toString()
             StringBuilder builder = new StringBuilder();
             builder.append("<Section number=\"").append(number).append("\"/>\n");
             return builder.toString();
       private String name;
       private List<Section> sections = null;
       public Chapter(String name)
          this.name = name;
       public void addSection(Section section)
          if (sections == null)
             sections = new ArrayList<Section>();
          sections.add(section);
       public String toString()
          StringBuilder builder = new StringBuilder();
          builder.append("<Chapter name=\"").append(name).append("\">\n");
          if (sections != null)
             for (Section section: sections)
                builder.append(section.toString());
          builder.append("</Chapter>\n");
          return builder.toString();
    }Edited by: sn72 on Oct 28, 2008 1:16 PM

    Have you looked at the XML DB FAQ thread (second post) in this forum? It has some examples for validating XML against schemas.

  • How to set value for trim and bleed using jsx script?

    I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
    Following is the code I am trying with:
    var _saveName = new File ( root_path +_strFileName+".pdf");
        var _saveOpts = new PDFSaveOptions();
        _saveOpts.printerResolution = 300; 
        var bleedarray = new Array();
         bleedarray[0] =9.00;
         bleedarray[1]=9.00;
         bleedarray[2]=9.00;
         bleedarray[3]=9.00;    
        _saveOpts.bleedOffsetRect = bleedarray;

    I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
    var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
    Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds.

  • I have become a full-time student. How do I adjust for Illustrator and how do I purchase InDesign?

    I have become a full-time student. How do I adjust for Illustrator and how do I purchase InDesign?

    Don't buy of eBay better to go direct to adobe try
    https://www.adobe.com/education/student-eligibility-guide.edu.html
    Regards
    Vividi

  • How to write code  for totals and subtotals in alv programing?

    how to write code  for totals and subtotals in alv programing?

    hi,
    1. <u><b>TOTAL.</b></u>
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_basic.htm
    2. <u><b>How do I add subtotals</b></u>
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    Regards
    Anver

  • Hi. I tried switching my Apple ID email address to my new email address and I don't know how to switch it for iCloud and iTunes. Please help!! It seems like Apple thinks I have two separate accounts, when I just tried to simply change it!

    Hi. I tried switching my Apple ID email address to my new email address and I don't know how to switch it for iCloud and iTunes. Please help!! It seems like Apple thinks I have two separate accounts, when I just tried to simply change it!

    Settings > Store > Sign Out.
    Sign in with the correct ID.

  • Oracle Client 64-bit and Oracle Client 32-bit on the same server

    Hi,
    I have a Windows 2008 server 64-bit with Oracle Client 64-bit and Oracle Client 32-bit installed on different directories (D:\Oracle and D:\Oracle32)
    Is it possible to define for certain applications to use the TNSNAMES entry from the 64-bit Oracle Client
    and for other applications to use the TNSNAMES entry from the 32-bit Oracle Client
    Once I installed the Oracle Client 32-bit (Oracle Client 64-bit version was already installed) and restarted the server I performed a TNSPING and it defaulted to the Oracle Client 32-bit installation path
    Thanks,
    Barry

    Hello,
    When you install a new client on a server, it will update the PATH variable, and add the ORACLE_HOME\bin path to it, at the first place. That explains why the tnsping use the last installed ORACLE_HOME.
    What you can do if you want only to change the default path to the tnsnames is to set the environment variable TNS_ADMIN to the path where the tnsnames you want to use is located. You can modify this variable in your application if you want to use another tnsnames.
    If you want switch from 32 bits to 64 bits client, then you have to modify the PATH variable.
    Hope this will help.
    Best regards,
    Sylvie

  • What do I need to install when I install oralce in linux and oracle client

    What do I need to install when I install oralce in linux and oracle client in windows?
    I want to connect oracle from windows to Linux, what do I need to install or setup? thanks.

    Are you trying to install the DB on Linux from your Windows Box? if so, you need to have an XWindows client on your client. You have to SSH or Telnet into the box, set your DISPLAY variable. In fact, it is all in your documentation for the DB install. We still don't understand what you are exactly asking.
    Do you have direct access to your Linux machine? If so, and it has a graphical GUI, then you can find install guides for most flavors of Linux at dizwell.com. His are most excellent and show examples, but do not go over the XWindows problem. You would have to resolve that first.
    A free XWindows environment for Windows is Cygwin.
    Once the DB is running on Linux then all you do is create a TNS entry on it on your client and it connects. It is the same as setting up a connection to connect to Oracle on a Windows box.

  • I have two iMac's on the same desk. Once iMac pairs with both keyboards and mice.  The other pairs with the mouse, but I cannot get the keyboard to connect.  How do I get a keyboard and mouse to connect to each iMac independently?

    I have two iMac's on the same desk (about a foot apart). One iMac pairs with both keyboards and mice.  The other pairs with the mouse only; I cannot get the keyboard to connect.  How do I get a keyboard and mouse to connect to each iMac independently?

    Antaeus00 wrote:
    I tried sending a request for help,
    But did you succeeed in sending a request for help?
    Did you receive a response? How long has it been since you sent a request?
    but I need someone with more authority to talk to.
    There is no one with more authority than iTunes store support. We herem are only users.

  • I started to download a movie for rent and lost internet connection. Now it tells me to go to my downloads but I can't find them where should I look.

    I started to download a movie for rent and lost internet connection. Now it tells me to go to my downloads but I can't find them where should I look.

    Me too!!! It says check your Downloads, but unable to find Downloads...

  • %ASA-5-305013: Asymmetric NAT rules matched for forward and reverse flows; Connection for tcp src outside:10.159.159.3/49204 dst tru777:10.1.34.19/3389 denied due to NAT reverse path failure

    Hi,
    I have an ASA5510 running version 8.2(5). I have set up a new network on interface Ethernet0/1.777 of the fwl. The firewall works perfectly with remote access VPNs but has now given me the error with the new network that has been set up:
    %ASA-5-305013: Asymmetric NAT rules matched for forward and reverse flows; Connection for tcp src outside:10.159.159.3/49204 dst tru777:10.1.34.19/3389 denied due to NAT reverse path failure
    The difference between the other networks and the new one that I have set up is that this is the first one using a private addressing scheme. I understand that NAT is not allowing something along the way but I cant figure out what needs to change in order to get it to work. My config is as follows:
    interface Ethernet0/1.777
    description TRU 777
    vlan 777
    nameif tru777
    security-level 50
    ip address 10.1.34.17 255.255.255.240 standby 10.1.34.18
    access-list acl_tru777 remark * ALLOW ALL OUTBOUND *
    access-list acl_tru777 extended permit ip any any
    access-list RA-VPN extended permit ip 10.1.34.16 255.255.255.240 10.159.159.0 255.255.255.0
    access-list acl_no-nat extended permit ip 10.1.34.0 255.255.255.0 10.0.0.0 255.0.0.0
    access-list acl_no-nat extended permit ip 10.1.34.0 255.255.255.0 172.16.0.0 255.240.0.0
    access-list acl_no-nat extended permit ip 10.1.34.0 255.255.255.0 192.168.0.0 255.255.0.0
    access-list acl_ra-lock-tru777 extended permit ip 10.1.34.16 255.255.255.240 10.159.159.0 255.255.255.0
    access-list acl_ra-lock-tru777 extended permit ip 10.159.159.0 255.255.255.0 10.1.34.16 255.255.255.240
    ip local pool ra-pool 10.159.159.0-10.159.159.254 mask 255.255.255.0
    nat (tru777) 4 access-list acl_no-nat
    nat (tru777) 2 10.1.34.16 255.255.255.240
    global (outside) 2 x.x.x.x
    crypto isakmp nat-traversal 20
    I think that is everything you should need, if not please just ask.
    Thank you very much in advance,
    Chris

    Hi Julio,
    Here you go:
    FWL01# sh nameif
    Interface                Name                     Security
    Ethernet0/0              outside                    0
    Ethernet0/1              CLIENTS                 50
    Ethernet0/1.314        tru01                      50
    Ethernet0/1.313        dmz01                    50
    Ethernet0/1.316        tru02                      50
    Ethernet0/1.776        dmz776                  50
    Ethernet0/1.777        tru777                     50
    Management0/0       management           100
    FWL01#  sh run nat
    nat (tru02) 1 192.168.3.0 255.255.255.240
    nat (tru777) 4 access-list acl_no-nat
    nat (tru777) 2 10.1.34.16 255.255.255.240
    FWL01#    sh run glob
    global (outside) 1 interface
    global (outside) 2 x.x.x.x
    Thanks,
    Chris

Maybe you are looking for

  • Discoverer in R12

    Hai all, tried installing Discoverer for r12 in the same server where I have oracle applications installed..discovere installation went fine.. made al the changes in the application tier,run autoconfig..now BI is working fine..when I try to start the

  • Today I started getting pop ups while surfing the web. Never had this before. Also I noticed several words on craigslist ads are different colored.

    When I open firefox i am getting a new small browser window opening with some kind of ad (different ad each time). McAfee blocks the ad after about 10 - 15 seconds. I also noticed that while looking at ads on craigslist, a few of the words are differ

  • Combine two reports in query designer using key figure with sap exit

    Hi experts, i want to combine two reports in query designer using key figure with sap exit in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN) to calculate due and not due in two columns in report 2 key figure calculate

  • Safari quit unexpected​ly

    I just did a software update yesterday to bring everything current and now I can't use Safari. Here is the problem details and system configuration: Process:         Safari [221] Path:            /Applications/Safari.app/Contents/MacOS/Safari Identif

  • Error: Account Can be Posted Internally Only

    Hi All, I am trying to make a JE Posting to a P&L account and getting the error message that the account has the indicator ' Automatic Posting only". I checked the GL master and the indicator is not set. Any ideas why this error would be showing up??