Cannot query a view in PL/SQL package but it can query in SQL * more

Hello

Logged on as a user, I can query the table DBA_SEGMENTS, but I can't question via a slider or select from a PL/SQL package.

I get the following error message:

LINE/COL ERROR

-------- -----------------------------------------------------------------

28/4 PL/SQL: statement ignored

33/5 PL/SQL: ORA-00942: table or view does not exist

28 select

29                             count(*)

30 in

31                             n

32 of

33 dba_segments;


Can someone explain to me what is the missing privilege that I need?

Thank you in advance.

Kind regards.

It seems that you have granted to dba_segments by role.

To use this object in pl/sql or sp, you need directly.

Ask your dba to grant:

SQL > grant select on dba_segments to your_user;

Mustafa DOGANAY

http://Doganay.WordPress.com

Tags: Database

Similar Questions

  • I ordered and paid an annual ADOBE PDF PACKAGE that is scheduled to expire April 2016. But I can't use any more the pack, it's just contractually or is an abuse of the COMPANY ADOBE?

    I ordered and paid an annual ADOBE PDF PACKAGE that is scheduled to expire April 2016. But I can't use any more the pack, it's just contractually or is an abuse of the COMPANY ADOBE?

    Hi renzov75729811,

    Is there an error message?

    Make sure that you use the last DC of Adobe Acrobat Reader Acrobat Reader DC Learn & Support to use Adobe PDF pack or attempt to use the service online at https://cloud.acrobat.com/

    Kind regards

    Nicos

  • Why cannot query a file more than once using file adapter...

    Hi all

    When we run this webservice, as I am with adapter file to read/write the file information.
    Usually, file adapter reads all the files and it will not read again the same file which already red.
    Where and how this status maintained by adapter/BPEL file in the system.

    Where it will be available and why slope adapter File read/poll the same file.

    Pls one of you can share your ideas on the same.

    Thank you.

    Change the time stamp of the file.

    Then the adapter FTP or file will get the file again.

    Thank you
    Vijay

  • I need to combine several PDF files into a single attachment on my iPhone. I subscribe to the $ 9 per month package, but I can't seem to find an option to combine the files of one attachment. Can you please help?

    I need to combine PDF files in a magnetic. I subscribe to the $ 9 per month package. Is this possible?

    Hello

    With Adobe Acrobat iOS app, we can only create PDF of it. To combine the documents, go to https://cloud.acrobat.com/combinepdf on your device browser.

    Thank you

    Abhishek

  • Why can't I click on some parts of my screen only if you are using firefox. I can not use the upper part of my scroll bar, but can use the background. I cannot click on the top of all sites, but he can click on any part of the site.

    If you use firefox, I can't use my up arrow of the page or click on the upper part of the scroll bar to make it move. Can I use the middle and the bottom of the bar. Also, I can't click on some items that are on a certain part of a web page (upper part). When I use firefox to open my email the same thing. I can't click on the upper part of the page e-mail delete tab, check e-mail tab, etc. However, I can click on it when I use internet explore so I don't know if it of a firefox issue or not. Thank you

    Recently, the extension of the Yahoo! toolbar and the extension of Babylon have been reported to cause a problem like that. Disable or uninstall the modules.

       * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    
  • Previously, you could use the mp4 files. Now when any mp4 file is a project unless it is a new project file only shows audio when you drag a package but you can see the preview of the video. WTF is underway.

    have not edited using first pro in a while. I recently had a new intro for a video made and had everything to see how it looks in a project that I just changed before and still work to do on. Not knowing anything is bad I import the mp4 in the file project, and note that it looks like this 77264721af38ccf90e95cad20b71abe2.png this means that you can import the audio in the timeline panel and yet I can see the video right there and when I open it up to an extract the file I can still see the video. After that I noticed this, I learned that other files mp4 which worked perfectly in the past now had this problem as well. I don't know what is happening on all I want to know how I can fix that I need this job that I use all the time a lot of files is in mp4.

    Found the problem be! It seems somehow that I have disabled the video portion of the timeline where it says V1. After allowing everything worked perfectly, I feel really stupid, but if anyone has this problem in the future, now, you know what to do

  • I can't see my videos, I can't view the videos of my portfolio, but still can see my projects and images?

    I cannot view videos from my wallet, but still can see my projects and images?

    Hello! Sorry to hear about the troulbe you encounter. Really reaching out for us here: help.behance.net and we can take a closer look. Do not hesitate to send screenshots!

  • Cannot create Materialized View using the PL/SQL procedure

    Hello

    I have a question related to the creation of materialized view.
    I have a stored procedure that creates the materialized view. When you try to perform this procedure, I get not enough privileges error: ORA-01031.

    When I run the content of this procedure as a PL/SQL block anonymous their materialized view is created without any complications.
    Can you please advice me on this subject?
    It is even possible to create a materialized view in the stored procedure as I found no info on this subject.

    Thank you
    Petr

    Hi chudapet,

    Whenever you make in procedure, you must have direct subsidies and not through a role.

    Most likely the grant to create a materialized view is available via a role to your username.
    Assign a direct grant to the user:

    grant create materialized view to scott;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • I cannot view youtube videos, but I can see it in chrome and ie and does not update flash

    I cannot view youtube videos, but I can see it in chrome and ie and flash will not be updated or the other I always click Update now and download it and it says conplète to update but then I check the plugin updates and always says the flash needs to be updated. I run firefox in safe mode and I still can't view videos and I tried reading the forums and makes suggestions like clear cookies and such, but not luck. Another thing is that I get a weird screen when I try to play videos

    http://DL.dropbox.com/u/76233373/YouTube.jpg

    This is a picture of the screen I get
    help would be appreciated because I've had this problem for awhile now

    There are some compatibility issues between the last Flash drive and a few Add-ons Firefox or settings. Could see you if anything in this article helps you: 11.3 Flash does not load video in Firefox.

    You can also consider turning off new protected in Flash 11.3 mode, since this feature is currently being debugged. See this article from Adobe support under the heading of 'Last resort': Adobe Forums: how to fix protected Flash Player for Firefox mode?

    About the update, which the Adobe gives you usually is just a small installer program that you run that downloads the actual plugin. I recommend having closed all Firefox by doing the updates to Adobe so that none of the files are ignored in the process.

    At least one user has noticed a problem where Adobe installed two versions of Flash-by-side; the other oldest had to be removed manually. See the flash works fine in firefox 14 but I can not update.

  • I can't install the software. Get the message "Setup cannot open the file c: / / Program Files/CommonFiles/MicrosoftShared/DAO/DAO2535.» TLB ' and also 'Cannot find Document Viewer' need help as soon as POSSIBLE. "

    Microsoft software is not software of accounting, I used for 10 years.  Also impossible to install the new program AVG Internet security. Similar messages.  Don't know if it's a Windows XP problem or a problem of Microsoft Office Small Business 2003.

    Hello befuddledXP,

    I can not be understanding you correctly. Is the configuration file, that you want to reach on a SBS 2003 Server? If Yes, then you must post in the SBS forums.
    It may be that the file exist no more in the way that you said.

    What is the error message you get when you try to install AVG?

    Do you get the "Cannot find Document Viewer" when trying to open a Word document?
    You can install a visualizer of document from the following Web site.
    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=3657ce88-7cfa-457a-9aec-f4f827f20cac

    Please answer back with an update.

    Sincerely,

  • Cannot install Microsoft Visual C++ 2005 Redistributable Package (x 86) on Windows 7

    Original title: Cannot install Microsoft Visual C++ 2005 Redistributable Package (x 86).

    When I double click on vcredist_x86.exe it shows me the license agreement then I click Yes. After that, it shows "gathering required information" then after 2 seconds it closes without installing

    Microsoft Visual C++ 2005 Redistributable Package (x 86). Either way, I am running windows 7. It had been 6 hours and I still din't get my answer?

    Hi Antiware,

    1. using Windows 7 32-bit version or 64-bit?

    2. why you try to install Microsoft Visual C++ 2005 Redistributable Package on Windows 7?

    3. you receive messages or error codes?

    You can try to install the stand-alone package using administrator privileges and check.

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en

    Right-click on the installation files and select run as administrator and repeat the installation of Jabez Gan MVP, answering machine

    Also check out the following link and try the solutions provided by

    http://social.technet.Microsoft.com/forums/en/w7itproinstall/thread/4f0b90b1-bbb6-4924-83de-1281142ba6ec

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Cannot install iTunes. Get the error, "this installation package cannot be opened. Verify that the package exists and that you can access.

    I can't download itunes on my computer its gives me an error saying "this installation package cannot be opened. "Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package" can anyone help

    Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.Apple.com/kb/HT1923

    Uninstall software, remove programs and solve uninstalling problems
    http://www.revouninstaller.com/

    Remove and reinstall iTunes, QuickTime, and other software components for Windows XP
    http://support.Apple.com/kb/ht1925

    Hello questions, see if that helps: http://www.raymond.cc/blog/archives/2008/02/10/how-to-uninstall-or-remove-bonjour-mdnsresponderexe/

    Problem installing iTunes or QuickTime for Windows
    http://support.Apple.com/kb/HT1926

    Turn on Windows 7 'Compatibility Mode' to iTunes:
    http://www.PCWorld.com/article/188534/turn_off_windows_7_compatibility_mode_for_itunes.html

    Windows reports that iTunesSetup.exe is not a valid Win32 program
    http://support.Apple.com/kb/TS1406

    First of all check if you have a version of 32 or 64-bit Windows:
    1) click the Start button, right-click computer and then click Properties.
    (2) in the system, see the system type - it will say either 32 or 64 bits.
    (3) download the appropriate version using the links.

    ITunes download (32-bit):
    http://www.Apple.com/iTunes/download/

    Download 64 - bit:
    http://support.Apple.com/kb/DL1037

    Make sure that the "Windows Installer" service is running, or force start to begin.

    (1) open run, and type services.msc, and then press ENTER. You can also go
    Control Panel/Admin Tools/Services.

    (2) locate the Windows Installer in the list of installed services.

    (3) check that the status is "started".
    If the condition column is empty, right-click Windows Installer, and then select start.

    (4) If you get the error trying to force start the Windows Installer service,
    and then change the Startup Type to automatic (the default value is 'Manual').
    and then restart the computer.

    (5) very Installation Service runs after you restart the system.

    Also:
    Forum of Apple's Itunes: you can find a solution (if none of the above is of no help) to your problem when you post on their forum.

    http://discussions.Apple.com/category.jspa?categoryID=150

    J W Stuart: http://www.pagestart.com

  • Cannot access SQL more from other than the Oracle users

    Hello

    I installed Oracle 11 g R2 on Red Hat 6. My problem is that I can't access sqlplus from other than the oracle users.

    I put the PATH, the ORACLE_HOME and ORACLE_SID to the correct values.

    Session1

    Connect as: oracle

    [email protected] password:

    Last login: Sun Aug 24 01:24:46 192.168.202.1 2014

    [oracle@localhost ~] $ echo $PATH

    /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Oracle/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin

    [oracle@localhost ~] $ echo $ORACLE_HOME

    /Home/Oracle/app/Oracle/product/11.2.0/dbhome_1

    [oracle@localhost ~] $ echo $ORACLE_SID

    ORCL

    [oracle@localhost ~] $ sqlplus

    SQL * more: Production release 11.2.0.1.0 Sun Aug 24 03:17:32 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Enter the user name:

    Session2

    Connect as: nada

    [email protected] password:

    Last login: Sun Aug 24 02:31:49 192.168.202.1 2014

    [prithwish@localhost ~] $ export PATH=$PATH:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin

    [prithwish@localhost ~] $ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1

    [prithwish@localhost ~] $ export ORACLE_SID = orcl

    [prithwish@localhost ~] $ echo $ORACLE_HOME

    /Home/Oracle/app/Oracle/product/11.2.0/dbhome_1

    [prithwish@localhost ~] $ echo $ORACLE_SID

    ORCL

    [prithwish@localhost ~] $ echo $PATH

    /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Prithwish/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin

    [prithwish@localhost ~] $ sqlplus

    -bash: sqlplus: command not found

    I guess that I could not access sqlplus as the Nada the user has no access to X11R6

    [prithwish@localhost ~] $ cd...

    [Host prithwish@localhost] $ ls - ltr

    Total 8

    drwx-. 30 oracle oinstall 4096 23 August 23:51 oracle

    drwx-. Nada Nada 4096 24 August to 02:33 27 Mathieu

    [Host prithwish@localhost] $

    My question is, although quite stupid, that double

    (1) I have to change the permissions of the directory oracle of 755 for any other user to access the sqlplus?

    (2) why is the user directory under the folder created with permissions of 700, even when the umask is set to 002? Change the permissions of the directory under/Home oracle will cause security problems?

    My apologies for being naïve. It's the first time I installed Oracle under UNIX

    Kind regards

    Prithwsh

    Actually, the default procedure is NOT to install oracle to X11R6, but in/opt/oracle. or maybe/usr/local/oracle.

    This is what you're going to be recommended in the installation documentation, and in doing so, don't forget to run rootpre.sh and root.sh, I never had security problems and could run Oracle from any account.

    Sybrand Bakker

    Senior Oracle DBA

  • bad connect to Sql * more via command and cannot log on to the designer (need for connection string)

    I installed Oracle Developer with success, but having bad connect to Sql more than command line, also unable to connect via the developer tools, I get a TNS: Connect timeout occurred. This happens also for the "Plus" Sql for Windows.

    Oracle Forms connect error.png


    However, I can connect via the Sql Plus command window when it is executed from "Start-> all programs", but not when I first run the command window:

    sqlplus error.PNG


    I have a good Oracle 11 g install on Windows 7 and a good developer Sql install so I can connect to databases, but something does not work when you try to connect through these tools. Although Sql Plus works when called from 'Start-> all programs'

    sqlplus scott/tiger - don't use SQL * Net, you can connect like this even with the listener is stopped.

    Developer SQL can ONLY connect using SQL * Net & can be blocked by the firewall

    to connect using sqlplus & SQL * Net, you need to invoke it as below

    sqlplus scott/tiger@orcl

  • Cannot run PL/SQL using SQL * more

    Hello

    I am very new in the SQL environment. I want to run the following PL/SQL code, which should allow me to send an e-mail, using sql * more:

    DECLARE
    l_mailhost VARCHAR2 (64): = "qiudubcorrel001.qa.local";
    l_from VARCHAR2 (64): = "[email protected]";
    l_to VARCHAR2 (64): = "[email protected]";
    l_mail_conn UTL_SMTP.connection;
    BEGIN
    l_mail_conn: = UTL_SMTP.open_connection (('10.253.14.240'), 25);
    UTL_SMTP. HELO (l_mail_conn, '10.253.14.240');
    UTL_SMTP.mail (l_mail_conn, l_from);
    UTL_SMTP. RCPT (l_mail_conn, l_to);
    UTL_SMTP. Data (l_mail_conn, 'single string message.' |) Chr (13));
    UTL_SMTP. Quit (l_mail_conn);
    END;

    When I type the code above in sql * Plus, it does nothing but waiting just as if the code is incomplete and he expects something more! Could someone tell me what is the problem here?

    Thank you
    Kamal

    Hello

    Try to put a / on a new line after END;

    Concerning
    Peter

Maybe you are looking for