Logon trigger - Can anyone else get this to work? [SOLVED]

I have a button on my canvas. My push button code below is designed to change the form's connection from one database (Production) instance to another (Test). I want to do this so that I can change data without concern. But the code always generates the following pop-up error message when I press my button:
FRM-40735: When Button Pressed Trigger Raised Unhandled Exception ORA-03114
I have no idea why this is occuring, especially since the is no other code is in my When-Button-Pressed trigger.
Are you able to run this code? Any suggestions for solving this pop-up error issue? Any help would be greatly appreciated.
Push Button Code:
=================
message(upper(get_application_property(connect_string)));
message(upper(get_application_property(connect_string)));
:global.pw := get_application_property(password);
logout;
LOGON(user,:global.pw||'@FCTEST');
message(upper(get_application_property(connect_string)));
message(upper(get_application_property(connect_string)));

After you logout, USER is no longer available.
You need to store USER in a variable, then use the variable in the logon command. You do not need to use a global at all here -- use local variables for everything.
Here is code I use in a form just to restart the session:
Declare
  CN Varchar2(30) := Get_Application_Property(CONNECT_STRING);
  UN Varchar2(30) := Get_Application_Property(USERNAME);
  PW Varchar2(50) := Get_Application_Property(PASSWORD);
Begin
  logout;
  logon(UN,PW||'@'||CN);
  Message('  New session started.  Connected to '||UN||' @'||CN
      ,no_acknowledge);
End;

