How to find PL/SQL dependent on Java stored in database

Is there a way to find out - which JAVA CLASS object a PL/SQL package calls?
I have a PL/SQL package with a function F. The definition goes like this:
PACKAGE P
IS
FUNCTION F ( n NUMBER )
RETURN VARCHAR2
AS
LANGUAGE JAVA
NAME 'com.foo.ServiceWrapper.getF(int) return java.lang.String';
END P;
And I expected to find the relationship between the JAVA CLASS and the PL/SQL package listed in DBA_DEPENDENCIES:
SELECT *
FROM DBA_DEPENDENCIES
WHERE REFERENCED_TYPE = 'JAVA CLASS'
AND NAME = 'P';
But nothing shows up. Do you know, where to look?
/Jorn

You can go to the 'Program' 'Executable' Form and enter the search on the shortname. I don't think you have to modify the code though.
I think you should look at metalink note 281877.1 and probably apply patch 2968357. Or at least modify the offending tablespace default parameters.

Similar Messages

  • How to find the Latency time in java.

    How to find the Latency time in java.

    long start = System.currentTimeMillis();
    doTheWork();
    long durationInMillis = System.currentTimeMillis() - start;You might repeat doTheWork() several (100-1000 or more) times if it is fast and the granularity of your system clock is not good enough.

  • How to find out sql server administrator account in sql server 2008 R2

    how to find out sql server administrator account in sql server 2008 R2
    adil

    there is any way to find out actual administrator
    because i forget that user i used to logon to server and installed sqlserver
    adil
    Hi adilahmed,
    According to your description, you forgot the account which was used to install SQL Server. SQL Server service account information is stored in Windows Registry database. You can get this information from Services Console or SQL Server Configuration.
    For example, to get account information from Services Console.
    1. Go to Start > Run > Services.msc
    2. Right Click on SQL Server Service, i.e. “SQL Server (InstanceName)” and go to properties
    3. The account information is available under Log On tab.
    Or you can get the information by using DMV and so on.
    SELECT servicename, service_account FROM   sys.dm_server_servicesGO
    If you now log in SQL Server by using sysadmin account, you can check all login names in security and find the original account to login.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to find the  System Dbtype in java code

    How to find the System Dbtype in java code
    I need various Db connection my project (oracle, sq l,sybase,db2),So How to find the System Dbtype in java code

    Welcome to the Forums.
    Please go through the FAQ of the Forum.
    You has posted your query in the wrong Forum, this one is dedicated to Oracle Forms.
    Please try {forum:id=1050}.
    Regards,

  • How to find the SQL Server Instances running across the given activer directory domain?

    How to find the SQL Server Instances running across the given activer directory domain?
    I have though of OSQL -L , Microsoft Assessment and Planning ( MAP ) tool and SQLPing3 (SQLSecurity) might help me.
    I would appreciate if there any other way of finding the SQL Servers / Instances running across the given active directory domain.
    Sivaprasad S
    http://sivasql.blogspot.com
    Please click the Mark as Answer button if a post solves your problem!

    Dear ,
    Very simple u find all instances through the customized sp which is get all details about inventory. Like i put the sp bellow. This is without any tool. 
    USE [master]
    GO
    /****** Object:  StoredProcedure [dbo].[DBStatus]    Script Date: 08-01-2015 19:46:11 By Damodar Patle Sr. DBA Mumbai India ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[DBStatus] 
    AS
    SELECT 
    SERVERPROPERTY('servername') AS ServerName,
    ConnectionProperty('local_net_address') AS 'local_net_address',
    ConnectionProperty('local_tcp_port') AS 'local_tcp_port',
    CONVERT(VARCHAR(25), @@VERSION) as  VERSIONSQL,
    SERVERPROPERTY('ErrorLogFileName') AS ErrorLogFilePath,
    database_id,
    CONVERT(VARCHAR(25), DB.name) AS DBName,
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'status')) AS [Status],
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'Recovery')) AS [Recovery_Model],
    create_date as DBCreate_Date, --physical_device_name,
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS DataFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS [Data MB],
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS LogFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS [Log MB],
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS MDF_File_Location,
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS  LDF_File_Location,
       user_access_desc
       FROM sys.databases DB
       ORDER BY dbName, [Log MB] DESC, NAME

  • How to pass XMLType as parameters to Java stored procs ?

    How to pass XMLType as parameters to Java stored procs ?
    ORA-00932: inconsistent datatypes: expected an IN argument at position 1 that is an instance of an Oracle type convertible to an instance of a user defined Java class got an Oracle type that could not be converted to a java class
    Java stored proc -->
    CREATE or replace FUNCTION testJavaStoredProcMerge( entity xmltype,event xmltype ) RETURN VARCHAR2 AS LANGUAGE JAVA
    NAME 'XDBMergeOp.merge(org.w3c.dom.Document,org.w3c.dom.Document) return java.lang.String';
    PL/SQL -->
    declare
    theQuote VARCHAR2(50);
    entity xmltype;
    event xmltype;
    begin
    entity := xmltype('<Quote><Fields><Field1>f1</Field1></Fields></Quote>');
    event := xmltype('<Quote><Fields><Field2>f2</Field2></Fields></Quote>');
    theQuote := testJavaStoredProcMerge(entity,event);
    dbms_output.put_line(theQuote);
    end;
    Java class -->
    public class XDBMergeOp {
    public static String merge(Document entity, Document event) throws Exception {
    return ...
    Thanks in advance.

    I think you'll need to use XMLType and then extract the DOM inside java..
    create or replace package SAXLOADER
    as
      procedure LOAD(P_PARAMETERS XMLTYPE, P_DATASOURCE BFILE);
    end;
    create or replace package body SAXLOADER
    as
    procedure LOAD(P_PARAMETERS XMLTYPE, P_DATASOURCE BFILE)
    AS
    LANGUAGE JAVA
    NAME 'com.oracle.st.xmldb.pm.saxLoader.SaxProcessor.saxLoader ( oracle.xdb.XMLType, oracle.sql.BFILE)';
    end;
      public static void saxLoader(XMLType parameterSettings, BFILE dataSource)
      throws Exception {
        Document parameters = parameterSettings.getDocument();
        SaxProcessor app = new SaxProcessor(parameters);
        app.processXMLFile(dataSource);
      Edited by: mdrake on Apr 6, 2009 11:28 AM

  • How to find the maximum no of users logged in Database

    Hi All,
    How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.

    Vijay wrote:
    Hi All,
    How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.
    select * from v$resource_limit;Lists about 20 different resources with current, maximum and limit on usage. Session count is one of them. I don't think there's any (simple, efficient) way to determine the maximum number of different users of sessions, though.
    Regards
    Jonathan Lewis

  • How to find where the screen field is stored in table

    Hi all,
    How to find where the screen field  is stored in the table .
    for some transactions if i press F1 on the field and after checking for the technical help.
    I can only find the struture for the screen field, but whereas i need table name for it.
    Can anybody help me how to find the table name where the field is stored.
    Regards,
    Madhavi

    Hi,
    Just hitting a F1 on screen field and getting structure name will not help in getting table name.
    First you need to know the flow of data in the reqd module, which will help you know all the tables in that module with there most of the fields with the data flow, now you need to work on your own to figure out that in which actual tables that value is stored.
    Hope this helps you.
    Regards,
    Tarun

  • How to find if COLUMN DEFAULT VALUE is stored as metadata?

    Hello,
    I'm using Oracle 11g enhanced ADD COLUMN Functionality. Adding new columns with DEFAULT values and NOT NULL constraint no longer requires the default value to be stored in all existing records.
    Sometimes we change DB columns from NOT NULL with DEFAULT to NULL with DEFAULT. This operation "materialize" column default.
    Is there an easy way (Dictionary view) how to find, that COLUMN default value is stored as metadata or is "materialized" ?
    Thanks. Filip
    Oracle RDBMS version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

    Thanks for your suggestion, but it is not what i'm looking for :-(
    I don't need to find the default value, i need to know how is default value stored. It could be stored in 2 ways.
    1. "materialized" - prior to 11G (value is physicaly stored for every column)
    2. "as a metadata" - new 11G functionality (default is not physicaly stored and if you query the column DB transalte NULL value to defaut value)
    Now I would like to now if my column is type 1) or 2). How can I do it?
    Thank you.Filip

  • How to  find out where sap error messages stored...

    How to  find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?

    Hi,
    I also got the same message when that message no is not there
    E:SABAPDOCU:000 test 
    yours is S-type and message id ZY and message no 127
    127 is not there either change the no  or create the same
    Regards
    Shiva

  • How to find out where sap error messages stored in our system

    How to find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?

    Are you interested in WDA messages ?
    The set a breakpoint in METHODS IN class CL_WDR_MESSAGE_MANAGER.
    Then use call stack (default desktop 2 in debugger) to see where message is added to message manager.
    regards
    phil

  • How to write a SQL query in Java

    Hi, I'm writing a program that pulls all data from the database with a simple "SELECT * FROM [TABLE NAME]. The problem is that I don't know how to set it up properly. My code will only connect to the database but not execute the query. Please help.
    {code}import java.sql.*;
    import java.util.Properties;
    import java.sql.*;
    public class DatabaseSelect {
    public static void main(String[] args) {
    System.out.println("Connected to the database!");
    Connection conn = null;
    String url = "jdbc:oracle://localhost:1571/";
    String dbName = "jdbc";
    String driver = "com.oracle.jdbc.Driver";
    String userName = "HR";
    String password = "database";
    String query = "SELECT * FROM HR";
    try {
    Class.forName(driver).newInstance();
    conn = DriverManager.getConnection(url+dbName,userName,password);
    System.out.println("Connected to the database");
    } catch (Exception e) {
    e.printStackTrace();
    }{code}

    pbsacct_1 wrote:
    I added it between my System.out statement and the catch exception. This is what I put, but I'm getting the same result. I looks like a lot of errors. The only thing that prints is the "Connected to database".
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    ResultSet srs = stmt.executeQuery("SELECT * FROM HR");Here is what displays in the console.
    Connected to the database!
    java.lang.ClassNotFoundException: com.oracle.jdbc.Driver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at Discussion10.DatabaseSelect.main(DatabaseSelect.java:26)You are not connecting.
    Because you aren't even loading the driver.
    To be honest if you can't decipher a stack trace with "java.lang.ClassNotFoundException" on your own you are not ready for JDBC anyway.

  • How to find GUI SQL*Plus command tool in Oracle 8i (version 8.1.7)

    I had installed Oracel 8i Enterprise Edition (version 8.1.7) on my server machine (Windows NT 4.0), I'd like to use Oracle Navigator (GUI SQL*PLUS command tool), but I can not find it from the menu. I know Oracle Navigator is available in Oracle 7. Can anyone tell me where and how to use GUI SQL*PLUS command tool in Oracle 8i Enterprise Edition (version 8.1.7) ?
    thanks a lot.
    David Zhu

    Hi
    Oracle Navigator is part of Personal Oracle7 and Oracle Lite. I don't know is it available in 8i Personal Edition but I am sure that it is not part of Standard and Enterprise Edition.
    Regards
    null

  • How to convert pl/sql code into java/j2ee

    Hi,
    We have a PL/SQL Oracle App server application that we will support if we can convert in j2ee/java. But when i did take a look at the code, these pl/sql contains all HTML and java code inside the stored procedures.
    And iam looking to explore some tools and mechanisms that can convert these pl/sql in a JAVA application so that i can deploy this new app into my BEA81 environment.
    Does any body has any idea:
    a) How to convert from pl/sql > java ?
    b) Any plugins or tools of BEA that can run these pl/sql (the way thay are currently...i.e w/o converting) in BEA 81 container ?
    thanks, sangita

    these pl/sql contains all HTML and java code insideJava or JavaScript. They are not the same. I wouldn't expect to see Java inside html, whereas JavaScript would be intermixed. On the other hand you might have a java stored proc (Oracle 9/10) which is generating HTML.
    >
    Does any body has any idea:Refactor.
    I doubt it just has html and JavaScript/Java. So what you have is a mess that mixes several things that should have been seperate in the first place.

  • How to return PL/SQL tables to JAVA

    Can we return tables from PL/SQL stored procedures to JAVA?
    I know that we could use REF CURSOR in PL/SQL, but regarding the performance I heard that its not that good.
    This is the PL/SQL code I need to execute. I need to execute this in Java.
    package table_type_pkg AS
    TYPE t_select_rec_type IS RECORD
    ( state_id fnd_flex_values.flex_value_id%TYPE
    ,state_code fnd_flex_values.flex_value%TYPE
    ,state_desc fnd_flex_values_tl.description%TYPE
    TYPE table_type IS table of t_select_rec_type INDEX BY BINARY_INTEGER;
    table_type_rec table_type;
    empty_table table_type;
    -- get_state_details procedure used to get the details of the state
    PROCEDURE get_state_details(v_table_type OUT table_type_pkg.table_type);
    -- get_records_out procedure to check how the table is intialized in above procedure and what are the values in that table
    PROCEDURE get_records_out;
    END table_type_pkg;
    PACKAGE BODY table_type_pkg AS
    PROCEDURE get_state_details(v_table_type OUT table_type_pkg.table_type) AS
    CURSOR c_rec IS
    SELECT
    ffv.flex_value_id
    ,ffv.flex_value
    ,fftl.description
    FROM
    fnd_flex_value_sets ffvs,
    fnd_flex_values ffv,
    fnd_flex_values_tl fftl
    WHERE
    ffv.flex_value_set_id= ffvs.flex_value_set_id
    AND ffv.flex_value_id=fftl.flex_value_id
    AND ffvs.flex_value_set_name = 'BellSouth State';
    v_rec_count number:= 1;
    v_table_type_recs_out table_type_pkg.table_type;
    -- v_emp_rec table_type_pkg.t_select_rec_type%TYPE;
    BEGIN
    FOR c_get_rec IN c_rec
    LOOP
    v_table_type_recs_out (v_rec_count) := c_get_rec;
    v_rec_count := v_rec_count + 1;
    END LOOP;
    -- dbms_output.put_line('Last Record of get_records_table is'&#0124; &#0124;v_table_type_recs_out(v_rec_count
    v_table_type := v_table_type_recs_out;
    END get_state_details;
    PROCEDURE get_records_out IS
    v_count_rec NUMBER :=1;
    v_table_recs table_type_pkg.table_type;
    BEGIN
    get_state_details(v_table_recs);
    IF v_table_recs.COUNT > 0 THEN
    FOR i IN v_table_recs.FIRST .. v_table_recs.LAST
    LOOP
    DBMS_OUTPUT.PUT_LINE('State id is '&#0124; &#0124;v_table_recs(i).state_id&#0124; &#0124;' and State_code is'&#0124; &#0124;v_table_recs(i).state_code
    &#0124; &#0124;'Description is '&#0124; &#0124;v_table_recs(i).state_desc);
    END LOOP;
    END IF;
    END get_records_out;
    END table_type_pkg;
    Thanks,
    -Rao Repaka
    null

    these pl/sql contains all HTML and java code insideJava or JavaScript. They are not the same. I wouldn't expect to see Java inside html, whereas JavaScript would be intermixed. On the other hand you might have a java stored proc (Oracle 9/10) which is generating HTML.
    >
    Does any body has any idea:Refactor.
    I doubt it just has html and JavaScript/Java. So what you have is a mess that mixes several things that should have been seperate in the first place.

Maybe you are looking for

  • Filter view with session variable does not display value properly.

    Hi All, I have a very unique issue and I am not sure if anyone ran into this before. I have a prompt in my dashboard and a link to a report. The session variable default the value to the current value (term) when I click the link to the report I get

  • GRC RAR Action Rules

    Hi , How many action rules will be available in Global rueset ?? I am getting : Total no. of rows : 135486 in RAR Screen ???   Is it normal to have this many? Also, the query was taking so long... ( I know we can use filter, but even though the queri

  • Match the string for a particular format

    i want to chek the string for a particular format.. lets say for ex , i have to check the string for 6A1N format where A - Alphabets and N - Numbers. that means my string exactly contains 6 alphabets from a to z and one number from 0 to 9 like this i

  • How can I resample the data I have already acquired?

    Dear All, I have my data acquired at a rate of 50Hz and but this gave me too many data points for me to be able to export to an excel file as it exceeds the ~65K maximum set by excel. I have the data saved in a signal express file, and can I resample

  • Word search on safari ?

    How can I search for a given word on a safari iPad page, like I do on my computer? Thnx