Boolean types with entity framework code first and oracle provider

Working in a application that has to work in oracle and sqlServer. In SqlServer we have used "Bit" to store booleans and in oracle number(1).
Have check other threads in this forum, but didnt find any that fix my problem, sorry if this may have been discused before.
We have created a code first model were we find few bool properties mapped to database fields.
for example:
public partial class ZPruebaBooleano
public int Numero { get; set; }
public bool Booleano { get; set; }
Mapped as:
this.ToTable("ZPRUEBABOOLEANO", schema);
this.HasKey<int>(t => t.Numero);
this.Property(t => t.Numero).HasColumnName("NUMERO");
this.Property(t => t.Booleano).HasColumnName("BOOLEANO");
Also, sw added to the application configuration file (for simplicity we have test it without the use of any additional dll):
<oracle.dataaccess.client>
<settings>
<add name="bool" value="edmmapping number(1,0)" />
<add name="byte" value="edmmapping number(3,0)" />
<add name="int16" value="edmmapping number(4,0)" />
<add name="int32" value="edmmapping number(9,0)" />
<add name="int64" value="edmmapping number(18,0)" />
</settings>
</oracle.dataaccess.client>
I am confident that the provider factory read it when creating the model, because it provokes an exception if i add an invalid entry in any of the type names mapped in the file.
As i have find in other forums, this should work. But now i am not sure if should work always, including code first.
I have this exception when i excecute the code (translated from spanish, sorry for any mistake):
Type 'Edm.Boolean[Nullable=False,DefaultValue=]' from 'Booleano' to type'PruebaBooleanos.ZPruebaBooleano' is not compatyble with 'OracleEFProvider.number[Nullable=False,DefaultValue=,Precision=38,Scale=0]'
Its funy that says Precision=38. The database is Number(1), i am sure about that, in fact this is the script:
CREATE TABLE ZPRUEBABOOLEANO
NUMERO NUMBER(15),
BOOLEANO NUMBER(1)
Also, i find it interesting that i was having this mistake even when i was not informing the table i was maping, like if the oracle provider didnt even check if the column was number(anything). Right now is well maped, table and schema.
I have test to create an integer property wrapped by the boolean one, as we can see in this code.
namespace PruebaBooleanos
public partial class ZPruebaBooleano
public int Numero { get; set; }
public bool Booleano
get
return iBooleano == 1 ? true : false;
set
iBooleano = value ? 1 : 0;
public int iBooleano { get; set; }
in this last case i ignored the boolean and mapped the integer.
That worked ok in oracle. But added 2 problems:
1. It fails in SqlServer, because in sql server is bit
2. Cant query the entity model using the boolean property as it is not maped to Database.
I could change the bit field in SqlServer to Number.
But i would like to keep bit in sqlserver and number(1) in oracle.
Anyone had a similar problem?
I am open to any ideas, thanks !!!
libo

It's cool. :)
Sure. I can upload an EDMX file that works against my database if you want to look at it. The relevant parts are probably much like you'd expect. I've removed some columns from this version to make it easier to read.
From the SSDL:
        <EntityType Name="PARAMETER">
          <Key>
            <PropertyRef Name="PARAMETER_CD" />
          </Key>
          <Property Name="PARAMETER_CD" Type="number" Nullable="false" Precision="4" />
          <Property Name="PARAMETER_ACTIVE_INDR" Type="number" Nullable="false" Precision="1" />
        </EntityType>From the CSDL:
<EntityType Name="PARAMETER">
          <Key>
            <PropertyRef Name="PARAMETER_CD" />
          </Key>
          <Property Type="Int16" Name="PARAMETER_CD" Nullable="false" />
          <Property Type="Boolean" Name="PARAMETER_ACTIVE_INDR" Nullable="false" />
        </EntityType>From the C-S mapping:
<EntitySetMapping Name="PARAMETER">
            <EntityTypeMapping TypeName="Model.PARAMETER">
              <MappingFragment StoreEntitySet="PARAMETER">
                <ScalarProperty Name="PARAMETER_ACTIVE_INDR" ColumnName="PARAMETER_ACTIVE_INDR" />
                <ScalarProperty Name="PARAMETER_CD" ColumnName="PARAMETER_CD" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>Also worth noting that the EDMX mapper probably won't set the provider and token correctly:
