Insufficient Priviliages

Hi
Iam having one package that contains package specification and package Body.
when iam executing the package specification in TOAD iam getting successfully executed.
when iam executing the package Body in TOAD iam getting insufficient priviliages error.
can you provide the solution plz ?
Thanks
Mahesh Daggupati..

Package spec:
create or replace PACKAGE LOAD_PKG1
AS
TYPE LOAD_ARRAY_TYPE IS TABLE OF EQP_LOAD.LOAD_ID%TYPE INDEX BY BINARY_INTEGER;
TYPE NE_ARRAY_TYPE IS TABLE OF EQP_LOAD.NTWK_ELEM_ID%TYPE INDEX BY BINARY_INTEGER;
PROCEDURE DRAIN_CALC (I_LOAD_ID IN NUMBER,
O_CONNECTED_DRAIN OUT NUMBER,
O_ASSIGNED_DRAIN OUT NUMBER);
PROCEDURE ADD_LOAD_TO_ARRAY;
LOAD_ARRAY LOAD_ARRAY_TYPE;
NE_ARRAY NE_ARRAY_TYPE;
END_IDX BINARY_INTEGER := 1;
CURRENT_IDX BINARY_INTEGER := 1;
HOLD_USER_NTWK_ELEM_ID FUSE_ASSIGN.USER_NTWK_ELEM_ID%TYPE;
HOLD_USER_LOAD_ID FUSE_ASSIGN.USER_LOAD_ID%TYPE;
HOLD_DRAIN FUSE_ASSIGN.DRAIN%TYPE;
PROCEDURE SUBSEQUENT_DRAIN_CALC;
TEMP_CONNECTED_DRAIN NUMBER := 0;
END LOAD_PKG1;
Package Body:
create or replace package PACKAGE BODY LOAD_PKG1
AS
PROCEDURE DRAIN_CALC (I_LOAD_ID IN NUMBER,
O_CONNECTED_DRAIN OUT NUMBER,
O_ASSIGNED_DRAIN OUT NUMBER)
IS
HOLD_END_OF_LEVEL1 BINARY_INTEGER;
TEMP_ASSIGNED_DRAIN NUMBER := 0;
CURSOR EQP_LOAD_CURSOR (I_LOAD_ID NUMBER) IS
SELECT LOAD_ID, NTWK_ELEM_ID
FROM EQP_LOAD
WHERE LOAD_ID = I_LOAD_ID;
CURSOR DRAIN_INFO_CURSOR (I_LOAD_ID NUMBER, I_NTWK_ELEM_ID NUMBER) IS
SELECT USER_NTWK_ELEM_ID, USER_LOAD_ID, DRAIN
FROM FUSE_ASSIGN F,
FUSE_POSITION P
WHERE P.LOAD_NTWK_ELEM_ID = I_NTWK_ELEM_ID
AND P.LOAD_LOAD_ID = I_LOAD_ID
AND P.NTWK_ELEM_ID = F.NTWK_ELEM_ID
AND P.POSITION_NBR = F.POSITION_NBR;
CURSOR STD_DRAIN_INFO_CURSOR (I_LOAD_ID NUMBER, I_NTWK_ELEM_ID NUMBER) IS
SELECT DRAIN
FROM STD_POSITION
WHERE NTWK_ELEM_ID = I_NTWK_ELEM_ID
AND LOAD_ID = I_LOAD_ID;
BEGIN
END_IDX := 1;
TEMP_ASSIGNED_DRAIN := 0;
TEMP_CONNECTED_DRAIN := 0;
OPEN EQP_LOAD_CURSOR (I_LOAD_ID);
LOOP
FETCH EQP_LOAD_CURSOR INTO LOAD_ARRAY(END_IDX), NE_ARRAY(END_IDX);
EXIT WHEN EQP_LOAD_CURSOR%NOTFOUND;
END_IDX := END_IDX + 1;
END LOOP;
CLOSE EQP_LOAD_CURSOR;
END_IDX := END_IDX - 1;
CURRENT_IDX := 1;
FOR CURRENT_IDX IN 1..END_IDX LOOP
OPEN STD_DRAIN_INFO_CURSOR (LOAD_ARRAY(CURRENT_IDX), NE_ARRAY(CURRENT_IDX)
LOOP
FETCH STD_DRAIN_INFO_CURSOR INTO HOLD_DRAIN;
EXIT WHEN STD_DRAIN_INFO_CURSOR%NOTFOUND;
IF (HOLD_DRAIN IS NOT NULL) THEN
TEMP_ASSIGNED_DRAIN := TEMP_ASSIGNED_DRAIN + HOLD_DRAIN;
TEMP_CONNECTED_DRAIN := TEMP_CONNECTED_DRAIN + HOLD_DRAIN;
END IF;
END LOOP;
CLOSE STD_DRAIN_INFO_CURSOR;
OPEN DRAIN_INFO_CURSOR (LOAD_ARRAY(CURRENT_IDX), NE_ARRAY(CURRENT_IDX));
LOOP
FETCH DRAIN_INFO_CURSOR INTO HOLD_USER_NTWK_ELEM_ID, HOLD_USER_LOAD_ID,
HOLD_DRAIN;
EXIT WHEN DRAIN_INFO_CURSOR%NOTFOUND;
TEMP_ASSIGNED_DRAIN := TEMP_ASSIGNED_DRAIN + HOLD_DRAIN;
IF (HOLD_USER_LOAD_ID IS NULL) THEN
TEMP_CONNECTED_DRAIN := TEMP_CONNECTED_DRAIN + HOLD_DRAIN;
ELSE
LOAD_PKG1.ADD_LOAD_TO_ARRAY;
END IF;
END LOOP;
CLOSE DRAIN_INFO_CURSOR;
END LOOP;
O_CONNECTED_DRAIN := TEMP_CONNECTED_DRAIN;
O_ASSIGNED_DRAIN := TEMP_ASSIGNED_DRAIN;
END DRAIN_CALC1;
PROCEDURE ADD_LOAD_TO_ARRAY
IS
FOUND_FLAG BOOLEAN:= FALSE;
BEGIN
FOR I IN 1..END_IDX LOOP
IF (LOAD_ARRAY(I) = HOLD_USER_LOAD_ID) AND
(NE_ARRAY(I) = HOLD_USER_NTWK_ELEM_ID) THEN
FOUND_FLAG := TRUE;
END IF;
END LOOP;
IF (FOUND_FLAG = FALSE) THEN
END_IDX := END_IDX + 1;
LOAD_ARRAY(END_IDX) := HOLD_USER_LOAD_ID;
NE_ARRAY(END_IDX) := HOLD_USER_NTWK_ELEM_ID;
LOAD_PKG1.SUBSEQUENT_DRAIN_CALC;
END IF;
END ADD_LOAD_TO_ARRAY;
PROCEDURE SUBSEQUENT_DRAIN_CALC
IS
CURSOR DRAIN_CURSOR (I_LOAD_ID NUMBER, I_NTWK_ELEM_ID NUMBER) IS
SELECT USER_NTWK_ELEM_ID, USER_LOAD_ID, DRAIN
FROM FUSE_ASSIGN F,
FUSE_POSITION P
WHERE P.LOAD_NTWK_ELEM_ID = I_NTWK_ELEM_ID
AND P.LOAD_LOAD_ID = I_LOAD_ID
AND P.NTWK_ELEM_ID = F.NTWK_ELEM_ID
AND P.POSITION_NBR = F.POSITION_NBR;
CURSOR STD_DRAIN_CURSOR (I_LOAD_ID NUMBER, I_NTWK_ELEM_ID NUMBER) IS
SELECT DRAIN
FROM STD_POSITION
WHERE NTWK_ELEM_ID = I_NTWK_ELEM_ID
AND LOAD_ID = I_LOAD_ID;
BEGIN
OPEN STD_DRAIN_CURSOR (HOLD_USER_LOAD_ID, HOLD_USER_NTWK_ELEM_ID);
LOOP
FETCH STD_DRAIN_CURSOR INTO HOLD_DRAIN;
EXIT WHEN STD_DRAIN_CURSOR%NOTFOUND;
IF (HOLD_DRAIN IS NOT NULL) THEN
TEMP_CONNECTED_DRAIN := TEMP_CONNECTED_DRAIN + HOLD_DRAIN;
END IF;
END LOOP;
CLOSE STD_DRAIN_CURSOR;
OPEN DRAIN_CURSOR (HOLD_USER_LOAD_ID, HOLD_USER_NTWK_ELEM_ID);
LOOP
FETCH DRAIN_CURSOR INTO HOLD_USER_NTWK_ELEM_ID, HOLD_USER_LOAD_ID, HOLD_DRA
IN;
EXIT WHEN DRAIN_CURSOR%NOTFOUND;
IF (HOLD_USER_LOAD_ID IS NULL) THEN
TEMP_CONNECTED_DRAIN := TEMP_CONNECTED_DRAIN + HOLD_DRAIN;
ELSE
LOAD_PKG1.ADD_LOAD_TO_ARRAY;
END IF;
END LOOP;
CLOSE DRAIN_CURSOR;
END SUBSEQUENT_DRAIN_CALC;
END LOAD_PKG1;
the package body is not working properly
it is showing the insufficient privileages error
can any one lookinto and solve the isssue plz ?

Similar Messages

  • Insufficient Priviliages on Apple Mobile Devices to install itunes

    I try to install itunes on my brand new computer but so far it has given me error 7 and said it fails to install Apple mobile devices because insufficient privilages. Can someone tell me what i can do to fix this?
    Cheers

    Hi,
    Hmm ok for me on iphone 1st click on post link does nothing but underline it, 2nd click then opens it - annoying but it works.
    On ipad, no amoint of clicking opens the link but if you keep your finger on the link and wait for the popup and then click open it does go in.
    So both are usable - just not that friendly.
    Maybe next iOS version will update safari and fix this. Closing question for now.
    Cheers,
    Harry

  • To fetch 2 fileds of table TRFCQIN (abap schema table ) through OPEN SQL

    Hi Experts,
    My basis team wants me to write a OPEN sql statement in DB2 . T
    The Open SQL statement for reading data from database tables is:
    SELECT      <result>
      INTO      <target>
      FROM      <source>
      [WHERE    <condition>]
      [GROUP BY <fields>]
      [HAVING   <cond>]
      [ORDER BY <fields>].
    I want to fetch 2 fileds of table TRFCQIN (abap schema table ) through OPEN SQL in report RSORADJV  in PI .
    As per PI basis comment : To use u201CRSORADJVu201D you need write the code in open SQL. If the code had been written in open SQL in the first place you wouldnu2019t be having to translate this from MS SQL.
    Can you pls help in writing open sql with above syntax .
    Initially when I wrote as
    QL statement : select * from SAPDBSR3.XI_AF_MSG, I got the error messege as
    Error : insufficient priviliage to access specified  table.
    Again basis suggested to write this code in OPen SQL statement .
    Please suggest., I dont know open SQL for the same.
    Regards,
    Arnab.

    Hi,
    Well I don't know why you have duplicates, this is a functionnal issue. But you get the dump due the the message number 864 that triggers the abend... Changing the message type to 'E', 'S' or 'I' will prevent the dump but I guess this message has a good reason to be
    Kr,
    Manu.

  • Adobe Bridge CS5, error when creating contact sheet "There is insufficient disk space..."

    I am running Bridge CS5 for the first time and I receive this error when attempting to create a contact sheet. "There is insufficient disk space to complete this operation." The image files I am using are web optimized and very small. The error even occurs when attempting one small image. I have gone back to using Bridge CS4 and it works just fine. Any help?
    Thanks!

    I think I narrowed this down to having a network volume mounted with a share name of "Users".  The strange thing is even you if unmount the volume you will still have problems.  However, if you avoid mounting the volume entirely (from boot) it will be OK.
    The solution, it appears, is to rename the sharepoint to something other than "Users".  This worked for us.  I'm not sure if it matters whether the server is Windows or Mac OS.  In our case the sharepoint was an AFP volume on Mac OS.
    We had other errors related to Bridge such as "unable to create folder" and the path in the message appeared to be /Users/currentUser/.....  which made no sense at all.  However, if Bridge was internally trying to use /Volumes/Users (the mounted sharepoint), it would not only not find "currentUser", but it would not have permissions to create that folder either.
    So, another possible solution could be to grant file creation rights on the network volume "Users".  Another not-so-great idea.
    Hope that helps someone else!

  • Data Federator:  Insufficient memory : Operator 'HashJoin' cannot execute

    Hi,
    I'm using: SAP BusinessObjects Data Federator Designer XI 3.0 Service Pack 3 - 12.3.0.0 (Build 1011241842)
    I have a virtual view on top of sql server 2007 and teradata.  I am using a view on sql server 2007 that joins against several tables and querying a single table from Teradata.
    When I try to query the view I get the error:  [Data Federator Driver] [Server] Insufficient memory : Operator 'HashJoin' cannot execute because it cannot allocate the minimal number of memory pages. Please contact the system administrator to change system parameter settings. (0)
    This happens when I try to query the view from data federator or from an odbc connection.
    I tried playing with the configuration settings for core.queryEngine.hash.maxPartitions  and
    core.queryEngine.hashJoin.nbPartitions  and nothing seemed to work in terms of changing/increasing the numbers.  The help guide also gave no help:  http://help.sap.com/businessobject/product_guides/boexi3SP3/en/xi3_sp3_df_userguide_en.pdf
    I was using a very similiar query against a materialized view on Oracle and Teradata before and that worked.  But I'd prefer not to have to materialize the view in Sql Server.
    Any thoughts as to how this can be fixed?
    Thanks,
    Kerby

    <rant>The strange thing with this forum is no people, really no people, ever do anything to resolve their own problems, even though this forum has a search function, and sites with FAQs and assistance are floating around over the Internet. Why is a mystery, as nobody uses them, and most DBAs only know how to hit copy-and paste, to add to the clutter on OTN again.</rant>
    The usual steps to troubleshoot an ora-1031 apply.
    This means
    - verify whether the local administrator is in the ora_dba group and sqlnet.authentication_services in sqlnet.ora has been set to (NTS)
    - in absence of these, there should a password file be present in %ORACLE_HOME%\database, named pw%SID%.ora
    These belong to the common documented requirements, and these requirements shouldn't be repeated everywhere.
    Sybrand Bakker
    Senior Oracle DBA
    Experts: Those who do read documentation.

  • Getting Insufficient Privileges Error while running Pages in Jdeveloper

    Hi,
    When I am running my pages in JDeveloper, I am getting the Error:
    "You have insufficient privileges for the current operation." and the Application login page is being shown.
    Looking at the log window, I see that the system expects my page to be shown correctly. However the login screen gets displayed.
    I suspected that my login/password is incorrect in Jdeveloper Project settings. But I tried that. It is finw. Any suggestions as to what the problem might be would be great.
    Please find excerpts from the Jdev log window:
    [328] Connected to Oracle JBO Server - Version: 9.0.3.13.88
    [329] Loading from /lalith/oracle/apps/xxtmg/graph/server/server.xml file
    [330] Loading from indvidual XML files
    [331] Loading the Containees for the Package 'lalith.oracle.apps.xxtmg.graph.server.server'.
    [332] Loading from /lalith/oracle/apps/xxtmg/graph/server/GraphAM.xml file
    [333] Created root application module: 'lalith.oracle.apps.xxtmg.graph.server.GraphAM'
    [334] Locale is: 'en_US'
    [335] DefaultConnectionStrategy is establishing an application module connection
    [336] mUsePersColl is false
    [337] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
    [338] ViewObjectImpl.mDefaultMaxActiveNodes is 30
    [339] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [340] Successfully logged in
    [341] JDBCDriverVersion: 9.2.0.5.0
    [342] DatabaseProductName: Oracle
    [343] DatabaseProductVersion: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning, OLAP and Data Mining options
    [344] Root application module, lalith.oracle.apps.xxtmg.graph.server.GraphAM, was created at 2007-01-02 14:08:08.391
    [345] setConnectionReleaseLevel - Set connection release level to 0
    [346] OAApplicationPoolImpl.setConnectionReleaseLevel was called with isReleased = false, isReserved = false
    [347] setConnectionReleaseLevel - Set connection release level to 0
    [348]
    <ICX_SessionValues_Diagnostics - ICX Cookie = m6BVBr6qeAiK1S9ptOKjFou1:S>: WebRequestUtil.validateContext is called.
    [349]
    <ICX_SessionValues_Diagnostics - ICX Cookie = m6BVBr6qeAiK1S9ptOKjFou1:S>: WebRequestUtil.validateContext returned status = VALID.
    ICX Session Values after WebRequestUtil.validateContext:
    ============================================================
    <ICX_SessionValues_Diagnostics - ICX Cookie = m6BVBr6qeAiK1S9ptOKjFou1:S>:
    Current ICX Session (Oracle Applications User Session) Values:
    1. User ID (DB, ICX_SESSIONS) = 6
    2. Responsibility ID (DB, ICX_SESSIONS) = -1
    3. Responsibility Application ID (DB, ICX_SESSIONS) = -1
    4. Org ID (DB, ICX_SESSIONS) = 132
    5. Org ID (DB, CLIENT_INFO) = 132
    6. Org ID (ProfileStore.getProfile) = 132
    7. Org ID (ProfileStore.getSpecificProfile with new ICX_SESSIONS values) = 132
    8. Employee ID (DB, FND_GLOBAL.EMPLOYEE_ID) = -1
    9. Employee ID (AppsContext.getFNDGlobal) = -1
    10. Function ID (DB, ICX_SESSIONS) = -1
    11. Security Group ID (DB, ICX_SESSIONS) = -1
    ===========================================================
    [350] New Language Code = null
    [351] Current Language Code = US
    [352] ViewDefImpl_1_2>#q computed SQLStmtBufLen: 64, actual=24, storing=54
    [353] select sysdate from dual
    [354] **********oracle.jdbc.driver.OraclePreparedStatement@11abd68
    [355] Column count: 1
    [356] Column count: 1
    [357] ViewObject : Created new QUERY statement
    [358] ViewDefImpl_1_2>#q old SQLStmtBufLen: 54, actual=24, storing=54
    [359] select sysdate from dual
    [360] ViewObject close prepared statements...
    [361] Loading from /oracle/apps/ak/region/server/server.xml file
    [362] Loading from indvidual XML files
    [363] Loading the Containees for the Package 'oracle.apps.ak.region.server.server'.
    [364] Loading from /oracle/apps/ak/region/server/AkAmParameterRegistryVO.xml file
    [365] ViewDef: oracle.apps.ak.region.server.AkAmParameterRegistryVO using glue class
    [366] Column count: 2
    [367] ViewObject : Created new QUERY statement
    [368] AkAmParameterRegistryVO>#q computed SQLStmtBufLen: 140, actual=100, storing=130
    [369] select PARAM_NAME, PARAM_SOURCE
    from AK_AM_PARAMETER_REGISTRY
    where APPLICATIONMODULE_DEFN_NAME = :1
    [370] Binding param 1: lalith.oracle.apps.xxtmg.graph.server.GraphAM
    [371] OAApplicationPoolImpl.setConnectionReleaseLevel was called with isReleased = true, isReserved = true
    JRAD_PERF : /lalith/oracle/apps/xxtmg/graphs/webui/GraphPG - processRequest : 1313ms
    We have recently migrated our 9i database to 10G database. Is it something related to that?
    Thanks

    Check whether the following thread helps.
    Re: Error: You have insufficient privileges for the current Operation.

  • Insufficient Disk Space: What do I do? I do not want to delete all of my projects. If I delete them and then empty the trash it will free up some space but I have deleted way more than I am tryig to import.

    I keep getting a message when I try to import pics. Insufficient disk space. What do I do? I do not want to delete all of my pics!

    Easiest thing to do would be to buy an external hard drive and move your Aperture library to that drive.

  • CS4 Master Collection Installation - Insufficient Space

    On the Options screen, I have "Easy Install" selected and the screen shows Available space: 38.4 GB/Total size: 8.7 GB. And I keep receiving the error below. Under it has a red exclamation mark: The size of your selected option exceeds the available space."
    Insufficient Space: The selected options exceed the available disk space in your chosen install location. Please change your selections or choose an install location with adequate space available before proceeding.
    My C Drive is my Operating System partition drive with free space of 800mb/10gb.
    The Installation Location is to my D Drive with free space of 38.4gb/100gb.
    Installation Location: D:\Program Files\Adobe
    Thanks in advanced,
    Steven

    Ocala,
    Creative suite installs a number of common components on C: regardless of where you tell it to put the applications, and also uses a lot of temporary space there as well during installation (not at all unique to Adobe, by the way).
    There are fairly regular posts from people who have partitioned there systems and left practically no space on the C: drive who are now discovering this is not a practical strategy in the 21st century. Less than 20 GB free space on the C: drive tends to make me nervous. :)
    Peter

  • Cannot delete file on TC disk: insufficient permissions

    I copied a folder onto TC's disk as a manual backup, but want to delete it now. Unfortunately finder reports that the folder is alternately "in use" or that I don't have sufficient permissions to delete it. This is so incredibly frustrating. I just want to delete the thing, and I'm unable.
    Any ideas, aside from a disk erase?

    Did anyone ever really figure this out? I've tried the terminal 'rm' and just about everything else with no luck.
    Basically, I've been using my TC as a NAS drive for temporary storage while I'm shuffling drives around, reorganizing, etc. In the process I copied a bunch of folders that had locked files in them to the drive. Once I copied them to their new home I found I could not delete them from the TC. So I com-I'd them, unlocked and deleted all the files. However the folder structure that the files were in REFUSES to be deleted. I have insufficient privs. I've tried any number of freeware/shareware utilities to try and kill them and no luck with any of it.
    I love my MAC but, well, WinXP is not this much hassle 5 hours of screwing around to delete 6 folders is a tad much! Help!
    goose

  • ORA-01031: insufficient privileges in PL/SQL but not in SQL

    I have problem with following situation.
    I switched current schema to another one "ban", and selected 4 rows from "ed"
    alter session set current_schema=ban;
    SELECT * FROM ed.PS WHERE ROWNUM < 5;
    the output is OK, and I get 4 rows like
    ID_S ID_Z
    1000152 1
    1000153 1
    1000154 1
    1000155 1
    but following procedure is compiled with warning
    create or replace
    procedure proc1
    as
    rowcnt int;
    begin
    select count(*) into rowcnt from ed.PS where rownum < 5;
    end;
    "Create procedure, executed in 0.031 sec."
    5,29,PL/SQL: ORA-01031: insufficient privileges
    5,2,PL/SQL: SQL Statement ignored
    ,,Total execution time 0.047 sec.
    Could you help me why SELECT does work in SQL but not in PL/SQL procedure?
    Thanks.
    Message was edited by:
    MattSk

    Privs granted via a role are only valid from SQL - and not from/within stored PL/SQL code.
    Quoting Tom's (from http://asktom.oracle.com) response to this:I did address this role thing in my book Expert one on one Oracle:
    <quote>
    What happens when we compile a Definer rights procedure
    When we compile the procedure into the database, a couple of things happen with regards to
    privileges.  We will list them here briefly and then go into more detail:
    q    All of the objects the procedure statically accesses (anything not accessed via dynamic SQL)
    are verified for existence. Names are resolved via the standard scoping rules as they apply to the
    definer of the procedure.
    q    All of the objects it accesses are verified to ensure that the required access mode will be
    available. That is, if an attempt to UPDATE T is made - Oracle will verify the definer or PUBLIC
    has the ability to UPDATE T without use of any ROLES.
    q    A dependency between this procedure and the referenced objects is setup and maintained. If
    this procedure SELECTS FROM T, then a dependency between T and this procedure is recorded
    If, for example, I have a procedure P that attempted to 'SELECT * FROM T', the compiler will first
    resolve T into a fully qualified referenced.  T is an ambiguous name in the database - there may be
    many T's to choose from. Oracle will follow its scoping rules to figure out what T really is, any
    synonyms will be resolved to their base objects and the schema name will be associated with the
    object as well. It does this name resolution using the rules for the currently logged in user (the
    definer). That is, it will look for an object owned by this user called T and use that first (this
    includes private synonyms), then it will look at public synonyms and try to find T and so on.
    Once it determines exactly what T refers to - Oracle will determine if the mode in which we are
    attempting to access T is permitted.   In this case, if we as the definer of the procedure either
    owns the object T or has been granted SELECT on T directly or PUBLIC was granted SELECT, the
    procedure will compile.  If we do not have access to an object called T by a direct grant - the
    procedure P will fail compilation.  So, when the object (the stored procedure that references T) is
    compiled into the database, Oracle will do these checks - and if they "pass", Oracle will compile
    the procedure, store the binary code for the procedure and set up a dependency between this
    procedure and this object T.  This dependency is used to invalidate the procedure later - in the
    event something happens to T that necessitates the stored procedures recompilation.  For example,
    if at a later date - we REVOKE SELECT ON T from the owner of this stored procedure - Oracle will
    mark all stored procedures this user has that are dependent on T, that refer to T, as INVALID. If
    we ALTER T ADD  some column, Oracle can invalidate all of the dependent procedures. This will cause
    them to be recompiled automatically upon their next execution.
    What is interesting to note is not only what is stored but what is not stored when we compile the
    object. Oracle does not store the exact privilege that was used to get access to T. We only know
    that procedure P is dependent on T. We do not know if the reason we were allowed to see T was due
    to:
    q    A grant given to the definer of the procedure (grant select on T to user)
    q    A grant to public on T (grant select on T to public)
    q    The user having the SELECT ANY TABLE privilege
    The reason it is interesting to note what is not stored is that a REVOKE of any of the above will
    cause the procedure P to become invalid. If all three privileges were in place when the procedure
    was compiled, a revoke of ANY of them will invalidate the procedure - forcing it to be recompiled
    before it is executed again. Since all three privileges were in place when we created the procedure
    - it will compile successfully (until we revoke all three that is). This recompilation will happen
    automatically the next time that the procedure is executed.
    Now that the procedure is compiled into the database and the dependencies are all setup, we can
    execute the procedure and be assured that it knows what T is and that T is accessible. If something
    happens to either the table T or to the set of base privileges available to the definer of this
    procedure that might affect our ability to access T -- our procedure will become invalid and will
    need to be recompiled.
    This leads into why ROLES are not enabled during the compilation and execution of a stored
    procedure in Definer rights mode. Oracle is not storing exactly WHY you are allowed to access T -
    only that you are. Any change to your privileges that might cause access to T to go away will cause
    the procedure to become invalid and necessitate its recompilation. Without roles - that means only
    'REVOKE SELECT ANY TABLE' or 'REVOKE SELECT ON T' from the Definer account or from PUBLIC. With
    roles - it greatly expands the number of times we would invalidate this procedure. If some role
    that was granted to some role that was granted to this user was modified, this procedure might go
    invalid, even if we did not rely on that privilege from that role. ROLES are designed to be very
    fluid when compared to GRANTS given to users as far as privilege sets go. For a minute, let's say
    that roles did give us privileges in stored objects. Now, most any time anything was revoked from
    ANY ROLE we had, or any role any role we have has (and so on -- roles can and are granted to roles)
    -- many of our objects would become invalid. Think about that, REVOKE some privilege from a ROLE
    and suddenly your entire database must be recompiled! Consider the impact of revoking some system
    privilege from a ROLE, it would be like doing that to PUBLIC is now, don't do it, just think about
    it (if you do revoke some powerful system privilege from PUBLIC, do it on a test database). If
    PUBLIC had been granted SELECT ANY TABLE, revoking that privilege would cause virtually every
    procedure in the database to go invalid. If procedures relied on roles, virtually every procedure
    in the database would constantly become invalid due to small changes in permissions. Since one of
    the major benefits of procedures is the 'compile once, run many' model - this would be disastrous
    for performance.
    Also consider that roles may be
    q    Non-default: If I have a non-default role and I enable it and I compile a procedure that
    relies on those privileges, when I log out I no longer have that role -- should my procedure become
    invalid -- why? Why not? I could easily argue both sides.
    q    Password Protected: if someone changes the password on a ROLE, should everything that might
    need that role be recompiled?  I might be granted that role but not knowing the new password - I
    can no longer enable it. Should the privileges still be available?  Why or Why not?  Again, arguing
    either side of this is easy. There are cases for and against each.
    The bottom line with respect to roles in procedures with Definer rights are:
    q    You have thousands or tens of thousands of end users. They don't create stored objects (they
    should not). We need roles to manage these people. Roles are designed for these people (end users).
    q    You have far fewer application schema's (things that hold stored objects). For these we want
    to be explicit as to exactly what privileges we need and why. In security terms this is called the
    concept of 'least privileges', you want to specifically say what privilege you need and why you
    need it. If you inherit lots of privileges from roles you cannot do that effectively. We can manage
    to be explicit since the number of development schemas is SMALL (but the number of end users is
    large)...
    q    Having the direct relationship between the definer and the procedure makes for a much more
    efficient database. We recompile objects only when we need to, not when we might need to. It is a
    large efficiency enhancement.
    </quote>

  • Why do I get "Insufficient memory to continue the execution of the program" in SQL Service Report Services

    Hi fellas,
    I'm facing some serious issues with SSRS. I've tried to create a map report in SQL server reporting service 2008R2. I've insert a map using ESRI shapefile and connected it to my Dataset. Everything seemed to be fine up until I've tried to preview the results
    and I got this:
    I've tried to resolve the problem by increasing the "MaximumTotalPc", but then I got this:
    Ever since this happened my SSRS is acting like it has gotten a virus. I've tried to delete the report, but it doesn't let me and the window I've posted above keeps on popping up every few seconds while the program is open.
    Any idea why do I get it and how can I deal with it?
    P.S. I'm not any kind of developer and I'm not really familiar with the technical language. I need an explanation written in user friendly language, please :-)

    Hi Ellie55,
    According to your description that you are experiencing the issue when you are creating the ESRI shapefile map on the SSRS 2008 R2, you got some error “the number of map point elements for “Map1” exceeds the maximum limits for map” when you click  to
    preview the map, you trying to set the properties of “MaximumTotalPointCount” to fix this issue but cause another error about the “insufficient memory”, right?
    By default, a map can have 20,000 map elements or 1,000,000 points. If your map exceeds these limits, you can increase the MaximumTotalPointCount and the MaximumSpatialElementCount, but it may cause the insufficient memory because of the too much points
    and elements. So I recommend you that you can use one of the following approaches for you have got problem increase the limitations:
    Remove a layer.
    Decrease the map resolution.
    Decrease the map viewport coordinates to view a smaller area.
    If the spatial data comes from a report dataset, set a filter to limit the data from the dataset. The filter must be set on a field that is not a spatial data type.
    If the spatial data comes from a SQL Server database, change the query to use spatial functions to limit the data to a smaller area.
    Details information for your reference :
    http://prashantmishrasblog.blogspot.com/2012/10/using-map-in-ssrs-reports-part1.html
    http://msdn.microsoft.com/en-us/library/ee240843.aspx
    As you this error also caused you can’t delete the report, please try to close the program in the task manager and find the path of project in your computer to delete the .rdl file in your workspace and redesign the map again.
    Any problem, please feel free to ask
    Regards
    Vicky Liu

  • ORA-01031: insufficient privileges and shared memory realm does not exist

    Hi all,
    I came to a dead end to start oracle 10.2 database. I have searched on google and this forum, none of these solutions work for me. PS, I have installed 11g on my machine too.
    I have set up ORACLE_SID,ORACLE_HOME to 10.2 database based on the tnsnames.ora.
    follow is error message:
    sqlplus sys as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 3 02:09:54 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 3 02:10:55 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn / as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    SQL> conn scott/tiger
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    First I thought the instance has been start yet, but since I can't login with sysdba. I don't know what other options.
    For 10.2, the tnsnames.ora
    ORA102 =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST =XXX)(PORT = 1523))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = ora102)+
    +)+
    +)+
    LISTENER_ORA102 =
    +(ADDRESS = (PROTOCOL = TCP)(HOST =XXX)(PORT = 1523))+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /data/oracle/ora102)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (ADDRESS = (PROTOCOL = TCP)(HOST =XXXXX)(PORT = 1523))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

    try do this steps on server side:
    1) sqlplus sys as sysdba
    2) select open_mode from v$database;
    show result 2 step

  • ORA-00604 error occured at recursive level1,ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,ORA-06512

    Dear All,
         I created one table like
    create table cls_lrn_tab_unique (F_no number unique UK_F_NO );
    after performing some operations I want to delete the same.
    At that time i got following error. Please help me and tell what is the reason for the error.
    ORA-00604 error occured at recursive level1
    ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,
    ORA-06512 at line no 2
    Thanks and Regards
    Prasad

    26bffcad-f9a2-4dcf-afa0-e1e33d0281bf wrote:
    Dear All,
         I created one table like
    create table cls_lrn_tab_unique (F_no number unique UK_F_NO );
    after performing some operations I want to delete the same.
    At that time i got following error. Please help me and tell what is the reason for the error.
    ORA-00604 error occured at recursive level1
    ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,
    ORA-06512 at line no 2
    Thanks and Regards
    Prasad
    ORA-20123 is a localized/customized error code & message; therefore any solution depends upon what is unique inside your DB now.
    I suspect that some sort of TRIGGER exists, which throws posted error, but this is just idle speculation on my part.
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Unable to schedule a workbook - Insufficient Privileges

    I'm trying to set up a user so that they can schedule workbooks.
    After the user goes through the workbook wizard, a Database Error - ORA-01031: insufficient privilege is displayed.
    The following privileges have been granted to the user:
    CREATE PROCEDURE
    CREATE TABLE
    CREATE VIEW
    EXECUTE ANY PROCEDURE
    UNLIMITED TABLESPACE
    EXECUTE ON SYS.DBMS_JOB
    SELECT ON SYS.V_$PARAMETER
    The scheduled reports are supposed to be created in the user's schema.
    The version of Discoverer that I am using is 10g (10.1.2.3)
    I've verified that the DBMS_JOB package is already installed on the database.

    Hi
    These is the script I normally use:
    accept username prompt'Enter Username: '
    accept pword prompt'Enter Password: '
    create user &username identified by &password;
    grant connect, resource to &&username;
    grant analyze any to &&username;
    grant create procedure, create sequence to &&username;
    grant create session, create table, create view to &&username;
    grant execute any procedure to &&username;
    grant global query rewrite to &&username;
    grant select any table, unlimited tablespace to &&username;
    grant execute on sys.dbms_job to &&username;
    grant select on sys.v_$parameter to &&username;
    There are several grants in my list that aren't in yours.
    For a start, the user needs CREATE ANY PROCEDURE not CREATE PROCEDURE as the procedure they will be creating will exist in the EUL owner's schema, not their own.
    Try this one first and see what happens. If you still don't get success do the other grants from my script. I'm sure scheduling will then work.
    Best wishes
    Michael

  • I have followed Apple support Article HT4527 for moving itunes but have insufficient space on my new PC for the complete library of.  How can I leave music on the external HDD but associate the content on my external HDD with my pc itunes when it is open?

    I have followed the Apple Support Section Article HT 4527 and have moved itunes media onto an external Hard Drive.  The complete file is 103GB in size.
    I have downloaded the latest itunes onto my new PC.
    When I follow the article and try moving the itunes file onto the new PC, I am informed that there is insufficient space on my new PC.
    In any case, like my old system, I want to leave my music on the external HDD and just have the music library displayed in itunes when I click on the "Music" folder.
    How can I get itunes on the new computer to interogate my external HDD to just list the library and leave the music on the external HDD?

    you can do this by keeping the external hard drive connected and doing the following
    -hold shift key down on computer while opening iTunes and a prompt will appear to choose a library
    -select choose library, iTunes should bring up your explorer windows where you can search for the external HD
    -after you find the external HD find the iTunes folder you just copied to it
    -after opening the iTunes folder look for the file that says iTunes library.itl or if you can't see that extenstion just look for a document looking thing in the iTunes folder that shows up as a database file
    -double click the database file and boom iTunes should load your library without having to copy it to the computer
    PS: do make sure that if you are going to do it this way, make sure that the external HD is connected at all times, because if you don't then you will get exclamation marks next to your iTunes songs
    double PS: if you are unsure how to find out if the iTunes library file is a database file just right click it and choose properties and under the type it should say database file
    hope this helps:)

Maybe you are looking for

  • Can I create a new calendar in ICal on my iPad?

    Can I create a new calendar in ICal on my IPad?

  • Creating a still to be edited in photoshop or used as a clean plate

    Hello All, Is there a quicker and simpler way to create a still image at the current or specific time in the Compostion Window I want to create a single frame targa or tiff that I can open and edit in photoshop.  The way I'm doing this was (on the Ma

  • OC4J JNDI lookup problem

    I'm developing a simple struts app in JDeveloper where the model component connects to an Oracle database. The webapp works fine when I deploy it... I just want to get it running locally in the embedded OC4J server. I get this stack trace error: java

  • How to use tab to link to other page in other application

    Hi all, I noticed that tabs does not have the option URL for the Target. It only has current page. Is it possible to link a tab to a page in another application in the same workspace? Thanks. Allen

  • HACMP and Oracle RAC

    Hello All, I want to install Oracle 11g R2 on AIX 6.1. After doing some researches i found that there are some documents mentioning that HACMP should not be installed while installing Oracle RAC. what is the use of HACMP ? Is it optional ? when shoul