Not getting all of the results from ALL_OBJECTS in Procedure

I created the following procedure under a DBA account. The procedure selects info from ALL_OBJECTS. When I execute the procedure under this same DBA account, It does not return objects of all owners; only owners like SYSTEM, SYS, PUBLIC, and the DBA account itself.
But if I run the same code anonymously in SQLplus, under the same DBA account, I get objects of all the other owners that I also have access to.
What do I need to do in order to have the procedure return objects of all the other owners?
Here's the procedure:
CREATE OR REPLACE procedure xxx
IS
CURSOR C1 IS
select distinct owner
from all_objects
     order by owner;
OwnName VARCHAR2(30);
BEGIN
OPEN C1;
LOOP
fetch c1 into OwnName;
EXIT WHEN C1%NOTFOUND;
dbms_output.put_line ('Owner ' || OwnName);
END LOOP;
dbms_output.put_line ('Procedure xxx Ended');
CLOSE C1;
EXCEPTION
WHEN OTHERS THEN
IF C1%ISOPEN THEN CLOSE C1; END IF;
DBMS_OUTPUT.PUT_LINE (CHR(0));
DBMS_OUTPUT.PUT_LINE ('OwnName: '||OwnName);
DBMS_OUTPUT.PUT_LINE ('SQL Code: '||TO_CHAR(SQLCode));
DBMS_OUTPUT.PUT_LINE ('Error Message: '||SUBSTR(SQLERRM, 1, 200));
END;
Thank you.

When you execute the code from within a procedure, instead of within an anonymous pl/sql block, it only applies the privileges that have been granted directly and does not apply any of the privileges that have been granted through roles. If you "set role none", then execute your anonymous pl/sql block, you will see the same limited result set that you are getting from the procedure.

