Set context privilages issue

Hi
I create a procedure but get this error.
CREATE OR REPLACE package body SearcProduct_Pkg  is
procedure SearchProVar(PCode in varchar2, Storeid in number,Usertype in varchar2) is
begin
dbms_session.set_context(
namespace => 'paramsNew1', attribute => 'PCode', value => PCode);
dbms_session.set_context(
namespace => 'paramsNew1', attribute => 'Storeid', value => Storeid);
dbms_session.set_context(
namespace => 'paramsNew1', attribute => 'Usertype', value => Usertype);
dbms_output.put_line('pcode is'||PCode);
end SearchProVar;
end SearcProduct_Pkg;
when i execute it
like
SQL>  DECLARE
  2     PCODE VARCHAR2(200);
  3     STOREID NUMBER;
  4     USERTYPE VARCHAR2(200);
  5
  6   BEGIN
  7     PCODE := '655454';
  8     STOREID := 5030;
  9     USERTYPE := NULL;
10
11     UMESH.SEARCPRODUCT_PKG.SEARCHPROVAR ( PCODE, STOREID, USERTYPE );
12   END;
13   /
DECLARE
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SESSION", line 82
ORA-06512: at "UMESH.SEARCPRODUCT_PKG", line 4
ORA-06512: at line 11thanks.
Message was edited by:
umesh049

No
Sir
can u tell me how to create it.
i did some new work but it gives me same error.
SQL> create context some_context using SEARCPRODUCT_PKG;
Context created.
SQL> create package some_package as
  2
  3      procedure set_value_in_context(some_value in varchar2);
  4
  5  end some_package;
  6  /
Package created.
SQL>
SQL> create package body some_package as
  2
  3      procedure set_value_in_context(some_value in varchar2) is
  4      begin
  5          dbms_session.set_context('some_context', 'some_attribute', some_value);
  6      end set_value_in_context;
  7
  8  end some_package;
  9  /
Package body created.
SQL>
SQL> exec some_package.set_value_in_context('foo');
BEGIN some_package.set_value_in_context('foo'); END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SESSION", line 82
ORA-06512: at "UMESH.SOME_PACKAGE", line 5
ORA-06512: at line 1thanks
Message was edited by:
umesh049

