Java source and class locked, unable to drop or replace

Because Oracle 9i does not come with an FTP implementation, I installed the apache.commons.net package into the database, and implemented static java wrappers to allow me to publish the code.
After thoroughly testing the code under JDeveloper, I deployed the code to the database.
The code hung, establising a lock on one or more classes. Besides not knowing how to debug and java packages inside the Oracle database (eg, why did the code fail in the first place?), I have no idea how to unlock the source or class of my java objects.
How does one find what process is locking the java source and/oir class?

Try something like:
select s.username, pr.pid, pr.spid from
x$kglpn p, x$kglob o, v$process pr, v$session s
where p.kglpnhdl = o.kglhdadr
and pr.addr = s.paddr
and p.kglpnuse = s.saddr
and o.kglnaobj = dbms_java.shortname('fully/qualified/ClassName');

Similar Messages

  • To view database Java Source and Class code in SQL Developer - Do this...

    I've wanted something like this for a while.. Hope this helps someone else...
    Make a master detail report...
    1. Click the reports tab.
    2. Right click on "user defined reports" and select "add report"
    3. Type "Java Source Object and Class Code" into the name field.
    4. Make sure "Style" is set to "Table".
    5. Paste this code into the "SQL" window.
    select OBJECT_NAME, OBJECT_TYPE, to_char(created,'DD-MON-YYYY HH24:MI:SS') Created, to_char(LAST_DDL_TIME,'DD-MON-YYYY HH24:MI:SS') "Last DDL", STATUS
         from user_objects
        where object_type in ('JAVA SOURCE')
        order by object_name6. Click "Add child"
    7. Make sure "Style" is set to "Code" in the child.
    8. Paste the following code into the SQL window of the child.
    select text from user_source where name = :OBJECT_NAME order by line9. Click Apply..
    10. Enjoy...
    no semicolons after the sql....
    Message was edited by:
    slugo

    Mark,
    Thanks Check this out people can now subscribe to the public reports out no the exchange.
    http://krisrice.blogspot.com/2007/10/marks-post-on-forums-got-me-to-do.html
    -kris

  • To know abt java packages and classes

    please give an idea abt how to find the list of packages and classes
    available in the java packages

    Which ones? If you mean the ones available in the standard Java APIs, check the java-docs:
    1.4.2:
    http://java.sun.com/j2se/1.4.2/docs/api/
    1.5:
    http://java.sun.com/j2se/1.5.0/docs/api/

  • Where can I find java algorithms and classes

    Does anyone here know about places on the net where you can download algorithms and classes written in Java?
    I am looking for a method/class that is able to do the following:
    Given a mispelled word. Find the word in a word list that best matches this word.
    Obviously simple wildcards isn't going to cut it.

    Your best bet would probably be to implement the Soundex or Metaphone algorithms. They're frequently used for word-matching.
    The SOUNDEX algorithm is an algorithm used to convert words into a 1 character, 3 digit code that can be used for phonetic comparisons. More on it can be found at http://www.myatt.demon.co.uk/sxalg.htm
    Metaphone has better performance.

  • Unable to drop or replace workflow

    Hi all has anyone come accross the following issue when using OWB 10G R2. We had a workflow that contained eight mappings and it was running fine. We modified the workflow and tried to re-deploy the new workflow but all we get back is the following error "RPE-02062: ItemType OWB_PK1 cannot be dropped as it has running Processes. You must first abort all the running processes using the Oracle Workflow Monitor" Now we can manually run the workflow from the comtrol centre and it completes ok so cant understand why we get the above error when we try to replace/drop it becuase it is not hanging when we run it. I assume the workflow monitor is in OEM but i do not have access to OEM.
    Has anyone had this error before and how did you manage to remove the error so that you could replace the old workflow with the new workflow, any help would be appreciated.
    Regards Kevin

    Thanks very much Gilles that has brough up teh Workflow package that appears to be running. I am very new to Workflow and only really using it in conjuction with OWB for dependency management between mappings. This problem occurred when i decided to change and existing workflow that was linked to a schedule in OWB. My assumption was that you could leave the existing workflow deployed and running at the same time make any required changes to these workflow in OWB and when you were happy with the changes drop the job that schedules the workflow and then just do a replace on the workflow. This is howveer where i hit this error. I do not have access to OEM which i beleive is where the Workflow Monitor is. Is there a logocal step of processes i need to follow when making changes to existing workflows or am i always going to get this error and have to either run the abort procedure or gain access to the workflow monitor to administer.
    P.S. OWB groups workflows under packages which is what the error is complaining about not the actual individual workflow is it best practice to make the package and workflow a one to one relationship or is ik ok to group many together.
    Applogise for the basic questions..
    Regards Kevin

  • Drop java class and java source

    Hi,
    When I query user_objects I get some java class and java source objects
    select * from user_objects where object_type like 'JAVA %';
    How do I drop these java source and java class objects from the database
    I tried using the following command
    drop java class /4a524d89_AutoTransliteratorPk
    drop java source AutoTransliteratorPkg
    But I get error ORA-29501: invalid or missing Java source, class, or resource name
    Please someone help me in dropping these objects
    thanks
    saaz

    was the java source all caps or was it exactly AutoTransliteratorPkg. If its exactly AutoTransliteratorPkg then try this
    drop java source "AutoTransliteratorPkg"

  • SQL Developer 3.2 : Unable to browse java source in the db

    Hi:
    I noticed a regression in SQL Developer 3.2 in respect to 3.1 (on windows).
    as of SQL Developer 3.1.7.7.42 I was able to browse java sources stored and compiled in the database.
    The tabs "Details", "Source", "Policies" were correctly populated. If I had to complain about something, the names of the classes were "shortened" so that I saw "c932e55e_PrintDebug" instead of "my/company/application/package/PrintDebug".
    I have tested the 3.2 release.
    Now, the class names are complete, but the tabs are empty. I am also unable to retrieve the source of a class (as it was possible in 3.1)
    Does this happen to other people?
    Thanks,
    Andrea

    Thanks for the feedback, it is good to know I am not alone :-)
    I did some further tests.
    I enabled logging in sqldeveloper.conf, and found this query I believe to be the culprit:
    Prepared:with src_name as (select source n from Dba_java_classes
    where lower(name)=lower(:NAME) and rownum = 1)
    select text||decode(substr(text,length(text)),chr(10),null,chr(13),null,chr(10)) source
    from Dba_source
    where owner= :OWNER
    and type = 'JAVA SOURCE'
    and (name in (select n from src_name) or name in (select owner || '/' || n from src_name)
    or lower(name) = lower(:NAME))
    order by line
    Previously :NAME was populated with the java short name, while now it has the java long name.
    In fact, if I compile a class where short name and long name are the same, it works.
    In DBA_JAVA_CLASSES name is the long name, while in DBA_SOURCE it is the short name (at least this is what I observed).
    So I believe that this is truly a regression.
    Anyone (from dev) can confirm this?
    Thanks,
    Andrea

  • INVALID Java Source/Class - 8i

    Hi,
    When I loaded the example java source:
    public class Oscar {
    // return a quotation from Oscar Wilde
    public static String quote() {
    return "I can resist everything except temptation.";
    and looked at the table USER_OBJECTS for the result I find them to be in an invalid status:
    Object Name Object Type Status Timestamp
    Oscar JAVA CLASS INVALID 2002-01-09:16:18
    Oscar JAVA SOURCE INVALID 2002-01-09:16:17
    What could be happening? Thanks in advance for your help.
    Harish

    Harish,
    You need to resolve your class when loading it for it to become valid. At this point you can do the following:
    ALTER JAVA CLASS "name" RESOLVE;
    You can also do this when loading Java Source from SQL*Plus as follows:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "name" AS
    <java code>
    Or, if you prefer loadjava, use the -resolve flag
    Hope this helps,
    -Dan Barr
    http://www.compuware.com/products/numega/dbpartner/dbpordebug.htm
    Debug Java in the Oracle Database

  • Managing java files and packages

    Hi,
    I am just starting out with java and have reached the stage where I want to store my files in packages and the correct directory structure. I have read through the sun link below and have a question they seam to miss. They say that .java and .class files should be kept in separate places. ie sources and classes directories with the package directory names below. But I have found that unless you have the .class files you are referencing in the same directory as the .java files when you come to compile you will get an error so they have to be stored in the same directory???.. Does this make sence or have I gotten it all wrong.
    Thanks
    Joolz
    http://java.sun.com/docs/books/tutorial/java/interpack/managingfiles.html

    You should put path containing your classes in your classpath. There is a -classpath option in javac.

  • Parser converting java source file

    I want to build a parser, which reads a java source and adds stubs at the start and end of a method, which might be for a public/protected/private method.
    This public/protected/private keyowrd , and source file will be passed as command line arguments to the parser.
    The generated output java source file should be similar to input source file with stubs.
    For example , we have a java source file( A.java) file as specified below
    class A{
         public m1(int m1_a, int m1_b){  }
         protected m2(int m2_x, int m2_y){ }
         private m3(int m3_p, int m3_q) {  }
    parser public A.java;
    after parsing it should generate output source file as A.JAVA as specified below
    class A{
         public m1(int m1_a, int m1_b)
    {  System.out.println(" start of "A:m1"" +  time: +"parameters:" +" a="+a ," b="+b)
         System.out.println(" End of "A:m1"" + time: +"parameters:" +" a="+a ," b="+b)
         protected m2(int m2_x, int m2_y){ }
         private m3(int m3_p, int m3_q) {  }
    Are there any tools , example programs , tips on the above problem .
    Anticipating help at the earliest

    HI dcminter,
    I am not talking about performance tuning,
    I need to build a program ( tool) which add System.out.println() statements as specified above for specific methods ( which might be public/private/protected ) which will be passed to the parser along with the java source text file.
    This program(tool)should only convert from one java source text file (A.java) to another java source text (A.JAVA) file , by adding the extra System.out.println() statements.
    Please help in this regard about any sample or tool or tips in solving.
    Awaiting for ur reply
    --gvr123                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Please let me know if Java.exe and Javaw.exe is embedded in Oracle.

    What versions of Java.exe or Javaw.exe is embedded in Oracle. If java executables are embedded, then please inform what versions of Oracle have Java executables embedded.

    >
    What versions of Java.exe or Javaw.exe is embedded in Oracle. If java executables are embedded, then please inform what versions of Oracle have Java executables embedded.
    >
    Oracle 11.1+ includes AND REQUIRES Java 1.5.
    Oracle 11g requires version 1.5 and you CANNOT update the version. Any attempt to do so can possibly corrupt your Oracle version and will prevent Oracle from working properly.
    Note that also means you cannot load Java source or class files into Oracle that use functionality from Java 1.6+.
    See the Java Developer's Guide
    http://docs.oracle.com/cd/E11882_01/java.112/e10588/chone.htm
    >
    Feature List of Oracle JVM
    Table 1-1 lists the features of Oracle JVM and the versions in which they were first supported.
    Table 1-1 Feature List of Oracle JVM
    Feature Supported Since Oracle JVM Release
    JDK 1.5 support
    11.1

  • How can I extract Java source from Oracle?

    I have an object of type "JAVA SOURCE" in my database. I do not have the source
    code available.
    How can I extract this source from the database so I can read it? I am not a Java programmer, so a sql or pl/sql solution would be greatly appreciated.
    Thanks in advance!

    This query lists any Java object that the current database user has (JAVA SOURCE, JAVA CLASS or JAVA RESOURCE). Use this to determine which Java sources exist.
    SELECT * FROM USER_OBJECTS
    WHERE OBJECT_TYPE LIKE 'JAVA%'This query lists the source of one Java object.
    SELECT * FROM USER_SOURCE
    WHERE TYPE = 'JAVA SOURCE'
    AND NAME = 'com/acme/HelloWorld'Substitue the name of the java class you're interested in for 'com/acme/HelloWorld'.
    I know that the question is four years old, but I had the same question and arrived here via Google, so I figured posting an answer might help others in a similar situation.

  • Connect to MS Sql Server from Java Source

    Hi,
    Is there any way I could connect to ms sql server from Java source? I know I can call java source from function thats easy but what I really want is capability to connect to non-oracle(MS SQL server) from my java source and then call it from function.
    I don't know if JDBC driver for SQL server is even installed/available. Is there a way I could find it out form my IDE? I know sqlJ does compile but I have never used sqlj. help!!!
    Sinha

    You'll probably have better luck in a Java forum or a Microsoft forum.

  • Java ,abap and XSLT mapping

    Hi all,
               can any one provide some material on java ,ABA and XSLT mapping(as i got requirement on my current project)..
    thanks in advance.
    regards
    krish..

    Hi
       All mapping related links
    There is no hard and fast rule for using the mapping techniques.
    Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve any complex logic.
    Java and XSLT mapping are used when graphical mapping cannot help you and you have multilevel hierarchy structure data.
    When the choice is between Java and XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. One among them being that you cannot use Java APIs and Classes in it. There might be cases in your mapping when you will have to perform something like a properties file look up or a DB lookup, such scenarios are not possible in XSLT and so, when you want to use some specific Java API's you will have to go for Java Mapping.
    Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but, DOM is very processor intensive.
    SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exactly easy to develop either.
    To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
    Graphical mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
    http://www.sapgenie.com/netweaver/xi/mapping1.htm
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    XSLT mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    http://www.w3.org/TR/xslt20/
    JAVA mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    ABAP mapping
    /people/r.eijpe/blog
    To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
    http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
    To get an idea as to what value mapping is, please go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
    And please go through this link which clearly explains the 3 types of mappings.
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    regards
    Prasad

  • Help with Java program and PKGBUILD

    Hey guys, I'm fairly new to Arch and very new to making packages. I write a lot of my stuff in Java, and I know that Java is normally a pain to package on Linux systems. I have had a good look at the Java Packaging Guidelines, http://wiki.archlinux.org/index.php/Jav … Guidelines and I see that it says about not bothering compiling from Java source and just provide the JARs (am I correct?). So my question is, if I were to make a PKGBUILD for my Java based program, would the build() block just basically create the folders in the filesystem and move the content (JARs etc) to the folders? And then create the shell script in the appropriate location?
    Forgive me I have the completely wrong idea...
    Many thanks

    Hey guys, I'm fairly new to Arch and very new to making packages. I write a lot of my stuff in Java, and I know that Java is normally a pain to package on Linux systems. I have had a good look at the Java Packaging Guidelines, http://wiki.archlinux.org/index.php/Jav … Guidelines and I see that it says about not bothering compiling from Java source and just provide the JARs (am I correct?). So my question is, if I were to make a PKGBUILD for my Java based program, would the build() block just basically create the folders in the filesystem and move the content (JARs etc) to the folders? And then create the shell script in the appropriate location?
    Forgive me I have the completely wrong idea...
    Many thanks

Maybe you are looking for

  • Download i bought says it is in the itunes music folder but i can't find it

    I bought two albums last night (not from itunes store) and attempted to download them. During this the computer froze for a minute. The download appeared to finish. When I checked my itunes library tho i could not find the albums. This morning I atte

  • Excel format difference in GUI and NWBC

    Hi Experts, We have implemented Launchpad with different SAP T-codes. For IW38 tcode. 1. If we execute in GUI and tried to save record in excel. Format is perfect with coloring of columns, without any empty rows or columns. 2. But when we use the sam

  • I get message "the file could not be edited because Adobe Photoshop CS5 could not be launched."  "S

    I get message "the file could not be edited because Adobe Photoshop CS5 could not be launched."  "Some of the application components are missing from the application directory.  Please reinstall the application." I have reinstalled from my disk three

  • Error when loading data from xml file

    Hi, I'm trying to load data into a table from XML file using ApEx DATA UNLOAD/LOAD interfaces . ApEx version is 3.0.1 . I'm getting this error: ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00222: error received from S

  • Superior order in PM

    Hai  Experts  , Please let me know when the superior order in PM comes into picture in maintenance order.let me know wher it effects , its functions  , usage etc., thanks and regards mahesh