Works only in the script file and not in the database

Hi all:

I want to know if this is possible.

In my SQL script file...

Create a feature once.
Call or make use of this couple of function or several times.

All the while NOT create the function in the database.

In other words, I want this function to be alive only during execution of the script file.

Thank you

Well, you can do that if you can somehow manipulate your script so that it includes an anonymous block. Here, you can use a local subprogram that exists in the context of the anonymous block:

SQL> DECLARE
  2     a1   NUMBER := 10;
  3     a2   NUMBER := 20;
  4     a3   NUMBER := 0;
  5
  6     FUNCTION calu_sum (var_a NUMBER, var_b NUMBER)
  7        RETURN NUMBER
  8     IS
  9     BEGIN
 10        RETURN (var_a + var_b);
 11     END;
 12  BEGIN
 13     a3 := calu_sum (a1, a2);
 14     DBMS_OUTPUT.put_line (a3);
 15  END;
 16  /
30

PL/SQL procedure successfully completed.

Kind regards
Frébault

Published by: Marie Lise Sharma on May 6, 2009 13:58

Tags: Database

Similar Questions

  • Why my game works only when I hit enter and not when I click my Start button?

    If I have a weird problem with a game that I put as well as the actionscript 3.

    The game is not complicated.  I found an online tutorial for a simple navigation with the keyboard arrow keys.  I have a menu at the beginning of the game screen, and I made a start button that takes you to another frame of the scenario where the game is coded.  If I click on the Start button it navigates to the reading of the chronology section, but keyboard commands do not work.  If instead of press the start button, I just hit enter on the keyboard the swf plays forward until it hits the game section and the shutdown command, then the keyboard commands work fine.

    Of course, my keyboard navigation controls are correct or it wouldn't work at all but why clicking on the button start, I created somehow stop it working correctly?

    Any suggestions or ideas anyone?

    See if the following discussion to resolve the problem:

    http://StackOverflow.com/questions/12469276/action-script-3-keyboard-event-set-focus

  • Hi all. How can I manage the preferences that LR do not take up space on my MAC hard drive and works only on the external hard drive?

    Hi all. I am new and on a free trial right now.

    How can I manage the preferences that LR do not take up space on my MAC hard drive and works only on the external hard drive?

    Monthly payment included cloud storage?

    Peut I manage backups? And how?


    -Amir

    Hi amireos,

    Yes, you can create your workflow where you can keep all your images on the external hard drive and the Lightroom catalog file as well.

    If you start with Lightroom and then use the Destination location as external hard drive when you import your image of the external source such as a camera or SD.

    If you already have your Images on the Mac HD drive, then play all your Image on the external hard drive first and then import images directly from there.

    Finally, you can change the location of the Lightroom Catalog as well.

    Default location: folder on the Mac Drive HD, there is folder called Lightroom that you can move on the external drive too (however catalog Lightroom can't memory space as its only import previews of the images is not the real image and full)

    Once you move the file catalog Lightroom external hard disk, then you need to browse the catalog file when you launch Lightroom only once.

    See thread: LR catalog moving on external hard drive

    Let us know if it helps.

    Kind regards

    ~ Mohit

  • Call the batch file and not the shell script using measures of the event

    Can I use EVENTACTIONS at the door of gold like

    eventactions (SHELL, /path-to-batch-file/test1.bat)

    will this work? I am on a windows machine, so I need to run a batch file and not a shell script

    In GGSCI, you can shell OUT to the BONE and call a command/executable file.

    For example on Windows:

    GGSCI (WIN2003) 2 > shell dir

    Volume in drive C has no label.

    Volume serial number is 8CCC-9E58

    Directory of C:\ggs

    18/08/2012 07:23

    .

    18/08/2012 07:23

    ...

    2010-10-15 06:37 bcpfmt.tpl 426

    2010-10-15 06:37 bcrypt.txt 1 725

    22/04/2011 03:41 2 560 category.dll

    05/11/2011 10:43

    cfg

    2010-10-15 07:15 739 chkpt_ora_create.sql

    ...

    What were the results when you tried this in an EVENTACTIONS clause?

  • How to save the metadata to RAW files (and not externally. XMP file)

    Hello

    I would like to record metadata (for example key words) in the RAW files and not externally. XMP file.

    How in Lightroom?

    Thank you

    Josh

    PS: XMP is a file format (=. The XMP files) or a metadata format that can be incorporated into one. XMP file or in the raw itself?

    You can not save the metadata directly in the raw file in Lightroom. You only can it save to a file, XMP - one text file with XMP as well as its file extension containing data that is written to the XMP format.

    To avoid the sidecar files, plan to convert your raw files to DNG. Metadata is written to these files in XMP format, but inside the DNG format.

    More clear?

  • Anyone know if you can use FTP, when you save, just save the selected file and not all images and cs

    Someone knows If you can use FTP, When you save , just Save the selected file and not all the images et CSS includes ...

    What?  Can you please rephrase your question in order to understand what you're asking?

    If you ask how a file on the remote site via FTP without FTPing any dependent files?  That the answer is Yes, you can do this by changing the SITE > dependent files: option in the PREFERENCES to enable the option "prompt on put/check-in."  The next time you download a file, you will be asked if you want to also download dependent files.  If you say NO and check the don't ask again option, then you will always simply load the file and not the dependents. You can change it back at any time by changing the preferences of this setting.

  • NEITHER Spy works only in the development environment?

    NEITHER Spy works on LabView (executables) stand-alone applications deployed (using VISA vi), or NI Spy works only in the development environment? It might be useful for debugging of deployed applications.

    If the answer is Yes (which I doubt), OR would have to create an installer for it since currently it is no longer available as an add-on.

    Thank you

    Ed

    Edjsch,

    You can install VISA as a standalone w/o LabVIEW. Spy is not a stand-alone installer because it does nothing in itself. That's why we always package it with a driver or application software.

  • Printer works only after the reboot or shutdown

    I use win xp sp3 computer. My only works only after the restart or shutdown. If I reinstall the printer driver, then it will work. I have reinstall win xp but similer happen again. I scanned my system with kaspersky. But no change. I need a permanent solution. Please help me...

    Hi Pierre,.

    1. what exactly happens when you try to use the printer?

    2. you receive messages or error codes?

    3. What is the brand and model of your printer?

    Method 1:

    You can try to start the fixit printer and check if it helps:

    Diagnose and automatically fix problems printing and printer

    Also see the article and check:

    Resources for the resolution of the printer in Windows XP problems

    Method 2:

    You can check the event viewer to learn more about the problem.

    Procedure to view and manage event logs in Event Viewer in Windows XP

  • Update of iTunes. IPod sync and lost everything but 10 audio books, passed to Touch, four selected works, only on the Touch and not the selected one. Afraid to synchronize other devices that I'll lose everything. ITUNES update BUG

    I updated iTunes 10 Windows a few days ago. I sat to continue listening to an audiobook on my iPod. 110 audio books in sync with the iPod, there are now 10 and not that I want to listen to. I opted for a touch and tried to load the book on that. There are four books selected for the touch. The book I want to not sync and there is only one book on the Touch.  This book is not all the book selected for synchronization.  I am afraid now to sync one of my other devices to iTunes because I'm afraid I might lose even more data.

    Of course, there is a bug in the new update iTunes 12.3.3.17.  Help, please.

    Are audio books in your library? If it is not in your library can see you in your media folder? Your library authorized the Apple ID is used to buy the books? The upgrade of Windows can break the record of the permission on the computer.

    TT2

  • I had windows updates only 3 update 11 failed and not update, now I can't open my program files

    After starting to install windows updates failed only 3 including 11 installed has not tried again they now cannot access some programs include research on the windows desktop, Explorer windows, help and support, system information, disk cleanup, defrag the files, microft office, others I right click and click Properties find target then I get a message could not open the windows file install is not properly installed ,

    Your last two responses bring back us to 2 two things you posted yesterday (I had hoped we could avoid).

    In reverse...

    [#1] ... I received an error message when I booted my computer that says "cannot find componate RPS.exe. "AntiFr.dll was not trying to install again.

    Several years ago, before Verizon (or whatever your telephone company was called at the time) gave the suite McAfee customers, she gave another sequel on Proctection of Radialpoint Suite (AKA freedom Internet Security).

    The code snippet above tells me that the Radialpoint suite has been installed on your computer at somepoint in a past distant: files RPS. EXE and ANTIFR. DLL are 'leftovers' from Radialpoint Protection Suite (where letters RPS in the first file name).

    Speaking of the hard personal experience, I can tell you more about Radialpoint is about impossible to remove completely without manual editing of the registry - something you DO NOT want to do!

    And despite what the volunteer moderator McAfee Forums and communities (own KB of Radialpoint article) has to say, you do NOT want to download Microsoft's Windows Installer Cleanup utility now interrupted the quoted source not Microsoft !

    [#2] ... I installed Speedy [PC] Pro last week... every day since then, around 15:00 I get a message that says "cannot find c: Program file commune File\SpeedyPC Software\UUS3\UUS3.dll ' I click on close and she goes until the next day.

    Unfortunately, installation & with the Speedy PC Pro 'scareware' is no worse, Dennis. [It is called "scareware" because you have to buy this disreputable application ($34.95 USD, I heard last) until it 'fixed' anything.] [Of course, it won't fix a 'thing'!]  See this recent discussion, some-online http://answers.microsoft.com/en-us/windows/forum/windows_vista-security/who-are-speedy-pc-pro-and-are-they-safe-to-use/62629332-a670-4166-b418-e2a5a876daa1

    TIP: If you ever think that your registry database must be cleaned, repaired, boosted, point, healed, twisted, fixed, magnified, "swept" or optimized (it isn't), read http://aumha.NET/viewtopic.php?t=28099 and draw your own conclusions. See also http://blogs.technet.com/markrussinovich/archive/2005/10/02/registry-junk-a-windows-fact-of-life.aspx

    If you had not used the Speedy PC Pro crapware, there is a very slim chance that you would be able to install the suite McAfee/Verizon again - at least according to McAfee Tier III Support Tech post on this page. But you don't have so there is nothing we can do about it now. [No, System Restore may not "come to the rescue" here.]

    => Let me level with you here: this set of the problem is due to have not entirely - remove the McAfee free version to test which is preinstalled on your computer, years BEFORE the installation of any antivirus application (for example, the suite of Radialpoint) AND BEFORE installation of Windows updates.

    Now the very bad new: the only way to return your computer to a functional & secure State is backup so your personal data (for example, the contents of the My Documents folder;) Favorites of IE; E-mail Client data) then format the hard drive and do a clean install of Windows XP (or buy a computer brand new Windows 7).

    Follow the instructions (to-the-letter & in order!) in this post of mine in another forum: http://aumha.net/viewtopic.php?f=62&t=44636

    If you need additional help with the new installation, start your own, new topic in this forum: http://answers.microsoft.com/en-us/windows/forum/windows_xp-system

    If these procedures are outside your technique "comfort zone" - and there is no shame in admitting this isn't your cup of tea - take the computer to a local, reputable and a stand-alone computer (that is, not "BigBoxStoreUSA" or Geek Squad), repair shop & let them do the work.

    Note: The computer must NOT be connected to the internet or local networks (i.e. other computers) in its current state. All your personal data (e.g., banking online & passwords credit card) must be considered at risk, if not already compromised.

    I sincerely wish I had better news for you.  Good luck!

    =================================================================
    WARNING: Displayed AS IS without any warranty. MS MVPS represent or work for Microsoft

  • Field containing average function works only when the data are engaged on the same page. Does not work for fields on other pages.

    I'm having a problem with a field defined to calculate the average of eleven points fields (points 1 to 8 on page 1-9-11 on page 2). My original question was that it could exclude fields of points when they do not have information entered and adjust the average calculation (number of "divided by") accordingly.

    I had someone write JavaScript code for him, but I just found a small problem I don't know if it's something in the code or what the person who originally wrote the script cannot understand it either and suggested that I have post here.

    The middle area (located on the 2nd page of the pdf page two) seems to work exclusively with precision if at least one of the points of the fields on the 2nd page, 9, 10 (and 11) are engaged with the data. No values entered on the first page and only the first page, are for some reason any dividing by a more than expected. For example, if I fill the boxes 1, 2 and 3, it divides the total by four. If I filled just box 7, it halves. If I fill all 8 boxes on the 1st page, it divides by nine. It is corrected as soon as I get the points in one or more of the three boxes on the 2nd page points, suddenly the overall average is accurate. But if boxes 9, 10 and 11 contain no points, then the average is still inaccurate because the number of ' divide by "he uses is one more than what it should. I can't understand how to attach the form to this post, so I downloaded on Dropbox: Dropbox - used Evaluation.pdf.

    Under the direction of State: javascript came work to exclude the empty boxes when the points are entered in one of the three points of fields on the 2nd page (and more), but the average function is not accurate because it adds 1 to the number of ' divide by "in the calculation of the average If the points are only entered into the fields on the 1st page.

    Here's the code I entered in the 'Custom calculation Script' box in the 'Calculate' tab of the Properties menu of Test field:

    Initialize variables

    var num = 0;

    var sum = 0;

    Browse the input fields

    for (var i = 1; i < 12; i ++) {}

    var f = getField ("points." + i);

    If {(f.valueAsString)

    increment the counter to non-empty field

    NUM ++;

    Add the value of the running total field

    sum += + f.value;

    }

    }

    Calculate the average

    If {(num)

    Event.Value = sum / num;

    } else {}

    All fields are empty, then the empty value

    Event.Value = "";

    }

    I do not see that. Add the code of script debugging will display the results that each field is completed:

    Initialize variables
    var num = 0;
    var sum = 0;

    Browse the input fields
    for (var i = 1; i)< 12;="" i++)="">
    var f = getField ("points." + i);
    If {(f.valueAsString)
    increment the counter to non-empty field
    NUM ++;
    Add the value of the running total field
    sum += + f.value;
    }
    }
    Debug - display results as the form is filled;
    Console.Show
    Console.println (sum + "/" + num + "=" + sum/num);
    end of debugging;
    Calculate the average
    If {(num)
    Event.Value = sum / num;
    } else {}
    All fields are empty, then the empty value
    Event.Value = "";
    }

  • Why my drawings are saved as PNG files and not as the vector files?

    Hi all

    I had Illustrator draw installed on my iPhone 6 for well over a month now and no can't operate the way it is supposed to work. According to Adobe, the designs, we create on Illustrator draw are supposed to convert into vectors on their own a time saved, or when you press "send to Illustrator. Once I have create a drawing with Illustrator draw and press 'Send to Illustrator' I will only wait a few moments for this Illustrator program opens on its own on my computer. Unfortunately, the drawing will not be opened because it is not compatible with Illustrator. Drawing is transported to Illustrator as a PNG file that is not supported. An error box will appear telling me this, and then efforts just stop there. It's really frustrating. It is not possible to change all the settings associated with this problem on the iPhone or on the desktop. At least not my investigation. Also, I can not find the folder libraries showing in one of their video tutorials Adobe Illustrator. I see a few different types of folders in the library, but none for the selection of the designs I've done on Illustrator to draw.

    I do not understand how, according to this video: working with Adobe form & Adobe Illustrator draw - YouTube , it works perfectly with the iPad. Is - it really exclusively for the iPad? Maybe there is some software/programming issues by making a version for the iPhone? I do not know.. All I know is that it doesn't work and it's frustrating.

    I would really appreciate it if the Adobe team or someone forums could help solve this problem. There really isn't any point to have this Adobe application if it can't do what it's supposed to do.

    I was in a similar position when I tried to download from sketches and line, but the draw must send to the paths immediately.

    (Sketches and line illustrations require a step further, the conversion button, but draw just open immediately)

    Check the version of your Adobe application draw? or Illustrator CC? (I use 2014.1.1 and it seems to work very well on my iPhone 6)

    Adobe sketch pictures send to Illustrator and convert for you?

    Illustrator / libraries

    There is an option of the window for the libraries.

    In addition, there are ways to access your resources CC of other signs too.

    What about the youtube video works with Adobe form & Adobe Illustrator draw - YouTube

    From 05:22, Geoff Dowd so-called taps of the screen, but I did not see the button, you?

    I did - worked very well (but I regularly update my CC apps and the iPhone/iPad applications)

    I hope this helps!

    summer...

  • My Wacom Graphire4 graphics tablet works only with the pen pressure, OK in CS5 but not CS6...

    I am Windows 7 Professional 64 bit and still have the CS5 and CS6 64 bits loaded.  I've used my tablet with stylus Graphire4 with CS6 will detect all problems.  All of a sudden it only works with the pen pressure even if the stylus pressure is off.  I'm trying to use it as a mouse and frequently use shift/click when you change a mask.  I can do it no longer.  If I run CS5 the pen works as it should but not CS6.  When I first open the CS6 with visible brush the brush palette shows a hard brush, but when I open a file it turns into sensitive pressure without measure by me.  I have reset the brushes, re-installed the driver and finally downloaded a driver more but the problem persists.  Because it works very well in CS5 but not CS6 it must be a problem to Adobe.  It's very frustrating.  I enclose a composite image showing what happens to the CS6.  The right side shows what looks like the brush palette until I open a file.  The left side shows what happens when I open a file.   Even if I do not open a file and make changes within the brush palette, it immediately turns to pen pressure.  It's very strange.

    I would of course someone can provide information that could help.

    Kind regards... Ralph

    brush_palette.jpg

    No answers, but in the meantime, I have come into contact with Adobe.  Problem has been resolved by phone.  Resolution is to delete the preferences file reopen CS6, date at which the PS automatically creates a new preferences file.  It was she, corrected a problem... Ralph

  • CS4, script files appear not in the script Panel

    Never use scripts, but I had one that I downloaded for use for CS3.  Its been a while but I thought that I it falls right in the Scripts folder and it should appear in the actions panel in InDesign.  I just put this same script in my new CS4 scripts folder and his does not.  I restarted same ID to ensure, and it still does not work.  Is there something im forget?

    CS4 has a slightly different model.

    In the Scripts folder, there is a folder called "Scripts panel". Script view in the actions panel in InDesign, place your scripts in this folder inside.

  • Multitrack session: how have session reference copies of BACKUP files and not the originals?

    Hello.

    Back to the Audition 1.5, I mainly to save a session as and have it save copies of all files in the same folder as the file .its. Since getting CC of the hearing, I found the option to save files through the session export multitrack and saved the project successfully with its project files... However, I find that hearing CC is still reference the original files when I open the session rather file referencing the backup files in the folder.

    So my question is... How do I get Audition to reference CC and make use of the backup files, rather than the originals? My reason for doing this, it is simply because I have a large archive of SFX files and do not want the changes recorded in the original accidentally files. I want basically, each session to be autonomous and no risk of harming the integrity of the original files, I reuse SFX for different projects all the time.

    If I was not clear enough, please ask and I will try to explain my problem.

    Thank you.

    masarudaimon wrote:

    However, I find that hearing CC is still reference the original files when I open the session rather file referencing the backup files in the folder.

    So my question is... How do I get Audition to reference CC and make use of the backup files, rather than the originals?

    I studied this earlier today, for a different reason, and Yes, it is a bit strange - although explicable. The thing about 'Export', is normally the session expected to be open on the same computer, where it was then used. That will happen, is that the session would open on another machine, and all tracks marked as 'offline' should be linked to the hand to the copy of the file in the folder.

    Personally I don't think it's particularly useful either. The problem is that if you make a copy of the files, you also make a copy of the session file and is not really what you want here, is it? You want a modified version that does not require all the relinking etc.

    Unfortunately, I think it's 'as expected '. But, I'll put a request for the behavior to be changed, so that the .sesx export file reference saved copies, as it is much more logical to me as well as you, I think!

Maybe you are looking for