BUG 1.5:Can't edit package body in other user.

This is getting ridiculous. I didn't really have time to do anything with pl/sql development during the EA period and now that I do, nothing seems to work.
I have a package and package body owned by user x. I am connected as system.
I can edit the package, but not the body. The edit window opens, and I can compile it but I can't make any changes in the editor.
1.5 prod with jre
windows xp sp2
Oracle 11.1.0.6.0

We don't have a date scheduled for the patch release. We're working on the key issues and will release the patch when these are done. We do not plan to make this a long drawn out process.
Sue

Similar Messages

  • BUG 1.5 : Can't create package body.

    I'm getting this stack dump in the console trying to create a package body.
    I'm logged in as a dba.
    executed 'alter session set current schema=x';
    created package in the worksheet.
    opened package from Other users|x|packages.
    Edited and compiled package.
    Tried to create body from connection tree context menu.
    I have both viewer and edit window open on the package. The stack dump occurs regardless of which one had focus before I go to the tree to create the body.
    Exception while performing action Create Body
    java.lang.IllegalStateException: Not in compound edit
            at oracle.javatools.buffer.AbstractTextBuffer.endEdit(AbstractTextBuffer.java:1126)
            at oracle.ide.model.TextNode$FacadeTextBuffer.endEdit(TextNode.java:1074)
            at oracle.dbtools.raptor.dialogs.actions.CreateBodyAction.launch(CreateBodyAction.java:94)
            at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handleEvent(ObjectActionController.java:140)
            at oracle.ide.controller.IdeAction.performAction(IdeAction.java:524)
            at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:855)
            at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:496)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
            at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
            at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
            at java.awt.Component.processMouseEvent(Component.java:5488)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
            at java.awt.Component.processEvent(Component.java:5253)
            at java.awt.Container.processEvent(Container.java:1966)
            at java.awt.Component.dispatchEventImpl(Component.java:3955)
            at java.awt.Container.dispatchEventImpl(Container.java:2024)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
            at java.awt.Container.dispatchEventImpl(Container.java:2010)
            at java.awt.Window.dispatchEventImpl(Window.java:1774)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    This has been fixed for the patch release 1.5.1.
    Sue

  • Can't see package body in SQL Developer version 2.1.1.64

    When I go to the object browser, I can see all of the package specs but can't seem to get to the package body. I can access the package body just fine through Toad, so I don't think it is an Oracle user issue. Help?

    I can see any user's Package Body when I'm logged into the database as a DBA, so it must be some privilege that you need. The privilege I would have guessed you need is SELECT ANY DICTIONARY but you say you have that privilege. If you were granted that privilege through a role, make sure that the role is active, or that it is a default role.
    Another role it might be looking for is EXECUTE ANY PROCEDURE, but I'm not sure. See if you can do these selects, since these are probably the views that SQL Developer is using:
    select * from dba_objects where owner = 'some owner' and object_type = 'PACKAGE BODY';
    select * from dba_source where owner = ' some owner' and type = 'PACKAGE BODY';Of course, if your database administrator is willing to grant you the DBA role, that ought to do the trick - works for me. Otherwise, you and your DBA may have to try different system privileges until you find the one that works.

  • 3.1EA2 bug still not fixed - Members of package body not listed in the tree

    Hi, I was working today with SQL Developer again and found that this bug is still not fixed even when it was reported more than 1 year ago!!!
    I did a quick search and found it here
    Package Body Tree not always showing
    The problem is when you expand the package specification or package body tree, not all members of the specification/body are listed. This is mostly observable in the package body, but it regards to the specification as well.
    Consider this case:
    CREATE TABLE EMP (
        ID               NUMBER(6,0) DEFAULT 0,
        NAME             VARCHAR2(20 BYTE) DEFAULT NULL,
        DEPT             VARCHAR2(20 BYTE) DEFAULT NULL,
        FUNCTION         VARCHAR2(20 BYTE),
        PROCEDURE        VARCHAR2(20 BYTE));
    CREATE TABLE LOOP (
      AREA    VARCHAR2(5),
      VALUE   VARCHAR2(2));
    CREATE OR REPLACE PACKAGE Test_Package1 AS
    gvc_const CONSTANT VARCHAR2(10) := 'xxx';
    PROCEDURE Test(p_RC OUT NUMBER,
                   p_ID IN NUMBER);
    END Test_Package1;
    CREATE OR REPLACE PACKAGE BODY Test_Package1 AS
    PROCEDURE Test(p_RC OUT NUMBER,
                   p_ID IN NUMBER)
    IS
    BEGIN
      --INSERT INTO EMP (ID, NAME, DEPT, PROCEDURE) VALUES (1, 'Tina', 'xxx', 'xxx');
      --INSERT INTO EMP (ID, NAME, DEPT, FUNCTION) VALUES (2, 'Jeff', 'xxx', 'xxx');
      --INSERT INTO LOOP(AREA, VALUE) VALUES('a','b');
      NULL;
    END;
    END Test_Package1;Compile the package specification and the body. Expand the spec + body in the tree. Uncomment any of the commented lines in the package body and compile the body again. Now expand the package body again and look what is displayed.
    Why? It is because SQL Developer handles words "Function", "Procedure" and "Loop" as keywords and according to them does the parsing.
    Another case
    CREATE OR REPLACE PACKAGE Test_Package1 AS
    gvc_const CONSTANT VARCHAR2(10) := 'xxx';
    TYPE Loop_rec IS RECORD(
      item1   LOOP.AREA%TYPE);
    PROCEDURE Test(p_RC OUT NUMBER,
                   p_ID IN NUMBER);
    END Test_Package1;Compile just this specification and try to expand it in the tree. Again, during parsing the package, SQL Developer takes the word "LOOP" into consideration and fails to parse the specification.
    There is exactly the same problem when you declare functions from external dll libraries in package body. Since there is no "END;" in this case, SQL Developer's parser fails...
    To me it seems you simply blindly took some keywords like "FUNCTION" and expect there will be some "END;" keyword corresponding with it.
    Can anyone have a look at this and finally fix it?

    Hi,
    Thanks for trying out SQL Developer 3.1 EA2 and providing a clear, reproducible test case for this issue. I logged an internal bug for it:
    Bug 13438696 - 3.1EA2: FORUM: CERTAIN KEYWORDS IN PKG BODY BLOCK MEMBERS FROM CONN VIEW TREE
    It seems the bug noted in the other forum thread you reference has been fixed, but really had nothing to do with problems discussed either here or there. That fix involved adding an Edit Body... item to the Package context menu in the Schema Browser, not displaying Package members correctly in the Connection view tree.
    Regards,
    Gary
    SQL Developer Team

  • Can't compile package body

    hello. i ran in to little issue today. After patch 13839550 was applied to one of our test enviroments, we get one invalid package body. but when i try to compile it shows warrning!
    SQL> alter package APPS.AP_ACCTG_DATA_FIX_PKG compile body;
    Warning: Package Body altered with compilation errors.
    SQL>
    SQL> show err
    Errors for PACKAGE BODY APPS.AP_ACCTG_DATA_FIX_PKG:
    LINE/COL ERROR
    3899/3 PL/SQL: SQL Statement ignored
    3899/3 PLS-00394: wrong number of values in the INTO list of a FETCH
    statement
    Could you please explain what should i do?
    Database - 11.2.0
    eBS - 12.1
    Linux x86
    Thx

    i dont understand how can ichange something here?In this case, you can't.
    If this is one of the standard packages built into an Oracle Apps database, you need to log a tar/sr with Oracle support. (which will probably result in more patches)

  • Can't see package body in SQL Developer version 3.1

    Hello,
    Have been scouring the boards and google for this issue for quite some time now. I think I have discovered the issue, but would like to see if a work around exists.
    Problem:
    I am unable to view packages, procs, VIEW DDl, etc. of other users. When a colleague of mine uses Toad, with the EXACT same connection ID and setting, they are in fact able to see all the source code...
    What I've found:
    Looking around, apparently Toad and SQL Dev work in different ways. Toad apparently uses DBA_SOURCE and DBA_OBJECTS to generate everything.
    SQL Dev uses the META_DATA package to retrieve everything. Further, in order to use the meta_data package, I need the grant catalog role, or something like that.
    Is there a way to set up SQL Developer to use the same method as Toad to retrieve the code? It's a fact that I WILL NOT receive the catalog permission per the DBAs... I can write out the
    select text from DBA_SOURCE where OWNER = 'OWNER' and NAME = 'OBJECT NAME';
    But, I would prefer to just be able to use the tree nodes and click on objects to generate all this. Anyone know of any setting for this?

    Hi,
    No doubt SQL Developer wants to be competitive with Toad but, in terms of raising red flags over inconsistencies in basic functionality, any difference versus SQL*Plus would be more surprising than versus Toad.
    DBA_SOURCE and DBA_OBJECTS are public synonyms available in any standard Oracle installation, but you also need the SELECT ANY DICTIONARY privilege to get maximum benefit from them. That lets you view code in another user's schema without having an explicit privilege (like EXECUTE) on a package/procedure/function.
    If you already do have such privileges (either SELECT ANY DICTIONARY, or EXECUTE or DEBUG on specific executable objects), and the Code tab is empty, then you will need to provide a test case, as Vadim indicates.
    In terms of any case where SQL Developer utilizes DBMS_METADATA, my understanding is the API relies on the SELECT_CATALOG_ROLE privilege if a user does not own or otherwise have an explicitly granted privilege on an object. Developers like to use this API wherever possible in place of writing a script that might break or need maintenance to deal with future versions of the Oracle database.
    I have no idea how Toad works, and I probably shouldn't speculate, but here is one scenario that could explain the case you mention without the connection user having any of the privileges noted above. Let's say the Toad client software calls a PL/SQL package that selects from DBA_SOURCE and is installed in a schema that has the SELECT ANY DICTIONARY privilege. All Toad users are granted EXECUTE on this package and therefore inherit SELECT ANY DICTIONARY in the context of running the package. This will work, but at the price of complicating installation of Toad. Also, it doesn't afford an administrator fine-grained control over metadata security.
    Regards,
    Gary
    SQL Developer Team

  • Can I send notification message to other users?

    Hi all,
    Can abap webdynpro send out notification messages to other users in a portal? If a new user select some employees that have overwritten other same users selection, I need to send out notification message to other users that their selection have been resetted by this particular user. Can this be done in abap webdynpro?

    In NetWeaver 7.0 Enhancement Package 2 there is a new feature called Web Dynpro Notification Service. It lets you send events to any other applications which are listending for that same event id.  In a demo that comes with 7.02 we use this technology to create a chat application.  However this functionality has to be built into each application.  They must have an event handler ready to respond to the event.
    So you could build what you describe into your application - but only as of 7.02.  7.02 for the Business Suite comes with BS7i2010 which is currently scheduled to start ramp-up in Q4.

  • I just updated my MacBook pro early 2011 model to OSX 10.9 and was forced to create a new user(administrator) and ended up with a different configuration. If I login with my original user name everything is back. How can I get rid of the other user name?

    I have two user names with Administrator privelages and my MacBook keeps booting up to the wrong one and I have the wrong configuration since I updated to OSX 10.9. I would like to get back to my original User name which I used to boot up to. When I go to the User Groups and Preferences it doesn't allow me to delete the un-wanted user.
    Does anybody have any suggestions how I can fix this? I can't seem to recover Time Capsule back-ups prior to the OSX upgrade even though I have been faithfully backing up to a Time Machine.
    Help please.

    First of all, open System Preferences > Users & Groups > Login Options, and set your old user account in "Automatic login". By doing this, your computer will always log in with your old account.
    Then, log in your old account, where you will be able to delete the new user that OS X Mavericks forced you to create. Other users have reported the same problem

  • Can't log in to any other user account except admin

    I have one computer (out of a lab full of 36 computers) that has a problem creating additional accounts beyond the first.
    I can set up multiple other accounts (either admin, standard, or managed accounts), but I can't log in to any other accounts except the admin account. Here's what I do:
    1. When the computer was unpacked I set up the admin user, and automatic login of the admin user using the usual Apple first run setup windows.
    2. In System Preferences -> Accounts, I click the lock and enter my admin password so I can make other accounts. This works fine.
    3. I create an account and give it a password (I've tried blank passwords too).
    3a. The system warns me that automatic login is turned on (set to the admin user currently). I click the "Keep Automatic Login" button. The other account is now created and all looks well; I can see it's home folder in the Users folder.
    4. I switch to the Login Options view, and choose that other account from the automatic login popup menu.
    4a. The system prompts me for the account password. This is where the problem happens.
    4b. On 35 of the computers, this works fine. One 1 computer, the system warns me that "You did not enter the correct password for your user account." I can click OK there, but nothing I enter for the password works.
    I also tried logging out from the admin user, and I simply can not log in to any other account. I've tried one letter passwords; I've tried blank passwords; I've tried variations on account names; I've tried all-caps; I've tried all-lowercase. I can log in to the admin account with no problems; I can set up as many other accounts as I like, but I can't use any of them.
    Any ideas? Should I just wipe the hard drive and re-install? That's certainly a viable option, but it's baffling me why it's only this one out of 36 computers having the problem.

    Smells like a corrupted OS installation. Two options. Erase & Install or hook it up to a good machine, via target disk mode, and clone the booted machine, using something like Carbon Copy Cloner, SuperDuper!, etc., after erasing and reformatting the calcitrant machine, and see if that fixes things.

  • Two users can't login to Bonjour, but other users can

    All the Macs in my house are set to log into iChat on startup, which creates a defacto messaging network around the house. Quite handy. But now, on one particular machine (a G5 iMac iSight) two users can't seem to log into Bonjour, although on the same machine all the other users can.
    I've looked at some other posts on this site, and have checked that Address Book shows 'me' as correct for both users. The Firewall is not set to Essential Services Only, and there is no limit on the bandwidth. The Quicktime streaming setting is set to 1.5 mbps.
    In iChat, when using one of the two troublesome logins on the G5, when I click cmd-2 to bring up the Bonjour list, it says Bonjour is not enabled, and gives a click button to enable it. But clicking it does nothing - no effect whatsoever.
    When those two same users use the external Buddy List (and an AIM screen name) their iChat works fine.

    Hi Nick,
    This is what I have found out.
    It relates more to Shares shown in the Finder but may offer clues.
    I have G4 Tower that has been upgraded from Jaguar actually, to Panther, Tiger and Finally Leopard.
    Along the way I bought a MacBook Pro. (Now on Snow Leopard)
    At this Point I changed the G4's Computer name to represent it was the G4 and called the MacBook Pro "MacBook Pro" rather than my first Admin Account name (otherwise both Computer names and Short names would have been the same)
    I also changed the Leopard's My Card in the Address Book to give it a different Name in iChat.
    Somewhere during this process the G4 ended up with a Ralph-G4.local ID, a computer's name of Ralph Johns's Computer, a Address Book ID of Ralph G4 and the short name of ralphjohns
    The MacBook Pro has MacBook Pro as the Computer name and .local name and the short name is alsoralphjohns. The Address Book My Card is my full name.
    Now in discussion with a Level 4 poster who knows more about this than I do I found out that in Leopard if File Sharing is Off the Bonjour ID is still supposed to show in the Snow Leopard Shares.
    However if it is ON whether you use AFP or SMB or Both it is only supposed to appear once and mine was appearing twice.
    Changing the Computer name to something else seemed to confuse things (I could not Log on to share from Either Computer)
    Changing the name back resolved that but changed the .local ID on the G4 as well.
    (Changing the .local name back to what it was before seems to have had now effect now.)
    However the G4 now only shows once in the MacBook Pro Shares.
    I do not think the Upgrades are the distinguishing feature more my poor attempts at making sure the new (then) MacBook Pro had a different ID than the G4.
    I have been able to Bonjour Video and send files as well as see the Other Computer in the Bonjour Buddy lists.
    So in summary.
    The Address Book My Cards have to be Different.
    Sometimes changing the Computer name or the .local name does seem to cause issues in File Sharing - which may have some influence on Bonjour as a whole.
    Whilst my G4 was showing up in the MacBook Pro as two Shares it was listing the .local name and the Computer's Name as shown in Sharing which were different.
    It maybe this if it is happening for this computer that may give clues.
    7:59 PM Thursday; October 15, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Edit package body from sqlplus

    HI,
    I usually use SQL developer to create and edit my packages which usually worked fine. But the problem for today is that I can not save only packageA's body, and the others can be saved well. ( the SQL developer just runs for ever when I click save)
    And I try to edit it using sqlplus, but I don't know the syntax for it.
    Any help appreciated!!

    HI, thanks so much for your help!
    The final solution was to create a new package with same code, and of course, with new updates.
    The new problem is : no way to drop the old package( tried many times):
    Error starting at line 1 in command:
    drop package packageA
    Error report:
    SQL Error: ORA-04021: timeout occurred while waiting to lock object
    04021. 00000 - "timeout occurred while waiting to lock object %s%s%s%s%s"
    *Cause:    While waiting to lock a library object, a timeout is occurred.
    *Action:   Retry the operation later.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can't edit package

    Is there a reason why I can create the specification and cannot edit it or the body? Do I need to have certain rights?
    Thanks

    Hello,
    Hardly enough information. Please tell us about your environment, like database version, where the package is stored, how you connect to the db, etc.
    Regards,
    Arie.

  • Bug: iPad Mini can not edit server 3.0.1 wiki pages

    I have OS X server 3.0.1 running on my Mac Mini. With the iPad Mini 1 its possible to enter the wiki pages but when I want to edit them the toolbar disappears. Works fine with the iPad 1 so I cannot be related to the screen resolution.
    Can someone confirm this bug?

    Strange, I had the same problem under Mountain Lion Server. I tested it in the appel store withthe new ipads and it worked. Also with some other browsers it works on my iPad Mini but not all of them (Chrome for e.g.).
    Any idea what could cause this problem?

  • Bug! Calendar, can't edit single repeating event, iOS 8.1

    hello!
    I've created a repeating event. And now I want to edit one of these events. But when I try to save changes there isn't option to save the single event, only two options: save for future events and cancel.
    Delete the event works well — there are three options: single, future,cancel.

    UPD. if i'm trying to rename the event, i have an option to save for the current event only. But if i'm trying to change type of schedule: from all-day to exact time, i have only the option to save for all future events!

  • How can I create packages procedure & function in user-define Library

    hi.
    i am already created packages procedure & function in database and use so on.
    now i would like to create these in library file.
    please anyone give me example of any procedure or function to store in library.
    thanks
    Ali

    <FONT FACE="Arial" size=2 color="2D0000">> please send me one simple example for create library
    then create any function in library.
    2nd is any package can be create in library or not??
    Thanks S.K
    AliHave you checked the link?
    A simple example is provided.
    I think What I understood from your post is that, you want to put function/ Proc and want to call that as Library ..
    Which is not  possible.
    For exampel an external routine is a third-generation language procedure stored in a
    dynamic link library (DLL), registered with PL/SQL, and called by the DBA to perform
    special-purpose processing.
    In Unix a dynamic link library is known as a shared object (so).
    At run time, PL/SQL loads the library dynamically, then calls the routine as if it were a
    PL/SQL subprogram. To safeguard our database, the routine runs in a separate address
    space, but it participates fully in the current transaction. Furthermore, the routine can
    make a call back to the database to perform SQL operations.
    To identify a DLL we have to use CREATE LIBRARY command.
    The CREATE LIBRARY command is used to create a schema object, library, which
    represents an operating-system shared library, from which SQL and PL/SQL can call
    external third-generation-language (3GL) functions and procedures.
    Learn something more on External Procedures
    -SK
    </FONT>

Maybe you are looking for

  • How to get the Clicked Item of a ListBox?

    I need to get the clicked item of a listbox. The item can be at first selected, when I click it again, it automatically gets de-selected, but I want to get that item whenever I click it. Any idea how to do this? This line does not work, because it ge

  • External Harddrive Recognized...but not

    Hey all, I'm having some real problems here and I'm wondering if my HD is dead. I have probably 100Gb of music and 250Gb of pictures and movies and such, and would be devastated if I lost it all. When I plug in the HD, it boots up and turns on, and m

  • Nested query value used as comparison in second nested query

    Hi, What would be the best way of writing the following: I have a simple SELECT statement which includes two nested queries used to get the start and end dates from two different tables (if the first date from the first table and the second from a di

  • Is it possible to disable Export connections functionality (Connections view) in SQL developer?

    Hi, because of some security reasons, there is a need to disable export connections functionality in SQL developer. Is it possible to do this somehow? Many thanks, Dejan

  • Captivate 7 Scorm 2004 and some Errors

    I've exported  2 captivate scorm files and used the Adobe Multi Sco Packager to create one course. When we upload the packaged scorm file to the LMS we keep getting the following errors in the debug window: Can someone point me where I can start to l