Similar Messages

  • Data is not getting displayed in the report from an Infoset.

    Hi All,
    I am having a report  based on an infoset. This report is displaying the data in the Dev. envmt. When it is transported to the QA, it is not displaying the data in the BEx as well as RSRT, in the QA envmt. The patch levels of both the Dev. and QA are the same. The Queries are same in the Dev and QA also.
    While trying to display the data from the infoset (rt.click- display data), i am able to view the data, in the QA.
    Could anyone please suggest why the data is not getting displayed in the query designer.
    Thanks & Regards,
    A.V.N.Rao

    Hi Ashish,
    I ran the "ZPS/!ZPS" in RSRT where ZPS is the infoset name. In Dev, it displayed the values. In QA, it displayed the below messages:
    ECharacteristic 0TCAKYFNM does not exist. Check authorizations
    WThere are calculated elements. These results are bracketed [  ]
    and below that, it displayed the values for Number of records. But, it has not displayed the values for the other figures.
    Does this has any impact in QA.
    Thanks & Regards,
    AVN Rao.

  • Firefox will not import all of the favorites from Internet Explorer 11 in Windows 8.1 64-bit OS!

    There is another post about this problem in the forum, but the answer does not work. This is the first time I've ever encountered this problem when installing/using Firefox on my desktop PC. I have a new (3/25/14) Dell XPS 8700 desktop tower with Windows 8.1 64-bit (and now Update 1) installed, along with Internet Explorer 11. I previously had a 2005 Dell Dimension 5100 desktop tower running XP Pro SP3 32-bit, which never had any issues running Firefox, but has since died. I used to run Firefox as my default browser, but not any longer. Now, during the install process, Firefox asks if you want to import from Internet Explorer, as it has always done before. I chose yes, and it reported that it pulled everything in from IE. However, it only imported my favorites folders whose names start with a numeral, and then A, B, and onward down the alphabet, but it doesn't import anything more after getting to the folders whose names start with E. So, all of my remaining Favorites folders whose names start with F, G, and forward down the alphabet from there are all absent from Firefox's Bookmarks. I also tried importing the favorites after installing Firefox, which I don't prefer since Firefox installs a folder called Internet Explorer to go to first to get to your favorites. However, still, Firefox only brought in my favorites folders from A to E, and stopped there again. I do not see any way to export my favorites from Internet Explorer (there is no import/export option under favorites, nor anywhere else in IE 11). Uninstalling and reinstalling Firefox resulted in the same problem, even after making sure to delete my settings, etc., in the process. Please update Firefox's installation executable so it's able to import ALL of Internet Explorer 11's favorites folders and their contents, complete, as it has always done before. Please contact me when the corrected executable to install Firefox properly is ready for download. Thank you.

    If there are problems with importing the IE Favorites in Firefox then export the favorites in IE to an HTML file and import that file in the Firefox Bookmarks Manager.
    If you do not have the menu bar in IE then right-click the toolbar at the top to enable the Menu Bar.
    *Export the favorites in IE to an HTML file (bookmarks.html):<br>File > Import and Export
    *Import the HTML file in Firefox:<br>Bookmarks > Show All Bookmarks > Import & Backup > Import Bookmarks from HTML
    See "Import from another browser" and "Import from file":
    *http://kb.mozillazine.org/Import_bookmarks

  • When I try to add a related person to my iphone 5 I do not get all of the choices.

    I am trying to add related people to my contacts and only get three choices:
    manager
    spouse
    assistant
    What is causing this problem as I want to be able to add all of the related categories such as:
    friend, brother, custom etc.
    PLEASE HELP!!!

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Not able to retrive the recordset from oracle stored procedure in VC++

    Hi,
    I am trying to retrieve the records from the reference cursor which is an out parameter for an oracle 9i store procedure in VC++ application. But it is giving the record count as -1 always. Meanwhile i am able to get the required output in VB application from the same oracle 9i store procedure .
    Find the code below which i used.
    Thanks,
    Shenba
    //// Oracle Stored Procedure
    <PRE lang=sql>CREATE OR REPLACE
    PROCEDURE GetEmpRS1 (p_recordset1 OUT SYS_REFCURSOR,
    p_recordset2 OUT SYS_REFCURSOR,
    PARAM IN STRING) AS
    BEGIN
    OPEN p_recordset1 FOR
    SELECT RET1
    FROM MYTABLE
    WHERE LOOKUPVALUE > PARAM;
    OPEN p_recordset2 FOR
    SELECT RET2
    FROM MYTABLE
    WHERE LOOKUPVALUE >= PARAM;
    END GetEmpRS1;</PRE>
    ///// VC++ code
    <PRE lang=c++ id=pre1 style="MARGIN-TOP: 0px">ConnectionPtr mpConn;
    _RecordsetPtr pRecordset;
    _CommandPtr pCommand;
    _ParameterPtr pParam1;
    //We will use pParam1 for the sole input parameter.
    //NOTE: We must not append (hence need not create)
    //the REF CURSOR parameters. If your stored proc has
    //normal OUT parameters that are not REF CURSORS, you need
    //to create and append them too. But not the REF CURSOR ones!
    //Hardcoding the value of i/p paramter in this example...
    variantt vt;
    vt.SetString("2");
    m_pConn.CreateInstance (__uuidof (Connection));
    pCommand.CreateInstance (__uuidof (Command));
    //NOTE the "PLSQLRSet=1" part in
    //the connection string. You can either
    //do that or can set the property separately using
    //pCommand->Properties->GetItem("PLSQLRSet")->Value = true;
    //But beware if you are not working with ORACLE, trying to GetItem()
    //a property that does not exist
    //will throw the adErrItemNotFound exception.
    m_pConn->Open (
    bstrt ("Provider=OraOLEDB.Oracle;PLSQLRSet=1;Data Source=XXX"),
    bstrt ("CP"), bstrt ("CP"), adModeUnknown);
    pCommand->ActiveConnection = m_pConn;
    pParam1 = pCommand->CreateParameter( bstrt ("pParam1"),
    adSmallInt,adParamInput, sizeof(int),( VARIANT ) vt);
    pCommand->Parameters->Append(pParam1);
    pRecordset.CreateInstance (__uuidof (Recordset));
    //NOTE: We need to specify the stored procedure name as COMMANDTEXT
    //with proper ODBC escape sequence.
    //If we assign COMMANDTYPE to adCmdStoredProc and COMMANDTEXT
    //to stored procedure name, it will not work in this case.
    //NOTE that in the escape sequence, the number '?'-s correspond to the
    //number of parameters that are NOT REF CURSORS.
    pCommand->CommandText = "{CALL GetEmpRS1(?)}";
    //NOTE the options set for Execute. It did not work with most other
    //combinations. Note that we are using a _RecordsetPtr object
    //to trap the return value of Execute call. That single _RecordsetPtr
    //object will contain ALL the REF CURSOR outputs as adjacent recordsets.
    pRecordset = pCommand->Execute(NULL, NULL,
    adCmdStoredProc | adCmdUnspecified );
    //After this, traverse the pRecordset object to retrieve all
    //the adjacent recordsets. They will be in the order of the
    //REF CURSOR parameters of the stored procedure. In this example,
    //there will be 2 recordsets, as there were 2 REF CURSOR OUT params.
    while( pRecordset !=NULL ) )
    while( !pRecordset->GetadoEOF() )
    //traverse through all the records of current recordset...
    long lngRec = 0;
    pRecordset = pRecordset->NextRecordset((VARIANT *)lngRec);
    //Error handling and cleanup code (like closing recordset/ connection)
    //etc are not shown here.</PRE>

    It can be linked to internal conversion. In some case, the value of internal or extranal value is not the same.
    When you run SE16 (or transaction N), you have in option mode the possibility to use the exit conversion or not.
    Christophe

  • I have an iPhone 5 16gb white color and i did not get any of the services from apple pls help[ me out

    I have one iphone 5 16 gb white colour with me and its in still under warranty and my phone was fallen down by chance and it got turned off totally and not even switched on also then i went to apple authorised service center for regarding the same . then service center people said that sir you need to submit your phone , after that i left my phone to service center and after two days i have got one call from service center that sir your phone is under phisical damaged condition so u will not be abel to get warranty from apple this will cover under paid replacement and you need to talk to apple customer care also regarding this .same .
    Then i called up to apple customer care and they said sir  we have got some images from the service center regarding your phone and we found that your logic board is damaged from inside and you would not be abel to get the paid replacement also you need to buy a new phone on stock price i was shocked on that time why would i pay 40 to 50 thouasnd again on iphone if its not that much stronger to take bit of imapcts like this
    I had talked numbers of time to service center also but they all are denied against the complainst
    if any body is there how can help me out regarding this so pls register my complaint and help me out from this highly dissatisfied service from apple .
    Thnaks
    karan

    Warranties do not cover damage

  • I purchased a season pass to a tv show and did not get all of the downloads

    I purchased a season pass to a tv show, and only three of the eight shows available for download actually downloaded. The other five came up to download, but then disappeared. There will be around 20 all together, and I know the other 12 will not be available until after they air. I even received a confirmation email that showed I should have been able to download 8, not just 3. What can I do? How do I get the other 5 that should have downloaded?

    Go to the page roaminggnome linked to. Under the *Get Customer Service* column, click Video, and it should expand the list.
    Click on *Video Purchases* next, and it will expand the list again.
    Click on *Lost or Missing items*.
    A gray button that says *Email Us* will appear on the right.
    If you aren't seeing that, maybe your popup blocker is hiding it.

  • How do I get all of the music from my ipod touch onto my itunes. Some of the music is from my brothers and friend's accounts as well and I want it all on my PC itunes.

    Help :)

    The music you acquired from your friends is not yours to keep. If you want that music, you should buy it. To do otherwise is commonly known as stealing.
    Although it's a grey area, if your brother lives in the same house as you, that music you can keep. If the music is on your brother's computer, use an external hadrd drive to copy the music to your computer, import it into iTunes and then put it on your iPod.
    For the musc that you have actually paid for, it should already be on your computer or in a back up copy that you have previously made. If not, then songs purchased from the iTunes Store can probably be downloaded again, just go to your account in the store. Other MP3 retailers usually let you re-download the music. For any CDs that you used, simply use the CD to copy them into your iTunes Library gain.

  • Did not get all my purchased music from music store.

    i was downloading music i purchased form the music store next thing i dont know why it stoped before the entire album, & can i finish where i left off with the purchased not gotten songs

    Hi,
    Sure.
    To manually initiate a resumable download (music) simply choose Advanced > Check for Purchases.
    After you choose Check for Purchases, iTunes will then ask you to log into your iTMS account. Type in your username and password and then click Check.
    If there is any purchased content that did not completely download, content will start to download from where it left off. You will see the status in the iTunes display.
    Santo

  • Why would someone launch a newer version and not get all of the bugs out first?

    Facebook will not load. Email will not load. Nothing will load. Firefox is not compatible with my anti-virus, so it disabled. All Adobe files were lost in the download process. FF is running soooo slow. I uninstalled FF and now cannot reinstall. When I go to mozilla.com there in no "download now" button. What is up with this?

    Warranties do not cover damage

  • How do I get all of the songs from the iPhone back up to show up in my iTunes library?

    I just want all of my songs to show up in my library so that I can add my new CDs to my iPhone without loosing any music. If you have any idea on how I can so this, please help me!!

    Why aren't all of your songs on your computer?
    You can transfer itunes purchases from your iphone to your computer: File>Devices>Transfer Purchases

  • Not getting all my mail

    I have an Imac and an Ipad WIFI and use a Time machine base station WIFI. I also have two email accounts, both on the same ISP. The Imac is not turned on most of the time and I use the Ipad for most of my daily computing. The problem is the Ipad is not getting all my mail messages from the server. Whenever I start up my IMAC, I get more messages that the Ipad received. I have done a full reset on the Ipad, but as yet can't fix the problem.
    Any ideas??

    Very long shot - which might have something to do with it. The downloads are set to 25, and I don't refresh the load button. However, that is only part of the answer I think. This morning, I sent out two email messages to a group, of which I am on the list, and one my Ipad I received only one. Alos, one of the things that happens is that my wife is the other account. And we belong to a community which has a server which bounces email to all members of the community, when we send the server an email. Quite ofen, one of us will get the mail, but not the other, and it is not consistent as to who gets the email.
    Fun isn't it???

  • All of the music from my itunes is missing.  I do not have a Mac or PC, how do I get my music back?

    all of the music from my itunes is missing.  I do not have a Mac or PC, how do I get my music back?

    If the music was purchased from iTunes and if you are in a country where music can be redownloaded and it's still available in the store, then you should be able to redownload it via the Purchased tab in the iTunes store app on your device, or turn on Settings > iTunes & App Store > Music (under the 'Show All' heading) 'on' on the device and it should then show in the Music app with a cloud icon against them for redownloading

  • TS1424 I purchased an album from iTunes using my computer. All of the songs from the album are on my computer and play perfectly. When I try to sync the songs to my iPhone or iPad, I get an error message that says 3 of the songs can not be downloaded to t

    I purchased an album from iTunes using my desktop computer. All of the songs from the album are on my computer and play perfectly. When I try to sync the songs to my iPhone or iPad, I get an error message that says 3 of the songs can not be downloaded to these devices. Any ideas?

    Thanks very much I have contacted them via this. Just hope they respond quickly- rather annoing! Greatly appreciated though

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

