How to enable remote debugging for a session other than the current one

Hi all,
I am trying to figure out how to enable remote debugging for a session other than the one I am currently using.
More specifically, we have an application that is making database calls to Oracle 11gR2. Something is causing an exception during this invocation. My system is currently not set up to recompile said application, so I can't just add the debug call to the code and recompile. Therefore I would like to be able to log into the database (as sys, if necessary) and invoke dbms_debug_jdwp.connect_tcp on the desired session.
The docs indicate that I should be able to do so:
dbms_debug_jdwp.connect_tcp(
host IN VARCHAR2,
port IN VARCHAR2,
session_id IN PLS_INTEGER := NULL,
session_serial IN PLS_INTEGER := NULL,
debug_role IN VARCHAR2 := NULL,
debug_role_pwd IN VARCHAR2 := NULL,
option_flags IN PLS_INTEGER := 0,
extensions_cmd_set IN PLS_INTEGER := 128);
But when I try (even as sys), I get the following:
exec dbms_debug_jdwp.connect_tcp('1.2.3.4',5678,<session id>,<session serial>);ORA-00022: invalid session ID; access denied
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1
00022. 00000 - "invalid session ID; access denied"
*Cause:    Either the session specified does not exist or the caller
does not have the privilege to access it.
*Action:   Specify a valid session ID that you have privilege to access,
that is either you own it or you have the CHANGE_USER privilege.
I've tried granting the 'BECOME USER' privilege for the relevant users, but that didn't help. I read something about having to set some kind of ACL as of 11gR1, but the reference documentation was very confusing.
Would someone be able to point me in the right direction? Is this even possible, or did I misread the documentation?

Interesting deduction, that would be very useful indeed. I hate recompiling just to add the debug call, and it can't be done in our production environment. But it seems unlikely to me it would be implemented this way.
I would cross-post this in the SQL AND PL/SQL forum though, as this is really a database issue, not with the SQL Developer tool. Do add the links to the other posts in each.
Regards,
K.

