Is there any view to get the privileges of that particulatr role?
Hi,
I wanna know,what are the privileges for the role.How to get it?
Please review the following;
Viewing Privilege and Role Information
http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/admusers.htm#sthref1804
Also mention the database version.
Adith
Similar Messages
-
Isn't there DBA_ view to see the privileges granted to a role ?
DB version :11.2
I couldn't find a DBA_ view which would list all the privileges granted to a role. Finally I had to grant the role to a user and then connect as that granted user and then query ROLE_TAB_PRIVS view. As a DBA , I can't login into business schemas to check this.
The scenario
==============
SCOTT schema has two tables : HRTB_EMP_MASTER and HELLOWORLD
I want to grant SELECT privileges on these two tables to another user called TESTUSER but not directly ; through roles
SQL> conn / as sysdba
Connected.
SQL> grant create role to testuser;
Grant succeeded.
SQL> conn testuser/test123
Connected.
SQL>
SQL> create role testuser_ro;
Role created.
SQL> conn / as sysdba
Connected.
SQL> grant select on scott.hrtb_emp_master to testuser_ro; --- > Granting the SELECT priv to the role first
Grant succeeded.
SQL> grant select on scott.helloworld to testuser_ro;
Grant succeeded.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT'; ----> This won't work because I am connected as SYS
----> ROLE_TAB_PRIVS is user specific view
no rows selectedSince I couldn't find a DBA view which will the privileges granted to a role , I granted the role to the user I had to login to the user (against our security policy) and query
ROLE_TAB_PRIVS.
SQL> grant testuser_ro to testuser;
Grant succeeded.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT';
no rows selected
SQL> conn testuser/test123
Connected.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT';
ROLE OWNER TABLE_NAME PRIVILEGE
TESTUSER_RO SCOTT HELLOWORLD SELECT
TESTUSER_RO SCOTT HRTB_EMP_MASTER SELECTyou should search for grantee, not owner
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create role r1;
Role created.
SQL> grant select on sys.v$database to r1;
grant select on sys.v$database to r1
ERROR at line 1:
ORA-02030: can only select from fixed tables/views
SQL> grant select on sys.v_$database to r1;
Grant succeeded.
SQL> select grantee, privilege, owner, table_name from dba_tab_privs where grantee='R1';
GRANTEE PRIVILEGE OWNER TABLE_NAME
R1 SELECT SYS V_$DATABASE -
If you were to get a differant computer becouse the old one crashed is there anyway to get the stuff that i purchased back on my computer?
It has always been very basic to always maintain a backup copy of your computer. Use this to put everything back.
If for some reason you have failed to backup (not good), then you can transfer itunes purchases from an ipod. Without syncing: File>Transfer Purchases -
Is there any way to get the query used in discoverer from backend??
Hi All,
I am new to dicoverer.
Is there any way to get the query used in discoverer from backend??
Thanks,
SachinHi,
you can view the SQL from within the discoverer menu:
in desktop: View-> SQL Inspector
in Plus: Tools-> Show SQL
The SQL in the DB tables is encrypted so it's a problem getting it from there.
You can export the workbook into SQL but it is not working for every worksheet (subquery, inline pivot tables...)
you can create a batch file to export them all using the output of this script:
select null,null,'echo off'
from dual
union all
select distinct
qs.qs_doc_name Workbook_name,
qs.qs_doc_details Worksheet_Name,
'start /wait <path>\dis51usr.exe /connect '||'&p_user_name'||'/'||'&p_password'||'@'||'&p_env'||' /apps_user /apps_responsibility "&responsibility" /opendb '||
chr(34)||qs.qs_doc_name||chr(34)||' /sheet "'||qs.qs_doc_details||'"'||' /export SQL "C:\Export Discoverer SQL\'||qs.qs_doc_name||'-'||qs.qs_doc_details||'.sql" /batch'
from eul_us.eul5_qpp_stats qs
where qs.qs_doc_name is not null
--order by 1,2
union all
select null,null,'echo off'
from dual
union all
select null,null,'exit'
from dual -
Hi All,
I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
Is there any way to get the height/width of image without importing it in the indesign document.
Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
At this point I am clueless where to search next.
Any help will be appriciated.
Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
Thnx,
D.You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
Perhaps Quicktime could provide you with a platform independant solution. -
When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time? Much appreciated.
I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.
-
Is there any way to get the files from other computer ?
Hai all,
I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
regards,
NamancBro Take it easy.
Think you need to send a Image file named ("abc.gif")
now develop a server using ServerSocket and connect it in local IP and any PORT
For example i think ur server is connected in "localhost" and 9000 port.
Now make ur server educated using some commands.
For example:
FileName: <File Name String>
[Means new file is sending by connected client]
FileSize: <File size long or int value>
[ So that ur server can determind about the total length of sender file]
DataModeOpen
[Now your client will send its image data, this command means your client software is sending data]
fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
DataModeClose
[Means file sending finished]
Close
[Means your client connection is closed]
Now develop a client supporting this command.
For example(Server):
String getFileName=null;
long getFileSize=0;
public handleCommand(String getCmd) {
if(getCmd.startsWith("FileName")) {
String[] splitData=getCmd.split(":");
this.getFileName= splitData[1];
outPutStream.writeBytes("+OK");
} else if(getCmd.startsWith("FileSize")) {
String[] splitData=getCmd.split(":");
this.getFileSize=Long.parseLong(splitData[1]);
outPutStream.writeBytes("+OK");
} else if(getCmd.startsWith("DataModeOpen")) {
//data mode open so receive data
receiveData();
outPutStream.writeBytes("+OK");
} else if(getCmd.startsWith("DataModeClose")) {
//close client socket
getClientSocket.close();
}For client:
DataInputStream dataIn=null;
BufferedOutputStream bout=null;
public sendFile(bytes[] getBytes) {
//if ok found then do other or show error message
if(sendCmd("FileName:"+getFileName)) {
if(sendCmd("FileSize:"+getFileSize)) {
if(sendCmd("DataModeOpen")) {
bout.write(getBytes);
} else {
showError(3);
} else {
showError(2);
} else {
showError(1);
}i think it will help u -
I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book back as i have already paid for it once and i would not like to pay for it twice.
If you haven't got a backup copy and if it's still in the store then you can try contacting iTunes support and see if they will grant you a re-download (there is no guarantee that they will) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
-
is there any way to get the server app other than through the app store. The system that I need it on are not connected to the internet.
We run a closed-loop network of apple systems and I tipically downloaded updates on a non-apple system that was on the internet.
Any ideas?I did buy the server app, went to the app store to download it. This system I'm using for downloads is Snow Leopard 10.6.8, it shows that I can download it but only as an Install which says I need 10.8. I can't seem to find a way for it to just download as a package or .dmg file so that I can copy it to DVD/CD or flash drive.
-
Is there any way to get the canvases names on the form
i have a form in Orcle 6i
i want when the form load i get the names of the Canvases on the Form automatically
to change their visual attribute
is there any way to get the name of the canvases on the form automatically
Thanks in advanceThe amount of time to evaluate each item in a Form is a lot less than you think. You are dealing with milliseconds. Worse case scenario, you might add 1 second to your form load time.
I think Francois's suggestion is the best solution, but if this is still too much time, you might concider creating strategic When-New-Item-Instance triggers on an item in each of your canvases that would perform what you want to do.
This will most likely cause problems of its own, but it is an alternative.
Food to get the thought process flowing... :-)
Craig... -
Is there any report to get the header/item text at GR stage together?
Hi gurus,
Is there any report to get the header/item text at GR stage together with a date range?
at the point of goods receipt? Or a report that could be run to search for header/item text at GR stage together with a date range?
Text that was entered at the point of goods receipt?Hi
Check MB51 report with posting dates for materials/vendors and use the display variant document header text (which is GR header text). I hope this is the one you are looking for.
Thanks -
i synced my phone that had an itunes account but no music on it to a computer and it erased all the music on that computer. is there any way to get the music back?
See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
https://discussions.apple.com/thread/2452022?start=0&tstart=0
B-rock -
Is there any function module getting the cpu type?
Is there any function module getting the cpu type?
I guess the database server...
I would like to get the SAP system cpu type as done in transaction st06 under system information.
Thanks. -
Is there any Vi for getting the CPU and Memory usage of the Local as well as Remote System
Is there any Vi for getting the CPU and Memory usage of the Local as well as Remote System
Find the attachment(LV8.5) for local machines.
You can use shared variables to monitor the remote machine's usage.
Attachments:
Task Monitor 85.vi 25 KB -
Is there any way to get the list of Essbase and planning users in excel wi
Is there any way to get the list of Essbase and planning users in excel with last login details.
Hi,
This tool might be of some help to you, 'OlapUnderground Advanced Security Manager'. I havent used it personally but went through its features. Give it a try!
Thanks,
Junaid
Maybe you are looking for
-
Network clients can't log in some days...
but can on others! Since upgrading to Mavericks and Server 3 I have an issue with local network clients not being able to log in to their accounts some days but can on others (yesterday was fine, today a problem again). It seems that quite a few peop
-
How to configure purchase requesition in third party order
dear expert can you explain how to configure purchase requesition in third party order. vicky
-
Search widget/app stopped working
Nokia 700 / belle 111.030.0609 Search widget/app stopped working. It just crushes now. Worked fine before software upgrade. reinstalling software doesn't help. Solved! Go to Solution.
-
How do I stop the doo-doo sound while charging?
I set iTunes to NOT sync when I plug the iPhone into the USB port on my PC (Windows XP), and now I can plug the phone it to charge via USB without having iTunes open and try to sync. Very good. But... While the phone is plugged in and charging, it ke
-
SalesOrder characteristics are not retrieved using VC_I_GET_CONFIGURATION
Hi, We are using ECC 5.0. Some time back there was a requirement and I implemented BADI BDCP_BEFORE_WRITE to not generate change pointers for some particular type of Sales Order. Now when we use function module(s) CUD0_GET_VAL_FROM_INSTANCE, VC_I_GET