Maybe you are looking for

  • Account Assignment but Stock Qty to be updated

    Hi in our Business Process, we creating PR from Plant Maintenance Order - Account Assignment : F. and create Account Assignment PO (F) with ref to that PR. and GR is valuated. so at the time of GR, Qty & Value hits the Account Assignment Object (F) -

  • Filling an access table with data put in a form

    Hello everybody and in particular to Jeffrey Bardzell, if he's there... I'm reading the guide "Dreamweaver MX 2004 with ASP, COLDFUSION and PHP written by J.Bardzell" aiming at learning how to create asp dynamic pages. Thanks to J.Bardzell for his ve

  • Java Code  that can find all the specified functions in a sql statement

    If i pass a string like SELECT CONCAT(region_name,store_name) , length( region_name) , region_name || store_name, region_name, store_name FROM Geography WHERE store_name = 'Boston'; Then my code should return CONCAT(region_name,store_name) length( re

  • Error 1418 - Try USB Port in Back

    Having spent hours reviewing and trying all the 1418 Errors reported & possible solutions in the database, (including the "5 Rs"), I rang Apple Support in Australia. I was having the same problem as many reported here on Windows XP SP2 1. 1418 Error

  • Package / procedure privileges

    In a manual, I found: "Database applications explicitly call packaged procedures as necessary. After being granted the privileges for the package, a user can explicitly execute any of the procedures contained in it." But this is not working for me. I