How can we use packages start section?

Hello guys,.

I'm trying to write a prackages but I do not understand 1 thing, how can we start using the package body section? I mean we can write something in there, but how we run this section?

Thank you very much.

create or replace package my_pck
as
number of num1;
end;

create or replace package body my_pck
as
Start
dbms_output.put_line (' Hello ' | num1);
end;


Set serveroutput on;
Start
/ * WHAT WE CAN WRITE HERE, in order to WRITE "Hello Num ' * /.
end.;

861623 wrote:

I'm trying to write a prackages but I do not understand 1 thing, how can we start using the package body section? I mean we can write something in there, but how we run this section?

You cannot run it directly. It is executed automatically and only once when the package is loaded into memory for the first time by this session.

Think of it as a constructor method. It is very rare that he had to use it. When it is used, for example will do something like read a parameter an array param and therefore define a local package variable. In other words, the code in the main body will be used to set the initial state (which cannot be set using declarations to initialize only variables).

Tags: Database

Similar Questions

  • How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    Hello

    How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    in EBS R12.1.3, oracle 11g.

    Please see the request for information of the user

    -------------------------------------------------------------------------------------

    SELECT

    SEPARATE

    FU. USER_NAME

    FULL_NAME EMPLOYEE_NAME

    , TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") LAST_LOGON_DATE, end_date, FU.start_date

    OF FND_USER FU, PER_ALL_PEOPLE_F PERX

    WHERE 1 = 1

    AND PERX. PERSON_ID = FU. EMPLOYEE_ID

    AND SYSDATE BETWEEN PERX. EFFECTIVE_START_DATE AND PERX. EFFECTIVE_END_DATE

    AND PERSON_TYPE_ID! = 1118 - excluded candidates iRec

    AND LAST_LOGON_DATE < = TO_DATE (December 31, 2012 ', "dd/mm/rrrr") and end_date is null

    ORDER BY TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") / / desc

    ------------------------------------------------------------------------------------

    Concerning

    Ngoyi

    Hello

    You need to do the opposite of what the code in the discussion below is:

    fnd_user_pkg. UpdateUser - End Date remove users

    Kind regards

    Bashar

  • What is SSD and how can I use it or not?

    Could someone tell me, what is SSD and how can I use it or not? because my friend told me that my laptop has SSD drive.

    Hi Jabbar73,

    Thanks for your post, I'm happy to help you.

    SSD stands for Solid State Drive. Here's the Wikipedia definition. SSD drive.

    Now, for what is in your system go to the Start button and click on run

    Type msinfo32 , and go to the section components storage disc.

    Lists the disks that you have in your system.

  • How can I use my photo albums as screensaver with Apple TV 4th gen

    How can I use a photo album that I created as a screensaver on the generation of Apple TV 4 because it is not an option in this sense?

    What follows is the Apple TV 4 user guide...

    Screensavers

    Apple TV displays a screen saver when it remains inactive for a predefined number of minutes.

    Air screensaver shows beautiful videos of slow motion of the places of the world, upload to an online server, making the screen saver more engaging and dynamic. For the antenna, you can control how many times Apple TV check and download new videos.

    Change the frequency of aerial screensaver download. In settings, go to general > screen saver and select Download New Videos, and then select an option.

    Return by using Apple TV. When the screen saver is active, press the contact surface to get to some app have been previously using.

    Choose a different screen saver. In settings, go to general > screen saver and select the Type. Then select the screen saver you want to use.

    Select the photos to display. Many of the screen saver options display a slide show of photos - it can include photos provided by Apple, or your own collection stored in iCloud. To choose which photos are used, in the settings, go to general > screen saver and select the Type. Then choose one of the types of screensaver-photographers.

    If you choose my Photos, the Photos app opens. Follow the instructions to put photos as screensaver.

    Set the screensaver time-out. In settings, go to general > screen saver and select the setting starts after, and then specify a number of minutes. This indicates to the Apple TV to start the screen saver automatically if the unit has been idle for the specified time.

    Activate the screen saver immediately. Press the Home button to go to the home screen (if it isn't already), and then press the button twice.

  • How can I use my instore credit for a movie

    How can I use my instore credit for a movie

    Hello R Larson,

    I see that you are wanting to use a store credit for a movie. I'll be happy for you have said in the right direction. First of all, let's see if we can find out if the credit is a credit of iTunes gift card or a credit from the Apple Store. This article will help you determine what may be:

    What kind of card do I? -Apple Support

    If credit is iTunes, you can just check your balance using the instructions found in the section below and use to either rent or buy a movie to display:

    See your credit balance - Apple Support iTunes

    If the store is an Apple Store Gift card credit, you would not be able to use iTunes to watch a movie.

    I hope this helps. See you soon!

  • How can I use on my M40X with WinAmp media buttons?

    Hello
    Today, I received my M40X and I have a question.
    There are 5 media as left button on the keybord (CD/DVD, play/pause, Stop, <->)
    Is it possible to use them with WinAmp?
    With the help of Toshiba, I had the CD/DVD button used to start WinAmp (by allows him to launch a .exe) but the work of Play/pause...don´t. The field of media Apps the only player that I can choose is Win MP10 (I hate this piece of sh * t).
    How can I use these buttons with WinAmp?

    Hello

    As far as I know Toshiba controls have been tested and designed only for Microsoft Media Player and WinDVD. How this topic says:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=3621&MessageID=11461#11461

    I n t have any experience with WinAmp but I found useful info in this forum on this topic:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=6673&MessageID=24448#24448

    Select this check box.

    Good bye

  • How can I use an ipod nano that was synched to another computer?

    My daughter gave me his 2nd generation ipod nano because it is no longer use it.  When I plugged in my USB to load, I got a message informing me that there is an update.  It would not be updated beause "ipod cannot be updated because it contains files that are used by another application."

    What should I do to be able to use this ipod nano?

    I don't think that this message is related to the iPod is synced to another computer...  It is usually other applications or processes on the computer (which is not iTunes) accessing the iPod for some reason if iTunes is not able to perform the update.  However, your question in the subject heading ("How can I use an ipod nano that was synched to another computer?") is valid, since the iPod was previously used by someone else, with a different iTunes library.

    If you want to start using this iPod with your iTunes library and put on your songs, instead of doing an Update, you need to restoreThis erases the iPod, reinstalled the latest version of the software, and sets it to the default settings.  The iPod gets a 'new beginning', as when it was new.  To resolve the problem with this "files in use by another application" error message, try restarting your computer.  Immediately after the computer finishes starting up, run iTunes, plug in the iPod (if it isn't already) and try to do the restore (or Update).  If you still get this error message, please after return.

    If you are restoring, you can configure it to sync with your iTunes library.  You can post back, if you need advice on options for the implementation.

  • How can I use internal clock case OR USB - 6259 BNC for the acquisition of digital data in my own big software?

    I want to integrate the ANSI C sample program ReadDigPort - ExtClk.c in my own big package.

    I want to use the internal clock of the BNC NI USB-6259 (.. 80 kHz 120 kHz).

    In the document:
    High speed M: Series Multifunction DAQ for USB - 16-bit, up to 1.25 MECH built-in BNC connectivity. / s,.
    is written:
    Or sample DI source clock: Any PFI, RTSI, HAVE sample or convert clock, AO, Ctr n out internal and many other signals sample clock
    The digital subsystem doesn't have its own dedicated internal synchronization engine. Therefore, a sample clock must be provided another subsystem on the device or from an external source.

    How can I use internal clock case OR USB - 6259 BNC for the acquisition of digital data in my own big software?
    With what other subsystem on the device can generate a source of the clock? How?

    It is possible to set a clock on an internal counter (for example ' Dev1/ctr0"):
    Creates channels to generate digital impulses that define the freq and dutyCycle and adds the channel of the task that you specify with taskHandle.
    DAQmxCreateCOPulseChanFreq (taskHandle, "Dev1/ctr0" units, clockName, idleState,
    initialDelay, freq, the duty cycle); works

    But it is not possible to drive this internal clock to a terminal (for example "/ PFI0/Dev1"):
    DAQmxErrChk (DAQmxCreateCOPulseChanFreq (taskHandle, "/ PFI0/Dev1", clockName, units, idleState, '))
    initialDelay, freq, the duty cycle); does not work: error DAQmx: measurements: type I/O of the physical channel does not match the type of I/O required for the virtual channel you create. Name of the physical channel: PFI0. Name of the virtual channel: clock

    The sample clock source can be derived from an external terminal (for example "/ PFI0/Dev1"):
    Sets the source of the sample clock, the sample clock rate and the number of samples to acquire or generate.
    DAQmxCfgSampClkTiming (taskHandle, "/ PFI0/Dev1", maximumExpectedSamplingRate, DAQmx_Val_Rising, ")
    DAQmx_Val_ContSamps, bufferSize); works. Acquire or generate samples until you stop the task

    But it is not possible to derive the internal counter of the clock (for example ' Dev1/ctr0"):
    DAQmxCfgSampClkTiming (taskHandle, "Dev1/ctr0", maximumExpectedSamplingRate, DAQmx_Val_Rising,
    DAQmx_Val_ContSamps, bufferSize); does not work. Error: Acquire or generate samples until you stop the task: make sure that the name of the terminal is valid for the specified device. See Measurement & Automation explore valid names of terminals. Property: Property of DAQmx_SampClk_Src: DAQmx_SampClk_ActiveEdgeSource device: Terminal Source Dev1: Dev1/ctr0

    Hi datafriend,

    using what it says is correct:

    Or sample DI source clock: Any PFI, RTSI, HAVE sample or convert clock, AO, Ctr n out internal and many other signals sample clock
    The digital subsystem doesn't have its own dedicated internal synchronization engine. Therefore, a sample clock must be provided another subsystem on the device or from an external source.

    This means that if you do not use an external signal as clock you can use the sample clock to HAVE it on board or at the output of the internal counter.

    There are also 2 ANSI C examples in this regard:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4485

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4488

    So in both cases you have to use a fictitious task you need only for the generation of the internal clock (HAVE or CTR)

  • How can I use process explore check PID 1176 60% CPU svchost.exe? Help, please.

    As the title, how can I use process Explorer to check PID 1176 60% CPU svchost.exe? Help, please.

    The task manager has PID 1176-60% CPU, all the time, which I believe is the reason my pc works so slow.

    How to use Exp Pro to know what is actually using 60% of my cpu, via svchost 1176 PID?

    I found the Exp Pro Geek guide - but are struggling to pass for a non geek.

    Using Vista 32 bit.

    Thanks in advance for any answers.

    Process explore uses more resources than svchost, it works automatically using a lot of memory. Anyway, the open task

    Mgr, locate the svchost, R.click on the location of TI/properties/open a file. You will find that it is a service of microsoft.

    The drain is usually in BITS, try to go to run, or cmd, type: services.msc in msc, locate BITS, R.click on it, open,

    Set to manual start, exit msc, restart the pc.

  • How can I use my Brother MFC-5440CN printer in Windows 7?

    How can I use my Brother MFC-5440CN printer in Windows 7?

    Download the vista driver and software package complete withhttp://welcome.solutions.brother.com/bsc/public/us/us/en/dlf/download_index.html?reg=us&c=us&lang=en&prod=mfc5440cn_all&dlid=&flang=English&os=74&type2=-1

    Be sure to only install the driver before connecting the printer.

  • How can I download package adobe (Photoshop and other applications) for student?

    How can I download package adobe (Photoshop and other applications) for student?

    Adobe in education... Start here https://creative.adobe.com/join/edu

    Educational https://creative.adobe.com/plans?plan=edu

    FAQ https://helpx.adobe.com/x-productkb/policy-pricing/education-faq.html

    When you purchase a subscription to education, the terms you "click to accept" should be clear about the first/last years

    -Intro price http://forums.adobe.com/thread/1448933?tstart=0 one can help

    http://www.Adobe.com/products/creativecloud/students.edu.html

    http://www.Adobe.com/education/students/student-eligibility-Guide.edu.html

    Redemption Code https://creative.adobe.com/educard

    Proof of ID http://www.adobe.com/store/au_edu/academic_id.html

  • In an Audio file... How can I slow down a section of the floor?

    In a file Audio how can I slow down a section of the floor?

    View waveform editing simply select the part of the audio waveform you want to slow down and go to effects/time and Pitch/Stretch and Pitch and use this effect to slow down the audio.

  • I bought a box of 11 items and now bought an I - Mac. How can I use my serial number to download on my new i - Mac?

    I bought a box of 11 items and now bought an I - Mac. How can I use my serial number to download on my new i - Mac?

    PES 10, 11, 12, 13 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html

    You can also download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 11: l http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm

  • Hello my name is jose and I would like to know how can I use the adobe CAMERA RAW bridge because the use of bridge and the desire to open a raw image of the camera, I get a message that says: BRIDGE HAND aplicaion NOT ACTIVE. BRIDGE REQUIRES THAT A PARTIC

    Hello my name is jose and I would like to know how can I use the adobe CAMERA RAW bridge because the use of bridge and the desire to open a raw image of the camera, I get a message that says: BRIDGE HAND aplicaion NOT ACTIVE. BRIDGE REQUIRES THAT A PARTICULAR PRODUCT HAS STARTED AT LEAST ONCE THIS FEATURE. I wonder what that means?

    I use a 64 - Bit lapto operating system (windows 7).

    Thank you

    my email is: [email protected] If you send me the answer to my query

    You must activate Photoshop.

    Mylenium

  • How can I use the templates that I generated in Bridge CS5, Lightroom 4.4?

    How can I use the templates that I generated in Bridge CS5, Lightroom 4.4?

    It seems that I can not connect the models I use in bridge some time in Lightroom 4.4.

    Is it done on purpose?

    Thanks in advance

    Doppy

    Totally different formats and no, you have to start over in LR.

Maybe you are looking for