Outer join (with (+)) does not work

I started with a working SQL statement:
SELECT DISTINCT username, r.granted_role
FROM dba_users u, dba_sys_privs s, dba_tab_privs t, dba_role_privs r
WHERE u.username = s.grantee
AND u.username = t.grantee
AND u.username = r.grantee
ORDER BY username, r.granted_role;
Fine, now I want to add two columns which indicate which of the users have SYSDBA and SYSOPER privileges.
As in another post told this can be achieved by:
SELECT * FROM V$PWFILE_USERS;
When I want to merge these two SQL statements I need an outer join but the following does not work:
SELECT DISTINCT u.username, r.granted_role, v.SYSDB, v.SYSOP
FROM dba_users u, dba_sys_privs s, dba_tab_privs t, dba_role_privs r, V$PWFILE_USERS v
WHERE u.username = s.grantee
AND u.username = t.grantee
AND u.username = r.grantee
AND u.username = v.username(+)
ORDER BY u.username, r.granted_role;
I got an error message:
SELECT DISTINCT u.username, r.granted_role, v.SYSDB, v.SYSOP
ERROR at line 1:
ORA-06553: PLS-306: wrong number or types of arguments in call to 'V'
Why?

Run this
SELECT DISTINCT u.username, r.granted_role, v.SYSDBA, v.SYSOPER
           FROM dba_users u,
                dba_sys_privs s,
                dba_tab_privs t,
                dba_role_privs r,
                v$pwfile_users v
          WHERE u.username = s.grantee
            AND u.username = t.grantee
            AND u.username = r.grantee
            AND u.username = v.username(+)
       ORDER BY u.username, r.granted_role;- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com

