Procedure does not display output

Hello!

The following procedure does not show the output.

{create or replace procedure GET_USER
(username_in IN VARCHAR2, password_in IN VARCHAR2, OUT VARCHAR2 first_name, last_name OUT VARCHAR2)
is
Start
Declare the cursor is c_user (users.username%TYPE, i_password IN users.password%TYPE IN i_username)
Select first_name, last_name
users
where username_in = i_username
and password_in = i_password;

i_username users.username%TYPE;
i_password users.password%TYPE;

l_first_name users.first_name%TYPE;
l_last_name users.last_name%TYPE;

Start
If c_user % isopen then
close c_user;
end if;
Open c_user (i_username, i_password);
extract the c_user in l_first_name l_last_name;
close c_user;

first name: = l_first_name;
name: = l_last_name;
end;
end GET_USER ;}

Output showing only:

Name =
Last_name =

Thanks for any help!

Assuming that your cursor never returns a line with name of user and password (if it is not, which seems quite a big security hole!), then your code could just be rewritten:

create or replace procedure GET_USER (p_username_in IN VARCHAR2,
                                      p_password_in IN VARCHAR2,
                                      p_first_name OUT VARCHAR2,
                                      p_last_name OUT VARCHAR2)
is
begin
  select first_name, last_name
  into   p_first_name, p_last_name
  from   users
  where  username_in = p_username_in
  and    password_in = p_password_in;
end GET_USER;
/

I modified your parameter names, as they have matched the same names as the columns in your table, and it's usually a Really Bad Idea (tm)! Keep all your unique identifiers, and you will have less problems!

Tags: Database

