Unable to get the execution plan when using dbms_sqltune (11gR2)

Hi,
Database version: 11gR2
I have a user A that is granted privileges to execute dbms_sqltune.
I can create a task, excute it and run the report.
But, when I run the report I get the following error:
SQL> show user
USER is "A"
SQL> set long 10000 longchunksize 10000 linesize 200 pagesize 000
select dbms_sqltune.report_tuning_task(task_name => 'MYTEST') from dual;SQL>
GENERAL INFORMATION SECTION
Tuning Task Name : MYTEST
Tuning Task Owner : A
Workload Type : Single SQL Statement
Scope : COMPREHENSIVE
Time Limit(seconds): 1800
Completion Status : COMPLETED
Started at : 05/15/2013 11:53:22
Completed at : 05/15/2013 11:53:23
Schema Name: SYSMAN
SQL ID : gjm43un5cy843
SQL Text : SELECT SUM(USED), SUM(TOTAL) FROM (SELECT /*+ ORDERED */
SUM(D.BYTES)/(1024*1024)-MAX(S.BYTES) USED,
SUM(D.BYTES)/(1024*1024) TOTAL FROM (SELECT TABLESPACE_NAME,
SUM(BYTES)/(1024*1024) BYTES FROM (SELECT /*+ ORDERED USE_NL(obj
tab) */ DISTINCT TS.NAME FROM SYS.OBJ$ OBJ, SYS.TAB$ TAB,
SYS.TS$ TS WHERE OBJ.OWNER# = USERENV('SCHEMAID') AND OBJ.OBJ# =
TAB.OBJ# AND TAB.TS# = TS.TS# AND BITAND(TAB.PROPERTY,1) = 0 AND
BITAND(TAB.PROPERTY,4194400) = 0) TN, DBA_FREE_SPACE SP WHERE
SP.TABLESPACE_NAME = TN.NAME GROUP BY SP.TABLESPACE_NAME) S,
DBA_DATA_FILES D WHERE D.TABLESPACE_NAME = S.TABLESPACE_NAME
GROUP BY D.TABLESPACE_NAME)
ERRORS SECTION
- ORA-00942: table or view does not exist
SQL>
It seems there a missing privileg for dislaying the execution plan.
As a workaround, this is solved by granting select any dictionay (which I don't want) to the user A.
Does someone have an idea about what privilege is missing?
Kind Regards.

Hi,
SELECT ANY DICTIONARY system privilege provides access to SYS schema objects only => which you are using as workaround
SELECT_CATALOG_ROLE provides access to all SYS views only.==> Safe option
SQL> grant SELECT ANY DICTIONARY to test;
Grant succeeded.
SQL> conn test/test
Connected.
SQL> select count(*) from  sys.obj$;
  COUNT(*)
     13284
SQL> conn /as sysdba
Connected.
SQL> revoke SELECT ANY DICTIONARY from test;
Revoke succeeded.
SQL> grant SELECT_CATALOG_ROLE to test;
Grant succeeded.
SQL> conn test/test
Connected.
SQL> select count(*) from  sys.obj$;
select count(*) from  sys.obj$
ERROR at line 1:
ORA-00942: table or view does not existHTH

Similar Messages

  • I am unable to get a bullited list when using the synchronized text feature.

    I am unable to get a bullited list when using the synchronized text feature. The option is greyed out and not active. Any tips? Am I doing something wrong?

    This is by default , synchronized text does not alter any style and other visual attributes associated with instance.
    Thanks,
    Sanjit

  • Error 1030723 Unable to get UTF-8 locale when using Essbase API 11.1.1

    Now I got a question about how to connect to an Essbase Server by using essbase client API (11.1.1). I encountered an error “Unable to get UTF-8 locale” when I tried to EssInit((pInitStruct, phInstance) API.
    However, I had no problem to call the API if I uses essbase previous client APIs (7.1 or 9.3).
    I passed the “ESS_API_UTF8” to usApiType field in the ESS_INIT_T struct. When I openned the “essapi.h” header file, I found these are some new fields (highlighted in red color below) added in the essbase client API (11.1.1)
    ESS_TSA_API_typedef_struct(ess_init_t)
    ESS_TSA_ELEMENT(ESS_ULONG_T, Version); /* This should be set to ESS_API_VERSION */
    ESS_TSA_ELEMENT(ESS_PVOID_T, UserContext); /* void pointer to user's message context */
    ESS_TSA_ELEMENT(ESS_USHORT_T, MaxHandles); /* max number of context handles required */
    ESS_TSA_ELEMENT(ESS_SIZE_T, MaxBuffer); /* max size of buffer that can be allocated */
    ESS_TSA_ELEMENT(ESS_STR_T, LocalPath); /* local path to use for file operations */
    ESS_TSA_ELEMENT(ESS_STR_T, MessageFile); /* full path name of message database file */
    ESS_TSA_ELEMENT(ESS_PFUNC_T, AllocFunc); /* user-defined memory allocation function */
    ESS_TSA_ELEMENT(ESS_PFUNC_T, ReallocFunc); /* user-defined memory reallocation function */
    ESS_TSA_ELEMENT(ESS_PFUNC_T, FreeFunc); /* user-defined memory free function */
    ESS_TSA_ELEMENT(ESS_PFUNC_T, MessageFunc); /* user-defined message callback function */
    ESS_TSA_ELEMENT(ESS_STR_T, HelpFile); /* user-defined help file path */
    ESS_TSA_ELEMENT(ESS_PVOID_T, Ess_System); /* reserved for internal use */
    ESS_TSA_ELEMENT(ESS_USHORT_T, usApiType);
    ESS_TSA_ELEMENT(ESS_PCATCHFUNC_T, CatchFunc); /* user-defined kill-own-request signal callback function */
    ESS_TSA_ELEMENT(ESS_PCATCH_INIT_FUNC_T, CatchInitFunc); /* user-defined kill-own-request signal initialization callback function */
    ESS_TSA_ELEMENT(ESS_PCATCH_TERM_FUNC_T, CatchTermFunc); /* user-defined kill-own-request signal termination callback function */
    ESS_TSA_ELEMENT(ESS_PCOOKIE_CREATE_FUNC_T, CookieCreateFunc); /* user-defined cookie creation function */
    ESS_TSA_ELEMENT(ESS_PCOOKIE_DELETE_FUNC_T, CookieDeleteFunc); /* user-defined cookie creation function */
    } ESS_TSA_END(ESS_INIT_T);
    I could not find any document to introduce the API (11.1.1. And what does the error “Unable to get UTF-8 locale” mean? How can work around it. Any environment parameters or paths need to be set?
    Please advise.

    Hi,
    The API documentation for V11 is available from :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_apiref/frameset.htm?launch.htm
    Hopefully it might point you in the right direction.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Unable to get the logon screen when i open the sapgui

    Hi gurus,
    I have recently installed SAP 4.7 R/3 enterprise with the necessary requirements and after installation i am unable to get the logon screen (i am just getting the navigation bar which cannot be accessd) when i start my sapgui logon.I am getting a message at the bottom of the screen program SAPMS380,i cannot find any client or userid or password screen so can anyone help me...i need the reply as quickly as possible.
    Regards,
    Arun

    when you first install a system you'll notice that on Windows environment it takes too much to present the logon window because it needs to compile a lot of programs.
    What's the status on SAP MMC?
    Do you get or net the logon window? that's not clear on your message.
    cheers

  • Bad execution plans when using parameters, subquery and partition by

    We have an issue with the following...
    We have this table:
    CREATE TABLE dbo.Test (
    Dt date NOT NULL,
    Nm int NOT NULL,
    CONSTRAINT PK_Test PRIMARY KEY CLUSTERED (Dt)
    This table can have data but it will not matter for this topic.
    Consider this query (thanks Tom Phillips for simplifying my question):
    declare @date as date = '2013-01-01'
    select *
    from (
    select Dt,
    row_number() over (partition by Dt order by Nm desc) a
    from Test
    where Dt = @date
    ) x
    go
    This query generates an execution plan with a clustered seek.
    Our queries however needs the parameter outside of the sub-query:
    declare @date as date = '2013-01-01'
    select *
    from (
    select Dt,
    row_number() over (partition by Dt order by Nm desc) a
    from Test
    ) x
    where Dt = @date
    go
    The query plan now does a scan followed by a filter on the date.
    This is extremely inefficient.
    This query plan is the same if you change the subquery into a CTE or a view (which is what we use).
    We have this kind of setup all over the place and the only way to generate a good plan is if we use dynamic sql to select data from our views.
    Is there any kind of solution for this?
    We have tested this (with the same result) on SQL 2008R2, 2012 SP1, 2014 CU1.
    Any help is appreciated.

    Hi Tom,
    Parameter sniffing is a different problem. A query plan is made based on the value which may be really off in the data distribution. We do have this problem as well e.g. when searching for today's data when the statistics think the table only has yesterday's
    data (a problem we have a lot involves the lack of sufficient amount of buckets in statistics objects).
    This problem is different.
    - It doesn't matter what the parameter value is.
    - You can reproduce this example with a fresh table. I.e. without statistics.
    - No matter what the distribution of data (or even if the statistics are correct), there is absolutely no case possible (in my example) where doing a scan followed by a filter should have better results than doing a seek.
    - You can't change the behavior with hints like "option(recompile)" or "optimize for".
    This problem has to do with the specific combination of "partition by" and the filter being done outside of the immediate query. Try it out, play with the code, e.g. move the where clause inside the subquery. You'll see what I mean.
    Thanks for responding.
    Michel

  • How to get the log information when using a class?

    Hi All,
    I have a simple question, which I don't know how to solve. I am using org.apache.commons.logging.Log and LogFactory to do some logging. A typical situation is exemplified in the following code snippet.
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    class LogClass {
        private static final Log LOG = LogFactory.getLog(AClass.class);
        public void logit(){
            LOG.debug("This is the debugging log.");
    public class AClass{
        public static void main(String[] args) {
            LogClass l=new LogClass();
            l.logit();
    }But this way, I do not get the log information from the class LogClass. Could anybody please help?
    Many thanks.

    jschell wrote:
    jverd wrote:
    ...configuration in log4j.xml or log4j.properties.And far as I recall you need one of those two also. If there is no config then there is no output.I thought it used some default config if no file is present, but I could be mistaken. Either way, it adds to the possible problems that the OP could be having, any of which are consistent with his rather vague question.
    1) He's passing the wrong class to the LogFactory, and hence getting a logger with the wrong name, so he's seeing a different name than he expects in the output that's being produced.
    2) His config file does not contain the proper format to include the actual classname, independent of the logger's name, so he's missing a piece of desired information in each line of the output that's being produced.
    3) His config file indicates a threshold that's less verbose than the level at which his code is logging, so no output is present when he wants it.
    4) His config file is missing (or not where it's expected to be), so no output is being produced at all.
    5) His config file is missing (or not where it's expected to be), so a default level or format is being produced, effectively the equivalent of one of the misconfigurations described in #2 and #3.
    Since the OP seems to have vanished, we may never know.

  • Not getting the Document name when using CSWB

    happy New Year all!
    Am using SP Online.
    I have inserted the Content Search Web Part on a subsite to pull documents from a main list located on the parent site.
    It works ok but the result I am getting is the first line inside the document, so all I get a 10 identical results.
    team meeting
    team meeting
    team meeting
    How can I get the actual document name?
    Thank you
    Pierre
    pgg02

    Hello Sekar,
    I think I figured out the problem but still is strange.  Am trying things but SharePoint Online is extremely slow.
    When I created the library list, I only created 2 columns, one called "Name" the other "Tower", other columns got in like  automatically and are created by:, modified by, modified date.
    I went to edit one of the documents, and that's when I saw a field called "title" which does not appear See below:
    Columns
    A column stores information about each document in the document library. The following columns are currently available in this document library:
    Column (click to edit)
    Type
    Required
    Title
    Single line of text
    Tower
    Choice
    Created
    Date and Time
    Modified
    Date and Time
    Created By
    Person or Group
    Modified By
    Person or Group
    Checked Out To   
    Person or Group
    but in the column ordering screen see
    Field Order    
    Choose the order of the fields by selecting a number for each field under "Position from Top".
    Field Name  
    Position from Top   
    <input name="numSelects" type="hidden" value="3" />
    Name
    <select name="FormPosition0" title="Name: Position from Top"><option selected="selected" value="FileLeafRef">1</option>   <option value="FileLeafRef">2</option>   <option value="FileLeafRef">3</option>         
    </select>
    Title
    <select name="FormPosition1" title="Title: Position from Top"><option value="Title">1</option>   <option selected="selected" value="Title">2</option>   <option value="Title">3</option>         
    </select>
    Tower
    <select name="FormPosition2" title="Tower: Position from Top"><option value="Tower">1</option>   <option value="Tower">2</option>   <option selected="selected" value="Tower">3</option>         
    </select>
     A field called "Name" mysteriously appeared.
    The text in the "Name" fields was the same for all items so that explains why I was getting 10 times the same result.
    I went back to my list and copied the unique file name (library of word documents) into the "Name" field. But now when I am finally able to try the query I get the same results as before.?!
    here is the KQL
    path:"https://proposalforcondo.sharepoint.com"  (FileExtension:doc OR FileExtension:docx OR FileExtension:xls OR FileExtension:xlsx OR FileExtension:ppt OR FileExtension:pptx OR FileExtension:pdf) (IsDocument:"True"
    OR contentclass:"STS_ListItem")
    The result I get is:
    RelevantResults                       
                    (8)           
                        Home.aspx               
                            proposalforcondo.sharepoint.com/Home.aspx.docx                   
                        CARLETON CONDOMINIUM CORPORATION NO. 12               
                            proposalforcondo.sharepoint.com/C12_MINUTES_Oct 28...                   
                        CARLETON CONDOMINIUM CORPORATION NO. 12               
                            proposalforcondo.sharepoint.com/C12_MINUTES_July4_...                   
                        CARLETON CONDOMINIUM CORPORATION NO. 12               
                            proposalforcondo.sharepoint.com/C12_MINUTES_Septem...                   
                        CARLETON CONDOMINIUM CORPORATION NO. 12               
                            proposalforcondo.sharepoint.com/C12_MINUTES_July31...                   
                        CARLETON CONDOMINIUM CORPORATION NO. 12               
                            proposalforcondo.sharepoint.com/C12_MINUTES_June17...                   
                        CARLETON CONDOMINIUM CORPORATION NO. 12               
                            proposalforcondo.sharepoint.com/C12 - MINS_June 25...                   
                        CARLETON CONDOMINIUM CORPORATION NO. 12               
                            proposalforcondo.sharepoint.com/C12 - MINS_June11_...
    Any suggestion?
    Thanks again
    Pierre
    pgg02

  • Getting the -18001 error when using TestStandLVRTS

    I have developed my TestStand (v2.0) test sequences based on the LabVIEW adaptor. Everything runs well with the labVIEW development system. However, when I switch the labVIEW adaptor to the LabVIEW runtime server such as the TestStandLVRTS, I got the -18001 Error from the TSAPI with the message of "Unable to launch 'TestStandLVRTS.Application' ActiveX automation server".
    I have tried all the suggested fixes described in the article "-18001 Errors When Using TestStand and LabVIEW". The error still persists.
    Could you help me to solve this problem? Without this problem being solved, we will not be able to deploy our test sequences.

    Hello HCL -
    Below I have attached my version of the 6.1 built TestStandLVRTS folder. If you are using the build file provided in this folder when re-compiling your run time server, you should be seeing the .tlb file being auto-generated. Verify that you are using the build file that ships with TestStand and that under application settings that you have the 'Enable ActiveX server' checkbox enabled.
    There are no known bugs with LabVIEW 6.1 related to problems launching the TestStandLVRTS.exe, and given the good behavior I have seen between the two products here on the test machines, I am interested in seeing first if the problem lies with the executable and then we will try and troubleshoot your particular system.
    --Regards
    Elaine R.
    National Instruments
    http://www.ni.com/ask
    Attachments:
    LabVIEW.zip ‏227 KB

  • How to get the displayed message when using FM:  ABAP4_CALL_TRANSACTION

    Hi, 
    I am calling FM ABAP4_CALL_TRANSACTION from MS-Excel.  This FM works perfectly for me except the system messages that SAP returns are not always understandable or intituative.  My question is there another FM or Table that I can use to convert the data from MESS_TAB to a more meaningful message for the users?
    Examples listed below:
    Normal T-Code Message
    FM Message in MESS_TAB
    Real Meaning
    Fill in all required entry fields
    COBL-RMVCT        
    Field COBL-RMVCT is a required field
    Document 400000000 was posted in 130
    4000000000 130
    Document 400000000 was posted successfully
    Thanks for your Help

    Hi Karim,
    when you have the parameter to generate the message, you can use the following RFC function module:
    BAPI_MESSAGE_GETDETAIL
    The module has the following interface:
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(ID) LIKE  BAPIRET2-ID
    *"     VALUE(NUMBER) LIKE  BAPIRET2-NUMBER
    *"     VALUE(LANGUAGE) LIKE  BAPITGA-LANGU DEFAULT SY-LANGU
    *"     VALUE(TEXTFORMAT) LIKE  BAPITGA-TEXTFORMAT
    *"     VALUE(LINKPATTERN) LIKE  BAPITGA-LINKMASK OPTIONAL
    *"     VALUE(MESSAGE_V1) LIKE  BAPIRET2-MESSAGE_V1 OPTIONAL
    *"     VALUE(MESSAGE_V2) LIKE  BAPIRET2-MESSAGE_V2 OPTIONAL
    *"     VALUE(MESSAGE_V3) LIKE  BAPIRET2-MESSAGE_V3 OPTIONAL
    *"     VALUE(MESSAGE_V4) LIKE  BAPIRET2-MESSAGE_V4 OPTIONAL
    *"  EXPORTING
    *"     VALUE(MESSAGE) LIKE  BAPIRET2-MESSAGE
    *"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      TEXT STRUCTURE  BAPITGB OPTIONAL
    Best regards
    Thomas

  • I am unable to open the album tab when using I tunes

    Iam unable to open my album tab when playing I tunes but can open the song and artists tabs. I am a new user

    Quit the app, restart and then see if the button works.
    Go to the home screen first by tapping the home button.Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad byholding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Try a reset as well if that does not work for you.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Using patch plans for 12.1.0.2 target oracle home fails with 'PREREQ_MESG: Unable to get the version of OPatch'

    We are attempting to use patch plan to apply PSU and one-offs to a new 12.1.0.2 database oracle home.  Our EM version is 12.1.0.4.
    We are experiencing the same issue described in ''Bug 20271609 : Unable to get the version of OPatch".   This bug is closed as 'duplicate bug to filer' but we do not appear to have visibility into what patch/bug fixes the issue.
    Description from the above mentioned bug is our same issue.  We do not have this issue when we use patch plans against an 11.2.x oracle_home target.  It is unique to 12.1.0.2 oracle_home target.
    Description from the bug:
    The Plan failed in step "Run Prerequisite Checks" with the following errors:
    PREREQ_NAME: Minimum Version of OPatch
    PREREQ_DESC: Check if the required version of OPatch is present on the target
    PREREQ_TYPE: PATCH_TOOL_CHECK
    PREREQ_STATUS: FAILED
    PREREQ_MESG: Unable to get the version of OPatch at
    /u01/app/oracle/product/12.1.0/dbhome_2/Opatch
    We have opened an SR to see if we can get more info on what was already identified as a bug.  Has anyone else experienced this issue?  If so, can you share any patches or workarounds (other than manually applying patches) that you found useful?
    Thanks.

    You'll probably get the same info from Support, but the workaround is to use the Patch Database (however that doesn't work if there's no DB target associated to that home).   If you were trying to do patchign out of place (clone home, patch, then move db's), EM can do this for you.   If you're just installing a new DB Home and trying to patch, then i don' think there's another workaround.  The base bug is marked fixed though, so a backport for the 12.1.0.6 plugin should be available very soon.  I would ask the support analyst to request the backport for your plugin/patch level...

  • I have iphone 6 plus. When i am connecting it to my Hyundai Grand i10 using Bluetooth and trying to call someone, unable to get the ringing sound. Sound comes only when the person receives a call.

    I have iphone 6 plus (IOS 8.0.2). When i am connecting it to my Hyundai Grand i10 using Bluetooth and trying to call someone, unable to get the ringing sound. Sound comes only when the person receives a call.

    Hello Mogulman46,
    So what that means is when you have Do Not Disturb turned on, you may have an alert depending on the setting and how you are using your iPhone. So if it is set to Always, then that means that no matter what, your iPhone will not be notified. If it set to Only while the iPhone is locked, then that means that you will not get notification when your iPhone is locked but you will get notifications if your iPhone is being used. Also keep in mind the settings All Calls From can be set to certain contacts like Favorites, Everyone or no one. If you are using Do Not Disturb and you do not need it, then turn it off. 
    Use Do Not Disturb on your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht5463
    Regards,
    -Norm G. 

  • IOS updates - I keep getting the following message when I try to update my iPad2 - unable to install update, an error occurred installing IOS 8.1.2.  How can I fix this?

    IOS error messagge - I keep getting the following message when I try to update my iPad2 - unable to install update, an error occurred installing IOS 8.1.2.  How can I fix this?

    Which way are you trying to update? WiFi or iTunes? In either case, I would try restarting/rebooting all devices and then try again.
    IF you are using iTunes, eject your iPad, quit iTunes, reboot your computer and reset your iPad by holding down on the sleep and home buttons until the Apple logo appears on the screen. After the iPad starts up, connect to iTunes and try again. You may also want to disable your firewall and antivirus software when you try to update using iTunes. Sometimes those will interfere with the download.
    If you are using WiFi, reset the iPad as described above and try again.
    If WiFi updating will not work, try using iTunes, if iTunes will not work, try using WiFi.

  • Im getting the following message when I try to open iPhoto "iphoto was unable to repair permissioWhat should I do?

    I'm trying to move photos from my Iphone to mt macbook. I'm getting the following message when I try to open iPhoto "iphoto was unable to repair permissions for the library." What should I do?

    Post in the iPhoto forum area and let the users there know which version of iPhoto you are using. 

  • I'm getting a error message when using Apple Configurator "unable to send ClearPasscode command to device"

    I'm getting a error message when using Apple Configurator "unable to send ClearPasscode command to device"

    Yes, that is correct.  My spreadsheet has the following information in those cells if you want to compare yours on Monday:
    Product Type
    Application
    |
    AdamId:
    <and a 9 digit number>
    I ended up bringing the Macbook Pro home with me after struggling with it for a half hour at the end of a long day. I called and within 5 minutes the problem was corrected.  The technician said they were getting calls all day. 

Maybe you are looking for

  • This device cannot start (code 10)

    Win 7 ipod classic 160 gig not being recognized by itunes. I went to properties and found the above message. Any help, please.

  • Unable to authenticate myself to make changes in System Preferences or install programs

    Hello everyone I am just freaking out because I don't want/can't reinstall the system!! I just recently started having the problem that every time that I wanna install something, when it should ask me for my password to authenticate my admin account,

  • Creating new tables

    Hi Every one, I am new to SAP.Please some one can explain,if new table is to be  created,( as it is not in SAP tables), the what is the process of creating new table and how it is used for specific customer. I hope some one will help me. Thanks in ad

  • Footnote numbers to reflow in ID5.5?

    I have a lengthy document laid out in InDesign 5.5, with one imported word doc flowed across several pages, in one story.    Footnotes are fine for this first step, at this point.    The trouble comes when I try to import a separate word document, co

  • Tool tip question pls

    Hello How to get the user entered DATA/VALUE as TOOLTIP? For example, user entered JOHN in my_name text field. Here my_name is CAPTION Currently, am getting 'my_name' / CAPTION as tool tip. But, i WANT to get/see JOHN as tool tip. Thank you