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.

Tags: Database

Similar Questions

  • 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.

  • 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 is a user with the DBA privilege necessary side SQL Server to migrate?

    Greetings

    Project to migrate a SQL database to Oracle using SQL Developer.

    The docs say that a user with DBA privileges is required in the SQL Server database when you run the migration of the side Oracle.

    Why?

    Why a user with only READ access to SQL Server data would be necessary?

    Thank you very much!!

    -gary

    The DBA privilege at the source database is required because SQL Dev Migration is also collect information from SQL Server system tables, which a normal user is not always possible to query. It is mandatory that the migration is trying to build an Oracle schema which corresponds as much as possible the source database.
    But this requires having become DBA in the foreign database to avoid permission problems. If you SQL Server admin does not want the DBA privilege, you can also do a Migration offline - here the ADMINISTRATOR must run the generated scripts offline in-> Migration-> 3rd capture in the database offline party

  • How to connect with DBA role

    Hello
    I installed my own server Oracle 10 g on my computer, but I can only connect as SCOTT/TIGER. This account has only the connect and resource roles, but I want to connect to the database as a user with the DBA role. Could you get it someone please let me know how to do this? Thank you!

    Hello

    "conn / as sysdba". connect like that, you'll be logined with DBA privilege as user sys.

  • Use an account administrator with elevated privileges

    To: Bill

    I recently bought a new computer and started reading Windows Vista inside

    Off to learn all about the new operating system.  In Chapter 2, section

    on the configuration of the System Recovery Options, he said, "to see how much space.

    System Restore is currently using, open a command prompt window and the question of the

    following command: Vssadmin list shadowstorage

    This command prompt is returned, ' error: you do not have the correct permissions.

    to run this command. Please run this utility from a command window that has

    high administrator privileges. »

    I am logged in as owner, which is the default Administrator account the

    computer.  How can I connect administrator with elevated privileges?

    Thank you

    Bill

    From: Ronnie Vernon MVP

    Bill

    Simply raise the line of command manually. Go to start / all programs/accessories. Locate the "Command prompt" shortcut, right-click on this shortcut and select the "Run as Administrator" option.

    Somewhere in this book, changes in the way of work user accounts is explained. The most notable change is that when you run with an administrator account, you run with standard user privileges. You must explicitly raise a process to obtain Administrator privileges.

    --

    Ronnie Vernon

    Another response of the community of Windows Vista discussion groups

  • Workspace with an Oracle SCHMEA with SYSDBA privileges

    How can I associate a workspace to a schema of database with SYSDBA privileges. The schema cannot be SYS or SYSTEM.

    It is the 10th

    Thank you
    R

    Hello

    I think that it is not good idea. You can't do that.

    But if you really like to do

    create user NEW_USER
    identified by  NEW_USER_PASSWORD
    default tablespace users
    temporary tablespace temp;
    grant connect,resource,dba to NEW_USER;
    

    And assign NEW_USER to your workspace
    http://download.Oracle.com/docs/CD/E14373_01/admin.32/e13371/adm_wrkspc.htm#sthref256

    But remember that applications use not privileges through roles.

    BR, Jari

    Published by: jarola on March 29, 2010 08:17

  • 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?

  • TOSHIBA Power Saver won't work on the account with limited privileges

    Good day to all.
    I have old Satellite 1410 and for security, I am working on an account with limited privileges. I can't start Toshiba Power Saver, I get "access denied" message.
    I need to remove energy saver and I use Control Panel Power Option, but I can not here the default brightness.
    Can someone help me?

    Janusz

    Without system administrator privileges, many system options are locked and could not be used.
    You need admin rights to access this tool.

  • Additional administrator with less privileges

    Hello!

    I would like to know how to create an additional administrator / Junior with fewer privileges than a super admin. I use the network of windows server domain in 2012. Some features like creating users / group, sharing files or access the file with administrator privileges should be removed for the junior.

    Please help me.

    Concerning

    Sagar

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • When you try to reply to emails on Outlook Express, the page compilation is behind the current screen

    Original title: Outlook Express

    When you try to reply to emails, the compilation page behind the current screen (used to stay at the front).  Then, when you access it, the blue header fades after a few seconds and I am unable to continue.  As a result, cannot answer.

    Hello

    ·         You get the error message?

    ·         Were there recent changes made on the computer before the show?

    I suggest you to follow the steps in troubleshooting this article and check if it helps.

    Error messages when you send and receive in Outlook and Outlook Express

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

  • 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?

  • Windows 7 - a single account - administrator with guest privileges

    Trying to help a friend who just bought a used computer at a local thrift store. I was going to clean up a bit and found that the laptop has 1 single user account to connect to the laptop - administrator account - but it shows that as with guest privileges. It doesn't have a password associated with it so I can start as administrator, but only the privileges of comments.

    When I try to add a user through managing, I get a popup that says if you want to allow this, type an administrator password. There is no account administrator with full administrator privileges to do this. The YES option is grayed out and pretty much that appears whenever I try to do anything about this either on the laptop as to remove an old program in Control Panel, etc...

    Is the only way to get this administrator account to full administrator privileges to delete it and reinstall? He did nothing with the wise laptop - just for laptop software and the power cord in.

    Any suggestions on a way around this box that requires administrator privileges or a way to elevate the administrator account back to administrator privileges?

    With the help of a PC of uncertain origin is high-risk stuff. The machine may be badly infected, or it could be hacked so to it displays each of your typing on a computer hacker in a distant country. Your best bet is to perform a destructive factory restore so that she is "like new". This will also solve your problem of password. Consult the manufacturer's web page for detailed instructions.

  • Windows 7, I forgot the password of the account with administrator privileges, how can I reset or remove this password

    I have two user accounts, now I forgot the password of an account with administrative privileges, how can I reset or remove this password

    I have two user accounts, now I forgot the password of an account with administrative privileges, how can I reset or remove this password

    There are a lot of options built into Windows to help you out of this situation:
    • Restart the computer with your Windows repair CD, then use system restore to set Windows in a few days (only works if you have recently changed the password).
    • Log in as administrator mode without failure, then reset the password for your existing account (the password is usually empty).
    • Insert your flash drive USB with the password key file (only works if you have taken the time to create such a key file).
    • Use the password indicator (works only if you have created a hint and if it's good enough to allow you to guess the password)
    • Check your paper files (works only if you threw down the password somewhere)
    After solving this problem, plan in advance and create, test and document an alternative admin account, same as you have a spare House key.
  • "Access is denied. Please log on with administrator privileges and try again.

    I am running windows 8 and until a few weeks ago, I could play and enjoy age of Mythology, but now, whenever I try to play, I get this message:

    "Access is denied. Please log on with administrator privileges and try again.

    I read a few other posts regarding this issue and to be honest, none of them helps me at all and I found the instructions to be very complicated.

    I think that my problem started only after an update or other Windows, but I could be wrong.

    I'm on a laptop and no other other person has an account on or use this computer - so I thought that I was the administrator.

    I really hope that someone can help me with what I really want to play my game again.

    Thanks in advance.

    Concerning

    BFchild

    Hello

    Thank you for the update on the issue.

    Yes, you are right that if the mentioned Windows Update is installed on your system, then some programs may not run. (For example, some video games not work.)

    For more details and information on the mentioned update, you can see the article mentioned below and see if it helps you to solve the problem.

    MS15-097: Description of update for the graphical component of Windows security: 8 September 2015

    Keep us.

    Kind regards

Maybe you are looking for

  • How to disable the restrictions for deleting call logs

    Y at - he on an option to put the restriction to delete call log history journal calls or stops history in I cloud.

  • MBP screen flashes green fluo randomly?

    Hello I have a MacBook Pro (15 inch, mid-2012) that I've been to * and return with (several dead HD which Apple has replaced)... For the past year, I have been making this strange green 'flash' on screen every moment again. It seems to happen randoml

  • HD is full, but there is no files on the computer

    Hi, I've been struggling with this problem for quite a while now. I can't seem to find anything online that actually works, I hope someone can help. I have an iMac 27-inch retina display, 1 TB HD. I look on the storage and the other section of the co

  • Satellite Pro 2100 - where can I download the drivers

    Hi all My friend has just been given a Toshiba Satellite Pro "sp2100" model number sp210e - 006p 9 - 4 d Although I can find plenty of mentions on Google I can't find this model on this website to download the drivers. I go as far as to select "serie

  • L750 satellite crashes during sleep - BSOD

    I have download the blue screen every day - only started happening in the last 2 weeks. I know it's a blue screen since I was woken up by an intense blue light this week while I was asleep. I had enough time to see the screen flash, saw and then rest