Set the role in runtime through JDBC

Hi Everybody,
I 've set the role for a user with the privilege of running the Stored procedure in runtime just in that session and it's giving me the error PLS-102 saying that it cannot identify that procedure, but when I grant that role through the SQLPLUS my program (JSP) works fine. Does enybody knoe how can i fix this problem?

Is the role set as a default role?
Are you explicitly enabling the role by executing a SET ROLE command?

Similar Messages

  • Setting the custom master page through powershell is NOT working

    Hi,
     I am writing the below code to set the  custom master page through powershell.
    But its not working .when i went to site settings-->master page --> in the drodown , the  maste page set is seattle.master ONLY, though my current master page is available in the dropdown.
     Can anyone pls help, whether i am missing in the below :
          Add-PSSnapin Microsoft.SharePoint.Powershell
           $SiteURL = "http://srvr1:22307/sites/SPW5"
        $weburl= $SiteURL
        $Site= Get-SPSite $SiteURL
        $web =  $Site.OpenWeb()
    $web.CustomMasterUrl = "/_catalogs/masterpage/myMasterpage.master"
    $web.MasterUrl = "/_catalogs/masterpage/myMasterpage.master"
    $web.Update()
    Das

    Hi,
    Is it a publishing page? If yes can you try the PowerShell scripts corresponding to the following code snippet?
    var publishingWeb = PublishingWeb.GetPublishingWeb(web);
    publishingWeb.CustomMasterUrl.SetInherit(inheritFromParent, false);
    publishingWeb.CustomMasterUrl.SetValue(masterPageUrl, false);
    publishingWeb.MasterUrl.SetInherit(inheritFromParent, false);
    publishingWeb.MasterUrl.SetValue(masterPageUrl, false);
    I've noticed sometime (not sure though) that Master page doesn't get updated if the inherit property is not updated first.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Setting the Roles in SAP

    Hi,
    I am integrating SAP with IDM. I have developed a code to create the user in SAP and at the same time trying to set the roles and timezone to the user. There is no problem in creating the user object. But, Roles and timezones are not set in the user object.
    I need your help in setting up the values in SAP...
    Thanks
    Ilayarajan

    Nikhil,
    As you suggested, I have created an object to set the roles in SAP.
    <Object name='SAP'>
    <Attribute name='activityGroups' value='ROLE1'/>
    <Attribute name='fromDate' value='07/15/2007'/>
    <Attribute name='toDate' value='12/31/9999'/>
    </Object>
    * 'activityGroups' is the resource mapping variable. I am using this code snippet in my provisioning WF. But, the vaue is not setting in the SAP.
    Could you Pls, tell me what changes I have to make to set the Roles in SAP.
    Thanks
    Ilayarajan P

  • How do I set the classpath in runtime?

    How can i set the classpath in runtime?
    Im downloading my image files in the folder C:/Downloads
    I want to set this C:/Downloads as my classpath.
    I don want to set it at the initial stage, bcoz I may have to change the downloading directory D:/Selva.
    I want to access my */utils/New.gif* image available in the downloading directory by using getResource() method.

    java.net.URL urldir= new java.net.URL("file://C:/Downloads/");
    java.net.URL[] urlarr= new java.net.URL[1];
    urlarr[0]=urldir;
    java.net.URLClassLoader urlcl= new java.net.URLClassLoader(urlarr); +// Here I get the Error+
    url=urlcl.getResource("/lrp/utils/New.gif");
    *Error: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Setting the role name dynamically

    Hi,
    I have defined 4 roles in the application. In the workflow navigation, i have created a notification. How can i set the role name property of the Notification message dynamically so that as soon as the control comes to that notification, all the users in that role gets the notification message?
    Thank you.

    Hello,
    Define a attribute which holds the value of one of the four defined roles.Then create some activity (with some defined function) which will select the role and assign to the attribute.
    In the notification give the performer value as attribute name.
    This will solve your purpose.
    Kind Regards,
    Kumar.

  • 'set scan off' or 'set define off' now working through JDBC on Oracle 10g

    Hi,
    I am using oracle 10g. I am trying to execute 'set scan off' statement through JDBC (java code) using below statement
    //get connection Connection c = this.init();  //create statement object Statement st = c.createStatement();  //execute statement st.execute("set scan off");
    but it is throwing below exception.
    'java.sql.SQLException: ORA-00922: missing or invalid option'
    I also tried 'set define off' but got same exception. But if I run these statement directly on database without using JDBC there is no exception.
    Please let me know what is the issue.

    Rajesh Panchal wrote:
    Hi,
    I am using oracle 10g. I am trying to execute 'set scan off' statement through JDBC (java code) using below statement
    //get connection
    Connection c = this.init(); 
    //create statement object
    Statement st = c.createStatement(); 
    //execute statement
    st.execute("set scan off");                              but it is throwing below exception.
    'java.sql.SQLException: ORA-00922: missing or invalid option'
    I also tried 'set define off' but got same exception. But if I run these statement directly on database without using JDBC there is no exception.
    Please let me know what is the issue.These are not SQL statements but specific Oracle commands. You would invoke them from PL/SQL through the command interpreter or by using Sqlplus on the commandline; if you try to execute this in a PL/SQL query window you'll get the same error.
    So no, you are not going to invoke them from JDBC.

  • LAF project : can I set the item prompt font through the CSS ?

    Hi,
    I'm implementing an application that is installed with multiple customers. I've added in the LAF jar and used the .GUIProperties to set the Item font and colours (so each customer can choose a LAF without rebuidling the system).
    However, whilst this works, is there a way that I can set the Prompt properties using the .GUIProperties in the CSS - I can't see one (looking in the getContainerContent(Container ct)) part of the jar.
    Is there a simple way of doing this ? (ie: set the prompts for the application through one call to the .GUIProperties in
    PKG_LOOK_AND_FEEL.Set_GUI_Properties( '.GUIProperties1', 'LAF_BLOCK.LAF_BEAN' ) ;
    TIA
    Steve

    Hello,
    Please, don't ask question about the LAF on this forum. Send your questions to the corresponding email : [email protected]
    Thank you in advance,
    Francois

  • Set the role to allow to do anything in a specific schema

    Hi all,
    I'm not sure which role or right a I must set to my users.
    I want that all users can do anything in the a specific schema. Users can create, alter, drop, insert, delete, ... a table, index, sequence, etc.
    My users are of developpers. But, I want to be sure that a developper won't alter another schema excepted his schemas.
    I'm not sure the good role to choose to allow theses rights.
    Anyone could help me please?
    Jimmy

    I would think that the resource and connect roles would be the best for your needs:
    select * from dba_sys_privs
    where grantee = 'RESOURCE';
    GRANTEE PRIVILEGE ADM
    RESOURCE CREATE TYPE NO
    RESOURCE CREATE TABLE NO
    RESOURCE CREATE CLUSTER NO
    RESOURCE CREATE TRIGGER NO
    RESOURCE CREATE OPERATOR NO
    RESOURCE CREATE SEQUENCE NO
    RESOURCE CREATE INDEXTYPE NO
    RESOURCE CREATE PROCEDURE NO
    Note that the role does not include the "create view" privilege, so you will need to grant this as well.
    You will also need to give them privileges on tablespaces.
    On 9.2 and before, the connect role would have most of these privileges, but since 10.1 (or 10.2) that role has only "create session" privilege.

  • Setting the role using Oracle.DataAccess.Client.

    I have a user role and password attaching to oracle 10 that I need to set. Could not find where to set it.

    Hi,
    You'd set it the same way you do for a sqlplus session, for example. Use the SET ROLE command, which you can execute via an OracleCommand object and ExecuteNonQuery().
    Hope it helps,
    Greg

  • In the DSP, get/set the data of SCXI1162 through Multifunction E series board

    I am integrating DSP board(cPCI) with your scxi1162, pxi-1052, pxi-6040e.
    For the configuration of scxi-1162, the sbc will do that and DSP read the data
    through pxi-6040e. Can I do this ?
    Because you made the driver for pxi-6040e with scxi-1162 and I can not see the source code,
    It is difficult to make my own code for reading data of scxi-1162. Even though I made
    and test the code according to the manual of scxi-1162, I can not success.
    If you give one or two source code(just using the port) in all of the libraries,
    I can make my own code on the DSP board easily.
    Best Regards
    Dongkue Ho

    Hello Dongkue Ho,
    Unfortunately, National Instruments does not provide any source code for its drivers.
    For informtation concerning Register Level Programming with DSP, please see the NI Measurement Hardware Driver Development Kit (DDK) at http://sine.ni.com/nips/cds/view/p/lang/en/nid/11737 . This is the only support offered for RLP programming.
    Regards,
    Sean C.

  • How to set the Date in excel through Java?

    now i am using
    cell.setCellValue(date);
    date is in format of "dd/MM/yyyy"
    But when it set on excel , it sets as number.
    I need the date as in same format as what i given.
    Assist me.

    Consult the docs of the API you're using. We can't say much about it because you didn't even mention the API used and it is also not recognizeable as part of any standard Sun Java API's. It might help to consult their own forum/mailinglist -if any- as well.

  • Setting the Varinace Reporting Property Through Load Rule

    Hi,
    I have built a Dimension build rule to build the accounts dimension(Parent Child) and also the Properties like "Data Stroage" and "variance reporting Expense" and also UDA.The dimension is getting build perfectly and also the "data Storage" property and UDA but the "Varinace reporting property" is not set even though the load rule is perfect and also i see the success message while loading.
    I reviwed the Member Property Codes and it is given as
    E      Treat as an expense item (applies to accounts dimensions only)
    and i am using the same.
    the build rule is as follows:
    Parent0 Accounts,Child0 Accounts,Alias0 Accounts,Property0 Accounts,UDA0 Accounts,Property1 Accounts.
    i know i am missing some thing,kinldy advice.
    Thanks,
    Mugundh

    Hi,
    I just now reviewed and fixed the issue.First i changed the the file to Property0 accounts and secondly in the Global Properties i have to select the case as "Original".after doing the changes i saved the rule and loaded the file.The Variance reporting Property is perfect.
    Thanks for the help.
    Thanks,
    Mugundh

  • Zip the data and send through JDBC adapter.

    hi,
       I need to retrive the data from database, zip it and send to xi. At the receiver and i need to unzip it.
    I know that it can be achieved using java mapping. Is there any other solution?

    Hi,
    This will help you
    Zip-Transfer-Unzip: Increase the performance of your Java-ABAP applications
    Working with the PayloadZipBean module of the XI Adapter Framework
    REgards
    Seshagiri

  • How can i set a role that can't see the infoarea?

    HI:
    i want creat a role ,when use the role open the query , he can only see the report under the favorite and role,can't see the infoarea , how can setting the role's right?

    Hi!
    Perhaps you should try creating a user that carries exactly the same authorizations for your intended user/s.  Once created, you can then see if the infoarea can then be visible still.
    Regards,
    P.

  • Extract the userID that set a role for a specific user

    Hi all @SAP Forums,
    I'm going to write a simple report to extract some information about users and role assignments in the system I'm working on.
    The requirements is quite simple; for every user in the USR02 table, I have to extract some info about the roles the user has.
    In order to do so, it's quite straightforward to find roles for a particular user looking into the AGR_USERS table, but ... I'd like to know if there's a way to find the user who set the role assignment for that specific user; the problem is that I cannot find that information in any AGR* tables, so I start to think it's not a stored information I can retrieve in any way.
    Any hints/suggests you can give me? Thanks in advance.

    Hello muthu,
    useful link to refer to when I'll need to extract a full username (first and surname) for a userId. But the question, forgive me if I've been not-so clear, was different.
    A (key) user, say A123456, sets a role for another user (A00000) in SRM... let's suppose now A00000 becomes a buyer. I'd like to know if there's a way, starting from the user A00000, to understand WHO had given him his role (in this case, A123456) and WHEN... I can see the CHANGE_DAT field in AGR_USERS about the "when"... where can I (if I can, obviously) find WHO set the role for A00000 ?
    Thanks again, sorry if I've been not that clear in explaining

Maybe you are looking for

  • Runtime Error in MMBE- s yntax error occurred in program "SAPLMBBS " in inc

    Hi Gurus, Runtime Error in "MMBE" Transaction - The following syntax error occurred in program "SAPLMBBS " in include "LMBBSU07 " in line 76: "The column name "MATNR" has two meanings . ." Any Input is Highly appreciated. Thanks and Regards, Selva

  • Why do I get this window on exiting CS5

    Hi all, Using Vista Ultimate SP2 x64. No problems with install and program functions perfectly until shut down. When finished working on photos and close CS5 either with the 'Big Red X' or 'Exit' from the drop down menu I get this window I know it st

  • Asset master report- supplier details

    HI All, My customer wants to have tax details of the vendor to be recorded and reported for an asset Though supplier name and number can be directly saved in asset master, is there any way to get the VAT reg number, state tax registration number, Inc

  • Apps for SharePoint in intranet environment

    Hi All SharePoint Gurus, I am new to App development. Is the Developer Site mandatory if needs to deploy using Visual Studio 2013?  Regards, Khushi

  • More hardware controls than just a mouse

    Hi, I'm fairly new to STP. I'm looking to have more control over my tracks than to be always using my mouse to point/click/drag. I have an audio interface for 5.1 monitor, but beyond that I don't have much experience with mixing boards or any other a