Similar Questions

  • 4.1 Developer, the output of the Script window does not display the last line of the output automatically

    Hi all

    I use the new version of the developer 4.0.1.14 on Windows 7 x 64, I noticed that the result of the query or the output of the script does not display as before:

    When I run a query lets say with 100 lines of output, run the query successfully, but the cursor jumps automatically to the last record in the game as in all previous versions, I have to scroll manually everytime.

    Can I change this?

    Thank you

    No, unfortunately, it's a bug.

    It is not for all queries however. Still boring.

  • HP monitor does not display "DVi signal.

    My HP LP2275w monitor does not display "DVI signal" when connected with a DVI cable (supplied), but when it is connected via a VGA cable and adapter DVI/VGA (both supplied) it works but no BIOS screen. It begins immediately with the logo of the VICTORY.

    I just bought new HP Pavilion 500-158eg, Intel Core i5-4440, with AMD Radeon HD8570, 2GB processor, running on WIN7 Pro 64 b. VGA and another port of the motherboard are initially blocked so I can connect the monitor only via the output HDMI or DVI on the graphics card.

    I should note that on my old machine without a name with the graphic upgrade ATI Radeon, there is no problem and I used the same cable. There was an electric shock that causes the collapse of the motherboard so I can't even re - check on the old machine. I can't verify if there is a problem with the DVI cable because all laptops in our housing have only the VGA output...

    All solutions?

    Concerning

    Disco96, welcome to the forum.

    The specifications for the computer show that they run win 8 64-bit.  Downgrade you for Win 7?

    Here's what the quick reference Guide shows for the monitor:

    Model: (LP2275w) product #: video (KE289A4) standard: (WSXGA +) Native resolution: Aspect ratio (1680 x 1050): (16:10) types of connectors: (DVI - I, (support HDCP) DP) cable/s included: (DVI - D to DVI - D, DVI - I VGA, DP USB,)

    Also, here are the i/o ports of back on the computer:

    Figure 2: Rear i/o ports

  • 20wd: monitor does not display mac

    Hello

    I have a HP 20wd screen I got a while ago because I had a chance running 10 windows desktop computer.

    Now I have a Mac Book Air 11 inch running OS X 10 update.

    The problem is that the screen displays only the windows desktop, not the Mac.

    The mac CAN recognize the screen in the settings, it also the scale of the screen on the laptop to the monitor, but does not display anything.

    The output is through the thunderbolt adapter to a VGA monitor.

    I tried to change the monitor settings, althhough, it seems there is no driver for windows 10 for the monitor.

    any ideas?

    Thanks for your help!

    I used the the DVI d input and cable on the screen, and it seems to be there normally (YAY)

  • Does not display an image

    I use the vision software, Labview 2011 windows XP with a USB wbcam. I use the WebCam to test the software, create an installation file and run it on a different machine. This machine has an IEEE 1394 Basler camera.

    The program seems to work smoothly with the delivery system. Never on the USB system, the image displays correctly if I have a property node to read information from the camera. If I delete it, it works just like the IEEE 1394 camera.

    The clos VI seems to illustrate the problem. If you run this, it does not display the image. If you stop the program and the node property set to false, it displays the image correctly.

    To view all the attributes supported by the camera, use IMAQdx enumerate attributes. If you do this, you will notice that frame interval is not one of them. Remove your property node frame interval to get rid of the error.

    If you want to determine the SPF of the current video mode, you can do it manually in your loop (by counting images per second). To translate the video mode, use the property node (as you do now), and then use IMAQdx listing video Modes for a list of all possible video modes (and then using the output of the node property to index this list).

    Not all cameras are supported on all properties in the nodes property! Sorry!

  • My model is an integrated and I was afraid to take it apart and * it upward. I tried all the f keys, but only F2 works. It does not display my HD, and it does not start. What should do?

    Hey guys, so I have an ASUS X502C and last night, it has become very slow, that I tried to close all pages open and it started making a very loud noise. I couldn't even turn off, so I closed the lid and went to sleep. When I woke up it was still on the same screen until I tried to close it and turn it off. He went to a black screen with the back light on. My model is an integrated and I was afraid to take it apart and * it upward. I tried all the f keys, but only F2 works. It does not display my HD, and it does not start. What should do?

    Hey guys, so I have an ASUS X502C and last night, it has become very slow, I tried closing all open pages, and he started to make a very loud noise. I couldn't even turn off, so I closed the lid and went to sleep. When I woke up it was still on the same screen until I tried to close it and turn it off. He went to a black screen with the back light on. My model is an integrated and I was afraid to take it apart and * it upward. I tried all the f keys, but only F2 works. It does not display my HD, and it does not start. What should do?

    Hello

    Looks like a hardware failure.

    Try to reinstall the operating system:

    It comes to the use of the Asus restore procedure.

    http://www.ASUS.com/support/FAQ/1006133/

    See you soon.

  • Is it possible to display the dynamic value in the ToolTip? I tried: this.assist.toolTip.value = this.rawValue; for a text field 'property MouseEnter', but it does not display the current raw value. It displays a previous raw value of the field... Guilty

    Is it possible to display the dynamic value in the ToolTip?

    I tried:

    this.assist.toolTip.value = this.rawValue; for a text field on 'ownership' MouseEnter

    but it does not display the current raw value. It displays a previous raw value of the field...

    I wrote 'YYYY', but is not displaying on the first mouseEnter event

    Capture_1.JPG

    When I show event mouseEnter for the 2nd time it gives good value.

    Capture_2.JPG

    Now, I changed the "BBBB" value but the first mouseEnter event it displays the value previous i.e. "YYYY."

    Capture_3.JPG

    I found the solution. I wrote the script ("this.assist.toolTip.value = this.rawValue ;") on 'property MouseEnter' but the need to write the script to the "Output" of the field event. ")

    Thank you.

  • vo.setAttribute () does not display data on page OAF after DB update

    Hello

    We try to set search field values using vo.setAttribute (). It does not work as expected when there is NO update in the DB table, but it does not display the value on the screen of the OAF when we update the table DB (call parametrisee AM method in controller-> inside the AM by calling the update procedure)

    Query for VO:

    Select t_number, t_type, c_name, t_status, org, of xx_custom_tbl

    where org =: 1

    and c_name =: 2

    and t_status = 'EMPTY '.

    attribute1 is null

    Now we have a button, to the click, it will fill with data in the field list of choices for all ranks. We have made this requirement. But we don't want duplicates in all ranks. To do this, we update the column table as "USED" attribute1 Now, for the second row, when the original Version runs, will be will not display selected data in the first row (as call to the procedure to update the column Attribute1 is done for all ranks)

    We get the code snippet below:

    In the controller:

    If (pageContext.getParameter ("submitButtonClick")! = null) {}

    Vo = OAViewObject

    (OAViewObject) am.findViewObject ("LOVVO1"); Lov inside a Table of manual search VO

    Vo1 OAViewObject =

    (OAViewObject) am.findViewObject ("TableVO1");  Table VO

    While (vo1.hasNext ()) {}

    String org = pageContext.getParameter("Org2").toString ();

    int totalRecord1 = vo1.getRowCount ();

    Row1 row = vo1.first ();

    for (int i = 0; i < totalRecord1; i ++) {}

    String C_Nm =

    (String) row1.getAttribute ("CName");

    Org = string

    (String) row1.getAttribute ("Org");

    VO. Reset();

    vo.setWhereClause (null);

    vo.setWhereClauseParams (null);

    vo.setWhereClauseParam (0, Org);

    vo.setWhereClauseParam (1, C_Nm);

    vo.executeQuery ();

    While (vo.hasNext ())

    {

    Line = vo.first ();

    String T_Type = null;

    String T_Value =

    row.getAttribute("TNumber").toString ();

    Row1.SetAttribute ("Trail_Number", T_Value);

    pageContext.writeDiagnostics (this,

    «aaaI am here.3...» T_Value ' + '.

    T_Value, 1);

    If (row.getAttribute ("TType")! = null) {}

    T_Type =

    row.getAttribute("Trail_NumberType").toString ();

    Row1.SetAttribute ("Trail_NumberType", T_Type);

    }

    }

    Serializable RestrictData [] is {org, C_Nm, T_Value};.

    am.invokeMethod ("RestrictDataLOV",

    RestrictData);

    pageContext.writeDiagnostics (this,

    "After the update of the table ' +.

    Row1. GetAttribute ("Trail_Number"),

    (1);

    break;

    }

    Row1 = vo1.next ();

    }

    break;

    }

    throw new OAException ('updated Table values!',

    OAException.CONFIRMATION);

    }

    Analysis:

    About adding various debugging messages, we have experienced is not populate data in the screen when we update the Attribute1 to "USED". Otherwise, the vo.setAttribute () is working correctly and display the data in the form OFA (search-> row table).

    Can someone please help?

    Kind regards

    Zahid

    Hello

    The code above works fine, it just sets the table at the end of the record values. Since we have similar values, we could not recognize that we actually visualize the latest reports instead of the first 10 records; where vo.setAttribute () worked as expected.

    Also, the first 10 records are now shown by adding the following code to above:

    row = vo.first;
    vo.setCurrentRow(row1);
    

    Kind regards

    Zahid

  • Mobile profiles (phone and Tablet) screen does not display does not correctly

    RoboHelp 11 on a Windows 7 machine

    I have a small project that I asked in August and just pick it up again today. The only changes that I made today have a background color in the selected schema and adding browsers to the Profiles screen (mobile phone, desktop),. I also changed the pixel size of screen above and saved profiles, but eventually changed his mind and changed their return. I don't know if it would make any difference to this problem. (When I did size changes HR told me to update media queries, but I do not use all... or at least none came in functionality to handle media queries.)

    Then I re-generated output, but the Tablet and phone screen sizes are does not display correctly when I tested it by changing the size of my browser - there is a browser size quite large "dead zone" where no content is displayed at all (which almost makes appear as the 'sensible' part of the output does not work), inland navigation (front and rear bar and buttons) is pushed upwards in the header bar , and no horizontal browser scroll bar appears so that I can scroll to see the edge of the large images. I mainly use IE but it happened as well as Firefox and Chrome. The desktop display seems to work very well. (I'm sorry I have no screenshots now - I can provide some if necessary.)

    I was wondering if it had something to do with my chosen 'model' but a new project that uses that even a (Theme1_Standard) had no problem. Now, I also noticed that the model seems to have changed since I was last in Robohelp, because the overview of model unchanged today was not the same as the model from August. The Readme file for the latest patch does not mention everything that I thought that seemed to be related.

    As I said, I changed were all one color, browsers display profile and the profile screen sizes which I subsequently put discarded. I'm completely at a loss as to what caused this and how to fix it. I feel like an OAF comprehensive because it seems to be related to something I * DID * but back on my steps gave nothing.

    Thank you!

    UPDATE

    Still having this problem, but in poking around I discovered that some of the program files on my local machine have been updated in mid-September (when it looks like ReadMe file in the last patch was installed on my computer) and others have been updated mid-October (the first time I was in HR since mid-August, so anything is a not then generate). I don't know if this means anything, but to me it seems slightly suspicious. THX.

    I tried to reproduce the problem, but I can't get the the problem you describe. I do not have a dead zone and wide content scroll correctly.

    The screenshots are pointing to the former route Theme1, so there may be a problem here. Can you please try the following:

    • Delete the layout of your project.
    • In Windows Explorer, navigate to the folder! ScreenLayout! in your RoboHelp project and delete the Theme1 folder.
    • Claire the! SSL! folder.
    • Clear the DPC.
    • Remove the output that you previously generated to ensure that no old file remains.
    • Open RoboHelp, add the layout and generate without making any changes? It's working now?

    Just to be on the safe side, Adobe has released a fix for HR 11.0.3 that some sensitive issues in layouts, however not correct the issues identified in this thread: questions in RoboHelp 11.0.3

    Kind regards

    Willam

  • Double click on the ios10 lock screen does not display Apple pay even if it is enabled in the settings

    Double click on the ios10 lock screen does not display Apple pay even if it is enabled in the settings.

    Hello JPMain,

    Thank you for using communities of Apple Support. I understand Apple pay is not an option when the double click the Home button. I know access pay Apple for a locked screen can do so useful everyday. I'm happy to help you to get this resolved with you.

    I recommend first restart your iPhone. This can solve many unexpected behaviours. Follow the steps below if necessary.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.

    Restart your iPhone, iPad or iPod touch

    If the problem persists, the next option would be to reset all settings. It takes all the defaults, including passwords and Wi - Fi networks, alerts, notifications, brightness, wallpaper and sounds. This will also remove your cards Pay of Apple. Even if no content is lost with this step, it is always a good idea to back up first. If you do not have a recent backup, use the following link for assistance if necessary.

    The backup of your iPhone, iPad and iPod touch

    Once you have correctly saved, reset all settings in settings > general > reset > reset all settings.

    Have a great day!

  • My Firefox has just automatically updated itself to the version 42. The extention under modules page does not display the extensions I have installed.

    My Firefox has just automatically updated itself to the version 42. The extention under modules page does not display the extensions I have installed. The plug in page shows the plug ins I installed. How can I fix it? This happened on my 64 bit Windows 7 partition. I installed the extension "classic add-on" to see if she could solve the problem. There is unfortunately no. I have a screenshot. I'm not sure if I have permission to upload it to the media gallery. I also use Linux, but I did not upgrade that are still there.

    It is possible that there is a problem with the files that store the registry extensions.

    Delete the files (extensions.json, extensions.sqlite, extensions.ini) extensions.* and compatibility.ini in the profile folder of Firefox to reset the extensions registry.

    New files will be created if necessary.

    See "extension corrupted files:

  • my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    Hello

    Follow the instructions here:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • New tab does not display some sites, but nothing.

    When I open a new tab, it does not display the usual sites, but it shows just a white screen. Only the search bars and icons are displayed. It is not also a gear in the top right.

    Hi, try this: Type Subject: config in the address bar, press ENTER, accept the warning, scroll to browser.newtab.url and make sure that 'Value' is defined Subject: newtab (click right to change, if necessary, by taking care of not to change what anyone else).

    If this is not successful or if it changes, to try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Mozilla firefox does not display a Notepad ++ web programming

    Mozilla firefox does not display a notepad ++ web page programming and connect not css files. Currntly of programs using CSS + html5.

    What is happening with the files that you have uploaded on the internet or with files saved locally on your computer?

    Make sure that the HTML file has a .html file extension.

    If the file has been uploaded to internet so could you give a link?

  • IPod 160 GB abruptly stopped, the search results display when connected to a PC. If any song name is typed into the search, it does not display this song while the song is in the Ipod.

    IPod 160 GB suddenly stopped, view the results of a search when it is connected to a PC. If any song name is typed into the search, it does not display this song while the song is in the Ipod. Simply, it displays "no record found".

    Click the magnifying glass in the search box and make sure the entire library search is not checked.

    TT2

Maybe you are looking for