Return no column to obtain column information when using ODAC

Hi all

I used:

VS 2010
ODAC 11g Release 4.
11.2 Oracle database server
Client Oracle 11.2

Both version is 32-bit.

I do step by step to link:

http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/dotnet/EntityFrameworkOBE/EntityFrameworkOBE.htm

Steps 1 to 5 are OK. But in step 6, then click on the button get column information in the window add an import function, return result is no column. I add referenced Oracle.DataAccess.Client with the correct version.

My app.config is:

-------------------------------
<? XML version = "1.0" encoding = "utf-8"? >
< configuration >
< connectionStrings >
< connection string name = "HREntities" connectionString="metadata=res://*/HRModel.csdl|res://*/HRModel.ssdl|res://*/HRModel.msl;provider=Oracle.DataAccess.Client;provider = & quot; TIMEOUT = 100; DATA SOURCE = DMUCTTK; PASSWORD = hr; PERSIST SECURITY INFO = True; USER ID = HR & quot; "" ProviderName "/ >
< / connectionStrings >

* < oracle.dataaccess.client > *.
* < Parameters > *.
* < add name = "& quot; HR & quot;. & quot; UPDATE_AND_RETURN_SALARY & quot;. "RefCursor.NEW_SALARY" value = "implicitRefCursor bindinfo =' output mode =" "/ > *.
* < add name = "& quot; HR & quot;. & quot; UPDATE_AND_RETURN_SALARY & quot;. RefCursorMetaData.NEW_SALARY. Column.0"value =" metadata implicitRefCursor ='ColumnName = name; " BaseColumnName = name; BaseSchemaName = h; BaseTableName = EMPLOYEES; NATIVE_DATA_TYPE = Varchar2; ProviderType = Varchar2; PROVIDER_DB_TYPE = String; ColumnSize = 20' "/ > *.
* < add name = "& quot; HR & quot;. & quot; UPDATE_AND_RETURN_SALARY & quot;. RefCursorMetaData.NEW_SALARY. Column.1"value =" metadata implicitRefCursor ='ColumnName = SALARY; " BaseColumnName = SALARY; BaseSchemaName = h; BaseTableName = EMPLOYEES; NATIVE_DATA_TYPE = number; ProviderType = Int32 DataType = System.Int32; ColumnSize = 8' "/ > *.
* < / Parameter >. *
* < /oracle.dataaccess.client > *.
< / configuration >
----------------------

VS 2010 console, I've seen:

-------------------------
The schema information for the item 'oracle.dataaccess.client' was not found.
-------------------------

When the construction project, in the error appear an error:

-------------------------
The provider did not return an instance of ProviderManifest. 'HR '. "" UPDATE_AND_RETURN_SALARY ". RefCursorMetaData.NEW_SALARY. Column.0 NATIVE_DATA_TYPE is not valid
-------------------------

Please help me solve this problem. Thank you

In your App.Config file, please fix the NATIVE_DATA_TYPE to NATIVEDATATYPE and
PROVIDER_DB_TYPE to PROVIDERDBTYPE. No more underscore in attribute names.
The doc should have been updated for the changes.

Edited by: shsu January 6, 2012 11:19

Tags: Database