Similar Messages

  • Ios6.1, now unable to connect to junos pulse. anyone else getting this message.  connecting using safari

    ios6.1, now unable to connect to junos pulse. anyone else getting this message.  connecting using safari

    Hello Irian and Sue,
    I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
    Used parameter files:
    D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
    *)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
    TNS-12537: TNS:connection closed
    Thanks for your response to my initial post.Do u have any other methods to resolve this?

  • Anyone else getting this case?

    Hey all!
    Anyone else getting this case from Verizon Wireless? http://www.verizonwireless.com/apple-iphone-4-belkin-standard-silicone-black.shtml. It is the Incipio Double Cover case...I got mine in black. I also got a pack of the screen protectors Verizon was selling, just to be safe! I will have Verizon put it on for me tomorrow!

    xtremex wrote:
    I ordered that same one too...You can have Verizon put your screen protector on for you? They never did that for me ...haha
    Yea I like the case - I actually went into a Verizon store to look at it physically and it is really nice. And yep! I have them put my screen protectors on for me lol - they are nice about doing that for me

  • Update not available - anyone else getting this problem?

    I have LR4 and just clicked 'Check for Updates' and keep getting update check unsucessful and its keeps telling me to check internet connection even though thats working.
    Anyone else getting this error? I'm just wondering if its maybe with the update being released soon perhaps?

    There's another thread running: "No check for updates"

  • HT1267 I plugged my iPhone 4 into my computer with the USB charger cable, and the screen went blank and came up with a picture of the usb cable with an arrow pointing to iTunes....Can anyone help get this fixed????

    I plugged my iPhone 4 into my computer with the USB charger cable, and the screen went blank and came up with a picture of the usb cable with an arrow pointing to iTunes....Can anyone help get this fixed????

    Connect your iPhone to iTunes and restore or follow the prompts.

  • Using Pintrest getting a message " you hit the rate limit" anyone else getting this message?

    I am using my wifi at home not sure what this rate limit is all about. Anyone else getting this message on Pintrest?

    As I understand it, you would need to go back before Mavericks. Such as, wipe your Mac and install a clone of your old Snow Leopard installation. Make sure the old iWork apps were installed and upgrade to Mavericks.
    What occurred when I upgraded from Mt Lion to Mavericks, is the MAS detected my installed iWork '09 apps, alerted me to available updates and presented the Mavericks versions of iWork in the Purchases pane for me to accept into my account. After I accepted them into my account, it then proceeded to install the Mavericks versions in the Apps folder and at the same time sequestered my previously installed iWork '09 apps in a folder in the Apps folder named iWork '09. Later, when I upgraded to OS X Yosemite, the MAS alerted me to upgrades for the Mavericks iWork apps and updated them to the Yosemite versions.

  • A Playlist idiot. Why can't I get this to work?

    In iTunes I have music Playlists set to shuffle (blue double arrow button) and audio books Playlist set no shuffle. I have been unable to get my iPod to follow these settings. A suggested work around is to use the iPod Settings to set the shuffle function to "songs" when playing music and then switching to “off’ for audio books. There has to be a better way. How do I set the Playlists on my iPod to function the same as it does on iTunes?

    LeftyLucy,
    Using your process are you able to set your iPod to shuffle then listen to the audio book without it shuffling the chapters? I have tried your suggestion with the iPod setting set to shuffle and the chapters shuffled. This is the issue from my original post. I want to listen to music with the shuffle function and listen to audio books (no shuffle) without having to change the settings every time I switch.
    Keep in mind that is not a purchased audio nor a imported book.
    Using a tip from the following post:
    Tom Graves, "A Playlist idiot. Why can't I get this to work?" #11, 05:26pm Sep 28, 2005 CDT
    I have attempted to make the audio book file into an authenticate file but that did not help.

  • Anyone else getting this error: unable to connect to itunes in the cloud?

    After iTunes 11 upgrade, I now get this error all the time and syncing and backing up my iDevices won't work.

    Same here. Posted earlier:
    mculmore
    Dec 13, 2012 5:56 PM 
    All the items purchased and in Cloud disappeared and the little cloud icon shows the wavy diagonal lines trying to connect, it fails to connect and a dialog informs that it "cannot connect to the cloud", but no other internet problems are present. Then the little cloud icon just disappeared and does not or has not come back. Movies, TV shows, Music are all gone right now. Anyone else with this issue? Apple System Status says all is green.

  • Latest version of Aperture is not recognising .dng files from Leica Monochrom. Is anyone else getting this problem?

    Is anyone else finding this to be the case?

    Well, the files are probably not the same as those from the M9.  In fact I'm pretty certain this isn't the case.
    The monochrom is not listed on the RAW support page:
    http://www.apple.com/aperture/specs/raw.html
    I'm unsure whether running them through Adobe DNG converter would work, either (yes, I know it's DNG to DNG, but it may change the format).  Have you tried it?

  • WOAH! whats this? did anyone else get this?

    i left the at&t store with my new iphone today. i got this weird screen and hit accept but i was just wondering if anyone else got this or just me? also when i got home and activated my first gen under my moms number i got the same message on her phone!?
    here is a photo of the screen
    http://farm3.static.flickr.com/2009/2230341076_eb4ec2b75c.jpg?v=0
    it says "PWR ON/OFF" then "CANCEL ACCEPT"

    It's a phone activation message. Usually only the techs see it. If it is working and not broke.....

  • Auto Brightness kicks in after phone is unlocked. Anyone else getting this?

    After the sleep/wake button is depressed, the "slide to unlock" screen and wallpaper appear, and only after the phone is unlocked does auto brightness engage.
    Anyone else experiencing this?

    That's normal...it's the iPhone's auto-brightness feature in which it's triggered by a light sensor. If it's too dark, when unlocked, the iPhone will darken it's screen because it's easier on the eye and if it's to bright, the iPhone will brighten it's screen.
    Try it in a dark room...turn on the iphone with the lights off and it will be very dim, immediately turn on a flashlight on it and it will immediately turn very bright. This feature only works when the iPhone is unlocked and in opertion.

  • HT201257 anyone actually get this to work with a machine with Lion pre installed? (mid iMac 2011)

    I tried getting this to work, but the machine just boots to the regular install.
    The system came with a BT keyboard, I hope Apple didn't overlook this problem.

    I just found out that the article lies about the keys to hold down.
    It's actually OPTION + D, not just D as the article states.
    *Come on* Apple.

  • 100% CPU usage... does anyone else get this?

    Here is my code. I would have simplidied it for you... but I honestly have no idea where it went wrong.
    One second it is running fine, the next it starts taking up 100% of my CPU cycles. I can't figure out what I did to it to make it do this... nothing I added creates an infinite loop or infinite threads. It's just... weird.
    The code is probably too big for anyone to look at and tell me what's wrong, but can someone else download it and tell me if you also get 100% CPU usage? It needs to be run on Windows... it uses a couple JNI calls that are Windows-specific. Those calls were the first place I looked when trying to find the problem, but I have not changed that part of the code for a long time, and it has never been a problem before.
    Don't run the bat file... just navigate to the Watchdog2 directory and do 'java Watchdog'.
    Are there any tools that can help me figure out where the program is getting hung up? It's not freezing at any specific spot... just moving super slow and taking up 100% of my CPU. I'm so confused...
    Message was edited by:
    L4E_WakaMol-King

    Nevermind!
    Sorry for the trouble. The problem was that last time I compiled the code, it reverted back to and older version of a class I had compiled days ago. Why it did this is totally beyond me... but it did, and it just so happens that the old version of that class combined with the new version of my program were the perfect recipe for an infinite loop.
    Seriously, if you are in inveterate debugger, you might get a good laugh out of this. I've spent the last week and a half trying to find a way to set the Windows console into cbreak mode (single character processing rather than line-at-a-time processing), and I finally managed to do it by writing some c code and putting it into a DLL with the JNI. So now my program (which runs from the console) can process each character as it is entered rather than waiting for a line return. The older version of the class that got reverted was one that used System.in rather than the input stream generated by the socket. I had set it to System.in for testing purposes, and apparently that testing version is the one it got reverted back to. So combine the two, and you have a console that is feeding System.in each character as it is pressed and a socket wrapper that is listening infinitely. It was a mess... but an uncannily serindipitous mess...
    Ahh... debugging... good time...

  • Verizon upgrade email fiasco, anyone else get this ?

    I received an email on October 15th from the address [email protected] telling me I am eligible for a new phone. I have received email from this address before and it even had a picture of my current phone and the last 4 digits of my phone number in the email. It says in fine print in the email "Available only if customer has not upgraded in last 180 days". I last upgraded over a year ago. I then log into my Verizon and of course it says that I am not eligible for upgrade until Feb 2012. So I call customer service to ask about the email. I am told to forward the email to the representative. After being on hold for 10 minutes she comes back and says that the email is from a 3rd party. I would like to note that when I click the links in the email it takes me right to their official website. I tell her this makes no sense and that I would like to speak with a supervisor.
    After another 25 minutes on hold she comes back and says she spoke with a supervisor( I never end up talking with a supervisor after asking to speak with one personally) and says that they have been having problems with this "fraudulent email" since this past Friday October 14th. I do a quick internet  search to see if anyone else has gotten "fraudulent" 3rd party email from said address and find nothing. She then says they will honor the upgrade.. But there's a catch. In the upgrade email there are four pictures of phones that are "top recommendations" from Verizon. They will only honor the upgrade if I purchase one of these four phones. Oh and I also have to purchase the phone through the representative right at that moment over the phone. I laugh and say you can't be serious as I have no interest in buying one of their crappy suggested phones. What is the point of "honoring" the upgrade if I can only choose from four phones that I have no interest in?  I tell her to make note of this conversation for future reference and take down her name, shift hours and tell her I will be getting back to her later in the week. I really don't know what to do at this point. I don't even care if I get the upgrade or not, I just felt like I was lied to about the whole situation.

    An update. When I called they flat out wouldn't let me upgrade, claiming the email "came from a third party". I have since received an email from Verizon basically saying that the original email I recieved was in error, and that there are no updates available at this time. The thing that **bleep** me off is that the rep flat out lied to me about being from a "third party". I compared the email headers of both the original and followup emails and they came FROM THE SAME PLACE. Same originating address, using the same email processing system/server. This is why Verizon has a problem - they will just say whatever it takes to get you off the phone.. unless of course you're ready to spend big bucks on a new phone... Either that, or they will say nothing when you ask about a problem (ie. Incredible update status), or pass the buck to the manufacturer.

  • I have iTunes 11.4 and Windows 7. Using iTunes on Windows 7, I get message that iTunes has stopped working and Windows will close the program and notify me if a solution is available. Same message for last two days. Anyone else getting this?

    I have iPad 2, iPhone 5s, both with iOS 7.1.2. I use PC with Windows 7 and hard wire internet service and iTunes to update apple products; no wi-fi. I updated iTunes to v11.4 on 09/11/14. I ran Windows update on 09/10/14. I did not try to open iTunes on my PC until yesterday 09/16/14. I got the message: "iTunes has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."  I got the same message today.  Does anyone know if this is a Windows problem and if a solution is coming or an iTunes problem?  I can get iTunes on iPad and iPhone.  All other programs PC are working correctly.  I use Norton Internet Service on PC.  I ran virus scans and repair/reinstall iTunes yesterday on PC.

    Hello notime4,
    The article linked below details some useful troubleshooting steps that can help stabilize iTunes on your computer.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Allen

