User with DBA privilege can not display dba_indexes in pl/sql

I have a user with the DBA privilege. The user can select any table in this role. However, when I create a cursor selection dba_indexes, Oracle complained that its unable to see this table. Any ideas?

create or replace procedure
AS
exec_stmnt varchar2 (500);

Cursor cur_all IS
Select index_name dba_indexes;

Start

For cur_rec in cur_all loop
dbms_output.put_line (cur_rec.index_name);
End loop;


EXCEPTION
WHILE OTHERS THEN
dbms_output.put_line (SQLERRM);

end;
/
See the err

LINE/COL ERROR
-------- -----------------------------------------------------------------
6/5 PL/SQL: statement ignored
6/28 PL/SQL: ORA-00942: table or view does not exist

Hello

DBA is a role.
Roles do not count in the AUTHID DEFINE stored (including functions) procedures.
Give the user the necessary privileges directly.

Tags: Database

Similar Questions

  • Memory settings: "only users with administrator privileges can change these settings.

    Capture.JPG

    I want to change the settings above (VMWare Workstation 8.0.1, Win 7 64 bit). I remember that I made a few changes (I recently upgraded from Workstation 6.5 to 8) to increase performance by modifying the config.ini in C:\ProgramData\VMWare\VMware Workstation file - which I returned already.

    Now my question is How do I reactivate this layout. I am under my computer as an administrator, frankly I don't even have another use on this computer of the developer, but the administrator.

    You should always open my computer by right click "run as Administrator"

    Maybe for the config.ini file permissions are misconfigured?

    in any case - why don't you just edit the config.ini file yourself? -C' is what I do

  • Compilation of scrip in currently with DBA privilege

    Hi gurus,

    I am compiling two procedures with the aid of a user of the application in the database. These two procedures are in a valid state in production.
    I was in the test environment.
    The user of the application under test env is the same as in production withh all the privileges appropriate.

    In the script a single procedure, v$ sqltext, v$ session and v$ process are used and other DBA_USERS is used.
    I tried several times to the build script but error was like table or view does not exist.

    But same user was able to interview on these views.
    To solve the problem, I gave right to select on v_$ < < 3 > > the user application and then compiled and I managed.

    But my question is user has DBA privileges and capable of questioning over the views, but the procedure was not created?

    oramnts wrote:
    My problem happened that the block was dba_users, v$... s

    I mentioed I compiled all the procedures but these procedures have dba_ v$.

    Thank you & best regards

    When you grant the role table and grant the user role.

    This user can query... But on pl/sql, no find table.

    http://surachartopun.com/2008/09/ORA-00942-table-or-view-does-not-exist.html

    If you need pl/sql... for query v$ or tables + views in any case. YOU MUST GRANT DIRECTLY!

    Roles are not intended to be used by application developers, because the privileges to access the schema objects in the stored programming constructs must be granted directly.

  • Firewall settings is enabled, disabled and cannot open the Web page in Internet Explorer: "IE can not display the webpage".

    Original title: how to manually configure the firewall?

    Let me know how I can configure my firewall setting manually as it is said that your firewall setting is disabled. I have HomeXP, SP3. I am now faced with another problem with IE8 when I try to open another page, I find this error-"IE can not display the webpage". Sometimes, it works when it is updated and not some time.

    Hello

    1. do you use third-party security software that runs on the computer firewall settings?
    2. What is the error code / message displayed when trying to turn on the Windows Firewall?
    Please follow these steps in the KB article to turn on the Windows Firewall.
    Step 1
    How can I turn on or turn off the firewall in Windows XP Service Pack 2 or later versions?
    Step 2
    How to enable Internet Connection Firewall in Windows XP
    Follow the steps in order and read the content.
    See also,

    "Internet Explorer cannot display the webpage" error in Internet Explorer

    http://support.Microsoft.com/kb/956196

    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings


    I hope this helps.
  • try to install a printer and receive a message error «software cannot be installed...» To resolve this problem, log off and log in as a user with administrative privileges.

    original title: help installing a printer

    I try to install a printer on my computer and continue to receive an error message indicating that the "software cannot be installed using the command" run as ".". To resolve this problem, he told me to sign out and then sign in as a user with administrative privileges. I am the owner of this computer and that you have had for several years. I need to know how to solve this problem. Can anyone help?

    Hello

    have you tried right clicking on setup.exe printing software then run as administrator?

  • My computer with Windows 7 does not display photos in folders when you open a folder where are saved in photos.

    My computer with Windows 7 does not display images in folders when you open a folder where are saved the images there, I do not see any image photo immediately. I don't see it when I click Open the pic. Then for the next photo, I have to click Open once again, one by one. So without opeing one by one, I can't have see images, it is very difficult for me to manage all the images.

    The following article might be worth a visit:

    Windows 7 - How to enable or disable
    Thumbnails in the Explorer of Windows 7
    http://www.SevenForums.com/tutorials/11738-thumbnail-previews-enable-disable.html

  • can not display the webpage error something about the Server internal and 500 are down for maintenance

    can not display the webpage error something about the Server internal and 500 are down for maintenance? Yahoo search option and can get to Web site but trying to post comments online and get this message.  tried to restart and got the same answer.  Just set Windows to update when I logged on tonight.

    Hi ginnypierson,

    Thanks for posting in the Microsoft community.

    I understand that you are facing the issue with can not display the webpage and you are wrong about 500 and internal server being down for maintenance.

    Before you start the troubleshooting steps, I need the information required

    1. what web browser do you use?

    2. have you made any changes to the computer?

    3. this problem occurs only with the particular website?

    Method 1:

    If you use Internet explorer, I suggest you to see link and check.

    Get help with the Web site (HTTP error) error messages.

    http://Windows.Microsoft.com/en-us/Windows-Vista/get-help-with-website-error-messages-HTTP-errors

    Method 2:

    I suggest you to see link and check.

    How to optimize Internet Explorer

    http://support.Microsoft.com/kb/936213/ro

    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings

    Please follow these recommended steps, review the additional information provided and after back if you still experience the issue. I will be happy to provide you with additional options available that you can use to get this resolved.

  • I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help!

    I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help! I've tried everything. Google it. Searched through itunes, etc. It MUST be a bug, because it started right after I accepted the 12.3.3 update on my laptop running Windows 7 32.

    I count on the part of the main screen, which is not. Its strange. PLEASE HELP ME! In addition to the main page of the Itunes Store, everything else works fine as before. Music from my library work screens, etc.

    I also have exactly the same problem since the last update. Tried to find a way to solve the problem but no luck. Someone please help!

  • When trying to see if my firewall is turned on it says because of unidentified problem windows can not display the firewall settings

    When you try to see if my firewall is on his telling me because of an unidentified problem windows can not display the firewall settings

    Hello
    If you are having problems turning on Windows Firewall, follow the instructions on this page: http://support.microsoft.com/mats/windows_firewall_diagnostic/
    Here are the instructions for error messages: error 0 x 80070424 or error of 0x8007042c
    I hope this helps you.
    Brian
  • I tried to open other photos stored in my pictures library, but that they would open no Ether. I can put pictures as my background but can not display at all.

    I recorded the photo on my desk because I'm lazy, but when I went to the open I can't.
    After that, I tried to open other pictures saved in my pictures library, but that they would open no Ether.
    I can put pictures as my background but can not display at all.

    Check out this link, it seems that you have lost your settings to open the photo viewer in your default viewer.

  • Yosemite: Why 'Shares and Permissions' displays 2 all users with different privileges?

    Some folders and files inside my user folder sharing and permissions like this:

    I can remove the user from "search...". "(a user who has been deleted and no longer exists) but I don't know what to do on both"all"users with different permissions. I can't delete the one with custom privileges. Help!

    Solved by Leroy Douglas. See What are these custom privileges?

  • Administrator privileges, can not uninstall, impossible to run as administrator

    Hello
    I try to uninstall a program, and he said 'you must be an administrator to remove this application. To remove this application, you can log on as an administrator or contact your technical support"or else he says"you don't have sufficient access to uninstall x. Please contact your system administrator. I thought that maybe I had no ownership of the file to uninstall so I found the folder of the program, right click Properties, then advanced, security, then the owner tab. My profile name is displayed and I click on edit, but it says in a window of Windows security "cant' open access control editor." access is denied. "

    OK, so I'm the administrator as I have only one user account. I then tried to follow this advice, http://windows.microsoft.com/en-US/Windows7/Fix-a-corrupted-user-profile, on a corrupt user profile setting, but ran into problems. I notised that anything with the shield symbol reacts when I click it, that is, under user accounts, click on "Add or remove user accounts", but there is no reaction. The same for the change of name of the account, type, manage another account and change user account control settings.

    Also, I tried to start in safe mode. He has successfully uninstalled one program (peerblock) but for the other (private tunnel) says it is not accessible in safe mode.

    I have just tried to run programs as an administrator and a similar error occurs - "Windows cannot access the specified device, path or file. You can not have the appropriate permissions to access the item.

    I uninstalled some programs a week ago and tried others just a few days back which is when I noticed the problem. So, in general, my problem seems to access anything whatsoever with administrator privileges.

    I am under W7 32-bit.

    I hope this is enough information.
    Kind regards.

    Hi again,
    so, ok, I have a firewall, which I had eliminated as the cause of the problem by setting it to allow traffic. However, he just informed me blocked traffic even if its set for allow. I stopped and tried what I could not do more high and everything works again. So in short, the problem was me or PrivateFirewall...

    Thank you

  • How to use Oracle 10g (LOGMINER) consistent with DBA privileges JKM

    Hi gurus,

    Transposition of the CDC, we are checking out JKM Oracle 10g coherent (LOGMINER).
    Only restriction is that we can have no privilege DBA granted to the user of the ODI.

    So far, I did the following

    JKM Oracle 10g compatible (LOGMINER) uesed with

    ASYNCHRONOUS_MODE = NO
    AUTO_CONFIG = NO
    JOURNAL_TABLE_OPTIONS: USERS


    1 source schema: test
    2. There are 2 tables (DEPT_CDC_SRC and EMP_CDC_SRC) in the schema of the TRIAL, the two were added to the process of the CDC
    3 schema work: cdc

    4. from SYS schema the following grants were given to ODI work shema user.

    Grant connect, the cdc resources
    GRANT SELECT ANY TABLE OF CDC
    Grant EXECUTE ON dbms_stats to cdc
    Grant execute on DBMS_CDC_PUBLISH at CDC
    Grant execute on DBMS_CDC_UTILITY to CDC
    Grant execute on DBMS_CDC_SUBSCRIBE at CDC
    Grant execute on DBMS_STREAMS_CDC_ADM to CDC
    Grant execute on DBMS_CDC_IPUBLISH to CDC
    Grant execute on DBMS_CDC_SYS_IPUBLISH to CDC
    Grant execute on DBMS_CDC_ISUBSCRIBE at CDC
    Grant execute on DBMS_CDC_DPUTIL to CDC
    Grant execute on DBMS_CDC_EXPDP to CDC
    Grant execute on DBMS_CDC_EXPVDP to CDC
    Grant execute on DBMS_CDC_IMPDP to CDC

    5. as a user SYSDBA has done the following:
    ====================================
    SHUTDOWN IMMEDIATE;
    BOOTABLE MEDIA;
    ALTER DATABASE ARCHIVELOG;
    ALTER DATABASE OPEN;
    ALTER SYSTEM ARCHIVE LOG START;
    ALTER SYSTEM SWITCH LOGFILE;
    ===================================

    6 start journal... it fails to create the stage newspaper.
    with the following error
    ORA-06512: at "SYS." DBMS_CDC_PUBLISH.

    7. for the goal conceded role DBA to CDC test and start the log it is successful

    8 revoked of CDC DBA and restart the log. It still fails to form newspaper market.
    with the same error i.e.
    ORA-06512: at "SYS." DBMS_CDC_PUBLISH.

    How to solve this problem without any DBA privilege to the scheme of ODI work?

    Kind regards
    Frédéric

    Published by: 804400 on November 24, 2010 02:39

    Hello

    http://www.DBA-Oracle.com/t_insifficient_privileges_create_view_grant.htm said

    You must have the privileges of the object that you made from tables

    Privileges required to create views

    To create a view, you must meet the following requirements:

    You must have been granted the CREATE VIEW (to create views in your schema) or CREATE ANY VIEW (to create a view of another user schema) system privilege, either explicitly, or by a role.

    You need to explicitly obtain the SELECT, INSERT, UPDATE, or DELETE privileges object on all underlying base objects in the view or system privileges SELECT ANY TABLE, INSERT a WHOLE TABLE, UPDATE ANY TABLE or DELETE ANY TABLE. You may not have gotten these privileges through roles.

    I hope this helps.

    Thank you
    Fati

  • Why can not display captions Photos?

    I'm on a Macbook running El Capitan 10.11.4, 2013 and Photos 1.5

    I like that you can read the information with a photo in the Photos, but it seems that the pictures show captions (Descriptions) in an album or a slideshow.  I'm trying to scan a lot of my photo albums of scanning photos and download them to store and display photos.  Part of the fun of a real photo album is to write and see the legends.  With Photos, I can write it as a description for the information, but do not see in either the application display modes.  According to others, this was possible with iPhoto, but not with pictures.  What is happening with this?  Seems simple enough!  Who do not have the Photos feature?  If it is not, and will not be, what other application can use, Mac or other?

    Sorry, but we are users just like you, and no one here can answer questions 'why' - 'what' questions

    You say Apple - http://www.apple.com/feedback/photos.html - needs it more applications they get more it is likely that the features will be e added in future versions (have already had many, many major additions since Photo 1.0)

    LN

  • When firefox crashes of a memory leak, why you can not display the offending tab? Improvement: a task manager as Manager of the display use by tab tab / extension.

    I generally keep windows with multiple tabs open. It is possible that this causes more accidents because the number of pages multiplies any effect that the majority of users with less pages/tabs would suffer. I had problems with Firefox blocks Manager Windows that I looked into this question a lot of variables to track tasks to help. Bottom line, the accident is caused by increasing the memory usage may be caused by the flash add on which fact much IO reads at least a page/tab incriminated could some sites use flash to read my disc without permission, and there is a leak memory in a flash of code uses the sites? I searched the Web for a task manager as add-on for Firefox tabs that would determine the offending page/tab/add-on/extension. This seems an excellent idea which has not been implemented. Since I am a developer, I would be happy to implement, but would like some advice because my knowledge of your product is only at the level of the user.

    There are currently: page of memory that is actively developed. A "task manager" of all kinds is also in the works as far as I KNOW. If you want to help, your best bet is to find the bug there is Bugzilla. If you have the skills coding I can help you in touch with a mentor - let me know.

Maybe you are looking for