Similar Questions

  • Column unresolved when using presentation variable in the filter responses

    Hi all

    I am using a dashboard command prompt that sets a variable presentation - pres_year. I use the presentation variable in the filter of the application.
    In the 'Criteria' tab, in the filter for a request, I put a year column (YEAR) the presentation via the Expr Variable variable and enter the variable name of presentation only. End up with:
    YEAR is equal to / is in @{pres_year}

    When you use the dashboard, the prompt and ask all work fine. The problem is when I'm in demand for answers and I click on the "View results" button I get the following error:
    "NQSError: 27005 unresolved column pres_year'.

    Any suggestions?

    Thank you.

    Set a default value after the presentation variable in your filter. If you put no default value, and then in the responses, the application not of value to the variable of presentation. Click on the filter and add default value. Then it won't work.

    Edited by: David_T on October 14, 2010 08:13

  • Values with the HTML not getting informed when using AJAX in the APEX

    Hello

    I use AJAX to fill some values in a tabular report.

    I have a java script of this form (I took this example Denes http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049) example

    < script language = "JavaScript" type = "text/javascript" >

    function f_set_multi_items_tabular (pValue, bow) {}
    get var = new htmldb_Get (null, html_GetElement('pFlowId').value,
    = Set_Multi_Items_Tabular', 0);
    {if (pValue)}
    Get.Add ('TEMPORARY_APPLICATION_ITEM', pValue)
    Get.Add ('T_ROWNUM', Prow)
    } else {}
    Get.Add ('TEMPORARY_APPLICATION_ITEM', 'null')
    }

    gReturn = get.get ('XML');

    {if (gReturn)}
    var l_Count = gReturn.getElementsByTagName("item").length;
    for (var i = 0; i < l_Count; i ++) {}
    var l_Opt_Xml = gReturn.getElementsByTagName ("item");
    var l_ID = l_Opt_Xml.getAttribute ('id');
    var l_El = html_GetElement (l_ID);
    {if (l_Opt_Xml.firstChild)}
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    } else {}
    var l_Value = ";
    }

    {if (l_El)}
    If (l_El.tagName == 'INPUT') {}
    l_El.value = l_Value;
    } Else if (l_El.tagName == 'SPAN' & & l_El.className == 'Raptor') {}
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.ID = l_ID;
    } else {}
    l_El.innerHTML = l_Value;
    }
    }
    }
    }
    get = null;
    }

    < /script >


    And I the process of application as follows
    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id =" f05_000 "|: T_ROWNUM |" "> ' |: TEMPORARY_APPLICATION_ITEM |") ("< / item > ');
    HTP.prn ("< / body >");
    END;
    If I have: TEMPORARY_APPLICATION_ITEM as "Vikas" gets it displays correctly, but if I "& lt;" b & gt; Vikas & lt; b & gt;' it shows null. If she tags HTML function l_Opt_Xml.firstChild.nodeValue does not correctly work.
    Please tell me what modiifcation can I use in the l_Opt_Xml.firstChild.nodeValue function to get values with HTML tags also to are displayed.

    Thank you
    Vikas

    Vikas,

    Try to escape special characters:

    htf.escape_sc(:TEMPORARY_APPLICATION_ITEM)
    

    Kind regards
    Dan

  • Do not get information on costs when using / * + RULE * / in Toad 9.5

    Hello

    All while optimizing a query when using / * + RULE * / in the query I get no info for the cost and cardinality.
    Can you tell me is the / * + RULE * / obsolete in oracle or what can be the reason.


    Help me..

    Thanks in advance.

    948707 wrote:
    Hello

    All while optimizing a query when using / * + RULE * / in the query I get no info for the cost and cardinality.
    Can you tell me is the / * + RULE * / obsolete in oracle or what can be the reason.

    Why do you use this suspicion?

    In addition to the fact that the basic optimization rule is obsolete, the optimizer can either make rule base optimization or cost optimization. Why wait get based cost information when using the basic optimization rule?

    Do not use these tips. Optimisation cost function is far superior to the basic rule.

  • Stored - procedures to obtain column information

    Hello

    Recently, I changed to unmanaged code ODP ODP managed (I use Entity Framework).

    Unmanaged pilots worked very well after adding the necessary information in the section of web.config. I could add stored procedures and generate complex types using Import - to obtain column information.

    After the switch, the configuration section has been updated and everything seemed to work. By the way changes in the format of the configuration section is little documented - to say the least.

    However when I try to generate complex types again, I just get a "System.notSupportedException' (Message: the specified type is not supported by this selector).

    This feature was not worn supported by drivers? Is there something that can be done to enable this feature?

    The Ref Cursor implicit config file format differs between managed and managed ODP.NET ODP.NET.

    To save you from pulling your hair, do the following.

    (1) install ODT 12.1 if you have not already

    (2) find the procedure stored in the Server Explorer, right click and run and enter the input parameters.

    (3) for the output ref cursor that represents the return value for the function of your entity, choose 'Add to the Config' check box.

    (4) and select either "Show Config" (and then cut and paste) or "add to configuration".

    Here is a screenshot of what I'm talking about:

    http://i.imgur.com/t1BfmUP.gif

  • SELECT which returns the columns as DESCRIBED?

    Hello

    I need a SQL that returns the column name and type as DESCRIBED in SQL * more.

    I know that I can query all_tab_columns, but then I concatenate the string type myself.

    SELECT  column_name "Name"
           ,CASE WHEN data_type IN ('VARCHAR2','CHAR') THEN
                data_type||'('||data_length||')'
            WHEN data_type = 'FLOAT' THEN
                data_type||'('||data_precision||')'
            WHEN data_type = 'NUMBER' THEN
                CASE WHEN data_precision IS NULL THEN
                    data_type
                WHEN data_scale = 0 THEN
                    data_type||'('||data_precision||')'
                ELSE
                    data_type||'('||data_precision||','||data_scale||')'
                END
            ELSE
                data_type
            END "Type"
    FROM    all_tab_columns
    WHERE   table_name = 'ABC'
    ORDER BY column_id;
    

    An idea for another solution that considers each default data type?

    Concerning

    Marcus

    Tip: you can run a trace and see what SQL query rained questions on your account when you issue a describe statement.

    That said, I do not know if all the of that formatting is in the request or if it is made by the executable SQL more himself.

  • Aggregation in IR works incorrectly when using calculated columns breaks

    I have a problem with the aggregation in IR when using stops on calculated columns.

    Please see the exact steps to reproduce the problem in my next post below

    Martin

    Published by: Martin Krepelka, October 22, 2008 11:18

    Martin,

    I filed a bug about the problem you are having. The problem is when you control break on a calculated column with defined format mask and aggregates, the aggregate information is not displayed correctly. When I run the interactive report in debug mode, I see that analytical for aggregated information function partitions incorrectly. Using your example:

    IR runs this query to get the counts for each month of posting:

    count("AMOUNT") over (partition by "POSTING_DATE")
    

    Instead, it should run this query:

    count("AMOUNT") over (partition by to_char("POSTING_DATE",'RRRR/MM'))
    

    To work around the problem, you can change the calculation month without the format mask view and set to_char(F,'RRRR/MM'). Aggregates will display correctly.

    Christina

  • I have a pdf form that has 4 columns, with each column having 28 check boxes and text between. I did so he goes by column, but when I do anything for a checkbox it takes it out of line. How can I keep that from happening?

    I have a pdf form that has 4 columns, with each column having 28 check boxes and text between. I did so he goes by column, but when I do anything for a checkbox it takes it out of line. How can I keep that from happening?

    You talk about the tab order? If Yes, go to Edit - Preferences - forms and make sure the box "Automatically adjust tab order when changing fields" is NOT checked.

  • Select the column name when the value = something

    Is there a way to select the column name when there is a specific value in it?

    As follows:

    create table (abc123)

    COLUMN1 VARCHAR2 (50).

    COLUMN2 VARCHAR2 (50).

    Column3 varchar2 (50)

    );

    insert into abc123 values ('yes', 'Yes', 'No');

    insert into abc123 values ('no', 'Yes', 'No');

    INSERT INTO ABC123 VALUES ('no ',' no', 'No');

    insert into abc123 values ('yes', 'Yes', 'Yes');

    SELECT CASE WHEN COLUMN1 = 'Yes' THEN - the name of the column would be here somehow?

    WHEN COLUMN2 = 'Yes' THEN - the name of the column would be here somehow?

    WHERE Column3 = 'Yes' THEN - the name of the column would be here somehow?

    Another null

    finish as abc123 columnname

    final results for the just Column1 would be:

    COLUMN1

    NULL VALUE

    NULL VALUE

    COLUMN1

    I'm not sure what I use to get the name of column in there

    Thank you.

    Hello

    708631 wrote:

    Is there a way to select the column name when there is a specific value in it?

    As follows:

    create table (abc123)

    COLUMN1 VARCHAR2 (50).

    COLUMN2 VARCHAR2 (50).

    Column3 varchar2 (50)

    );

    insert into abc123 values ('yes', 'Yes', 'No');

    insert into abc123 values ('no', 'Yes', 'No');

    INSERT INTO ABC123 VALUES ('no ',' no', 'No');

    insert into abc123 values ('yes', 'Yes', 'Yes');

    SELECT CASE WHEN COLUMN1 = 'Yes' THEN - the name of the column would be here somehow?

    WHEN COLUMN2 = 'Yes' THEN - the name of the column would be here somehow?

    WHERE Column3 = 'Yes' THEN - the name of the column would be here somehow?

    Another null

    finish as abc123 columnname

    final results for the just Column1 would be:

    COLUMN1

    NULL VALUE

    NULL VALUE

    COLUMN1

    I'm not sure what I use to get the name of column in there

    Thank you.

    Thanks for posting the CREATE TABLE and INSERT for the sample data.

    Don't forget to post the exact results you want from these sample data.  If the results depend on the parameters you want to pass a run time, then give a few different examples, with the the desired results of each.

    You can hardcode the values you want, such as the column names in a query.  For example:

    SELECT CASE WHEN column1 = 'Yes' THEN 'Column1' END like y1

    CASE WHEN column2 = 'Yes' THEN 'Column2' END like y2

    CASE WHEN Column3 = 'Yes' THEN 'Column2' END like y3

    , a. *-If wanted

    Of abc123 one

    ;

  • The report columns duplicated when the region is copied.

    Re: Report columns duplicated when the region is copied.

    When I copy a region that I created the form master / detail report columns are duplicated. I am actually copy the entire page, but I had other cases where I just copy the desired region and the columns have been duplicated it as well. And, of course, there is no way I know to remove the columns of the shape. But I doubt it would help because, in some cases, I've tried - the columns seems to be 'related' in that a change to a copy of the column has been duplicated in the other, when changes have been applied.

    In the example (below), there are three areas on the page and the problem occurs in region 2. (I think I'll probably remove the first region). He was ripping trying to get the report of region 2 and changes formish tabular region 3 on the same page. I made this in Oracle 11.2 in our APEX 4.1 and imported to 4.2. You can see here:

    WS apex_examples_01
    demo
    demo
    Appl. 991204

    Page 57 is the original page created in 4.1 and imported
    58 page is the page copied from 57 under 4.1 and imported
    59 page is the page copied from 57 under 4.2 (same result 4.1).

    If you want to try the page, select DSD01 in the DSD LOV, click on "Application process" and then click the icon change. Ignore errors in the region 1 - I'll probably delete this region. The data are region 3 is Run Date may 12, 13.

    Is there a setting that allows this region can be fully copied without duplicating the columns?

    Thank you
    Howard

    P.S. I think I know why this is happening: APEX hates me!

    Howard (in training) wrote:

    P.S. I think I know why this is happening: APEX hates me!

    I think it's a trap left by tabular, tabular forms of sabotage tabular forms... I love ;-)

    This is a long-standing bug very (+ {: identifier of the thread = 269916} +) that I've seen before: + {message identifier: = 10504044} +.

    The problem in the region created by Wizard of origin not having either do not report Source using specific query column names and validate queries / use column names generic (analyzing the query executing only) options selected. Click on the radio button using specific query column names and validate query before copying the region/page. Compare the before and after effects of do so on pages 570 and 571 in your sample application.

    (Looking for the Forum before posting?) Previous discussions were not hard to find in this case.)

  • No column header when no data

    I used the table Wizard to create groups of rehearsal with group above on a column. But when there is no data on the group I always get the column headers. How get rid you of column headers when there is no data?

    Thank you

    Zen

    put the requirement on the table, the table will not display.
    Have you added the condition like in link?

  • Include column names when you paste data from SQL Developer

    Does anyone know if the developer SQL has an option to include the column names when you copy and paste the SQL Developer data to Excel?

    If you use Shift + Ctrl + C instead of just Ctrl + C, it copies the selected data and the column headings to select data.

    theFurryOne

  • Hide a column that is used in the custom view.

    Hello! I would like to know if there is a way to do the following: I have a vision based on a table (Configuration Manager - views).  I've specified to display 4 columns appears in the view, so that we can change the columns without going into the database.  In the entry 'default display Expression' under the information tab of the view, I've specified how these columns should be displayed on the user interface. My problem: I don't want the fourth column in the UI at all, but I want this column to be always accessible by administrators via the view!  It is possible to specify somehow NOT to display this column, but always use it in the view? Thanks for the suggestions! Anya

    I'm not aware of any problem with the many points of view; Maybe, except for the handling potential/ease of use of Config Mgr if you really have a lot of them (regardless of the table). If there is no performance overhead, it must be processed by the database itself, and it will be very minimal.

    Terminology of the AAU for views is unfortunately not very consistent with one of the database. In the database, a view is just a subselect lines or columns in the table that could be used in some cases (for example, a user is granted to read data from a view, but not directly of a table) of use. UCM, a view is (also) used to enter data, which is the ability of a Table does not have.

  • I lost all my second camera bookmark information, when I synced.

    Having set up the sync, I assumed that the news of all my devices would be merged, not so much. I set up sync on my desktop and then sync my laptop and all the info of the laptop disappeared. There's a lot of useful bookmarks here but I can't find them now. Can I retrieve parameter/bookmarks/history when a new device is synchronized? Also why isn't the no warning as to what will happen on the following browser information when they are synchronized. Horrible thought also comes, have I lost my diary in the data that may have been unique to the laptop?

    If bookmarks you lose then it might be a problem with the database places.sqlite file.

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

    See also:

  • Can I print a CD instead of a printer information when I'm away from my printer?

    Can I print a CD instead of a printer information when I'm away from my printer?

    Can I print a CD instead of a printer information when I'm away from my printer?

    You can use PDF reDirect to print files and later print these files on your printer.

Maybe you are looking for

  • Logitech bluetooth mouse M557 keep disconnecting

    Just bought a mouse Logitech bluetooth mouse (M557) a few days ago. It was easy to have detected it, however, I realize it loses connection every time that the macbook is left idle for a period of time (a few minutes)... Very annoying, because it see

  • Looking for good text to go beyond the basics of LV8.6

    I've been programming in BT for about a year now and would like to learn more. What is the best text to buy that begins beyond the basics, or are the manuals provided with LV 8.6 the best way to keep learning more intermediate and advanced features?

  • Instructions on how to install streets & trips 2012

    I downloaded the version trial of streets & trips 2012 via Microsoft Download Manager, but now I can't seem to run.  It seems that it is a file not a .exe.  I can't find instructions on what to do next

  • HP dv6 7210us ENVY: ENVY Hp dv6 7210us motherboard

    My computer beeps at me almost whenever I'm working on it.  It's a beep distinctive high pitch and then a serious tone.  I also sometimes hear a click, but I don't remember if it's before, during or after the beeps (I think it was after the second be

  • Test for SurePress?

    Did someone knows a way to programmatically check if a device has a SurePress touch screen other than checking the model number? The only thing I've found is TouchScreen.isSupported () but it does not really help. Thank you!