10g: still no whoami or linenum functions, sigh.

It is a fairly well-known fact that PL/SQL lacks the ability to introspect and report on itself, items of great interest when logging and debugging, like:
whoami: satisfies "what is my name?" - expecting function, procedure, package.proc/func, or type name
and
linenum: satisfies "what is the current line number?" - expecting just that, the current line number within the program, with the option of reporting the line before the linenum call, or before the exception block was entered
I could, but won't, write a short novel on everything I've tried to work around these limitations. In the end, the best option to get at the logging and debugging info you need, is to set local variables to record the current routine name, and to record the current line number or action before every statement. Very kludgey. Very aggravating.
Is there anyone that monitors this forum that knows how to communicate to the PL/SQL Developers to push this through? I've been waiting for 9 years for these very basic utilities that other compiled and scripted languages have.
I've even emailed and spoken with Bryn Llewellyn before about this issue. He absolutely agreed, but somehow seemed powerless to get it in the next release.
Anybody with ears? Anybody with power?
[and please don't refer me to Tom Kyte's attempts to replicate this missing functionality. Tom's my hero, but his examples, and my own attempts, quickly break down in all but the most simple scenarios]
- bill c.

Padders,
I had no idea you haunted this forum as well! How do you keep up? Do you require no sleep?
This is actually a follow-on to a largish thread we had going under Error Messages, or some similar topic, in the Quest PL/SQL Pipelines. Unfortunately, that thread has been deleted (I miss the old WebBoard where they kept more online for longer; we're really doing ourselves a disservice by not asking Quest to keep all that in a searchable archive.)
I was pretty explicit there and gave examples how Tom's functions didn't cut it. The WHOAMI, as you noted, doesn't work well in situations where all your code is package based and the point in the call stack is several layers (packages) deep. The function to determine line number (can't remember Tom's name for it), mine is env.prg_line_num, also had problems parsing the call stack. The latter was particularly useless if you used exception handling. As I recall, the primary point of the whole thread was my beef with how you lost context if you choose to use exception handling, but if you remove exception handling, then your call stack could show exactly where the point of the original error was.
Anyway, thanks for replying. I looked through 10g's new features and didn't see that. Thanks for digging through the docs and finding that!

Similar Messages

  • Oracle 10g - Unable to do any admin function

    I have installed oracle 10g database and can login and do all task except admin.
    The PC has window XP OS system. When I do admin function, the system fails with invalid password for host username. I type in the password that I use to login to windows which is set at local level.
    Which hostname does oracle need and how can I check.
    Any thoughts......
    Suresh

    I have installed oracle 10g database and can login and do all task except admin.What admin functions you are trying to do?? How you are trying to do means which tool (sqlplus, EM) ? Which user you are connecting as??
    Daljit Singh

  • How to convert this package from 11g to 10g (still using dbms_sql) ?

    create or replace package pkg_test is
       type tab_t is table of ra_analista%rowtype;
       function pipeValues return tab_t pipelined;
       function selValues return sys_refcursor;
    end;
    create or replace package body pkg_test is
     function pipeValues
     return tab_t pipelined is
        cr sys_refcursor;
        tab tab_t;
        cnt int;
        cmd pls_integer := dbms_sql.open_cursor;
      begin
        dbms_sql.parse(cmd, 'select * from RA_Analista', dbms_sql.native);
        cnt := dbms_sql.execute(cmd);
        cr := dbms_sql.to_refcursor(cmd);
        fetch cr bulk collect into tab;
        if tab.count > 0 then
          for i in tab.first .. tab.last loop
            pipe row(tab(i));
          end loop;
        end if;
        return;
      end;
      function selValues return sys_refcursor is
        c1 sys_refcursor;
      begin
        open c1 for select * from table(pipeValues);
        return c1;
      end;
    end;

    Create Or Replace Package Body Pkg_Test Is
    Function Pipevalues Return Tab_t Pipelined Is
    Cr Sys_Refcursor; Tab Tab_t; Cnt Int; Cmd Pls_Integer := Dbms_Sql.Open_Cursor;
    Begin
    Dbms_Sql.Parse(Cmd, 'select * from RA_Analista', Dbms_Sql.Native); --**there in 10g**
    Cnt := Dbms_Sql.Execute(Cmd); --**there 10g**
    Cr := Dbms_Sql.To_Refcursor(Cmd); --**no need to use ref cursor here....if you want to use it go for open for instead of dbms_sql**
    Fetch Cr Bulk Collect Into Tab;
    If Tab.Count > 0 Then For i In Tab.First .. Tab.Last Loop Pipe Row(Tab(i));
    End Loop;
    End If; Return;
    End;Edited by: Nicloei W on Sep 16, 2008 6:26 PM
    Edited by: Nicloei W on Sep 16, 2008 6:26 PM
    Edited by: Nicloei W on Sep 16, 2008 6:27 PM

  • Access to iCloud goes out daily for the evening - but I still have all other internet functioning

    For the last 4 days, @ about 5 pm Norwegian time, I have no access to my Mail, Cal, or iCloud even in Safari.  Gmail functions. Skype functions, all other internet use functions.  The same happens on my other devices and also to other iCloud users in the house. (we are not on family sharing)  This happens only on our home wifi network.  We are on a satellite wifi.  Any ideas?
    It is very frustrating -
    The service seems to resume around 4 am in the morning.
    Thanks!

    JiveTurkey wrote:
    I still want to keep my Droid, it makes a handy WiFi-ready "micro-tablet" (as I call it), plus I can still play all my NES/SNES/Genesis games on it, I love the QWERTY keyboard for that kind of stuff.
    However, I dropped the phone on a hardwood floor from about 3 feet up, and **BOOM**, screen completely goes out.  The "soft keys" light up, keyboard still lights up.  I can see the two small LED light sources coming from the very bottom of the screen.  When I drag my finger across the screen, I still get the haptic feedback of my phone being "Unlocked".
    I've done battery pull, let it discharge fully, charge it back up, no good.
    So even though this isn't technically my "active phone" anymore, would VZW still be able to do anything to try & get it fixed?  It's obsolete & outdated now (sorry, Droid 1 owners), but this is actually a replacement phone that I've had for less than a year, so wouldn't it still be covered under warranty? 
    If the phone is not currently activated on your line, there is no warranty. Warranty does not cover damage anyhow, you would need insurance for this. You can take it to one of those cell phone repair companies and have them fix it for you, but those are quite pricey.
    Also, I'm pretty sure you can't use WiFi on a phone that is not activated.

  • Desktop v 6.2 Lost Calendar and Contact functions, Handheld Tungsten E2 still has the data and functions

    May 12, 2011 I decided to upgrade Desktop 6.1 to 6.2 on my home Win 7 Desktop,  the download and installation appeared to work correctly. Since I use the handheld daily (for everything) and backup at work and home every 2-3 days. I did not notice that the Calendar and Contact functions on my home desktop had disappeared for a few days. Normally at home I use the Desktop to make adjustments and additions to my data in other applications. I did not realize that Calendar and Contacts had dropped off the home PC, until I needed to update my calendar from notes at home..
    I have tried to download the software and repair the installation. Still failed.
    So after downloading ver 4.1.4, I uninstalled the 6.2 version.  I was unable to find the installation program for the prior 6.1. Version 4.1.4, lacks what I had for my home desktop.
    Post relates to: Tungsten E2

    I use the Tungsten E2 & had upgraded to 6.2 (Access) OS.  I had all filed backed up to another folder on the PD.  I lost the DATE, ADDRESS, MEMOS & TO DO categories on the Palm Desktop.  I tried to re-install 6.2 (the categories were still lost); I uninstalled 6.2 & installed 4.1 (but could not import files from my backed-up files).
    The solution was to uninstall 4.1 (I used Windows uninstall) & to re-install 6.2.  The missing categories were still missing.  Right click on the Palm Desktop shortcut, click on Properties, click on Compatibility, put a check mark  in the Administrator Box, click on Apply & click on OK.  The missing categories returned including the data that was in them.

  • Does the 'new' pages still have the 'two-up' function and if so, where?

    Hi,
    Very keen on the new update of iWork, especially Pages.
    But unfortunately I can't find the two-up function anymore. This function would allow one to view two pages at the same time.
    It used to be on the bottem left corner under the view section. It don't see it in the view nor the zoom menu.
    Thanks in advance.

    oh yes, I did leave some feedback.
    This can't be real.
    I disbelieve.
    It's me, user error. It can't be them.
    I have faith.. they will suddenly appear in this thread and tell us oh, it's under the X menu, just press Ctrl+Alt+Magic and you can do it.
    There's no way they did all this extremely cool stuff to make pages available to me everywhere and then eviscerated the two-up view that I absolutely need in order for this to do what I need.

  • I edited mm.cfg (AS3Trace = 0) but still get traces for all functions

    I am on mac os 10.6.3
    I installed flash debugger version 10.1.85.3
    I am using Firefox version 3.6.10
    when i tail the flashlog.text it traces out way too much information making it impossible for me to use flash tracer to debug my apps.
    I tried to delete mm.cfg and when i ran firefox again, it automatically created the mm.cfg in my user directory.
    I edited that file by adding AS3Trace = 0 as instructed on this blog:
    http://jpauclair.net/2010/02/10/mmcfg-treasure/
    nothing seems to work.  I cannot turn off the as3 tracing.
    is there something that I am missing?

    the latest flash debugger caused a HUGE problem for me! (I’m on mac osx 10.6.3)
    I was not able to turn off the logging of all functions by adding  AS3Trace = 0 to the mm.cfg file (I added it but it did not work)
    I had to revert back by downloading adobe’s flash debugger archive.
    the first thing you need to do is uninstall flash player by downloading adobe flash player uninstaller: http://www.wargeek.net/uninstall-flash-player-windows-mac-adobe-flash-player-uninstaller.h tml
    next get adobe’s debugger archive here: http://kb2.adobe.com/cps/142/tn_14266.html
    Flash Player 10 (debugger versions) (141 MB)
    MAKE SURE YOU USE THE DEBUGGER PLAYER IN THE FOLDER: 10r32_18.
    I  went through several folders working my way back in versions to find a  debugger that:
    a. didn’t have the excessive trace problem
    b. didnt unpack another dmg file which in turn unpacked another dmg.zip….. ad infinitum
    unpack: flashplayer10r32_18_ub_mac_debug.dmg.zip
    and then run: Install Flash Player 10 UB.dmg
    that should fix the problem

  • My iphone 4 is not working after i updated it to 4.3.3 still in dfu and cannot function like before, what to do?

    My iphone is not working at all it is in dfu mode. i tried to upgrade to 4.3.3 it could not continue upgrading and shows only dfu mode. what to do.
    while i tried to upgrade it, it shows white and blue screen, i cant see the apple with the progress of upgrading. please help me

    Ahh! You've suffered from two problems: Windows 7 and Impatience!
    Turn off all security software and open all firewalls in Windows, restart everything and then try re-entering DFU from the start.
    Good luck (because you might need it)!

  • 16 hrs on 10g, still no home page

    hello,
    i am trying to install oraclexe on windows xp. my install completes without errors communicated via GUI. however, there is an install error in C:\oraclexe\app\oracle\product\10.2.0\server\config\log\postDBCreation.log:
    SQL> connect "SYS"/"&&sysPassword" as SYSDBA
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    after the install, i can not connect to home page, i can not connect to DB. i would like to have a clean install. but if we have to debug *.ora, here are their contents from the install:
    C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\sqlnet.ora:
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\tnsnames.ora:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    thanks a lot!
    tom

    can't change my email addressThis is the biggest problem on this forum...
    From the FAQ http://www.oracle.com/technology/forums/faq.html#q11
    "... The only thing you may not edit is your e-mail address. Unfortunately at this time, there is no way to change the email address of a current account. We hope to introduce this feature in the future..."
    So create a new account...
    Nicolas.

  • Urgent: need weekly, monthly report function in 6i for 10g

    Hi, we are trying to move some reports built in 6i to 10g. Need some help urgently.
    The y-axis is values, x-axis is date, if there is a value between 2 dates, , a line will connect them. If there is no value, it will skip it and try next date. I have two problems here to create same graph in 10g.
    1. The report built in 6i has a function you can specify a graphic x-axis for a time period, i.e., from date1 to date2, then choose, weekly, monthly or quarterly.... dates will be put into those period accordingly by the report builder automatically. Do we still have this kind of function in 10g?
    2. How can graph builder in 10g skip a date and jump to next date if there is no value for it? Now, if there is no value for a date, it will treat it as 0, so the line will go back to 0 in stead of move forward to next date.
    Thanks!

    Validate the parameter for null and then go for something like
    Col LIKE (CASE WHEN Parameter='' THEN '%%' ELSE Parameter END)

  • Percentile_Disc Function in OBIEE 10g - Help needed at the earliest

    Hi All,
    I have a requirement of using PERCENTILE_DISC function in OBIEE 10g repository. I tried NTile function, to fetch the percentile. But that is not what am intending to see.
    I have a requirement something similar to this, to be implemented in repository. Could anyone throw some light in this regard?
    PERCENTILE_DISC(.25) WITHIN GROUP (ORDER BY F.Days asc) OVER (PARTITION BY A.NAME, B.PLACE)
    Here F = Fact
    A = 1st Dimension
    B = 2nd Dimension
    Days = Is calculated as TIMESTAMPDIFF(SQL_TSI_DAY, A.DATE, B.DATE). Established Inner Join, to fetch this calculation in to the FACT
    Appreciate your responses at the earliest. Thanks once again.
    Regards,
    Sarat Nallapati

    Hi,
    I don't have any idea on percentile_disc.
    But,in OBIEE we have a function PERCENTILE()
    It will give the percentage of each value in the total sum of all the values.
    once check it.
    Regards,
    Lakshmipathi.

  • Oracle 10g function to convert GML 3.1.1 to SDO_GEOMETRY

    In Oracle 11g there is a function available to convert GML 3.1.1 to SDO_GEOMETRY (SDO_UTIL.FROM_GML311GEOMETRY)
    However I need to support this in Oracle 10g that does not contain this function.
    Does anybody have this function for me in Java or PL/SQL?
    The Java classes GML, GML2, GML3 and GML 3g do not support GML 3.1.1 (with <patches>)
    Thanks for any help!
    Ron

    Hi Ron,
    I would second John's advice to go Simon's Java route as probably the best way to go if you are truly trapped on 10g. Note that were you to consider going the PLSQL route, the 10g XMLTYPE has a limitation of 64K for the payload of any XML tag. This means any GML linestring or polygon with more than 64K of coordinate data would not be possible to store or manipulate as XMLTYPE.
    ORA-31167: 64k size limit for XML node
    This makes using XMLTYPE tools to work with GML a bit of a bust on 10g. Moving to 11g is definitely something you want to consider if GML is in your requirements. Also, as a GML user please consider putting in an enhancement request to Oracle Spatial to support GML 3.2 and 3.3 (feel free to piggy back on 9788193).
    Oracle Spatial and support for GML 3.2.1?
    The 3.3 spec is due out any day now. The existing 11g reader/writer almost works with the new specs if they just added a few tweaks for gml:id and the namespace.
    Cheers,
    Paul

  • Any method has similar function as 'when_mouse_enter' trigger in 10g

    in 10g, we cannot use 'when_mouse_enter', 'when_mouse_leave' functions, is there any other functions have similar interactive functions in 10g?

    We use when-mouse-click when on the web to emulate the when_mouse_enter trigger. Or in some cases, when-mouse-click with ctrl button (Checking :System.Mouse_button_shift_state).
    Instead of when-mouse-leave, we just started a non-repeating timer, and did the same as the wme trigger after 3 seconds.

  • Any method have similar function as 'when_mouse_enter' trigger in 10g

    in 10g, we cannot use 'when_mouse_enter', 'when_mouse_leave' functions, is there any other functions provide similar interactive functions in 10g?

    We use when-mouse-click when on the web to emulate the when_mouse_enter trigger. Or in some cases, when-mouse-click with ctrl button (Checking :System.Mouse_button_shift_state).
    Instead of when-mouse-leave, we just started a non-repeating timer, and did the same as the wme trigger after 3 seconds.

  • Changing functionality of Function Keys in forms 10g

    Dear users....One of the big difficulties users facing in my 10g forms applications is that its Function Keys have totally changed like that of Enter-Query or Execute-Query. In forms 6i user was habitual of working with F-7 & F-8 for this purpose but in 10g its quite different. Can u tell me that how can I match the functionality of these Function Keys in 10g to that of Forms-6i???

    Hey Arun...I've read urs recommended post, I wish to give u 10 pts if u give me the answer for this question too ;) Can I use my newly created fmrweb.res in my own application? I mean other users should keep on using the default fmrweb.res file but I should use the file compatible with 6i shortcut keys. Is there any configuration for this in formsweb.conf file?

Maybe you are looking for

  • My iPad 2 was accidentally upgraded to IOS 7 from 5.1.1. I have a backup on my windows xp PC from last June 13 would this restore it back.

    Hello, From purchasing my iPad 2 which had IOS 4 installed at new I upgraded to IOS 5.1.1 and had no intention of upgrading further missing out on the IOS 6 and the reviews of IOS 7 was a definite no no to me. That was before my great-granddaughter a

  • How can I display Group By-Value in the Bex Report

    I have a report values looks like below, Month         BALANCE 04/2005         $ 188.00 11/2005         $ 188.00 11/2005         $ 180.00 12/2005         $ 194.00 12/2005         $ 196.00 01/2006         $ 182.00 01/2006         $ 376.00 02/2006     

  • Search attatchments GOS

    Hi Gurus, I would like to know if there are any tcode to find documents created with GOS attachments. I see tcode oaad but this tcode is for search documents of Archive link. I see tcode cv04n but this tcode is for search document of dms, but not att

  • IE HTTP close (reset) - port reuse causing firewall issues

    Having an issue with some systems reusing the same TCP port number between sessions, causing the firewall to drop the connection. Internet Explorer is creating the HTTP socket connection to port 80. An ephemeral port (assigned by Windows) is bound to

  • [Solved] How to install/configure GDM?

    I'm trying to install and configure GDM without gnome according to these directions: https://wiki.archlinux.org/index.php/GDM Unfortunately, those directions do not resemble my system.  Anyway, configuring the user to access X fails as follows: [root