How to know (package , procedures or functions) name for current sessions

Hi all
I'm DBA and i want to find way to get object name whatever (package , procedures or functions) for current running statement in active session.
To clarify when i open session browser from toad i can see active sessions and see current statement for every session but without the name of the object.
Is there any way to know this point.
thanks in advance

select *
  from dba_objects
where object_id in (select nvl(t.PLSQL_ENTRY_OBJECT_ID,-1)
                       from v$session t
                      where sid = 452)
Ramin Hashimzade

Similar Messages

  • OracleCallableStatement - can I access the procedure or function name?

    I have an observer that, after preparing a statement, before execution, I need to know the stored procedure name of the prepareStatement (and go do an action, if necessary). I couldn't find a var in either OracleCallableStatement or OraclePreparedStatement that has this information, only the 'call' string, ie: { call myproc(?,?)}. For example (and I'm simply stating fact, not displaying preference :-) , SQLServerCallableStatement has a procedureName var (completely undocumented in their API) that I can access once the call has been prepared.
    Any ideas?
    THANKS!

    You can still use PL/SQL anonymous blocks to execute stored procedures and functions. In fact, it has its advantages, like being able to use named parameter association. However, your syntax is incorrect. It should be
    ... prepareCall("BEGIN <procedure name>(x=>?, y=>?, ...); END;") for a stored procedure
    ... prepareCall("BEGIN ? := <function_name>(x=>, y=>?, ...); END;") for a stored functionYou still do a java.sql.Connection.prepareCall(...) using this syntax. However, this returns a java.sql.CallableStatement. A call to prepareStatement(...) returns a java.sql.PreparedStatement which may not work. I know no way of getting the actual procedure or function name.

  • No packages, procedures and functions in Schema Browser

    Hi there,
    SQL Developer 2.1 Early Adopter 2:
    For Databases below 10g in Schema Browser no packages, procedures and functions are visible (no entries under these nodes).
    All other objects are shown correctly.
    Is this a known issue?
    Regards
    Andre

    The thread below seems to have an "official" response to this issue:
    SQL Develpoer EA - 9i Support
    Cheers,
    Chris

  • How to know Sales Organization and distribution channel for a material

    How to know Sales Organization and distribution channel for a created material

    Hi,
    For a single material means u can go mm03 7 select the material number 7 select the sales views then press f4 the details u can see.
    For any number of materials u can go to se11 & give table name MVKE then select the required parameters & execute.
    pandari

  • How do I change the .php file name for a page of my site?

    how do I change the .php file name for a page of my site? The only link to the page is the nav. button link for it in the global nav. The reason I need to change the file name is we want the breadcrumbing name to change and the breadcrumbing is linked to the file name.

    The reason I need to change the file name is we want the breadcrumbing name to change and the breadcrumbing is linked to the file name.
    I don't understand this reason. How would changing the file extension solve your breadcrumb issue? Why don't you explain the issue in more detail.

  • How do I change the artist/owner name for my podcast?

    How do I change the artist/owner name for my podcast?
    For eg, a podcast has 'The Ricky Gervais Podcast' and underneath 'Ricky Gervais'. I can't see where to change the latter. I can't change that through our podcast host Libsyn.
    Is it done through iTunes?
    Jack

    You can't change anything in iTunes: all infomation is carried in the feed, in this case in the 'itunes:author' tag. there will certainly be somewhere to enter it but if you can't find it you will need to contacts Libsyn; or quite possible Rob Walch, who works for them and posts here, will see this question.

  • How to know the optimal Degree of Parallelism for my database?

    I have an important application on my databae (Oracle 10,2,0) and the box has 4 CPU. All the tables are not partitioned. Should I set the parallel degree by myself?
    How to know the optimal Degree of Parallelism for my database?

    As far as I am concerned there is no optimal degree of parallism at the database level. The optimal value varies by query based on the plan in use. It may change over time.
    It is not that difficult to overuse the PQO and end up harming overall database performance. PQO is a brute force methology and should be applied carefully. Otherwise you end up with inconsisten results.
    You can let Oracle manage it, or you can manage it on the statement level via hints. I do not like specifying degrees of parallelism at the object level. As I said, no two queries are exactly alike and what is right for one query against a table may not be right for another query against the table.
    If in doubt set up the system to let Oracle manage it. if what you are really asking is how many PQO sessions to allocate then look at your Statspack or AWR reports and judge your system load. Monitor v$px_session and v$pq_slave to see how much activity these views show.
    IMHO -- Mark D Powell --

  • 942: error when trying to browse/refresh Packages, Procedures and Functions

    Hi,
    I'm using OSD 1.1 against 10g.
    I can create and compile functions in a certain schema but when I try to browse the Functions node I get "ORA-00942: table or view does not exist." and the node does not expand.
    The same thing happens with the Packages and Procedures nodes.
    Does anyone have any ideas?
    Thanks in advance
    Mike

    I've got the same problem with SQL Developer 1.1.0.23.64 against 9.2.0.4.0 and 10.1.0.4.0. This error occured only for a few package/procedure/function owners. I've found that these owners have SELECT ANY TABLE system privilege. In such case SQL Developer generates following SELECT:
    SELECT OBJECT_NAME, OBJECT_ID, DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID, 'TRUE' runnable, NVL( b.HAS_BODY, 'FALSE') HAS_BODY
    FROM SYS.DBA_OBJECTS a,
    (SELECT 'TRUE' HAS_BODY, object_name tmp_name FROM SYS.DBA_OBJECTS WHERE OWNER = :SCHEMA AND OBJECT_TYPE = 'PACKAGE BODY') b
    WHERE OWNER = :SCHEMA
    AND OBJECT_TYPE = 'PACKAGE'
    AND object_name = tmp_name (+)
    AND SUBOBJECT_NAME IS NULL
    AND OBJECT_ID NOT IN ( SELECT PURGE_OBJECT FROM RECYCLEBIN )
    Otherwise it generates
    SELECT OBJECT_NAME, OBJECT_ID, DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID, 'TRUE' runnable, NVL( b.HAS_BODY, 'FALSE') HAS_BODY
    FROM SYS.ALL_OBJECTS a,
    (SELECT 'TRUE' HAS_BODY, object_name tmp_name FROM SYS.ALL_OBJECTS WHERE OWNER = :SCHEMA AND OBJECT_TYPE = 'PACKAGE BODY') b
    WHERE OWNER = :SCHEMA
    AND OBJECT_TYPE = 'PACKAGE'
    AND object_name = tmp_name (+)
    AND SUBOBJECT_NAME IS NULL
    AND OBJECT_ID NOT IN ( SELECT PURGE_OBJECT FROM RECYCLEBIN )
    Both for 10g.
    So you could try to grant SELECT on DBA_OBJECTS to owner of your functions.
    I don't know why SQL Developer doesn't SELECT from ALL_OBJECTS in all cases.
    Jiri
    Message was edited by:
    Jiri Suchy
    You will need grant SELECT on DBA_SOURCE, too.

  • How to call plsql procedure or function and getting back the string?

    Hi Everyone,
    i am using Jdev 11.1.1.5.0.
    i have a requirement to call plsql procedure or function from my backing bean java file and get back the returned value from the procedure or function.
    what piece of simple code i need to write in my backing bean?
    please suggest.
    Thanks.

    As always you write the method to call he pl/sql in the application module, expose this method to the client (so you see it in the datacontroll) then create a operation binding to the method and call this operation from the bean. The result you get by operation.getResult();
    You should never call pl/sql from the bean directly!
    The doc shows how to call the procedure from an application module: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcadvgen.htm#sm0297
    Timo

  • Sql query to list menus, submenus and function-names for all resp

    Hi,
    Please let me know one single sql query to list all the menus, submenus and user-function-names attached for all responsibilities
    Thanks...

    Hi,
    See the following threads.
    How to find All The Responsibilities with a specific Menu
    How to find All The Responsibilities with a specific Menu
    SQL query
    SQL query
    Regards,
    Hussein

  • How-To Find the R/3 Table Name for a BW Data Source

    Hi there,
      Please advice how can I find the respective table name in R/3 for a particular BW DataSource ?
      P/S : I would like a technical how-to instead of referring the table names at HELP.SAP.COM
      For instance, for my Standard Business Content Info Cube 0CCA_C03(CO-OM-CCA: Statistical Key Figures) which extracts from BW Data Source: 0CO_OM_CCA_4
      My question is, how can I find out which specific tables in SAP R/3 is this Data Source pulling the data from ?

    Hi Dinesh,
       Data Source: 0CO_OM_CCA_4
       1) In my R/3, I ran SE16 : Table -> ROOSOURCE
       2) OLTPSOURCE -> 0CO_OM_CCA_4
       3) EXMETHOD = F1
         (Hence, I assume the Extraction Method is a Function Module)
       4) So, Function Module = BWOM_RS_GET_CTRSTA
       5) Run SE37 in R/3
          How do I find out the specific tables in this Function Module ?
          Would you please list them for me, so I can further refer to the individual tables ?

  • How to change IP, Hostname and domain name for Oracle Application R12

    Hi,
    I'm new to Oracle, we used to have one production and one test server for Oracle Application R12, but the test server was corrupted, so we decided to clone production server and create a new test server, after cloning and creation of test server, how should we do to change IP address, hostname and domain name for test server?
    Our production and test server environment is:
    Linux Enterprise AS 2.6.9
    Application module: E-Business Suite Treasury only
    Your advice will be much appreciated.
    Regards,
    Kenneth
    Edited by: 850209 on Apr 7, 2011 5:37 PM

    850209 wrote:
    Hi,
    There are few tnsnames.ora and listener.ora files in the system, how to know which one are effective? If I change tnsnames.ora hostname entry, do I need to change listerner.ora file also?
    Thanks.
    Regard,
    Kenneth.tnsnames.ora is used only by client processes. listner.ora is used only to configure the listener, and that is a server side issue only. In addition, the listener can start without any listener.ora at all, using all default values. See my discussion of tns issues at edstevensdba.wordpress.com
    If you are using dbcontrol, you will most likely need to reconfigure it, using the emca utility.

  • How to change New ShipTo Address functionality to Edit current ShipTo Addre

    Hi All,
    I have a requirement to change New ShipTo Address functionality to Edit current ShipTo Address.  Can someone please advise/direct me how to retrieve current ShipTo Address data and put it on New ShipTo page (Specify ShipTo page)? Any detail information or any advise are appreciated. 
    Thanks, Jin

    Hi Jin,
    I am not sure, I got your question correctly or not.
    Based on my understanding of your query what I understand is you want to edit the Ship To Address and for that you want
    to know how to get this ship to address.
    If above is your concern than you dont need to do anything as once you are there on order.jsp just on the right of "Delivery To"
    field there are two buttons(links).One is for viewing the current ship to address and the other is to edit the ship to address.
    The jsp to which these links refer is "/b2b/shiptodetails1.jsp".This same jsp is called for viewing and editing the ship to address.
    Please let us know if there is something more to it that you want.
    Regards,
    Arshi

  • How to know the printprogram and output type for perticular standard script

    how to know the print program and output type for perticular standard script and wt the proceure we will fallow to modifie the standard script..if possible u have any sample code plz share with me.....

    Hi Phani,
    To know the print program and output type for a standard script we have a table called TNAPR. So just you go to SE11 and provide the table name as TNAPR and choose display option.Then go with display entries option and in selection screen you have to provide the form name for whic you want to know the print program and output type.
    To modify a standard script first of all you have to copy the standard form for which you need modifications into Zform. Once you done this you can modify the layout set as per your requirement.Then what ever the modifications you have done in layout set for that you need to populate the data.For this you also need to do some modifications to the print program.so you have to options like directly you can modify the print program as per your requirement and other one is you can create a subroutine and do coding in that subroutine. Then you need call this subroutine in the Script Form.like this you can do modifications to the standard script........................... Reward me if its helpful..........
    Thanks & Regards.
    Laxman.P
    B'lore.

  • How to get the trace file name for current running application?

    Hi, I want to know if it is possible to get the file name directly for current running application instance which is launched by javaws.
    There is a property "deployment.user.logdir" tells the log directory, it would be great if a file name property
    is available. something like "instance.trace.file".
    Our application wants it because we would like our client send use the application log by clicking a "send error"
    button, the codes finds the trace file and compress it and send it by using a smtp server.
    In 1.5, we can do it by using a shell program.

    I found other asked it before, but I tried to set both properties, but neither works. my sun JRE version :java version "1.6.0_04"
    <property
    name="deployment.javaws.traceFileName"
    value="abcfefsfdsf"/>
    <property
    name="deployment.javapi.trace.filename"
    value="235235235"/>
    But it always write to one trace file with name lik javaws63645.trace

