How can i run the procedure without passing the parameter.

CREATE OR REPLACE PROCEDURE P1 ( (nvl(A,'dkjf') VARCHAR2)
IS
BEGIN
DBMS_OUTPUT.PUT_LINE(A||',');
END;
it is giving me error
i want to execute in this way exec p1;
it should automatically take dkjf as parameter;
help required on this.

May be, if you are really looking for variety of solutions. I have one which i would say is a low level one
SQL> create or replace package pk1 is
  2  a number;
  3  procedure p1;
  4  end;
  5  /
Package created.
SQL>
SQL>
SQL> create or replace package body pk1 is
  2  procedure p1 is
  3  begin
  4  dbms_output.put_line(a);
  5  end;
  6  end;
  7  /
Package body created.
SQL> exec pk1.a := 10;
PL/SQL procedure successfully completed.
SQL> exec pk1.p1;
10
PL/SQL procedure successfully completed.Here you execute procedure without any parameter, and getting desired output.

Similar Messages

  • How can i run external application without specifying the full path?

    for example, ms word executable file is winword.exe, but in java i am using the following command:
    Runtime.getRuntime().exec("\"C:\\Program Files\\Microsoft Office\\Office10\\winword.exe\");
    the thing is, i dont know where ms word is installed on every machine, so rather than making an assumption, do you know how i can run ms word without specifying the full path?
    thanks

    1) You could ask the user to tell you where it's at (and remember for next time)
    2) You could do a file search for it (and remember it for next time)

  • How to launch a function/procedure without suspending the parent process?

    Hi everybody,
    I would like to know if I can define something as follows in PLSQL:
    procedure master
    begin
    call a procedure_child;
    End master;
    I would like that the procedure master does not suspend the execution and wait that the procedure_child finishes in order to resume the executions with the further code.
    Thanks a lot in advanced
    Tomeu

    In the future, please stick to posting in a single forum.
    Re: How to launch a function/procedure without suspending the parent process?

  • How can I run ni488216.exe without any prompts during installation?

    How can I run ni488216.exe without any prompts during installation (Silent mode)?

    Typically you can do a silent install of the NI-488.2 software by running:
    setup.exe /S LV_INSTALL path=
    Regards,
    Greg Caesar
    National Instruments
    Applications Engineer

  • I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up und one account.

    I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up under one account.

    You can have a different receiving email in the Messages app on each device : Settings > Messages > Receive At . I'm not sure that there is a different way to have the message only go to one device.

  • I want to download an audiobook, but my daughter has a giftcard credit on the account. How can I download my audiobook without using the money from her giftcard?

    I want to download an audiobook, but my daughter has a gift card on the account.  How can I download my audiobook without using the money from her gift card?

    go directly to your ibook app. and you're going to find it. it's only with ibooks app.
    best
    Olivier
    <Edited by Host>

  • How can I run 2 Dreamweaver windows at the same time?

    How can I run 2 Dreamweaver windows at the same time on my
    PC?
    basically I have 2 monitors and I want to edit CSS on one
    monitor and have the html page open on the other so I can quickly
    look from one to another with in a split second instead of taking
    that extra time to switch back and forth using the tabs at the top,
    I know I should probably invest into a mac so i can work out side
    of the Dreamweaver application window and I will in the future but
    is there any way i can do this on my windows XP pro PC?
    Thank you
    Maurice

    Open the CSS in DW, and use F10 to open the Code Inspector.
    Place the
    latter as needed.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Random_Yggdrasil" <[email protected]> wrote
    in message
    news:gi2htb$j4j$[email protected]..
    > How can I run 2 Dreamweaver windows at the same time on
    my PC?
    > basically I have 2 monitors and I want to edit CSS on
    one monitor and have
    > the
    > html page open on the other so I can quickly look from
    one to another with
    > in a
    > split second instead of taking that extra time to switch
    back and forth
    > using
    > the tabs at the top, I know I should probably invest
    into a mac so i can
    > work
    > out side of the Dreamweaver application window and I
    will in the future
    > but is
    > there any way i can do this on my windows XP pro PC?
    >
    > Thank you
    > Maurice
    >
    >
    >

  • How can I add new games without overwriting the old ones?

    I have just purchased two new games in the itunes store and although they are showing in the library (under applications) my previously purchased games are not. In Summary under games it will not let me choose selected games only 'all games' and when I press sync warns that the existing games will be replaced. How can I add these games without deleting the older ones? Also if I did want to remove a game from my ipod how do I do it?

    hardlyquinn wrote:
    Part of the problem is that I can never sync the whole thing as I dont keep all my music in my library (it seems silly to have my enture cd collection on the computer).
    Clearly it ISN'T silly as it avoid issues like you are having right now. If you need more space, get an external hard drive. To me it is much sillier to only have your stuff on the iPod and no where else as the iPod, as a small portable player, is much more likely to be dropped, lost, damaged, stolen, forgotten somewhere, etc.
    While I am not familiar with the use of games on the iPod (I have never bought any) you can switch the iPod to manually manage and then you can add content to your iPod without losing what is already there. Perhaps it works for games as well.
    But long term, I strongly suggest you keep all your stuff in your library so if you need to (you have to perform a restore on the iPod, you lose it and buy a new one, etc.) you can very easily sync it all back to the iPod when needed.
    Good luck,
    Patrick

  • Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    Everything on all the webpages are so small, and only take up half the screen. How can I make it bigger, without changing the settings on my computer and by that change the size of everything on my computer.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • On the mac mini 2011 how can I run windows 7 without the optical drive, On the mac mini 2011 how can I run windows 7 without the optical drive

    On the mac mini 2011 how can I run windows 7pm bootcamp without an optical drive.  I watch lots of football on sop cast and other such windows based programmes but can't work out how to do it.

    Actually Windows can be installed and booted from an external drive if the drive is connected eSATA (external SATA), since the drive is treated as if it's an internal HDD. I used the same method previously to dual-boot from 2 different HDD instead of partitioning.
    Most PC motherboards come with them as standard so it's pretty much plug and play but I don't recall seeing a recent Mac with eSATA connectivity though, so that might not be an option for you.

  • How can i run my form application on the other site?

    how can i run my form application(already compiled) on the other computer without developer/2000 environment?
    What should i do ?
    Thanks in advance!

    Well you have to install ORACLE developer runtime on your client side. then just copy your complied forms (fmx) files to your client machine and set it up to run.
    Hope this helps
    Faisal

  • How can I install Adobe Acrobat without installing the browser extensions?

    Hello All,
    I am a computer Technician at a high school and we have very strict browser requirements for different services. We need to use Adobe Acrobat to convert PDF's, and other tasks, and we need to use Chrome to open Adobe Reader files. The issue is that I want my 3 browsers (Chrome, IE, Firefox) to open PDF files using Adobe Reader XI. All my plugin settings are correct to use Adobe Reader to open PDF's, but it either downloads a PDF to the computer, or opens up in the browsers default reader (Chrome does this), or opens up to a blank page with a blank error message. I went into the programs Internet settings for Adobe Reader and Adobe Acrobat and it's telling me the browser opens them up using Adobe Acrobat (With no option to change the setting). The problem is only solved when I uninstall Adobe Acrobat.Then I am able to open PDF's in Adobe Reader just like I want (but this gets rids of Acrobat). This leads me to believe that when I install Adobe Acrobat, there is a registry key or something that is telling the computer to open PDF's in browsers using Acrobat. My initial question is this: How can I install adobe Acrobat without linking it to the browser. I JUST want Adobe Acrobat as a program installed on the computer.
    Additional Info:
    - I build a computer image and use that image on several computers. This issue persists with all of the computers I installed the image on.
    - I am using Adobe Reader 11 (Now DC, but I am willing to use either) and Adobe Acrobat Pro CS3 (I think it's version 9?)
    Thanks for the help.
    - Charlie

    No answer yet. Paging Acrobat support.... Where are you?

  • How can I link an image without leaving the existing window in adobe acrobat??

    Hi everybody
    I'm new using adobe acrobat, but I saw (once) that in a manual, they linked a image.
    Just by passing the mouse over the linked word, the image appears "over" the pdf, without leaving the existing window
    Is this still possible?? and How??
    Thanks for your help

    If you need to do it very often, I've developed a web-service that allows
    you to enter a phrase (let's say "Product 1"), and have an image "pop-up"
    whenever the user hovers or clicks that phrase in your document. Contact me
    personally for more information.

  • How can you backup your iPhone without using the front button?

    My front button doesn't work again. Had this fixed a week ago and it stopped working again.
    So how do I backup the iPhone without being able to close the email account it is in now and get to the Settings without using the front button?

    Restart your iphone by using the power button. After the restart you will be able go to the settings and enable assistive touch!

  • How can i run one procedure at the fix time every day?

    Hi.
    I write a procedure.it can open a text file.Now, I'd like run it every day at 24:00.
    How can i do that?
    thanks alot.

    and on the other, other hand. If you are using Oracle, schedule it in the Oracle job queue. Look into the DBMS_JOB package (DBMS_JOB.SUBMIT more specifically).
    something like this would work:
    variable jobno number;
    variable instno number;
    begin
    select instance_number into :instno from v$instance;
    dbms_job.submit(:jobno, 'statspack.snap;', trunc(sysdate+1), 'trunc(SYSDATE+1)', TRUE, :
    instno);
    commit;
    end;
    That would schedule it at midnight I believe.

Maybe you are looking for