Displaying messages in procedure

I have a procedure which displays the total count of students from college.
CREATE OR REPLACE FUNCTION count_stu
RETURN number
AS
temp NUMBER(4);
BEGIN
SELECT count (distinct ID) INTO temp FROM registration;
RETURN temp;
END;
If i want to display a message like:
The total no.of students are:
then the total count
is it possible?

I have a procedure but you gave function code
try this...
select 'The total no.of students are:' || count_stu from dual; (or)
CREATE OR REPLACE FUNCTION count_stu RETURN varchar2 AS
temp varchar2(100);
BEGIN
SELECT 'The total no.of students are:' || count (distinct ID) INTO temp FROM registration;
RETURN temp;
END;
select count_stu from dual;
***un-tested***

Similar Messages

  • Displaying message text from a stored procedure.

    Within my stored procedures I am using DBMS_OUTPUT.PUT_LINE to output messages (error/warning/info/debug) but they are not displayed until the procedure has finnished. There is also the problem in that the amount of storage space for these message is limited (exceeding this limit can cause an OK procedure run to terminate with an error :( ).
    Is there a better way that results in the 'displays' being made visible immediately?

    dbms_output.put_line is not interactive and the message is limited to 1000000 the max size. you can write your own code as workaround such that capturing the message by inserting it into another log table.

  • When I open my computer I receive the following message: The procedure entry point sqlite3_wal_checkpoint couldnot be located in the dynamic link library SQLite3.dll How can this be corrected?  I never got this message before and I have a iPhone and iPad

    When opening Windows 7 I'm receiving the following message The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.......I have never rec'd this before............I have a iPhone and iPad...............How can this be corrected without interferring with the information on my computer?    Thanks

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well
    In case that your OS is Windows 7 (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "SQLite3.dll" to the location.
    5. Reboot your computer, it should not display that message, it should be clear.
    Good Luck

  • My problem is on my Windows PC.  I am getting the error message, "The procedure entry point sqlite_3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I am told this is related to iTunes.  Any help?

    I use both a Mac and a PC.  My problem is on my Windows 7 PC.  I am getting the error message, "The procedure entry point sqlite_3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I am told this is related to iTunes.  Any help out there?  Thanks

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Restart the programme all should be well
    In case that your OS is (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Now paste it in the folder  C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Restart the programme, it should not display that message, it should be clear.
    Good Luck

  • Since iTunes update my PC will not see other devices keep getting message The procedure entry point sqlite 3_wal_checkpoint could not be located in the dynamic link library SQLite 3.dll, how do I get my other devices to be found?

    Since iTunes updated my PC my  other devices are not seen and I keep getting message "The procedure entry point sqlite 3_wal_checkpoint could not be located in the dynamic link library SQLite 3.dll", how do I get my other devices to be found? or do I have to remove all Apple software.

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Restart the programme all should be well
    In case that your OS is (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Now paste it in the folder  C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Restart the programme, it should not display that message, it should be clear.
    Good Luck

  • Hi, i received message "The procedure entry point xmITextReaderConstName could not be located in the dynamic link libery libxmI2.dll" when ever i switch on the PC?

    Hi, i received message "The procedure entry point xmITextReaderConstName could not be located in the dynamic link libery libxmI2.dll" when ever i switch on the PC?

    It's a simple fix and doesn't involve reinstalling anything.
    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the libxml2.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Restart the programme all should be well
    In case that your OS is (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "libxml2.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "libxml2.dll" to the location.
    5. Restart the programme, it should not display that message, it should be clear.
    Good Luck

  • Error message with procedure

    Hello,
    I am totally stuk.
    I have research and read but I just can't figure it out.
    I tried to follow examples and i thought i had it right. I guess not...
    I am useing oracle10g 10.2.0.3
    this is a transaction procedure that I have been working on all day.
    I thought I was close.
    The exercise that I am doing is practicing with the rollback and savepoint.
    The exercise said not to use parameters.
    can someone please help me to understand this error and maybe suggest an idea?
    The number below "56", appeared when i enter the execution. i don't know why it displayed.
    My procedure won't run enough to show the warning. I had to enter a "/" to show the warning.
    On top of that I totally don't understand the error message. I understand that the begin and the end is required in a procedure.
    so can someone help me !!
    the error messaage:
    SQL> @c:\cmis\proc_5\exc_3.sql
    56 /
    Warning: Procedure created with compilation errors.
    SQL> show error;
    Errors for PROCEDURE WEEK11_PROC:
    LINE/COL ERROR
    2/1 PLS-00103: Encountered the symbol "BEGIN" when expecting one of
    the following:
    ( ; is with authid as cluster compress order using compiled
    wrapped external deterministic parallel_enable pipelined
    my procedure:
    will perform transactions of inserting values into the catalog table while useing the rollback and savepoint.
    the table is empty at this point.
    set serveroutput on
    CREATE OR REPLACE PROCEDURE week11_proc
    begin
         set transaction transac 1;
              insert into catalog1
                   VALUES ('cmis420', 'Advance Relational Database', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
              insert into catalog1
                   VALUES ('CMST385', 'Introduction To XHTML', 'Terry Woods', sysdate, 'john Miller', sysdate);
              EXCEPTION
                   WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
                   ROLLBACK;
         set transaction transact 2;     
              insert into catalog1
                   VALUES ('cmst170', 'Introduction To XML', 'richard Jones', sysdate, 'Mary Smith', sysdate);
              insert into catalog1
                   values ('CMIS315', 'Programming in C++', 'richard Jones', sysdate, 'Paul Todd', sysdate);
                   savepoint transact2;
              EXCEPTION
                   WHEN OTHERS THEN
                   DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
              rollback to transact 1;
         set transaction transact 3;
              insert into catalog1
                   values ('CMIS111', 'Social Networking and Cybersecurity Best Practices', 'Terry Woods', sysdate, 'john Miller', sysdate);'
              insert into catalog1
                   values ('CMIS125', Programming in', sysdate, C#', 'richard Jones', sysdate, Peter Greenburg', sysdate);
                   savepoint trans3;
              EXCEPTION
                   WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
              rollback to savepoint transact2;
         set transaction transact4;
              insert into catalog1
                   values ('CMIS225', 'Developing Windows Presentation Foundation (WPF)', 'George Allen', sysdate, 'Richard Jones', sysdate);
              insert into catalog1
                   values ('CMIS465', 'Software Verification and Validation', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
                   savepoint transact4;
              EXCEPTION
              WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
         rollback to savepoint transact1;
         end;
    kabrajo

    CREATE OR REPLACE PROCEDURE week11_proc is
    begin
    set transaction transac 1;
    insert into catalog1
    VALUES ('cmis420', 'Advance Relational Database', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
    insert into catalog1
    VALUES ('CMST385', 'Introduction To XHTML', 'Terry Woods', sysdate, 'john Miller', sysdate);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    ROLLBACK;
    set transaction transact 2;
    insert into catalog1
    VALUES ('cmst170', 'Introduction To XML', 'richard Jones', sysdate, 'Mary Smith', sysdate);
    insert into catalog1
    values ('CMIS315', 'Programming in C++', 'richard Jones', sysdate, 'Paul Todd', sysdate);
    savepoint transact2;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to transact 1;
    set transaction transact 3;
    insert into catalog1
    values ('CMIS111', 'Social Networking and Cybersecurity Best Practices', 'Terry Woods', sysdate, 'john Miller', sysdate);'
    insert into catalog1
    values ('CMIS125', Programming in', sysdate, C#', 'richard Jones', sysdate, Peter Greenburg', sysdate);
    savepoint trans3;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to savepoint transact2;
    set transaction transact4;
    insert into catalog1
    values ('CMIS225', 'Developing Windows Presentation Foundation (WPF)', 'George Allen', sysdate, 'Richard Jones', sysdate);
    insert into catalog1
    values ('CMIS465', 'Software Verification and Validation', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
    savepoint transact4;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to savepoint transact1;
    end;

  • Firedox did a restart, now it wont open i get the message The procedure point js_UnwrapObjectAndInnerize could not be located in the dynamic link library

    firefox did a restart now it wont open, i get the following message,
    The procedure point js_UnwrapObjectAndInnerize could not be located in the dynamic link library
    have tried system restore but this didnt help

    Do a clean reinstall and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\) before reinstalling a fresh copy of Firefox.
    *http://kb.mozillazine.org/Installation_directory
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 15.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored in the Firefox Profile Folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Why is Mail 6.2 not displaying messages from my Exchange account?

    Greetings,
    I have a new 13" MacBook Air running Mountain Lion and I'm noticing that most of the time my Mail inbox is not displaying messages from my work Exchange account; however, it does display messages correctly for my Gmail account.  I've included a screen shot of what I'm experiencing.
    Any ideas?
    Thanks,
    Garry

    I have the same problem, as does a coworker. It happens, for instance, if I click on another mailbox (such as Junk) then go back to the inbox. Our company uses Exchange. Quitting mail usually fixes it. A rebuild of the mailbox will too.  Only happens on my Mac at work, not my Mac at home (connected via VPN).
    Another problem I have is with mail not syncing. Mail I have deleted from another device (such as on my Mac at home or my iPad) does not get deleted from my inbox at work. Sometimes they'll go away when I click on them. Other times they won't go away and the only way to delete them is to rebuild the mailbox.
    And lately I have had problems with attachments. Attachments sent from my Exchange account at work show up as .eml attachments in my iCloud account and mime attachments on my iPad or as a string of characters (20-30), not as an attachment. This happens whether sent from home or work.
    I have our IT department looking into the third problem (which is the most vital one for me).  I'll report the other two annoying problems and see what they can figure out.

  • What do I do when I try to open Fifrefox 4 & get the message: The procedure entry point NS_SetDllDirectory could not be located in the dynamic link library xul.dll?

    2 days ago, I got a message about upgrading to Firefox 4.0. I didn't do it immediately, due to lack of time. Later that day, I tried to open Firfox & got the message: Firefox can't start because xul.dll is missing. Reinstall the program to fix this. I tried several times to open Firefox & got the same result. I tried rebooting. Same result. So I opened Internet Explorer & went to the Firefox website & followed the instructions to download Firefox 4. After that, I used it last night & left my laptop hibernating last night, then continued to use it this morning. Then I closed Firefox. When I next tried to reopen Firefox, I got the new message: The procedure entry point NS_SetDllDirectory could not be located in the dynamic link library xul.dll. Again, I can only access the internet with Internet Explorer. Also, I have a done a good many Windows updates over the last 2 days as well. What can I do to get Firefox to open? Thank you for your help.

    This is what I did to resolve this problem. First, I uninstalled Firefox 4 & removed the Firefox folder left behind. I made sure to NOT select the option to delete personal information. Next, I backed up all of the important files on my computer. Next, I upgraded my Windows 7 to Service Pack 1, which was pending in my updates folder. Then, I went to Mozilla's website & downloaded Firefox 4 again, making sure to select only the Firefox browser and not Thunderbird too. http://www.mozilla.org/ When prompted to close any open programs, I closed Internet Explorer (which I had used to get to the Mozilla website) and I disabled my Norton anti-virus. I then completed the installation & it works just fine now. It loaded all of my personal data, such as bookmarks, it remembered my password, etc. It's fine for my needs, as I'm not a heavy user of special add-ons & plug-ins. Some of those may not work yet with the new version.

  • I keep getting a display message saying this cable or accessory is not capitiable with this apple product may not be reliable with this iphone even when i have no cable or accessory in use

    My iphone 5 has been saying this for days now. Yes I have recently purchased a motorola ear piece for easy talking while walking, but i have also used a 10ft cord purchased at walmart for months now and no display before the motorola. now even without anything plugged in ,I still get the display message on my phone saying" the cord or accessory is not capitable with this iphone and may not be reliable with this iphone.
    what DO I do ?! is there something I can do without going to either Sprint or Apple for help.... will this be damaging to my iphone ?! HELP before its too late.
    sincerely,
    Apple lover JAJA

    Try resetting your iPhone.  Hold the on/off and home buttons together for about 10 seconds till the Apple logo appears.
    CAUTION - This may get rid of the warning for now, but the issue the warning points out still remains.  One or both of your cables is certainly suspect.

  • After installing a new version of Firefox, I get the error message "The procedure entry point JS_GetOperationLimit could not be located in the dynamic link library js3250.dll" when I try to start firefox. Elsewhere in the forum a complete reinstall is su

    After installing a new version of Firefox, I get the error message "The procedure entry point JS_GetOperationLimit could not be located in the dynamic link library js3250.dll" when I try to start firefox. Elsewhere in the forum a complete reinstall is suggested; however, I can't do that because of my company's IT policies. Is there any way to solve this problem WITHOUT a complete reinstall? Thank you!
    == This happened ==
    Every time Firefox opened
    == I installed a new version ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)

    If you can't reinstall Firefox yourself then you need to contact your IT department and ask them to check the Firefox installation.
    It is possible that some files got broken with the latest update.

  • I downloaded the latest version of itunes.  Now I cannot open iTunes.  I receive this error message: The procedure entry point AVCFAssetCreateWithByteStreamAndOptions could not be located in the dynamic link library AVfoundationCF.dll.  Thoughts?

    I downloaded the latest version of iTunes on my PC.  Now I cannot open iTunes.  I receive the following error message: "The procedure entry point AVCFAssetCreateWithByteStreamAndOptions could not be located in the dynamic link library AVfoundationCF.dll"  After pressing the "OK" button I receive a second error message: 'iTunes not installed correctly.  Please reinstall iTunes.  Error 7 (Windows error 127)".  I've uninstalled iTunes and reinstalled to no avail.  I've also eliminated the temp files (per suggestions on the trouble-shooting page) and no luck.  I also tried system restore and that did not fix the problem.  Any thougths on a repair?   

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (Although the procedure is for Vista and 7 and you've got XP, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever since I did that my itunes won't open any more.  Itunes starts but before anything loads a

  • My ipod touch displays message "ipod touch disabled,connect to itunes."I have held down on/of switch until apple logo appears on screen of ipod touch , but the problem persists. Any suggestions?

    My ipod touch displays message" ipod touch disabled,connect to itunes. Ipod touch does no connect with i tunes. I hold on/off switch on ipod touch until Apple log appears on the screen, but the problem persists. Any suggestions ?  I am running Itunes 10.6(7)  My Mac OS X Version is 10.5.8.

    I connected ipod touch to my IMAC while holding on/off switch as stated to by anothe community memberand problem is solved. I wasable to update and reatore.  I have been trying to solve the disable problem
    for weeks. althou you did not actually solve the problem, In time you probably would. You were on the right track  Thank you.
    This helped me
    rbrookstone

  • I just tried updating to iTunes 10.7 on my pc and when I try to launch it I get this error message-The procedure entry point AVCFPlayerSetDirect3DDevice could not be located in the dynamic library AVFoundationCF.dll.  Any Ideas?

    I just tried updating to iTunes 10.7 and when I try to launch it I get this error message-The procedure entry point AVCFPlayerSetDirect3DDevice could not be located in the dynamic library AVFoundationCF.dll.  Them it tells me to re-install iTunes and the same thing happens again.  Any Ideas?

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (If you've got XP, although the procedure is for Vista and 7, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever

Maybe you are looking for

  • New to forum, be gentle.... Also new to BB and have 2 issues

    I just moved from using the T-Mobile DASH to BB 8320. Observing the following 2 issues and need guidance: #1 - Before (with my DASH) whenever I downloaded emails to my PC (using Outlook), DASH would then remove the emails automatically from the devic

  • IMac not starting

    My iMac screen does not come on. Yesterday the screen froze and a message told me to turn off the computer. The off button would not work so to shut down I unplugged the unit. After a few minutes I plugged it back in again. I can hear the drive start

  • Restore only part of iTunes backup

    I faced a problem with my OS (see dicusssion mobiledata sliders position not persistant) With iTunes I did a OS reset. Then I had the choice of 1. "recover from existing backup" when I chose this then the bug will be brought back on my iPhone - when

  • What append to com.apple.InternetSharing.plist

    Hi everyone On Mavericks, I used to start and stop internet sharing using this command line : >> launchctl load -w /System/Library/LaunchDaemons/com.apple.InternetSharing.plist It seems that on Yosemite "/System/Library/LaunchDaemons/com.apple.Intern

  • WCS 4.0 Client Statistics without Location Services

    Hello, when I watch a client in the WCS 4.0.96(base only version) the section named "client statistics" only prints "Location Server did not return any statistics information for this client." Does that mean, that I need a location version to get inf