Maybe you are looking for

  • Activating multiple iPhones with one or many Apple IDs?

    I'm wondering whether its possible to activate an iPhone with an iTunes Store account that is not the one the phone will be used with. I'm centrally activating a dozen iPhones and loading a configuration profile onto them but I need to know if I'll n

  • Mac mini (late 2012) HDMI video going blank randomly in Yosemite 10.10.1; sometimes comes back on with snowy screen

    Wow, this reminds me of what happened with Mavericks 10.9.0 until 10.9.3 and later were released and fixed this problem. My monitor is a Dell S2440L connected to my Mac mini late 2012 via an HDMI cable. The monitor goes blank randomly and sometimes a

  • Status SYSFAIL in SMQ1

    Hi All, We are getting an error message with status "SYSFAIL" in SMQ1 while replicating the BP from CRM to ECC and the message goes like "The current application triggered a termination wi th a short dump." The BDoc status is in YELLOW status. Please

  • Tomcat problem finding MySQL driver when context used

    Hi all. I have a context set in tomcat3.3 which allows me to run JSPs saved in TOMCAT_HOME/webapps/examples/jsp from /luc. Initially, I had problems using beans when I used the context (the whole thing works ok when I just enter the actual path in th

  • Invisible grid over image?

    Just come back to a piece of work afte my son was playing with the computer, and he's set up something in Photoshop that I've never seen before. Really strugling to describe it – there seems to be an invisble grid or chequerboard over my image someho