Similar Messages

  • Failed to get a data set context!

    What does this mean?
    "processTokens: Failed to get a data set context!"
    Ive setup a Paged Data Set using
    var dsResults = new
    Spry.Data.XMLDataSet("/general/xml/xml_Results.php'",
    "/search_results/product");
    var pvResults = new Spry.Data.PagedView(dsResults, {
    pageSize: 7 });
    The paged data works and everything is displayed correctly
    however I receive that error message still? How do I resolve this?
    Thanks

    It typically means that you have a data reference that is
    refering to a data set that the region is not bound to, for
    example:
    <div spry:region="ds1">
    {dsFoo::bar}
    </div>
    --== Kin ==--

  • I want to set context path to 1 character like "/a"

              I use WLS6.1.
              I'd like to access
              http://localhost:7001/a/servletname
              to web application "a" or "a.war".
              but it doesn't seems work.
              (Returned "Http Error 404")
              Can't I set context path to 1 character,
              like "/a","/b",..."/z",etc?
              thanks for your answer.
              Kurose
              

    In this case you probably should submit this to [email protected] - it
              definitely looks like a bug. BTW, did you try 6.1sp1? This bug looks
              so obvious, so it's possible it was fixed in sp1.
              Kurose <[email protected]> wrote:
              > Thanks your reply.
              >>Maybe the problem you have is similar - does it work if you deploy
              >>aaa.war instead of a.war (and try http://localhost:7001/aaa/servletname)
              >>?
              > It works when WAR-File name is aa.war(Only 2 characters).
              > <http://localhost:7001/aa/servletname>
              > And on WLS6.02,a.war works.
              > <http://localhost:7001/a/servletname>
              > On on WLS6.1 it doesn't work.
              >>Did you application deploy successfully?
              > No exception when application was deployed.
              > But done "undeploy => deploy" on AdminConsole,
              > exception is occurring.
              > Dimitri Rakitine <[email protected]> wrote:
              >>Did you application deploy successfully? There is(was?) a bug
              >>in 6.1 using File.createTempFile which was preventing war's with
              >>archives in WEB-INF/lib with names less than 3 characters from
              >>working.
              >>
              >>Maybe the problem you have is similar - does it work if you deploy
              >>aaa.war instead of a.war (and try http://localhost:7001/aaa/servletname)
              >>?
              >>
              >>Kurose <[email protected]> wrote:
              >>
              >>> I use WLS6.1.
              >>
              >>> I'd like to access
              >>> http://localhost:7001/a/servletname
              >>> to web application "a" or "a.war".
              >>> but it doesn't seems work.
              >>> (Returned "Http Error 404")
              >>
              >>> Can't I set context path to 1 character,
              >>> like "/a","/b",..."/z",etc?
              >>
              >>> thanks for your answer.
              >>
              >>> Kurose
              >>
              >>
              >>--
              >>Dimitri
              Dimitri
              

  • ESB - Is there a way to set context properties when using esb custom pipeline

    Hi there,
    I have a situation where I am using a oneway wcf sql custom receive adapter to polling db and a two-way solicit response wcf sql send adapter to update the db and receive a result back.
    Now I had got this working by setting the BTS.Operation and BTS.MessageType properties using a custom receive pipeline on the receive port. FOR SOME REASON THESE TWO WERE NOT SET BY THE RECEIVE PORT !!!
    Now I have decided to wrap all that in en ESB itinerary by converting the send port into a dynamic one.  I get the following error:
    Exception of type 'Microsoft.BizTalk.Message.Interop.BTSException' was thrown. 
    Since I am using the ESB pipeleine - ItineraryReceiveXML I am not able to set the BTS.Operation and BTS.MessageType explicitly in a pipeline neither can I derive a pipeline form the ESB pipeline as it's a sealed class.
    So my questions are:
    1. Any idea what the above error could be  ?
    2. Also is there a way I get set context properties using an ESB itinerary as that is the only difference from before, can I do that in a map ?
    Thanks
    Phanindra

    BTS.MessageType is typically set by one of the Disassemblers.
    BTS.Operation has nothing to do with the Receive Port/Location and is set by the Engine only when coming from an Orchestration Port.
    But, you can set any Property in any Stage with a custom Pipeline Component as you've found.
    "Exception of type 'Microsoft.BizTalk.Message.Interop.BTSException' was thrown."
    There's usually a lot more to the stack trace.  You'll have to include the whole thing.
    Finally, what benefit do you expect from adding the ESB layer?  This is pretty trivial with an Orchestration.

  • I want to set context path to ""

    Can I set context path to "" like as Tomcat ?
              tomcat server.xml
              <Context path="" docBase="webapps/ROOT" debug="0" reloadable="true"
              >
              </Context>
              I set weblogic.properties as below
              weblogic.httpd.webApp.=C:/somewebapp
              It seems to work well.
              But actually WLS see weblogic/myserver/public_html.
              Please give me any advise.
              Thanx.
              ikedatka
              

    I think what you are looking for is called the "default web application",
              which answers to the "/" path. Luckily someone else already answered this
              question, so I can look intelligent:
              > The answer is to set up a weblogic property:
              >
              > weblogic.httpd.defaultWebApp=<web-app-name>
              >
              > If you do this you don't need to type:
              >
              > http://localhost:7001/<web-app-name>/<the-rest-of-the-URL>
              >
              > you can just say
              >
              > http://localhost:7001/<the-rest-of-the-URL>
              >
              >
              > --kumar allamraju
              Peace.
              Cameron Purdy
              "ikedatka" <[email protected]> wrote in message
              news:[email protected]..
              > Can I set context path to "" like as Tomcat ?
              >
              > tomcat server.xml
              > <Context path="" docBase="webapps/ROOT" debug="0"
              reloadable="true"
              > >
              > </Context>
              >
              > I set weblogic.properties as below
              >
              > weblogic.httpd.webApp.=C:/somewebapp
              >
              > It seems to work well.
              > But actually WLS see weblogic/myserver/public_html.
              >
              > Please give me any advise.
              > Thanx.
              >
              > ikedatka
              >
              

  • Using a Function to Set Context

    I have a report which contains 5 concatenated SQL queries.
    The first query calls a function and sets a context ie. SELECT set_ctx('ORG_ID',500) from DUAL
    The following SQL sets use views which have predicates based on the context.
    1) Within a single report are the SQL statements executed using separate connections to the database? I am not seeing my Context so I'm assuming XMLP splits and calls each within its own Prepared Statement and seperate connection out of the Pool.
    2) If they are, is the only way to set a context safely by use of a <dataTrigger> within a Data Template? and would it need setting For Each piece of SQL that fires within the Template? Or can it be defined just once at the start?
    Thanks in advance for your answers.
    Matt

    Stuart,
    did you try using...
    document.form.<dropdown name>.options[document.form.<dropdown name>.selectedIndex].value ?
    This should ideally fetch you the value of the selected value of the dropdown - only thing is that the dropdown in an autorefresh dropdown by default - this you would have to figure out as to how it can be overridden. Maybe an Onchange event can be written locally on the template overriding the onchange event from SAP...
    Arun

  • Set Context From Event Handler in Web Dynpro ABAP

    Hi,
    I am passing some parameters when navigating from one view to another. Now I would like to set the context of the second view. How can I achieve that in Web Dynpro ABAP?
    Thanks.
    / Elvez

    I figured out ...
    element->set_attribute(
           exporting name = `NAME`      
                     value = value ).

  • EJB3 and/or Toplink and setting context for VPD

    We are looking at moving to the latest version of jdeveloper and taking advantage of the ejb3 and/or toplink features for the model part of applications. I have a question on how to set the vpd context using this new model. Currently we use:
    Jdeveloper 10.1.2.1
    Oracle application server 10g R2 Enterprise Edition ver 10.1.2.0.2
    OracleOCI driver
    Oracle 9i database
    Our database access is in regular java beans where we get a connection from the pool , set the context for the current user (by running a stored procedure on the connection) perform the required data access and then release the connection. It looks like when you use Toplink or EJBs with CMP the database access is out of the developer's control. How will I be able to set the context for each connection ( it's different for each user) once I move to the new model?

    Thank you. That looks like exactly what I need, at least for toplink. I have been told though, that since we are deploying to the OC4J container and it will manage persistence and since EJB 3 simplifies the creation of entity beans that we should use EJB 3 entity beans and a session facade for the model and not add toplink as it would be an extra layer we don't really need , would you agree?

  • Initial Context Security Issue

    Hi, I wonder if someone can help me with this one??
    The problem we are experiencing is that we have a remote client that connects
    to 2 completely independent Weblogic 6.1 instances, and it appears that, under
    certain circumstances, that the initial contexts actually become "confused", so
    as to create a situation both initial contexts have been initialized successfully,
    and after a while it appears that a connection to server B is attempted with the
    principal and credential values of server A, obviously causing account lockouts
    seeing as the user account does not exist on server B.
    I have established through testing that this condition can be avoided by either
    setting InitialContext.SECURITY_AUTHENTICATION = "none" and by not providing InitialContext.SECURITY_PRINCIPAL
    and InitialContext.SECURITY_CREDENTIALS values for both client connections, or
    by setting InitialContext.SECURITY_AUTHENTICATION = "simple", supplying valid
    InitialContext.SECURITY_PRINCIPAL and InitialContext.SECURITY_CREDENTIALS values
    for each server, and by reinitializing the InitialContext object before each and
    every remote lookup.
    We have decided to implement a InitialContext.SECURITY_AUTHENTICATION = "none"
    policy, allowing us not to reinitialize the InitialContext objects every single
    time. Obviously, this is not the preferred way!
    I would appreciate any light on this, as this is causing us huge headaches, not
    to mention the fact that one of the connections become completely unusable and
    therefore denies any service whatsoever from one of the servers
    Thanks in advance!

    Hi,
    This should probably have to be handled with Cisco directly or through the company that got you the license.
    To my understanding there is a possibility that the you would first install one license key and the other license might be upgrade from the previous license to the next limit of the licensed feature.
    I have had several occasions where I have been provided with the wrong license and have had to contact Cisco/supplier again to get the correct licenses for my device.
    While I was posting this reply I checked the Licensing document for the ASA models. It would seem to me that there is no 25 Security Content License for the ASAs. The closes are 20 SC license and 50 SC license
    Check this document:
    http://www.cisco.com/en/US/docs/security/asa/asa84/configuration/guide/intro_license.html#wp1230400
    - Jouni

  • WD ABAP. set context noe for an inputField

    Hello community,
    Does anybody know how to set a context attribute that mapped to an inputField?
    node = wd_context->get_child_node( 'NodeName' ).
    node->bind_elements( new_items = ANY_TABLE ).
    It seems to be very inconvenient to pass any table (ANY_TABLE). Why can't I just pass a string to this method?
    Thanks.

    Hi,
    Do you have general understanding about context structure and data binding?
    You are binding attribute to the particular property, not a node (with some exceptions like dataSource for table). But to set attribute you need at least one node element. There is always one - root. You can define cardinality of node 1..x and in this case you don`t need to create or bind your node. You can immediately set attribute value.
    Best regards, Maksim Rashchynski.

  • Flash trapallkeys and context menu issue on Mac

    Hi
    Using Flash CS3 and AS2. There seems to be a conflict when trapping all keys and with the context menu on Mac. If I have a Flash movie with a single line of code:
    fscommand("trapallkeys", "true"); 
    When I open the resulting swf in either the standalone Flash Player or if I publish as a Mac projector, when I right-click I get the context menu appear as normal, but none of the menu items work - nothing is triggered and the menu disappears. This is even the case for "Settings..." and "About Flash Player..." items. If I open the swf in a browser or run the movie from the Flash authoring environment, then the context menu works - but of course the fscommand is not run in these circumstances.
    I've tried publishing for different Flash Player versions (down to 5!) and running in different Flash Players (a couple of version 9's and the latest version 10). 
    Has/can anyone get the fscommand to run AND the context menu to work together in the standalone Flash Player or the Mac projector? By the way, this only seems to be an issue on the Mac version - both work together on a Windows machine. 
    Any help at all would be greatly appreciated. 
    Thanks, Mark

    Hello Rohan,
    We had the same issues as you described and we're on NW 2004s patch 9.
    We applied the OSS note 909314 (as SAP suggested) and those two issues were resolved.
    Thanks,
    Elena.

  • How to deactivate automatic setting of final issue indicator in reservation

    Our client has a requirement to deactivate the automatic setting of the final issue indicator after the reserved quantity on a reservation has been fulfilled.
    The requirement comes from an overnight shift that does not have access to the SAP system, so the final issue indicator that is automatically set after the reserved quantity is fulfilled cannot be reset manually when the material is needed during the overnight shift.
    I do not believe backflushing is an option because the material is issued to a cost center (orders are managed outside SAP) and thus there is no confirmation.
    Is there a standard method for deactivating the automatic setting of the final issue indicator when the reserved quantity is reacched?
    Thanks.

    Bob_Smith1103 wrote:
    The requirement comes from an overnight shift that does not have access to the SAP system, so the final issue indicator that is automatically set after the reserved quantity is fulfilled cannot be reset manually when the material is needed during the overnight shift.
    Please see my earlier comment that the overnight shift does not have access to SAP and therefore cannot manually reset the final issue indicator until the next day when someone with SAP access is present.
    Obviously the goods issue could wait until the next day, but the client is not satisfied with waiting until the next day to post-process the goods issue.

  • HT4623 itunes keep saying theres network setting or connectivity issues after downloading ios 7 for hours and never completes the download. What do I do?

    Hi,
    I really hope someone can help me. Ive been trying to download the newest ios 7 for 2 days. It always starts very slow and says it will take up to 5 hours. IT ususally downloads for about 2 hours before showing an error and claiming |II have newtwork setting issues or connectivity problems but my internet connection is fine. This is soooo frustrating I cant keep wasting all this time for nothing!!!! Eveytime the error shows up I have to rstart downloading from the beginning!  Please HELP ME

    1.Turn off your device. If you can't turn it off, press and hold the Sleep/Wake and Home buttons at the same time and wait a few seconds for it to turn off.
    2.Plug the device's USB cable into your computer only.
    3.Hold down the device's Home button as you connect the USB cable to it.
    4.When you see the Connect to iTunes screen, release the Home button. If you don't see this screen, try steps 1 through 3 one more time.
    5.Use iTunes to restore your device.
    Additional Information:
    If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself. If you want a faster way to solve iPad Stuck in Recovery Mode, try iPad data recovery software.

  • Setting up ports issues

    I know that i need to type in the default gateway in my browser (192.168.1.1). And that it ask for a password and such.
    I know that the basic user and password is blank, then admin.
    Mine unfortuantely isn't working with that. I had a lot of issues getting my Wireless to work in the first place so I really would prefer not to restart all over with getting it set up if I could help it.
    i have tried my Wireless name that I connect to with other computers and that password, but that isn't it. I usually only have one other password thatI use for things...and it doesn't work either. I'm not sure what i'm doing wrong, but is there any way to change those setting from my desktop computer so that i can log into it or no??

    You can try your all the common set passwords and check if that works or not? If that still doesn't work then i think you need to reset your router and re-configure all the settings on your from scratch.

  • Set context attribute property

    Hello.
    I  have bound the visibility of a ui element to the property of a context attribute.
    What's the syntax the set the property of the context attribute to invisible ?
    Thanks and regards.
    Carola

    Hi Carola.
    Another way:
    METHOD set_shiptos_visible .
      DATA:
        node_ctr_struct                     TYPE REF TO if_wd_context_node,
        elem_ctr_struct                     TYPE REF TO if_wd_context_element,
        stru_ctr_struct                     TYPE wd_this->element_ctr_struct ,
        item_pn_visible                     LIKE stru_ctr_struct-pn_visible.
      node_ctr_struct = wd_context->get_child_node( name = wd_this->wdctx_ctr_struct ).
      elem_ctr_struct = node_ctr_struct->get_element(  ).
      IF visible EQ abap_true.
        elem_ctr_struct->set_attribute(
          EXPORTING
            name =  `PN_VISIBLE`
            value = '02' ).
      ELSE.
        elem_ctr_struct->set_attribute(
          EXPORTING
            name =  `PN_VISIBLE`
            value = '01' ).
      ENDIF.
    ENDMETHOD.

Maybe you are looking for