Maybe you are looking for

  • What are the concurrent programs or query for safe purge to claim  space

    I am using Apps R12.1.3 and database 11g Enterprise Edition(11.1.0.7.0) .Due to excess increase in the tablespace sizes,i want to know What are the application tables which contains logs and unwanted information which we can purge safely without affe

  • Can I do this in DW CS3 ?

    Is it possible to incorporate functionality exactly like this in Dreamweaver CS3? http://stevezavodny.com/architecture/exteriors/extalt.html This would include clicking the picture forward and back and thumbs roll over behavior, etc., all behavior. T

  • How to format my digital camera?

    I have a Canon digital camera that I have used with my iPhoto program frequently for still photographs. Recently, I took some short videos with my camera and I'm not sure how to access them on my computer. I think I need to import them into iMovie, b

  • Anyway to read a disc?

    Alright well its a long shot but if theres a way it will help so much! I have a MacBook pro, running OS X 10.5.5 and I have bootcamp with Windows XP. I am using the Oxford Skills For Flight JAA/EASA PPL Air law & Operational procedures disc on window

  • Upgrading Desktop m9340f Video Card

    Hello, I need to upgrade my Desktop m9340f's Video Card. By default, the computer brings a Nvidia 9500GS However, I've understood one of the m9340's shortcomings is the single-slot PCI adapter. On the other side, I've read some forums online where pe