Similar Messages

  • I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!

    I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!

    You mean an image such as a scanned document?
    If that is the case, the file doesn't contain any text for Reader Out Loud to read. In order to fix that, you would need an application such as Adobe Acrobat that does Optical Character Recognition to convert the images to actual text.
    You can also try to export the file as a Word document or something else using ExportPDF which I believe offers OCR and is cheaper than Acrobat.

  • After upgrading my Macbook to Yosemite, the volume icon at the top right is greyed out and sound does not work.

    After upgrading my Macbook to Yosemite, the volume icon at the top right is greyed out and sound does not work.

    Interesting bug. I'm cautiously optimistic this will get rid of the weekly annoyance. The difference is that I bought my laptop back in Feb 2015, so it came with Yosemite. I think the issue may have appeared soon after an OS update not long after I got the thing, though. I was using a sudo command in the Terminal, but that is obviously not a fix.
    I wonder if there is a broken .plist file that may be fixed ...?

  • My orignal computer that I sync my iPhone 4 with does not work...can I sync it with a new computer?

    My original computer that I set up my iPhone 4 with
    Does not work.....can I use a new computer to sync
    The phone....how do I do this and is there a risk of
    Of losing any apps, music etc

    Try this:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • Itunes 10.6.1.7 I have 2 sets of playlists the first set displays greyed out lists and does not work The second set is fine. How do I get rid of the non working set of playlists?

    I have 2 sets of playlists in the sidebar of itunes. I have recently upgraded to 10.6.1.7 but this condition remains the same
    The top list refers to greyed out listings and does not function
    The list below works fine
    How do I get rid of the "false" list?

    I think the greyed out playlists must be listed from your device which is set up to mirror your library. Because the device is synced you can't edit content directly on the device. From the top of the left-hand column do you have?
    Library > Music, Movies...
    Store > iTunes Store, iTunes Match...
    Devices > <Your Device> > Music, Movies, and all the other "dummy" lists...
    Genius > Genius, Genius Mixes...
    Playlists > iTunes DJ, and then all your playlist folders and playlists...
    If so then that is perfectly normal when your device is connected, either directly or over wi-fi and you have the lists expanded. Simply click the small triangle to the left of the device name to hide all the playlists.
    tt2

  • Left Outer Join & IS NULL Not Working

    In a Data Flow Query element I am using a Left Outer Join to correlate two tables. In order to eliminate rows in which the Left Outer Join found a match with the Right table I am using IS NULL in the Where clause. Unfortunately IS NULL doesn't seem to return true when the NULL is caused by a lack of a match on a Left Outer Join. Has anybody been able to work around this?

    Use not is NULL in next query after the join.
    A source 1 ---
                           C (join query) ----- D (filter condition IS NULL)
    B source 2 ---

  • One SQL/PLSQL query out of several does not work

    I have a report with search filters and most of the search fields are text fields. I have no problem searching by these fields until i add in a select list to search by. Once i apply the select list filter(:P21_COUNTY), it displays the correct information but then all the text fields stop displaying the correct info. Does it work differently if using a select list vs. other field types? Thanks, Deanna
    There is a sample app on apex.oracle.com
    Workspace:DEANNA2
    Username:[email protected]
    Password:Dclipse03
    Page 21
    Login:[email protected]
    Password:Dclipse03

    Looks like a Application express Question
    Post it [Here | http://forums.oracle.com/forums/forum.jspa?forumID=137]
    SS

  • Outlook 2007 Out of Office does not work

    Hello,
    Our local network uses Exchange Server 2008 and has clients connected with Outlook 2007 and Outlook 2010. Recently one of the users reported that Outlook 2007 cannot access the Out Of Office function. When he tries Outlook reports that the server is unavailable.
    I confirmed this on 2 machines which use Outlook 2007. I also tested on 2 machines using Outlook 2010 and they do not have the problem. Per a ms support kb article, I tried using a new Outlook profile for one of the Outlook 2007 machines and it made no difference.
    I am able to use the Out of Office feature when using Outlook Web Access for the machines which use Outlook 2007. Due to this I’m pretty sure the issue is Outlook 2007. The machines are current for Windows and Office updates. Any suggestions on how to resolve
    this?
    Thank you,

    I believe you mean Exchange 2007.
    OWA is a completely separate mechanism to access the Out Of Office service. Not relevant.
    Check your AutoDiscover for your OOF address, with that address attempt to connect to that address via client machine, you should get an XML return. If no return or error message, move forward from there.

  • Guided Edit "out of bounds" does not work for PSE13 in Yosemite

    When using Guided Edit "Out of Bounds" sometime freezes or will not continue past step 1. I tried deleting preferences as well as re-install but still same problems. Also, I have applied all current updates.

    Got this working.

  • Macbook Pro 2011 DVI HDMI out does not work with TV when the power cable is connected

    My Macbook Pro (Early 2011) DVI HDMI out does not work with TV when the power cable is connected. If get the blue screen and then can use the macbook but nothing is displayed on the TV. If i go into display I can see that there are two screens but nothing displayed on the TV. If i take the power cable out at this point the TV shows the second desktop as expected. If i then reconnect the cable, the screen flickers, as though it is being affected by the power cable, and the screen goes blank on the TV. Only if i remove the DVI cable do i get the blue screen again. If i remove the power cable and reconnect it will do it every single time, so i cannot see it being a TV issue or a minor glitch.
    I have had this working previously but at the minute it seems to not be playing ball....any thoughts
    Thanks
    Dan

    BUMP
    Any ideas?

  • JDK 1.6_07 with Windows: System.out.flush() does not work...

    I wonder if this is a known issue: Since I upgrade the jdk1.6 version to the _07 pack, text IO does not work anymore with WinXP cmd.exe window. Assuming a static import of System.out, I use:
    static void prompt()
      out.print(pr); //pr is a prompt string...
      out.flush();
    }works as usual with Unix/Linux, but with windows nothing will be written to the terminal, until I make at least one input. In that case a barrage of cached prompts appear all at once.
    Do we have a bug for it, can we work around somehow?
    Thomas

    Since this code works correctly in Java 6u10 on Windows XP
    System.out.print("This is the data");
    System.out.flush();You are apparently doing something unusual or wrong. What is "out"?
    Show a small sample program that compiles and exhibits the problem when executed.

  • After the OS 6 update my speaker does not work. My music plays but no sound comes out. Can someone help me with this issue? I currently have the 4S.

    After the OS 6 update my speaker does not work. Volume control on the side does not adjust the volume either. My music plays but no sound comes out. Can someone help me with this issue? I've tried rebooting my phone but still no sound comes out. I currently have the 4S.

    try to activate and desactivate the airplne switch a couple of time

  • Sharepoint 2013 list view quick edit does not work with out remote API permissions

    sharepoint 2013 list view quick edit does not work with out remote API permissions.
    When I give Use Remote Interfaces  -  Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site it works which is not an ideal situation..
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    This is true. If you use Fiddler to watch the requests from the list view quick edit you can see CSOM calls. For example when changing a value in a cell, when you tab out you will see the SetFieldValue and Update method calls on the list item.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • My Time Capsule does not work with existing WiFi

    Following a question solved on March 24 by LaPastenague, but gone bad again.
    Apple AirPort Time Capsule
    I felt the need for a physical backup of my data, as I would not completely trust the different clouds. I use, and have used Dropbox for 4-5 years and are very satisfied with that, but I am still not sure if or when a political lunatic will shut off the internet.
    I purchased the Apple AP Time Capsule 2T, because all my other stuff are Apple, and that it's wireless. My old backup is Maxtor 300 GB.
    Since we stay 2-3 weeks on two locations, one in Norway and one in Sweden (two different countries) we must use Mobile Broadband 4G, cables or fibre connections are useless for us, and we don't have it up to the houses. I have one mini router for each country, we bring with us iPhones, iPads, iMac, Apple TV, APExpress. When we pass the boarder I change the mini router, and the system continues working perfect on the WiFi, except the APExpress that needs to be reconfigured,  but then it works.
    The APTC was difficult to make working as it would not accept to be in an existing network, but with good help from the Apple Community, LaPastenague, with forcing the TC connect to the APE with Ethernet cable in bridge mode, ref "My Time Capsule does not work with existing WiFi" from March 24, the problem was solved and all gadgets worked together in a perfect harmony, until we changed location.
    Now, as I have my second WiFi network, and the APExspress is reconfigured, it's like the TC thinks, I am the base boss here, I am not taking orders from APE one more time, and it simply does not work, not only that, it fluctuates all the time.
    I have a slight feeling that the two WiFi bands are making the trouble as during the configuration of the TC sometime the last figure 6 and 7 pops up, and that has something two do with the two different 2,4 and 5 GHZ bands
    So, I am curious if you have any idea ?
    I am thinking of returning the TC if I don't make it work now, but how do I delete all the data that's on it?

    I can deal with the last question first and easily.
    I am thinking of returning the TC if I don't make it work now, but how do I delete all the data that's on it?
    Open the airport utility .. go to the disk tab and select erase.
    When you select erase you will get mulitiple options.
    Quick removes the file table but does not delete the files,, it takes 2min or less.
    A Zero out data is the secure way,, by writing 0 ie low level drive format.
    It can take several hours..
    7 pass will take a week.. not recommended..
    35 pass erase is ridiculous.. it would take a month.. put an ax through the TC. It is quick and better.
    Now, as I have my second WiFi network, and the APExspress is reconfigured, it's like the TC thinks, I am the base boss here, I am not taking orders from APE one more time, and it simply does not work, not only that, it fluctuates all the time.
    The fact that it did work and has now failed might point to faulty unit.
    The only way to tell is reset it properly to factory and start over.
    Universal Factory Reset.. any model TC or AE.
    Unplug your TC/AE from power or turn off at the power point.
    Hold in reset. and power the TC/AE back on..  all without releasing reset and keep holding in for about 10sec. (this is often difficult without a 2nd person or a 3rd arm).
    Release it when the status light flashes rapidly. If it doesn’t flash rapidly you have missed it and try again.
    Note..
    Be Gentle! Feel the switch click on. It has a positive feel..  add no more pressure after that.
    TC/AE will reboot after a couple of minutes with default factory settings and will wipe out previous configurations of the router.
    No files are deleted on the hard disk in a TC.. No reset of the TC deletes files.. to do that you use erase from the airport utility.
    Generally having multiple wireless AP should not cause problems.. but it is better to set channels manually.. so it doesn't go beserk rotating channels.
    Remember to keep all names short, no spaces and pure alphanumeric.
    Sadly though the Apple routers have no logging now and no SNMP and almost nothing to help diagnose a problem, so if it continues .. take it back to apple.. they have given you no other method of fixing it.

  • Home sharing does not work with apple tv

    Can anyone help me.  I used to be able to stream all content from my home master computer to my Apply TV.  Now it suddenly does not work.
    Apple TV itself works just fine.  I can also airplay using it with out IPADs.
    I have uninstalled and reinstalled Itunes.  Reset the modem/router.  Reset Appletv.  Tried with Norton disabled.  etc.
    Nothing seems to work. 
    I keep getting the 'Turn on your home sharing in Itunes' message.   But it is on.
    Help is appreciated.

    Welcome to the Apple Community.
    Sometimes just disabling Norton isn't enough, you may need to hunt down every last file it has written to your computer then re-install iTunes. I understand Norton can be quite a nasty little intrusion.
    I know very little about PC's or security software as I have neither, but the following article might help you.
    Troubleshooting Security Software

Maybe you are looking for