Problem in certain rights
I defined a role as:create the role my_role;
So, I have granted select it on User1. Table1 as:
Grant select on User1.Table1 to my_role:
Then I gave the role as User2:
grant my_role to User2;
I am now able to run the following query, while I'm connected with user 2:
Select * from User1.Table1;
Everything works very well.
Now, I've written a procedure in User2 as
Create or replace procedure User2.someProceduere
(
cur_test on sys_refcursor
)
Begin
Open cur_test
for ' select * from User1.Table1';
End;
While I runt this procedure it produces error message
"Table or view does not exist.
Intrestingly when I live on User1.Table1 of given User2 the procedure itself works, without any error
(Direct right I mean when I give no rights through the "my_role" bolstered
Instead, I write:
Grant select on User1.Table1 to User2 ;)
I want to know the reason? I'm confused, because when I give rights through the role of the procedure does not work
and when I give rights directly to the user the procudue started working.
Published by: Sayyed_Kamran on August 11, 2010 01:40
Right. What is written in detail in the Oracle documentation. Part of:
>
Operation of the roles in PL/SQL blocks
The use of roles in a PL/SQL block depends on if it is an anonymous block, or a block named (stored procedure, function, or trigger), and if it runs with the rights of the author or the rights of the applicant.
Roles used in the appointed with rights to define blocks
All roles are disabled in any PL/SQL block named (stored procedure, function, or trigger) that runs with the rights of the author. Roles are not used to privilege control, and you cannot define roles within the procedure of a DEFINER rights.
The SESSION_ROLES view shows all roles that are currently enabled. If a named PL/SQL block that runs with DEFINER SESSION_ROLES rights issues, the query returns no rows.
http://download.Oracle.com/docs/CD/B28359_01/network.111/B28531/authorization.htm#DBSEG004
>
>
A unit worth AUTHID CURRENT_USER is called a Summoner rights unit, or unit IR. A unit whose value AUTHID is WHAT DEFINE is called a DEFINER rights, or DR. An anonymous block always behaves as a unit of IR. A view or a trigger always behaves as a unit of DR.
The AUTHID of a unit property determines if the unit is IR or DR, and it affects the resolution of names and privilege auditing at run time:
Climate for name resolution is CURRENT_SCHEMA.
Audited privileges are those of the CURRENT_USER and roles enabled.
When a session begins, CURRENT_SCHEMA has the value of the schema owned by SESSION_USER and CURRENT_USER has the same value as SESSION_USER. (To get the current value of CURRENT_SCHEMA, CURRENT_USER or SESSION_USER, use SYS_CONTEXT function, documented in Oracle database SQL language reference).
CURRENT_SCHEMA may be changed during the session with the SQL ALTER SESSION SET CURRENT_SCHEMA. CURRENT_USER cannot be changed programmatically, but it can change when a unit of PL/SQL or view is on, or depilated, thrust the call stack.
Note:
Oracle recommends against ALTER SESSION SET CURRENT_SCHEMA show within a stored PL/SQL unit.
During a server call, when a DR unit's push in the call stack, the database stores the currently activated roles and the current values of CURRENT_USER, CURRENT_SCHEMA. Then it changes CURRENT_USER and CURRENT_SCHEMA DR unit owner and only allows the PUBLIC role. (The stored and new roles and values aren't necessarily different.) When DR unit is popped from the call stack, the database restores the values and roles stored. On the other hand, when an IR unit is pushed or popped, the call, the value of CURRENT_USER, CURRENT_SCHEMA stack, and the roles currently activated does not change.
http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28370/subprograms.htm#LNPLS00809
Tags: Database
Similar Questions
-
I got these messages: "Sorry, there is a problem with Hotmail right now"... "Hotmail is having connection problems. You might see an error message when you try to connect.
original title: cannot access Hotmail
I need to go to my account to retrieve an important document for a meeting! Please advise how can I sing to my account?
Hello
The Hotmail service problems. See the following link to check the status of the service.
Status of hotmail - Windows Live: https://status.live.com/detail/hotmail
Once the service has been restored, there will be a notice at this link.
Concerning
-
Hi, I try to connect to hotmail and received the following message ' sorry, there's a problem with Hotmail right now Hotmail was not able to complete this application. Microsoft may contact you about any matter that you declare "what steps should I take as I have urgent e-mail to check." THX
Hello
Looks like a temporary problem.
Answers is a peer group supported and unfortunately has no real influence on Hotmail.
HotMail has its own Forums, so you can ask your questions there.
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-usError message "your account has been locked" when trying to connect
http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2Compromised account - access unauthorized account - how to recover your account
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41Hotmail hacked? Take these steps
http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspxI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
When I try to click in and see my emails it says "sorry, there is a problem with Hotmail right now. It should be fixed soon, so please try again in a few minutes. "and mails never appear (I could see it on the list, but could not click on it to see it), but it has been like that for more than 48 hours, please help!
Hello
Answers is a peer group supported and unfortunately has no real influence on Hotmail.
HotMail has its own Forums, so you can ask your questions there.
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-usError message "your account has been locked" when trying to connect
http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2Compromised account - access unauthorized account - how to recover your account
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41Hotmail hacked? Take these steps
http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspxI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
Cannot get Hotmail contacts. Error message States "he has a problem with Hotmail right now. It should be fixed soon, so please try again in a few minutes. "The first sentence is repeated in the great blue and and then more small black font. Then he gives a link "tries to return to Hormail. It has been so since then, I believe, before Christmas. I can get my hotmail emails, my Windows Live ID page comes up, just no contacts. Fortunately, my windows phone keeps my contacts. I also use Outlook Connector, which synchronize my outlook, hotmail, and LinkedIn contacts nicely, but the hotmail contacts have disappeared.
Hi GtoddG,
Thanks for posting your question in the Microsoft answers Forum. For any question on Hotmail, please visit the following link:
-
I can access Windows Live from my macbook, but when I try to go in my hotmail Inbox I get a sorry, there is a problem with hotmail right now. I CAN access my hotmail to my IMac account. What is happening that I can't access my account hotmail to my Macbook?
original title: Sorry there is a problem with hotmail right now!Hello
1. what browser you use to access Hotmail account?
2. what operating system is installed on the computer?
The question you have posted is related to Hotmail and would be better suited to the Windows Live community. Please visit the link below to find a community that will provide the support you want.
-
Trying to access a Windows Live/Hotmail account via the Internet and receive continuously "Sorry, there is a problem with Hotmail right now"
I can not connect to the help of other accounts, but not a specific account. I tried https, different browsers, in cleaning hide, etc.Who can I contact to solve immediately...? Try to organize a funeral across multiple members of the family in several States and I need to access my email.Thank you!Hello
As you use Hotmail, and the question you have posted is related to hotmail, so it would be better suited to the community of Hotmail. Please visit the link below to find a community that will provide the best support.
Portal Hotmail solution Center
-
said Hotmail site has a problem (for 30 hours now?)
for 30 hours, I continued to receive a message when I tried to log on my hotmail by saying: "Sorry, there is a problem with Hotmail right now" do not know what to do.Hi endgame6,
Thanks for posting your question in the Microsoft answers Forum. For any question on Hotmail, please visit the following link:
-
After registration to Hotmail.com by username correct ande real password, I got a message that "sorry, there is a problem with Hotmail right now.
Hotmail was not able to complete this application. Microsoft may contact you about problems that report you. »Hi JeffStern,
Thanks for posting your question in the Microsoft answers Forum. For any questions about Hotmail, please see the Forums of Hotmail.
-
Problem with the right and on the left, click on touchpad functions
I have a computer laptop satellite A500 - 17 X and for 6 months had constant problems. When I click on the buttons to the right or left of the mouse on the high tower he always displays a menu and you have to press 'ESC' to remove then menu. Would be grateful for the help to solve this problem. I reloaded the drivers, but it did not work. -Thank you
Check it please options for the left and right touchpad buttons. For each group, you can set the action.
These options you can find in the additional settings of the touchpad.Can find you it?
-
I managed to install desktop manager 4.6 on my PC using the MSI from the CD. I'm a domain administrator, when I try to install the MSI even on other users in the domain through group policy that are not administrators, that the software will not be installed. I checked and politics is definitively applied and it says on logon the Blackberry Desktop Manager software is installed, but no group icon or a program is created.
I don't want to give users administrator rights because users are not allowed to install the software on their PC. Normally the software installs through the strategy of group with no problem. I don't want to go around for each PC and install manually if I can avoid it.
Any help would be most appreciated.
Work on the problem. All the files from the downloaded package are required to install the application. When you configure the group policy installation only the msi file has been copied into the installation directory.
-
Hi all
When I updated to 6.5 LR. on a captain El MAC, I got an LR error stopped and asked me to change file access rights. I did it but the problem remains.
I have change the law according to the recommended page.
My Mac is in the language of the French OS.
Who can help me, I'm stuck without the possibility to use LR on my MAC for 24 hours already
Thank you
Patrice
Hello Tanuesree,
problem solved. I've been away the ~/Library/adobe access.
Now it's working.
Thank you very much
Patrice
-
Problems with certain events in the outlook calendar not no projection in Thunderbird
It is an intermittent fault. Sometimes it shows all the events, i.e. all those created in outlook.com and local calendar, on other occasions, that it shows that some of the events created in outlook.com. It doesn't seem to be a trend specific to this problem.
How do you add an outlook.com calendar to Thunderbird?
-
There are ten days began to have problems with Hotmail. Could isgn in but get the following message is displayed.
Sorry, there is a problem with Hotmail now
Hotmail was not able to complete this application. Microsoft may contact you regarding any issue you are reporting.
I can email again and again my contacts but thats all.
I then tried to do with Internet Explorer and it works fine. I don't like it is because I have problems with some Web sites.Clear the cache and cookies from sites that cause problems.
"Clear the Cache":
- Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
'Delete Cookies' sites causing problems:
- Tools > Options > privacy > Cookies: "show the Cookies".
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.org/KB/safe+mode
-
On the time journal site I used December 19 some of the features stopped working. Firefox does an update? I tried to download Firefox 9.0, but problems persist. At the end of the news is a comment section, but this no longer appears in Firefox. There is a feature of SuDoku Puzzles section which is most accessed through Firefox.
Reload Web pages, and ignore the cache.
- Hold SHIFT and click reload.
- Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
- Press 'Cmd + Shift + R' (MAC)
Clear the cache and cookies from sites that cause problems.
"Clear the Cache":
- Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
'Delete Cookies' sites causing problems:
- Tools > Options > privacy > Cookies: "show the Cookies".
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
Maybe you are looking for
-
Blocking internet HP Pavilion HPE H8 - 1287c:
Windows crashes and the message with a technician phone number to call. Message says something about a blue screen and a message to call. Cannot get rid of the message without turning off the computer. Message guard reappear. HP Pavilion HPE H8 -
-
No burner on media player, it says connect burner and restart the computer, Media Player dowload tried but cannot get it downloaded
-
Hello I have a number of switches of SGE2010 and I would like to set up the 48 and 24 ports, but I find no reference to them at all in the web interface. Port ads run from 23/1-g1 and g1/25-47. I understand that four SFP ports are shared with the 23,
-
Networking Windows 7 Pro 32-bit or 64 - bit
My Windows 7 Pro 32 bit computer cannot access the computer of Windows 7 Pro 64 bit. The convenience store said to ensure that the same router software is installed on both computers. How can I check this?
-
How to enable OpenGL in Photoshop (Quixel Suite caused the error)
Hi, I have GTX 970, I used PS with OpenGl very well. And now, I opened QUIXEL Suite, then disabled the OpengGl PS and I can't turn it back on. I rebooted my computer, I can't still turn on Opengl. Could you have the solution?