Similar Messages

  • Getting Menu Reference for a VI other than the current one

    Is there any way to get a Menu reference for a VI that isn't the current VI? There's Current VI's Menubar, but that only works on the current VI. I'd like something that does the same thing, but accepts a VI reference to a higher-level VI. I would expect to find a Property Node entry for it, but there doesn't seem to be one. This is for 8.2.

    eaolson wrote:
    A functional global is what I wound up using. It just seems odd to me that there's no other way to get access to that reference.
    It also seems counter-intuitive to me that a Shortcut Menu reference is only valid inside that particular frame of the Event Structure that caught it. If you're using a producer-consumer architecture, you can not send that refnum off to the consumer loop for handling; it can only used within that frame of the Event Structure.
    I am not sure what you mean. The refnum seems to be accessible from everywhere .
    As i wrote above:
    You can store the Menu Reference to a global variable for example, and you can read it, in any vi you want, just like all variables.
    Note: Do not try to use a property note. Use the menu functions

  • How do programatically set focus on a record other than the first one in a block?

    My form performs the query for the block, and by default it leaves the focus on the first (top) record in the block.  I'd like to have it focus on the last record in the block upon initial query.
    i've tried Last_record and go_record in a post-block trigger but these builtins are restricted and you can't execute them from post block triggers.  i don't see any block property things that would influence this either...  how can i do it?  thanks.

    i just figured out the answer to my own question... in the when new block instance trigger, there's an execute_query statement, and i simply put last_record statement after that...

  • How do I update Firefox to a version other than the latest one?

    As you can see from the troubleshooting information, I am several versions behind the latest Firefox. I am wondering whether an update would make Hotmail work on Firefox again and make it faster. However, Firefox Auto Updater is set to install the latest version, so I have to keep refusing it permission because: a) Character Palette isn't compatible with it; b) Last time I looked, there was no fix to turn off that infuriating swear word censor in the latest version. Is there any way I can get a version that is newer than my current version, but doesn't censor anything I choose to type and lets me use Character Palette?

    try the alternate and easiest way by downloading from here
    * getfirefox.com
    simply run the installer, you can install on top of current version or you can remove the current one if you wish

  • How do i get siri to set a reminder for a time other than the appt time. For example:  I want Siri to remind me at 10:00 pm on Monday that I have a dentist appt. at 9:00 am on Tuesday. She screws up the dates and times no matter what I say

    What I can't figure out is how to set a reminder for a time other than the appt time. For example:  I want Siri to remind me at 10:00 pm on Monday that I have a dentist appt. at 9:00 am on Tuesday. She screws up the dates and times no matter what I say

    "Remind me at 10:00 pm on Monday".  Siri: "Ok, just tell me what you want to be reminded about".  "I have a dentist appointment on 9:00 am on Tuesday".  Siri should set it up correctly.

  • On and iPad how to Allow User To Enter Custom Text  (Dropdown only) Enables users to enter a value other than the ones in the list.

    On an iPad, how do I :
    Allow User To Enter Custom Text
    (Dropdown only) Enables users to enter a value other than the ones in the list.'?

    Are you using the built-in Currency option under the Format tab? If so,
    what you're describing should not happen.

  • TS3297 iTunes puts up a message "The item you've requested is not currently available in the Hong Kong Store." I had not requested anything from the HK store at that point, and I have never used any store other than the HK one. How I can clear that messag

    I've been running iTunes on WinXP for years with few problems.  I have all my iTunes files on an external USB drive. I just bought a new PC running Win7, 64-bit.
    I connected the external USB drive to the new PC and installed 64-bit iTunes on it. When iTunes started up, I pointed it at the iTunes directory in the external drive, using Edit > Preferences > Advanced > iTunes Media Folder Location. It showed a progress bar that it was updating the iTunes Library. I signed in and authorized the new machine. I have one spare authorization.
    Then iTunes put up a message "The item you've requested is not currently available in the Hong Kong Store." I had not requested anything from the HK store at that point, and I have never used any store other than the HK one.
    When I click OK, the iTunes Store page remains blank, apart from saying "iTunes Store" in the middle of the page.
    I went to "View My Account" and pressed the Reset button to "Reset all warnings for buying and downloading items", but that doesn’t fix this particular warning. I also tried Edit > Preferences > Advanced > Reset Warnings and Rest Cache.
    But still, every time I click the “App Store” button in the iTunes Store window, the message appears. If I click the Books, Podcasts or iTunesU buttons, these display normally.  So I’m stuck with being unable to purchase apps, other than through my iPad and iPhone.
    If I move the external drive back to the XP machine, the same thing happens.  If I go to another PC - a notebook running Vista - everything is normal.
    Any idea how I can clear that message?
    Thanks for any help you can offer.

    Further info on my question above.
    I have tried re-validating my credit card, which apparently fixed it for some. 
    I have also tried uninstalling, re-downloading and installing again.
    Neither of these steps fixed the problem.

  • How do i install reader to a drive other than the boot drive?

    how do i install reader to a drive other than the boot drive?

    Hi nicksdaddy,
    There is an offline version:
    http://get.adobe.com/reader/enterprise/
    Hope that helps!
    Stacy

  • Hello how can i transfer photo for my old computer to the new one

    hello how can i transfer photo for my old computer to the new one

    If your computers are connected to the same network, you can turn on Sharing to allow you to see the contents of one from the other and do transfers. If there is no network, you can use "target disk mode" explained here: http://support.apple.com/kb/PH13842
    Otherwise, you will need to use external storage such as a USB flash drive.

  • Configuring a Communication Channel for an AE other than the default IS

    Configuring a Communication Channel for an Adapter Engine other than the default engine.
    See:  help.sap.com for Communication Channel http://help.sap.com/saphelp_nw04/helpdata/en/1b/d5ef3b1ad56d4fe10000000a114084/frameset.htm
    It states under 'Adapter Configuration', that you can specify the Adapter Engine you want to use in the Adapter Engine dropdown box.
    I have activated the XI components on my ERP system using transaction SICF, but what do I have to do to make the other adapter engines show up in the dropdown list when configuring an adapter?
    Maybe some background would be helpful:  This is for a scenario that will send a file from an external system to one of the ERP systems in our landscape.  BUT, the system admins have decided to revoke our FTP accounts (because they have their reasons), so I need to create a File Adapter that will drop the file on the file system of that ERP system, due to visibility I want to use the integrated Adapter Engine that comes with the ERP system, but need to know how/what I'm missing in setting up this scenario.

    Hi Anesh,
    >>>>but what do I have to do to make the other adapter engines show up in the dropdown list when configuring an adapter?
    in order to use some other adapter engine you
    have to install it first by dafault only one
    (central) adapter engine is used and it is all
    most clients need
    if you'd like to use some other adapter engine
    (decentralized for example) have a look at thid guide:
    <b>Configuring a Local Adapter Engine to Work with a Central Instance</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/03fd85cc-0201-0010-8ca4-a32a119a582d
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • How to install PS CC to a SSD other than the boot or "C" SSD.

    I want to install PS CC, Bridge CC, and Lr CC to a SSD other than the boot or "C" SSD.
    How to do that?
    Problem is, CC Set-Up automatically installs these apps to my boot or "C" SSD.

    I signed-out of PS; and deleted PS, Bridge, Lr, and Creative Cloud. The, when I download (i.e., saved) Creative Cloud Setup to my "A" drive SSD, then double click to install Creative Cloud, "it" automatically installs the Creative Cloud app to my "C" SSD.
    The app does not ask where I want to install Creative Cloud.
    I keep looking for an opportunity to "change the default install location" but I do not see such an opportunity.
    Previously, when I installed PS there was no opportunity to "change the default install location."
    Can you tell me how to find or force an opportunity to "change the default install location?"
    Where or how do I find "the CC app settings?"
    Does Abode have a manual install version for Creative Cloud, PS, Bridge, and Lr?
    FYI, my OS is Win 7 pro 64 bit.
    Also, why does Adobe automatically install a 32bit version of PS on my system?
    Can I prevent that?

  • Can I use a different charger for my iPhone other than the one that was supplied for it

    Can I use a different wall charger for my iPhone 4S other than the one that was supplied with it

    wjosten wrote:
    Lawrence Finch wrote:
    Apple puts no special requirements on it other than that it meet the USB spec.
    Except for the connector...
    What is special about the connector for the 4s charger cable? Mine is a normal USB connector. The question was about the wall charger, not the connector to the phone.

  • How do I sync my iPhone 4s with a different computer other than the original one that I used initally?

    How do I change computers for syncing my iPhone 4s?  The original laptop that I used to sync with died and I can not get my iPhone to sync with my desktop.

    can't if you do not have access to the old library (the usual workaround is to backup the old library and import it to the new itunes)
    for important data...
    sync your existing contacts with icloud, your text messages will not be disrupted, music will sync with whatever music you have on your new itunes, photos shoud still be in the camera roll (I would sync them to photostream before you sync, just in case).   Any photos on your phone that are not in camera roll or photostream... if you lost those pictures with the computer crash I would take screen shots (lock button + home button at the same time) of each photo so they show up in the camera roll.  App data may or may not be lost.  In my experience, it depends on the app.  Some of the apps recognize your apple ID and sync data over the internet with servers, some do not.  I would take note of important data (such as passwords in a password keeper if you have such an app) just in case if you lose that data.

  • Start new session automatically after the current one is expired

    Hi Guys,
    My application should be displayed on the screen 24/7 . The information there is being refreshed every 5 minutes. When the APEX session is expired the refresh stops working and the page has to be reloaded.
    I'm looking for the solution that would allow to keep the application always on and to start new session automatically without a human being involved.
    Thanks in advance,
    Elena

    Hi everybody,
    Being impatient, I've already found a solution. I created a JavaScript function the reloads the page. Instead of current session ID in the url I use 1. In this case apex generates the new session.
    The Timer Plug-in runs the function every X minutes.
    The function code is the following:
    function reload() {
         var url = location.href;     
         var g_app_id = '&APP_ID.';
         var g_page_id = '&APP_PAGE_ID.';
         var patt = new RegExp("[^=]+","i");  // i - Perform case-insensitive matching
         var newUrl = url.match(patt) + "=" + g_app_id + ":" + g_page_id + ":1";     
         window.location.assign(newUrl);
    I hope it might be helpful for you guys.
    Regards,
    Elena

  • How do you receive iMessages from a device other than the iPhone they originally are being sent to?

    I'm trying to receive iMessages from a phone other than my own. How do I receive them, I have both Apple IDs and both passwords but do not have current access to the phone I'm trying to get the iMessages from.

    Do you have the other phone's Apple ID active in your iPhone iMessage setting? If not, then you would not get them. And, the person sending the iMessage would have to be sending to the Apple ID and not the phone number.

Maybe you are looking for

  • A thinkpad is no longer a Thinkpad.

    I feel like I need to make a post about it. My first thinkpad was a T43, it was really well build even with all the bad treatment, I got it for 3yrs and I got a good resale price for it. Then I got the X300, which was the best laptop I ever had. Lite

  • How to create and maintain a backup catalog, separate from default  location,  on and external HD

    How to create and maintain a backup catalog on a separate hd - separate from default location of the catalog?

  • Mystery of the Disappearing Custom Icons

    iMac 2.66; 10.6.4 I create simple custom icon labels for the docs & folders in my dock. I type a filename in TextEdit, take a screenshot of it, open the screenshot in GraphicConverter, and copy & paste it into the getinfo window of the doc or folder.

  • Safari 4 constant writing to disk

    I have just put safari 4 on an iBookG4 with tiger.11 and 700 odd mb ram. If I leave the computer for a few minutes with safari running (not necessarily even a window open), I can hear constant and rhythmic writing to the disk. I check activity monito

  • 2LIS_03_BF Error

    Hi All, We are in the process of upgrading 3.0b to Netweaver 2004s and while extracting the data from 2LIS_03_BF DataSource we are getting the error  in RSMO "Material XXXXX does not exist or is not activated (Message no. M3305) ".This LO extraction