How to give grant permission on packaged procedure
Hi ,
This is Ramesh what is my requirement is i want give permission packaged procedure that means i given permission only procedure not entire package it is possible or not? if yes then why
given example
Hi,
You can't give grant to package.function or procedure.
You can do that following way.
SQL> create or replace package p is function f return number; end p;
2 /
Package created.
SQL> create or replace function f return number is begin return p.f; end;
2 /
Function created.
SQL> grant execute on f to scott;
Grant succeeded.
Regards
Mahir M. Quluzade
Similar Messages
-
How to give same permission from SP2010 to 2013
Hi,
Please let me know,how to give same permission from SP2010 to SP2013.
because i am getting page not found error to all user who has permission in sp2010.
Thanksthen check this thread it has the same issue and proposed resolution
https://social.technet.microsoft.com/Forums/office/en-US/04a5dcc0-83f8-4b44-b84c-134922902010/migration-from-sp-2010-to-2013-user-permissions-not-working?forum=sharepointadmin
Kind Regards,
John Naguib
Senior Consultant
John Naguib Blog
John Naguib Twitter
Please remember to mark this as answered if it helped you -
How do you grant permission for home sharing and authorizing? My mac did home share, but now says, "The required directory was not found or has a permissions error", when I try to authorize.
OK, I just got off of the phone with Apple and still no joy. They had me try a few things that did not work, then told me to Archive and Install, which did not either. Anyway, thanks for the additional help very note worthy, but still no joy. Also an email to iTunes Support took me here
http://docs.info.apple.com/article.html?artnum=93061
I have a Users/Shared folder but since the files we are talking about are invisible, I can see how it is structured.
And by the way I tried this one
http://discussions.apple.com/message.jspa?messageID=3577004#3577004
and it did not work. However, when I install a fresh copy of Tiger on the external it did authorize the computer and was able to play the downloads. But coping the invisible file to my boot drive was not successful. But , like I said the music did play when I started up from the external. So I guess that may be my only solution, unless someone can tell what the correct directory is and where it for iTunes downloads. -
How to give grants on runtime objects
Hi,
I have created read only apps user,but i want to have a trigger/procedure which should give grant at runtime when the object i.e synnonym/view created in apps user.
I have tried the anil passi read only apps user-trigger but it is throwing errors in alert log.
the trigger need to be corrected can any one help on this as it became an urgent issue.
with regards,
SuryaHi,
Can anyone help on this,
(A)
The command which am using is
Create a Trigger on the apps schema to issue select only grants for all new views and synonyms. Please note that I am excluding grants for sequences. SELECT grants for views and synonyms will be provided to apps_query as and when such objects are created in APPS. Please note that, all the APPS objects (views and synonyms) that existed in APPS schema prior to the implementation of this design, would have been granted read-only access to apps_query in Step 2.
conn apps/&1 ;
PROMPT CREATE OR REPLACE TRIGGER xx_grant_apps_query
CREATE OR REPLACE TRIGGER xx_grant_apps_query
AFTER CREATE ON APPS.SCHEMA
DECLARE
l_str VARCHAR2(255);
l_job NUMBER;
BEGIN
IF (ora_dict_obj_type IN ('SYNONYM', 'VIEW'))
AND (ora_dict_obj_name NOT LIKE '%_S')
THEN
l_str := 'execute immediate "grant select on ' || ora_dict_obj_name ||
' to apps_query";';
dbms_job.submit(l_job, REPLACE(l_str, '"', ''''));
END IF;
END;
(b)
The error in alert log as follows---------
Errors in file /db002/oracle/dnddb/9.2.0/admin/dnd_cdx16/bdump/dnd_j001_15164.trc:
ORA-12012: error on auto execute of job 2290
ORA-01031: insufficient privileges
ORA-06512: at line 1
as this job trying to "grant select on read only apps user".
2)For testing i have created a synonym in apps where i have encountered this type of errors in the alertlog.
The way i have checked the trigger,
a) I have created a custom schema (user A) after that i have created a table in the custom schema.
b)Based on the object of user A i have created a synonym on that table in apps(user B).
After that i have tried to retrive the same synonym in read only apps user(user C).
as am able to see the data in user C.But there is errors as above in alert log.
Plz help in this situation.
with regards,
Surya
Edited by: SuryaSrinivas on Jul 6, 2009 4:51 AM -
How to give readonly Permission rights to 1000 users with button using powershell script?
$site = Get-SPSite
-Identity "http://mysite/"
$user = Get-SPUser
-Identity "mydomain\myuser"
-Web $site.RootWeb
$assignment = New-Object
Microsoft.SharePoint.SPRoleAssignment($user)
$role = $site.RootWeb.RoleDefinitions[[Microsoft.SharePoint.SPRoleType]::Reader]
$assignment.RoleDefinitionBindings.Add($role);
foreach ($web in $site.AllWebs)
if ($web.HasUniquePerm)
$web.RoleAssignments.Add($assignment)
With above script I can give Readonly permission to the users...but at a time I can give permission to only one user...Actually 1000 users requires these permissionMy requirement is I will have a textbox and a button.I will enter username in textbox
and when i clicked button the required permission should be assigned to the user given in the textbox...can you please tell how can i achieve this........how make to run powershell script when button is clicked.Hello,
Instead of applying security to user level, it'll be better to create a SharePoint group where you will add the users. and use the outof the box interface to give permissions.
and for your button, just add the direct link to add user
http://serverurl/_layouts/15/aclinv.aspx?GroupId=7&IsDlg=1
replacing the group ID by the id of your new group (you can see it in the url when your are in the group)
Best regards, Christopher.
Blog |
Mail
Please remember to click "Mark As Answer" if a post solves your problem or
"Vote As Helpful" if it was useful.
Why mark as answer? -
How do I grant permission in privacy setting?
Ever since updating to iOS7, any apps that require permission in my privacy setting are not actually showing up under the privacy setting. For example, if I want to use Instagram, it won't access my photo albums. It says to grant permission under settings>privacy>photos. When I do that, there are no apps listed requesting permission to access my photos. Any ideas/suggestions? Thanks in advance!
I had a similar issue and to solve it I simply erased the app and redownloaded it and when it initally asks for permission in a pop up be sure to say yes.
I am sure there is a more technical solution for this issue but I have not been able to find one. Let me know how this works for you
Regards,
Jake -
Acrobat on my new computer is requiring permission from the admin. I am the admin however i dont know how to give myself permission
Hi ericr31731540,
Could you please let me know what version of OS are you using.
You might need to repair disk permissions.
Also, please tell me when does Acrobat asks for admin access and what exactly is the message.
Hope to hear from you.
Regards,
Anubha -
How to give security permission for html file which is accessing a database
there a applet code which is accessing database and i am placing that code in one folder in any drive and iam placing a
applet tag in a html file and storing on desktop.
now if i run that html file i am unable to connect to database and it is not not giving any exception errors.
what is the security permission we have to provide for that html file.
i want this solution immediately plz.sign your midlet suite and give the permission in the jad / manifest
http://java.sun.com/j2me/docs/wtk2.2/docs/UserGuide-html/security.html -
How to give ref cursor in VB procedure call
This is my Oracle Sp
CREATE OR REPLACE PROCEDURE CRD_DMAN.infy_usp_trades_by_broker_bkr
** Procedure name: CRD_DMAN.USP_TRADES_BY_BROKER
** Author's name: Infosys
** Date written: 04/11/07
** Description: Compliance Trade by Borker
** Maintenance history:
** Date Chg req# Name Remarks
** 04/11/07 Infosys Created
p_ordercursor IN OUT infy_pkg_compliance_transact.cur_compliancetrade,
p_startdate IN VARCHAR,
p_enddate IN VARCHAR,
p_fundcode IN cs_fund_config.parent_acct_cd%TYPE,
p_clientcode IN ts_order_alloc.acct_cd%TYPE,
p_brokercode IN ts_order_alloc.exec_broker%TYPE,
p_reportname IN report_log.report_name%TYPE,
p_callingapplication IN report_log.calling_application%TYPE,
p_callinguser IN report_log.calling_user%TYPE
IS
--Declaring Local Variables
v_owner VARCHAR2 (30);
v_startdate VARCHAR2 (10);
v_enddate VARCHAR2 (10);
v_rowcount NUMBER:=0;
v_logrec base_util_pkg.crd_log_record;
exp_error EXCEPTION;
v_fundcodevalue NUMBER;
BEGIN
BEGIN
/*checking if the start date and end date are null and
assigning the sysdate accordingly*/
IF (TRIM(p_startdate) IS NULL )
THEN
v_startdate := TO_CHAR (SYSDATE, 'mm/dd/yy');
ELSE
v_startdate := p_startdate;
END IF;
IF (TRIM(p_enddate) IS NULL )
THEN
v_enddate := TO_CHAR (SYSDATE, 'mm/dd/yy');
ELSE
v_enddate := p_enddate;
END IF;
/*checking if fund code is null and assigning value accordingly*/
IF TRIM (p_fundcode) IS NULL
THEN
v_fundcodevalue := 0;
ELSE
v_fundcodevalue := 1;
END IF;
/*checking if the reportname or calling user or calling
application name*/
IF (p_reportname IS NULL OR p_callinguser IS NULL
OR p_callingapplication IS NULL)
THEN
RAISE exp_error;
END IF;
END;
--opening and fetching the data into cursor
v_logrec.start_time := SYSDATE;
BEGIN
OPEN p_ordercursor
FOR
SELECT
oa.exec_broker EXEC_BROKER_CODE,
b.bkr_name EXEC_BROKER_NAME,
oa.acct_cd CLIENT_CODE,
f.acct_name CLIENT_NAME,
CASE WHEN (Exists (SELECT 1
FROM cs_fund_broker fb
WHERE rel_typ_cd IN('P','M')
AND oa.exec_broker=fb.BKR_CD
AND oa.acct_cd =fb.acct_cd))
THEN 'Y'
ELSE 'N' END DIRECTED_BROKER,
COUNT ( distinct o.order_id) COUNT_TICKNUM,
MAX (o.trade_date) TRADE_DATE,
SUM (oa.exec_amt) BASE_COST,
SUM (oa.commision_amt) TOTAL_COMMISSION,
(SELECT ab.bkr_typ_cd FROM au_broker ab
WHERE ab.au_change_date =(SELECT TO_TIMESTAMP(MAX(ab.au_change_date))
FROM au_broker ab WHERE b.bkr_typ_cd != ab.bkr_typ_cd AND b.bkr_cd = ab.bkr_cd))
BROKER_HISTORY
FROM
ts_order o
JOIN ts_order_alloc oa ON (o.order_id = oa.order_id)
JOIN cs_broker b ON(oa.exec_broker = b.bkr_cd)
JOIN cs_fund f ON(oa.acct_cd = f.acct_cd)
WHERE
o.status = 'ACCT'
AND oa.exec_broker = CASE WHEN TRIM (p_brokercode) IS NULL
THEN oa.exec_broker
ELSE TRIM(p_brokercode) END
AND oa.acct_cd = CASE WHEN TRIM(p_clientcode) IS NULL
THEN oa.acct_cd
ELSE TRIM(p_clientcode) END
AND ((0 = v_fundcodevalue) OR EXISTS (SELECT 1 FROM crd.cs_fund_config cf
WHERE cf.parent_acct_cd =TRIM (p_fundcode)
AND oa.acct_cd = cf.child_acct_cd))
AND o.trade_date BETWEEN TO_DATE (v_startdate, 'mm/dd/yy')
AND TO_DATE (v_enddate, 'mm/dd/yy')
GROUP BY oa.exec_broker, b.bkr_name ,oa.acct_cd ,f.acct_name,oa.directed_broker,b.bkr_typ_cd,b.bkr_cd;
END;
BEGIN
SELECT
owner
INTO
v_owner
FROM
all_objects
WHERE
object_name = 'INFY_USP_TRADES_BY_BROKER_BKR';
v_logrec.end_time := SYSDATE;
v_logrec.user_code := v_owner;
v_logrec.input_param_values := 'INFY_USP_TRADES_BY_BROKER_BKR,'
|| v_startdate
|| ','
|| v_enddate
|| ','
|| p_fundcode
|| ','
|| p_clientcode
|| ','
|| p_brokercode;
v_logrec.report_name := p_reportname;
v_logrec.object_name := 'INFY_USP_TRADES_BY_BROKER_BKR';
v_logrec.rows_returned := v_rowcount;
v_logrec.calling_application := p_callingapplication;
v_logrec.calling_user := p_callinguser;
END;
BEGIN
--calling the procedure to insert values into the report_log table
COMMIT;
SET TRANSACTION READ WRITE;
base_util_pkg.crd_base_util_proc (v_logrec);
SET TRANSACTION READ ONLY;
END;
EXCEPTION
WHEN exp_error
THEN
DBMS_OUTPUT.put_line ('ERROR');
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line ('ERROR OCCURED' || SQLCODE);
DBMS_OUTPUT.put_line (SQLERRM);
END infy_usp_trades_by_broker_bkr;
END OF CRD_DMAN.USP_TRADES_BY_BROKER
This is my Pakage from where i am using ref cursor
CREATE OR REPLACE PACKAGE CRD_DMAN.infy_pkg_compliance_transact
AS
** Package name : CRD.INFY_PKG_COMPLIANCE_TRANSACTIONS
** Author's name : Infosys
** Date written : 06/11/07
** Project/System : CRD
** Description : Compliance Trades By Borker Package
** Maintenance history:
** Date Chg req# Name Remarks
** 06/11/07 CRD Infosys Created
--Defining The ComplianceTrade Record DataType
TYPE rec_compliancetrade IS RECORD (
exec_broker_code crd.ts_order_alloc.exec_broker%TYPE,
exec_broker_name crd.cs_broker.bkr_name%TYPE,
client_code crd.ts_order_alloc.acct_cd%TYPE,
client_name crd.cs_fund.acct_name%TYPE,
directed_broker crd.ts_order_alloc.directed_broker%TYPE,
count_ticknum crd.ts_order.order_id%TYPE,
trade_date crd.ts_order.trade_date%TYPE,
base_cost crd.ts_order_alloc.cur_base_mkt_val%TYPE,
total_commission crd.ts_order_alloc.commision_amt%TYPE,
broker_history crd.au_broker.bkr_typ_cd%TYPE
--Declaring a variable of rec_auditdata data type
TYPE cur_compliancetrade IS REF CURSOR
RETURN rec_compliancetrade;
END infy_pkg_compliance_transact;
END OF CRD.INFY_PKG_COMPLIANCE_TRANSACTIONS
How to call this SP from VB code with ref cursor parameter?I'm fairly sure that's not possible, since there's nothing in the ODBC spec to allow for ref cursors. The driver has built in support to check for ref cursors that are returned via a stored procedure call, but there's nothing built into the driver to pass one IN. Since a ref cursor can't be constructed on the client side, you'd have to have some sort of structure that allowed you to reference the ref cursor directly in order to be able to pass one back to the database.
Since you're using VB.NET anyway, the better solution is probably just to use ODP.NET instead, which DOES allow you to reference a ref cursor directly, and there are samples that install with ODP.NET that show you how to do that.
Greg -
How to run a PL/SQL package procedure
I can run a procedure in Jdeveloper 9.0.3, but How can run a procedure of a package not using SQL*PLUS
You can run a procedure or function in a package the same way you run a top level procedure or package. Select the package containing the procedure in the navigator and select 'Run' from the context menu. In the Run PL/SQL dialog, select the procedure/function you wish to run from the list in the top left-hand side.
- John McGinnis
Oracle JDeveloper Team -
How do I grant permission=node_create_child in KM?
The error message: "Permission denied: uri=/kmfolder,
permission=node_create_child, user=XXXXXX"
Background:
We are using a KM Windows repository to connect KM to a Windows shared
folder over the network. Then we are using a Web Dynpro java
application to write a file to the KM Folder, which is then mapped to
that KM Windows repository.
Security on the Windows shared folder is wide open. Everyone=Full
Control, and Domain Users=Full control.
Problem:
When end users try to write the file to KM through the Web Dynpro app,
they get the error:
"Permission denied: uri=/dm_filenet, permission=node_create_child,
user=XXXXXX"
But when we give them the Content Admin role, they are able to write
the file just fine. For this reason, I do not believe there is a
Windows permission issue.
We have tried:
-Explicitly setting User Mapping through User Admin -> Identity
Management
-Using a System Principle role with Full Access (Read, write, delete)
-Duplicating the Content Admin role, removing the pages & iViews (so
they can't view the Content Admin interface) and assigning this role to
our test users.
We have setup:
Network path
- ->jCIFS=True
- ->Network path=
<serv.host.com>\<sharename>
- ->User=<domain>\<ADMIN User>
KM Windows System Object
- ->User Mapping=admin,user
KM Windows System Landscape Definition
CM Repository Manager
- ->Prefix=/<sharename>
- ->Persistance Mode=fsdb
- ->Root directory=
<serv.host.com>\<sharename>\root
- ->Root directory for versions=
<serv.host.com>\<sharename>\versions
- ->Repository services=svc_acl
- ->Security Manager=W2kSecurityManager
- ->ACL Manager Cache=ca_rsrc_aclPlease see thread /thread/1302951 [original link is broken]
-
How to give myself permission to delete an application?
I found the application icon in Spotlight, and dragged it to the trash. I got an alert window that told me "Operation cannot be completed because you do not have sufficient privileges for DROD" (where DROD = Deadly Rooms of Death, a strategy game).
If it helps at all the path for two chunks I am trying to get rid of is: volumes/drod-2.0.13 and another is library/application support/caravel (more gobbledygook, quite long)
I own the computer, there is no question of my not being able to get the privileges, but I don't remember protecting or privileging the program in the first place. So where are the priviledges so that I can get this thing off my computer.
In my old Mac, OS 8.6 getting rid of stuff was as simple as finding where the icon was on the disk and dragging the whole folder into the trash. Folders from Spotlight don't respond to this, possibly because opening them out of Spotlight doesn't put them in a context where they are inside another folder so that the OS can tell that I am removing the contents instead of simply getting it off my desktop. How do I delete a whole folder's worht of stuff in OSX?
Are there any deinstall utilities for OSX?Another possibility here: if you are using a "Standard" user account, then you do not have Read/Write access to the /Applications directory. Only Admin users have Read/Write access to /Applications. So, if you logged-in with your Admin account, you should be able to drag an application's icon from /Applications to the Trash.
However, not all uninstalls are so simple. See my "Uninstalling applications" FAQ for important advice on uninstalling software.
Finally, you wrote: "Are there any deinstall utilities for OSX?"Yes, but none that I'd trust. The advice in my previously-cited FAQ will serve you well.
Good luck!
Dr. Smoke
Author: Troubleshooting Mac® OS X
Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
I may receive some form of compensation, financial or otherwise, from my recommendation or link. -
Duplicate post - please see:
I got an new Samsung S5 this week. Now I am getting a message saying that this mobile number does not have permission t…
Message was edited by: Admin ModeratorCongratulations on your new phone Gramps5019! Let's make sure we fix this asap. All you have to do is go to Settings from your phone, the More>Select 'Default SMS App' and choose "Messages" instead of "Messages ". This will fix it.
AdaS_VZW
Follow us on Twitter at @VZWSupport -
How to Compile the PL/SQL Package/ Procedure using shell script
Hi,
I tried to Compiled the shell script but I am facing some error.
Can any one help me how to compile the PL/SQL shell script without error. Awaiting for your valuable reply.
Thanks,
Arun Prakashuser8726849 wrote:
PL/SQL shell script without errorWhat's a PL/SQL shell script?
Can you please post exactly what you are trying to do (As in the actual code that you are executing and its output)? Also please post it in \ tags (See FAQ). -
I have recently connected to a couple of websites and am told that Silverlight needs my permission to run. I am new to this and don't know how to give this permission. My computer is on XP and the Silverlight version installed is 5(5.1.30514.0)
Hi Kevin,
Which browser are you using? This problem may be caused by browser setting. The following are the solution for the browsers
we usually used, hope it helps. If your browser is contained, you could set your browser as the steps mentioned in below articles:
Chrome:
https://support.google.com/chrome/answer/2445334?hl=en
Internet Explorer :
http://social.technet.microsoft.com/wiki/contents/articles/30387.silverlight-trouble-shooting-installs.aspx#Permission_to_Run
Firefox:
https://support.mozilla.org/en-US/questions/956759
If your browser is not list in above, please feel free to let me know.
Best Regards,
Vegetable Wendy
Maybe you are looking for
-
Matching aspect ratio on external monitor
Hi - I am using illustrator cs4 on windows running on a macbook. when I use an external monitor, the aspect ratio is different and the printout is stretched. Is there a way I can take care of this problem? Thanks! Jonathan
-
Flash not supported on external display?
Hi, With my MacBook, I use an external display all the time. It works perfect, exept that most of the 'in-browser' videos and all flash items (lots of them in recent websites) just aren't shown on the external display. So, whenever it happens, I have
-
Internet Thru Router: 2 Macs and 1 PC
Hi, I have and Intel iMac, A Blueberry iMac (10.4, I believe) and a PC hooked up to a Linksys Router (wired). I have got the Intel iMac and PC working fine but need the second iMac up on the network for internet. I am on SBC DSL so the Intel iMac is
-
Problem setting up ATT email account with Apple Mail
I have a main ([email protected]) and sub email account ([email protected]) with ATT/Yahoo (formerly SBC). I set these accounts up on Apple Mail for the first time, and selected the option "Remove copy from server after retrieving a message "RIGHT AW
-
Hi all For ordering spare parts, could you please confirm from where the lead time is picked up on the order ? From the PIR or the material master ? Thanks in advance!