<Schema Namespace="Model.Store" Alias="Self" Provider="Oracle.DataAccess.Client" ProviderManifestToken="11.2" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">Full version is available at http://www.hiredgoons.ca/DataImport.edmx . This is an early development one so I make no apologies for not renaming columns to something readable. ;) It does work correctly as I've had it in testing (taking data from a 170MB excel file and putting it into Oracle using the model). It was created using DB First.
When you have it load at runtime, you need the application configuration settings to map bool to number(1). If that's in app.config or web.config it'll pick it up. Probably worth noting that if you don't have the configuration setting and you load this, the model doesn't validate correctly. As soon as you try to create a DbContext from it, you get an immediate exception that number(1) doesn't map to boolean.
Edited by: Tridus on Nov 21, 2012 3:37 PM

Similar Messages

  • Entity framework code first inheritance table per type problem

    hello
    i am using ODP.NET version 11.2.0.3.20. i am trying to get entity framework code first to work. one problem i have encountered is with inheritance. i have a "table per type" inheritance scenario. i have 3 tables involved. the base table is called "S_PERIOD" which maps to the base "Period" class. i have a derived table called "S_SEASON_QUARTER" that maps to the derived "Quarter" class. And I have another derived table called "S_SEASON_PRICE_PERIOD" that maps to the derived "PriceBreak" class. for testing purposes i am trying to load all records. the problem is that every class instance ends up being of type "Quarter", which is incorrect. for whatever reason the provider thinks that every "S_PERIOD" record has a corresponding "S_SEASON_QUARTER" record. i took a look at the generated SQL and posted it down below. looking at this SQL it's clear to me why every object ends up being of type "Quarter". It looks like the provider is checking the "C2" field to determine the concrete type to instantiate. the problem however is that the "C2" field value provided by each derived table is ALWAYS equal to "1", which is a problem since this will result in the "case" statement always hitting the second "when" condition. does anyone have any idea how to fix this? thank you
    SELECT
    CASE WHEN (( NOT (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL))) AND ( NOT (("Project2"."C2" = 1) AND ("Project2"."C2" IS NOT NULL)))) THEN '0X' WHEN (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL)) THEN '0X0X' ELSE '0X1X' END AS "C1",
    CAST( "Extent1"."PERIOD_ID" AS number(10,0)) AS "C2",
    "Extent1"."START_DATE" AS "START_DATE",
    "Extent1"."END_DATE" AS "END_DATE",
    "Extent1"."NAME" AS "NAME",
    "Extent1"."TYPE_CODE" AS "TYPE_CODE",
    CAST( "Extent1"."CREATE_USER_ID" AS number(10,0)) AS "C3",
    "Extent1"."CREATE_DATE" AS "CREATE_DATE",
    CAST( "Extent1"."MODIFY_USER_ID" AS number(10,0)) AS "C4",
    "Extent1"."MODIFY_DATE" AS "MODIFY_DATE",
    CASE WHEN (( NOT (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL))) AND ( NOT (("Project2"."C2" = 1) AND ("Project2"."C2" IS NOT NULL)))) THEN NULL WHEN (("Project1"."C2" = 1) AND ("Project1"."C2" IS NOT NULL)) THEN "Project1"."QUARTER_NAME" END AS "C5"
    FROM "DBO_SPACE_DEV"."S_PERIOD" "Extent1"
    LEFT OUTER JOIN (SELECT
         "Extent2"."QUARTER_NAME" AS "QUARTER_NAME",
         CAST( "Extent2"."QUARTER_ID" AS number(10,0)) AS "C1",
         1 AS "C2"
         FROM "DBO_SPACE_DEV"."S_SEASON_QUARTER" "Extent2" ) "Project1" ON ( CAST( "Extent1"."PERIOD_ID" AS number(10,0))) = "Project1"."C1"
    LEFT OUTER JOIN (SELECT
         CAST( "Extent3"."PRICE_PERIOD_ID" AS number(10,0)) AS "C1",
         1 AS "C2"
         FROM "DBO_SPACE_DEV"."S_SEASON_PRICE_PERIOD" "Extent3" ) "Project2" ON ( CAST( "Extent1"."PERIOD_ID" AS number(10,0))) = "Project2"."C1"
    Edited by: 997830 on Apr 3, 2013 8:40 AM

    An update:
    I tried again following this example to the letter:
    Using NuGet to Install and Configure Oracle Data Provider for .NET
    This time I used a console application as described in the example. Yes, I rebuilt the project after the NuGet install.
    I made the appropriate mods to App.config. I get the same error message as with the MVC example above.
    Does the ODP.Net driver really work with EF? If so, can anyone provide me with a working sample project?

  • Entity Framework - Code First - Migration - How to access SQL Server and Oracle using the same context?

    Hello,
    I use Entity Framework code first approach.
    My project is working fine with SQL Server. But, I want to access Oracle too. I want to switch SQL Server and Oracle in run time.
    I am able to access Oracle using "Oracle.ManagedDataAccess.EntityFramework.dl" in a new project.
    But, Is this possible to access SQL Server and Oracle in the same project.
    Thanks,
    Murugan

    This should be possible with a Code-First workflow.  In Code-First the database mapping layer is generated at runtime.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • "Object reference not set to an instance of an object." in Visual Studio 2012 Entity Framework Model-First

    Hello
    We're trying to use a Model-First with Entity Framework in Visual Studio, targeting an Oracle XE 11g installation.
    No matter from what angle we're approaching the issue, we always end up with an "Object reference not set to an instance of an object" in Visual Studio:
    First way:
    - Add new ADO.NET Entity Framework Model to a .NET Framework 4.5 project
    - Empty model
    - Add some entities and associations
    - Set Database Generation Workflow to "Generate Oracle Via T4 (TPT).xaml"
    - Set DDL Generation Template to "SSDLToOracle.tt"
    - Generate Database From Model
    - VS asks for DB connection ==> Click "New Connection"
    - Enter the connection properties to the Oracle XE database. "Test Connection" tells me the connection is okay.
    - Click OK. Visual Studio shows the following error message:
    (here's the image if it's not visible: https://dl.dropboxusercontent.com/u/35614983/vs2012_oracle_ef_error.png)
    We also tried to generate the model in VS2010 and then manually transform it to an EF5 / VS2012 model. At the "Generate Database from Model" step, the same error appeared.
    We also tried to generate the model from database (Database-First approach). Same error.
    My configuration:
    - Windows 7 Ultimate 64-bit
    - Installed Oracle client: ODTwithODAC1120320_32bit.zip, so the version is 11.2.0.3.20
    - Visual Studio 2012 Update 3 (11.0.60610.01)
    Thanks for any hints!
    EDIT: I just read that ODP.NET doesn't seem to support Entity Framework 5, so I tried a new project with Entity Framework 4.1, but I get the same errors.
    EDIT 2: On a 32-bit Windows 7 virtual machine, everything works fine. Seems the problem is only there on my 64-bit Windows 7 machine.

    Sorry for the delay on this one. Let me know if you are still seeing this and I will see if we can get more diagnostic info somehow.
    That error is basically an exception fault. It means a bug or a misconfiguration of Oracle Developer Tools. Can you try to reinstall ODT and see if you notice any unusual errors during install.. and see if a reinstall fixes the problem?

  • Our Java application is built with java 1.4 version and oracle 10g

    Our Java application is built with java 1.4 version and oracle 10g version database, is it possible to upgrade oracle database to 11g?

    is it possible to upgrade
    Yes. SE and the other editions have a migration/upgrade utility, not seeing any mention of that program in the XE license docs. To upgrade to 11gR2 from 10g, the 10g instance must be at patch 10.2.0.2 or higher.
    So if you're a GUI dba, might be out of luck. But the the XE install has the catalog upgrade scripts that need to be run, there is a MOS note explaining the manual upgrade steps.
    Or set up a brand new 11g database instance and datapump your user schema(s) from the 10g instance to the new 11g instance. The database doesn't care what java version you're using, it just does what its told with the data. DDL, DCL, DML ... its not much different. Quite a few new features in 11g.
    But if you're after JVMs that piece is not supported with XE.

  • Code sample using Oracle Provider

    Hi Is any got code sample using Oracle Provider with aspnet app

    Assuming your stored procedure is returning a REF CURSOR, it cannot be done. Oracle's REF CURSORS are read only constructs.
    Justin

  • Calling Oracle stored procedure with out param of user define type from Entity Framework 5 with code first

    Guys i am using Entity Framework 5 code first (I am not using edmx) with Oracle and all works good, Now i am trying to get data from stored procedure which is under package but stored procedure have out param which is user define type, Now my question is
    how i will call stored procedure from entity framework
    Thanks in advance.

    I agree with you, but issue is we have lots of existing store procedure, which we need to call where damn required. I am sure those will be few but still i need to find out.
    If you think you are going to get existing MS Stored Procedures  or Oracle Packages that had nothing to do with the ORM previously to work that are not geared to do simple CRUD operations with the ORM and the database tables, you have a rude awakening
    coming that's for sure. You had better look into using ADO.NET and Oracle Command objects and call those Oracle Packages by those means and use a datareader.
    You could use the EF backdoor, call Oracle Command object and use the Packages,  if that's even possible, just like you can use MS SQL Server Stored Procedures or in-line T-SQL via the EF backdoor.
    That's about your best shot.
    http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx

  • Good or Bad: Repository pattern with Entity framework??

    Suggestions about not to use enttity framework because:
    1) entity framework is itself a Repository pattern
    2) So, what the use of having one more repository pattern over an exisitng repositroy pattern (i.e Entity framework)
    Please suggest.
    Thanks in advance!!

    I've used both nHibernate and the Entity Framework 6 and nHibernate wins hands down as the best orm, despite it's learning curve. ORMs can be massive timesavers as you don't end up writing boiler plate db access code.
    I used 3 different versions on nHibernate over the years. I didn't paticulalry care for any version of nHibernate. I much prefer EF over nHibernate any day of the week, month or year.
    Unlike the previous responder I disagree with testability, each repository should have it's own interface. And if implemented correctly it can save tones of time as you need only mock one or two repository methods rather than 10s or 100s of database
    gateway call using one class per table.
    What? Like a  DAO can't  have an interface, which is just as testable as any repository pattern using an interface when using a test harnerss and testproject to test the DAO? And one has to go beyond some generic repository pattern in
    unit, functional and intergation testing when it comes to data access. 
    Unlike you, I want complete control of the object all aspects of it even in its usage of other DAO(s) that could or would be used, which the  repository pattern doesn't cut it for me. 
    Like I said, I'll take EF over nHibernate, which is much like talking MS SQL Server over Oracle with Oracle being a PITA to work with it.

  • Sorting is wrong with Entity Framework for oracle

    Hi,
    I've downloaded the Entity Framework for Oracle beta and I found a bug. It's easy to repro:
    - Create a model with a simple table
    - Create a dynamic data web app
    - display the content of your table and try to sort
    -> the sql generated is wrong and only sorts on the currently displayed rows and not the entire data.
    Did anyone else notice that?
    Edited by: lnu on 14 févr. 2011 05:51

    Before ODP.NET beta with EF was available I was working with OracleEFProvider from CodePlex (sample alpha version but works with VS2010).
    I found the same issue there. Since I had a source code I managed to find the solution.
    In class which implemented the base class DbExpressionVisitor there was a method: public override ISqlFragment Visit(DbSkipExpression e)
    I had to add sort clause AFTER visiting the expression (which was done too early in previous code).
    As the main idea of DbExpressionVisitor should be the same in case of Oracle provider, this can be the reason of improper sorting in queries with paging.

  • How to use Application Roles with Entity Framework

    How does one call sp_setapprole before a connection used by an Entity Framework object context closes, since the context opens and closes its own connection automatically, as needed? The only relevant event available on a store connection
    (DbConnection ) is StateChange , which does not include a
    ConnectionState of Closing . Attempting to call
    sp_setapprole when ConnectionState is Closed results in, "A severe error occurred on the current command. The results, if any, should be discarded."

    Yes, I realize that I need to call sp_setapprole on an open connection and that I can use
    ExecuteNonQuery or similar mechanisms. What I need to determine is how to do this
    automatically while using the entity framework.
    As I mentioned in my initial inquiry, the EF store connection, which is simply a DbConnection under the covers, does not expose an event (such as Closing) that would allow me to invoke
    sp_setapprole before a connection is closed. The only close event we are given is
    Closed , which is too late to do any good. I'm hoping to avoid burdening our systems with having to manually manage the connection.

  • Enity Framework Code First

    I am trying to get the latest provider for EF to work in Code First environment. I got no issue if I build the model through the wizard by pointing it to my DB, but in Code FIrst I cannot connect. Here are my two connection strings:
              <add name="OracleHR"
                   connectionString="DATA SOURCE=localhost:1521/XE;PASSWORD=****;PERSIST SECURITY INFO=True;USER ID=HR;"
                   providerName="Oracle.DataAccess.Client" />
              <add name="Entities"
                   connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=Oracle.DataAccess.Client;provider connection string=&quot;DATA SOURCE=localhost:1521/XE;PASSWORD=****;PERSIST SECURITY INFO=True;USER ID=HR&quot;" providerName="System.Data.EntityClient" />
    My second connection string works fine and I can get the data, but first one fails with "Network Error"
    Suggestions are appreciated.
    Thanks.

    user13252411 wrote:
    When do you plan to support Code First?We haven't announced a date for that yet. Subscribe to our mail list and keep an eye on our .NET Developer Center for updates.

  • Issue with Cross-Company code transactions and Extended Withholding tax

    Hi Gurus,
    I am having an issue with Cross-company code transaction while posting expense with 2 different company codes.
    In the 2 company codes, one company code is setup for Withholding tax and other was not set.
    While posting in FB50, I am getting the below message and system does not allow to post the invoice.
    Company codes have different settings for withholding tax treatment
    Message no. F5786
    Diagnosis
    You are entering a document containing at least one vendor or customer item and which has line items in several company codes. The extended withholding tax treatment has been set to active in one of these company codes, but not in one of the other company codes.
    System Response
    You cannot enter this kind of document.
    Procedure
    Enter the transaction in two documents.
    For this I tried to test the transaction by activating of extended Withholding tax for both the company codes. Then the invoice is posting correctly now.
    The point is if I activate extended withholding tax for the Company code which is not using the setup, will it face any issues in other areas? and also kindly advice whether is this a right way to set up to fix the current problem.
    Thanks for the Support and early response will be appreciated.
    JBC.

    Hi Mamta,
    Thanks for the Response. I think you misunderstood my scenario.
    For Eg in FB60 with Co code 5065:
    I am debiting the Expenses for Co Code 1000(Witholding tax not active) and crediting the Bank Account of Co Code 5065(Withholding tax setup is done for this co code). When I tried to post with these line items I have getting the error.
    Posting        GL                   Co Code
    Dr          106520(Exp)            1000
    Cr          202020(Bank)           5065
    For this I tried by activating the Withholding tax for Co code 1000 which is not active before and post it. The system allows me to post the invoice.
    I want to know whether is this a right way to solve this issue and will it impact on any other areas by only activating the Withholding tax for a Co code?
    Thanks,
    Bapu

  • Outlined type with a thick black stroke and transparent fill

    I want to create outlined type with a transparent fill and a thick black stroke. This video describes what I want, but instead of a white fill I'd like a transparent fill (https://youtu.be/iqHjU2hiWAo). Thanks!

    You could use the Pathfinder > Divide tool.  Create a copy of the original outlined text.  You set the stroke, say an 18pt ( really thick ), then outline the stroke.  On the copy positioned over the original, select both and then Pathfinder Divide.  Remove all strokes / fills inside the outlines to get the transparency you want.

  • Problem with Linus Ubuntu 7.04 and Oracle-Xe debian package

    Hi all,
    Installed Oracle 10g XE on my Ubuntu 7.04 using universal Debian Package : oracle-xe-universal_10.2.0.1-1.0_i386.deb. No problem during the installation . After finished the installation, I configured the database to use port 6000 and its password (Listener port set to default).
    But when I tried to access the database home page using "http://127.0.0.1:6000/apex", it cannot be accessed. Then I tried to verify my database server using /etc/init.d/oracle-xe status and here's the output:(before it, I make user the database was realy online by typing /etc/init.d/oracle-xe start)
    ###########################333###
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-AUG-2007 22:45:07
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=wks-082)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    Linux Error: 110: Connection timed out
    then I tried to open the log in /usr/lib/oracle/xe/app/oracle/admin/xe/bdump/alert_XE.log and here is the output
    Thu Aug 9 14:54:14 2007
    Starting ORACLE instance (normal)
    Cannot determine all dependent dynamic libraries for /proc/self/exe
    Unable to find dynamic library libocr10.so in search paths
    RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
    LD_LIBRARY_PATH is not set!
    The default library directories are /lib and /usr/lib
    Unable to find dynamic library libocrb10.so in search paths
    Unable to find dynamic library libocrutl10.so in search paths
    Unable to find dynamic library libocrutl10.so in search paths
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Shared memory segment for instance monitoring created
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =10
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Thu Aug 9 14:54:27 2007
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    sessions = 49
    sga_target = 146800640
    control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
    compatible = 10.2.0.1.0
    db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
    db_recovery_file_dest_size= 10737418240
    undo_management = AUTO
    undo_tablespace = UNDO
    remote_login_passwordfile= EXCLUSIVE
    dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
    shared_servers = 4
    job_queue_processes = 4
    background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
    user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
    core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
    audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
    db_name = XE
    open_cursors = 300
    os_authent_prefix =
    pga_aggregate_target = 41943040
    Thu Aug 9 14:54:33 2007
    Errors in file /usr/lib/oracle/xe/app/oracle/admin/XE/udump/xe_ora_7532.trc:
    ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
    USER: terminating instance due to error 600
    Instance terminated by USER, pid = 7532
    Thu Aug 9 14:54:35 2007
    Starting ORACLE instance (normal)
    Cannot determine all dependent dynamic libraries for /proc/self/exe
    Unable to find dynamic library libocr10.so in search paths
    RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
    LD_LIBRARY_PATH is not set!
    The default library directories are /lib and /usr/lib
    Unable to find dynamic library libocrb10.so in search paths
    Unable to find dynamic library libocrutl10.so in search paths
    Unable to find dynamic library libocrutl10.so in search paths
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =10
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Thu Aug 9 14:54:46 2007
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    sessions = 49
    sga_target = 146800640
    control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
    compatible = 10.2.0.1.0
    db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
    db_recovery_file_dest_size= 10737418240
    undo_management = AUTO
    undo_tablespace = UNDO
    remote_login_passwordfile= EXCLUSIVE
    dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
    background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
    user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
    core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
    audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
    db_name = XE
    open_cursors = 300
    os_authent_prefix =
    pga_aggregate_target = 41943040
    Thu Aug 9 14:54:51 2007
    Errors in file /usr/lib/oracle/xe/app/oracle/admin/XE/udump/xe_ora_7551.trc:
    ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
    USER: terminating instance due to error 600
    Instance terminated by USER, pid = 7551
    Thu Aug 9 14:54:53 2007
    Are there anyone who can help me? I really have no idea since I'm a newbie here, both linux and oracle. Any hint are welcome, thanks in advance.
    Regards,
    Rudi Sadria

    Thx for the help, I already verify the /etc/hosts and these are the output:
    127.0.0.1     localhost
    127.0.0.1     wks-082
    127.0.0.1 localhost.localdomain localhost localhost.domain
    127.0.0.1 hostname hostname.domain
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    I check the listener status and here's the output:
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-AUG-2007 15:14:45
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 10-AUG-2007 15:14:39
    Uptime 0 days 0 hr. 0 min. 6 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wks-082)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
    Instance "XE", status BLOCKED, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "XE", status BLOCKED, has 1 handler(s) for this service...
    The command completed successfully
    and here's the alert_XE.log
    Fri Aug 10 15:30:59 2007
    Starting ORACLE instance (normal)
    Cannot determine all dependent dynamic libraries for /proc/self/exe
    Unable to find dynamic library libocr10.so in search paths
    RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
    LD_LIBRARY_PATH is not set!
    The default library directories are /lib and /usr/lib
    Unable to find dynamic library libocrb10.so in search paths
    Unable to find dynamic library libocrutl10.so in search paths
    Unable to find dynamic library libocrutl10.so in search paths
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =10
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    sessions = 49
    __shared_pool_size = 41943040
    __large_pool_size = 0
    sga_target = 146800640
    control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
    __db_cache_size = 96468992
    compatible = 10.2.0.1.0
    db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
    db_recovery_file_dest_size= 10737418240
    undo_management = AUTO
    undo_tablespace = UNDO
    remote_login_passwordfile= EXCLUSIVE
    dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
    shared_servers = 4
    job_queue_processes = 4
    background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
    user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
    core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
    audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
    db_name = XE
    open_cursors = 300
    os_authent_prefix =
    pga_aggregate_target = 41943040
    PMON started with pid=2, OS id=7328
    PSP0 started with pid=3, OS id=7330
    MMAN started with pid=4, OS id=7332
    DBW0 started with pid=5, OS id=7334
    LGWR started with pid=6, OS id=7336
    CKPT started with pid=7, OS id=7338
    SMON started with pid=8, OS id=7340
    RECO started with pid=9, OS id=7342
    CJQ0 started with pid=10, OS id=7344
    MMON started with pid=11, OS id=7348
    MMNL started with pid=12, OS id=7350
    Fri Aug 10 15:31:00 2007
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Fri Aug 10 15:31:01 2007
    ALTER DATABASE MOUNT
    Fri Aug 10 15:31:01 2007
    ORA-00202: control file: '/usr/lib/oracle/xe/oradata/XE/control.dbf'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    Fri Aug 10 15:31:01 2007
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    and then I open the SQL* plus and type some command
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Aug 10 15:32:38 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn / as sysdba
    Connected.
    SQL> select status from v$instance
    2 ;
    STATUS
    STARTED
    But I'm still cannot accessed my "http://localhost:6000/apex". Are there any possibilities that my browser block it? or I need to change the port?
    Thx a lot for your help
    Regards,
    Rudi Sadria

  • Instant Client with Entity Framework (ODAC 11.2.0.2.40 Beta)

    Is this at all possible (with the current Beta version of ODAC) using the Instant Client installation?
    I have got this working using the ODAC1120240 innstallation. But it would be nice for our customers to not having go through this (not all of them are tech savvy:-).
    I would like to avoid spending hours hunting for documentation, forums etc if this is simply not possible at the moment.
    IF it is possible, why do I get the following error:
    ===============================================================================
    "Unhandled Exception: System.ArgumentException: The specified store provider cannot be found in the configuration, or is
    not valid. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be inst
    alled.
    at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
    at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
    --- End of inner exception stack trace ---
    at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
    at System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString)
    at System.Data.EntityClient.EntityConnection..ctor(String connectionString)
    at System.Data.Objects.ObjectContext.CreateEntityConnection(String connectionString)
    at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName)
    at KDO.MessageCenterModel.Entities..ctor(String connectionString)
    at ConsoleApplication2.Program.Main(String[] args)"
    ===============================================================================
    In the same directory as my application, I have these DLLs:
    oci.dll
    Oracle.DataAccess.dll
    orannzsbb11.dll
    oraociei11.dll
    OraOps11w.dll
    Connecting to Oracle by using "standard" OracleConnection is fine, only when I try to access my Entity model do I recieve the error.
    Any help greatly appreciated!
    ~Rolf

    Hi Rolf,
    It's works when you don't have a oracle.dataaccess.client settings(like to change oracle types).
    At the end I had to install ODAC using Beta 2, because i am using mapping settings(oracle.dataaccess.client).
    I am looking to test the new version 11.2.0.2.50, it's looks like have a XCopy version.
    Let us know if you test the new version.
    Thanks,
    Jorge

Maybe you are looking for