Several DECLARED or / and several BEGIN

Hi guys,.

I have a small question. I wrote a script in PL SQL like this:

DECLARE
....

BEGIN
....
END;

DECLARE
....
BEGIN
....
END;

DECLARE
....
BEGIN
....
END;

When I tried to run, he gave me:

' + The error report:
ORA-06550: line 25, column 1:
PLS-00103: encountered the symbol "DECLARE."
ORA-06550: line 84, column 1:
PLS-00103: encountered the symbol "DECLARE."
06550 00000 - "line %s, column % s:\n%s".
* Cause: Usually a PL/SQL compilation error.
"* Action +:

So I decided to put all declare them together, like this:

DECLARE
....
BEGIN
...
END;

BEGIN
...
END;

BEGIN
...
END;

and now I have an error like:

' + The error report:
ORA-06550: line 46, column 1:
PLS-00103: encountered the symbol "BEGIN."
06550 00000 - "line %s, column % s:\n%s".
* Cause: Usually a PL/SQL compilation error.
"* Action +:

Did something wrong in my structure? I can't use many declare in my script? Or several Begin?

And please don't tell me to START a big... it's just to force the script to run three blocks separately.
I saw the first structure in a procedure and has worked flawlessly.

Thank you very much.

PS: Oracle 10g

The structure of an anonymous block is

declare
Start
end;
/

Note you don't miss the slash. That's why you have found errors.

----------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • Brother HL2140 printer. When I turn it on and press the go button, all 3 LEDs light up and then begin to Flash

    I have a Brother HL2140 printer. When I turn it on and press the go button, all 3 LEDs light up and then begin to Flash. I need help...

    The brother of contact support.

  • Option of sections and numbers beginning with 0 for example, 1.0, 2.0, 3.0, etc.

    Hello world

    I can't find a way to number sections of a document with a prefixe.0 (InDesign says that the value must be between 1 and 9999). For example:

    1.0

    1.1

    1.2

    1.3

    2.0

    2.1

    2.2 etc.

    I have currently replaced the page master and typed manually section but on the pdf, the numbering is incorrect (as it is controlled by the option of numbering and sections).

    Is there a solution to this?

    Yes, ID does not understand this numbering system.

    What you can do is to use SEVERAL sections, one for the page.0 and one for the pages .x. use a Section marker for the pages.0 with the whole number, i.e. 1.0 (NOT a section prefix), and instead of a page marker number insert the special character of marker section on the page (you will have always to do these one at a time ", I think). Use a prefix of x. for the other section pages (x number of section) and check the box to include prefix when numbering. All MultiPage sections will now start at 1 and all the sections.0 can be 1 or 2 according to whether they are left or right side of the pages.

    A word of warning, however, if the pages.0 are on the right, you shuffle off to force ID to pass the other pages then 1.1 is on the left and 1.2 is on the right, and your readers will find annoying numbering.

  • How to translate the declaration C++ and C

    Hello

    I have a DLL that I want to use in a program developed by CVI (FDS version 8.5.1). DLL comes with documentation including a file include (* .h), where all function declarations are given. So usually I would just include this header file, unfortunately, this file was written for C++ and contains the declarations of functions of the following type:

    empty typedef (__stdcal * fp SOMETYPE) (double &, double &, long &, long).

    The compiler and I are confused by the '&' I know 'double' and ' double *', but not "double &'..." The same for the CVI that complains with an error of syntax, found '&' expected ')'.

    Then of course I have to manually translate this C++ C style header file - but I have no idea how to proceed... Maybe someone could help me? Thank you!

    It's been a while since I've done any C++, but as far as I know, you can again declare the function as:

    empty typedef (__stdcal * fp SOMETYPE) (double *, double * long *, long)

    in the header and call it from your code by passing the variables or pointers "address of".

    In this case, '&' in the function statement means "by reference."  It's a bit like pointers in C, but allowing the error checking (for example - cannot be NULL, cannot be re-assinged, etc.) and probably makes the compiler optimizations.  If you are interested in, search google for References C++, or you can check out wikipedia:

    http://en.Wikipedia.org/wiki/reference _ (C %2% B 2 B)

  • stop DC-source after awhile and then begin the pressure measurements

    I don't think that what I want is so difficult, but I have very little experience with labview.

    I generate a continuous voltage for a period of time. After the time of the source voltage must become zero and pressure measurements must begin.

    In vi, I did the steps start at the right time, but the source never generates a voltage.

    I placed a picture of the diagram as an attachment. There is nothing in the case if the value false.

    The while loop ends after the time to reload, and then the case would become true.

    The part related to PXI1Slot2 for the source and the part related to PXI1Slot3 for measurements. (But as I said, there is no problem with my measurements, the DC-source is my problem)

    I know that I can use the source because I can do generate a voltage if I place the part related to PXISlot2 on its own to a vi.

    Hello

    Both sides in the case structure should arrive in a certain order? As they are it is unclear who will take place in what order.  If they must be in order, use the wire of the error to force the order or try a sequence structure to put them in order in consecutive images.

  • declarative overtemperature and stripped discount UICopomnet

    Dear all,

    Environment:

    JDeveloper version: 11.1.1.5.0
    WebLogic 10.3


    Use case: I created af:commandToolbarButton as declarative overtemperature providing the function makes the operation 'delete '.
    Once the user click on the button "delete" page shows always all data without updating even the deleted one was removed from the database.
    Is it far from showing update of data after the suppression in environment declarative.
    Help me how to tackle this problem as well as consult me blog useful links.
    I tried the following, the result is always the same.

    1.
    AdfFacesContext.getCurrentInstance () .addPartialTarget ("UIComponentID");

    2.

    {
    FacesContext vFacesContext = FacesContext.getCurrentInstance ();
    UIViewRoot vUIViewRoot = vFacesContext.getViewRoot ();
    UIComponent vTheInputFileComponent = vUIViewRoot.findComponent("UIComponentID");
    AdfFacesContext.getCurrentInstance () .addPartialTarget (vTheInputFileComponent);
    }

    Concerning
    KT

    Hello

    have you tried property partialTrigger of the score table to the component ID declarative? Also note that it is important how you delete a record. If for example you do this at the level of the View object then PPR is not enough and you need to re - question rather. If you remove the line in the level of the iterator PPR will do

    Frank

  • Yet CS4: Pause between a transition and the beginning of the timeline

    Hello...

    I'm creating a DVD. It has a menu with a video loop in the background, when I press a button, it goes to a transition one then begins the movie... between the transition and the movie, the software does a small break, maybe less than a second, but it ruins the fluidity of the animation!

    I have tested in many ways, but I don't get the way to avoid this pause...

    Is there a way to avoid this?

    Thank you!

    from the clicked button of the menu for the clip of transition, there is no pause

    Perhaps, but the transition to the movie, I think it's perhaps inevitable.  As I said previously, this is usually not noticed because the transition ends with black and the film begins with black.

  • I had to fully restore my HD and subsequently lost all my e.mails saved from 2013 and the beginning of this year, I can get back in a new installation of program?

    I had a major breakdown of the system on Windows 7 and had to completely restore my HD. When restored I lost TB. Successfully, I rebooted TB but have lost all my e.mails saved from 2013 as well as recorded from 2014.
    The first e-mail now in my system is time that TB has been reloaded. Saved the e.mails are important and that's why I need to know how, if possible, to retrieve messages.

    If you had an IMAP e-mail account, then all your emails are stored on the server, so install Thunderbird and create the IMAP e-mail account to display folders and emails on the server.

    If you had a POP e-mail account so all your emails have been stored on the computer and you should regularly create backups of your profile folder or at least created a backup of your profile (and any other documents / images etc. on your computer) before wiping the computer/reformatting and reinstalling OS. So, you can use the backup to reinstall the profile. If you have used MozBackup to create the *.psv file, and then reinstall MozBacktool and use it to restore the profile.

    If you have not created a profile backup, but backed up/saved emails as recorded on an external device .eml files, you can use this addon to restore these .eml files to the new profile.

  • Tabs don't is not loading. The web page loads and then begins to re load instantly and keep it.

    When Firefox opens, it loads a blank tab. As soon as I click on any web site, it loads a milli-second and then pages on a reload of the cycle and therefore never stops loading the page at all. I is not serious if you reinstall Firefox, restart turn off computer java or anything like that.

    Hello Stepgar, it sounds like a theme or extension could be interfering here. Please, try to start firefox in safe mode once and see if the problem occurs here also.

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

  • Use a channel when you declare two and it changes when the program runs.

    Hello

    For the use of a map of 4461:

    With the use of the library DAQmx:

    When I use 'Create Channel.vi' I can to use 'Ai0:1' to use the 2 input channels. Then I use the Nchannel Read and split the signal with for example a "Board index".

    But is it possible to change the channel numbers 'on the fly' so when the program is running?

    The same question with the outputs

    When I use the channel to create for outings and I use Ao0:1 to use 2 output channels, can but I change to a single channel when the program is running. Nchan write.vi is used, and this requires 2 channels. The use of a channel will give you an error.

    Is there a nice way to handel this?

    Greetings.

    You can change the output to a level of 0 volts instead of what you read. It should be just a case statement and the writing remains the same.

  • Win 7 has declared illegal and informal... innocent victim and no way out

    My current OS Win 7 was never solicited by me but 'Upgrades' left 'On' and I found that my system Vista 64/32 perfect condition had upgraded to Win7 without me knowing it was going to happen.

    A few months later I find myself being reprimanded by Microsoft to download an illegal version and my authentic Vista is so close! Why should I pay for a BONE again once when I had a system perfectly well installed and Win7 seems he stole with no going back?

    8 years ago Microsoft's own site caused my PC to ventilation irretrievably when he was supposed to give my system a free update: cause a bag full of Trojans and other viruses, because I had to suspend any antivirus protection for free download software. Microsoft you are not as good as you pretend!

    Hey Kevin,

    Thank you for the update.

    I wish to inform you that, in order to get Windows Vista upgrade to Windows 7, you are required to purchase an upgrade key. I don't know how he was automatically upgraded to Windows 7.

    As you mentioned that the music, photos and videos have already been lost, and you have Windows Vista installation product key and the media. You can perform a clean installation of Windows Vista on your computer after successfully backing up all your data to any external hard drive.

    You can check the link for the backup.

    http://Windows.Microsoft.com/en-us/Windows/back-up-files#1TC=Windows-7

    After the backup, you can perform a clean install of vista using the product key.

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • . AVI files play in Windows Media Player, and then begin to stutter.

    Original title:

    This only happens when I actually want to sit and watch something. I find mpg and wmv General files stutter in Windows Media Player. But most other files do, especially avi compressed. I use VLC Player and then he given high priority by the Task Manager to at least reduce stuttering. I also play the mpegs via media player as they stutter loads in VLC. But it is the codec relate, this general stuttering is not codec related... read on. It is not the performance. I killed all the processes under the Sun without result. Any ideas? Win 7 32-bit 4 GB ram Core 2 Duo 2 Ghz SP Secutiry Essentials (killed it too much to try to resolve) the video but its almost as if Windows is something in the background, but does not know what that. Same problem on my dekstop operating under Windows 7 64-bit with 4 GB of ram and a dual core processor. This machine has a Nvidia 9500GT for video acceleration hardware. However, it does not help for all types of files. I was watching a movie the other day and it was fine for the first hour or two. Then the hard drive on my desk light started going mental, video started stutering bad. I raised the priority of the process media player but it only limited effect. I could see no process or high CPU usage or anything to indicate what the bloody thing. So, what the * is Windows do during these periods? How I can sit there and locked up for an hour or two, so I can watch my bloody video? If it was a dog I would enter the * on it until he learned to sit there and not * do anything while I watched my video.

    Hello

    1. is the specific issue in an .avi file?

    2 have you made any changes to the computer, before the show?

    To resolve this problem, use the following methods. After completing the steps in each method, check to see if the issue is resolved before you go to the next method. If the problem is resolved by any method, you do not have to use other methods.

    Method 1:

    Perform a clean boot and check.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Note: Once you are done with the boot, follow step 7 of article to reset your computer to normal startup.

    Method 2:

    Check the hard disk for errors.

    Check a drive for errors

    Important: While performing the check disk on the hard disk, bad sectors are found and if he's trying to repair this area, all available data on the risk of being lost.

    Method 3:

    Run a virus scan and make sure.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Note: All data that are infected can only be cleaned by deletion, which means that there is a risk of data loss.

  • After doing a "clean boot" and then begins a reset, how do I activate the starting aps in the Configuration of the system when the "Activate" button is low?

    I just ran a "clean boot" on Windows 8.  Now, I'm trying to reset my computer but when I enter msconfig - System Configuration - Services - the "Hide all Microsoft Services" checkbox is more verified and the "Disabled" button is available, the button "Activate" is low.  According to the instructions on support.microsoft.com/kb/929135 should show the opposite, and I have to uncheck 'Hide' and 'Activate' all access points.  What can I do to activate the aps and finish reset correctly.

    Hello

    Are you trying to reset the computer to start normally after a boot minimum troubleshooting?

    If Yes, then I would like to inform you that once you select Normal startup under Startup selection all services and startup items will be automatically activated. You just need to restart the computer to start the computer normally.

    Please answer us on the State of the question to help you further.

  • Define/declare dates and use in CTE

    Hi all

    I can't seem to find a solution to my problem, so now I try my luck here

    Basically, I want to define a Start_date and an End_date which I can then use a CTE query like this:

    WITH OPL
    AS (
    Select *
    FROM TBL_OPLAG
    WHERE NR = '11'
         AND OPL_DATE BETWEEN start_date AND end_date
    
    ,REK
    AS (
    SELECT *
    FROM REK
    WHERE NR = '12'
        AND REK_DATE BETWEEN start_date AND end_date
    
    SELECT *
    FROM OPL
    JOIN REK ON OPL.OPL_DATE = REK.REK_DATE
    

    So my question is, how can we make this work?

    Thanks in advance!

    I have now found a solution for this.

    Solution can be found in this thread:

    http://www.orafaq.com/Forum/t/199494/

  • Declarative component and passing variable and resource group

    Hello

    I have the doubt in the component using declarative

    I'm call declarative component as...

    < af:declarativeComponent = viewId "folder/dc.jsff" id = "dc_dc10" > "

    < name f: attribute = "var" value = "Display" / >

    < / af:declarativeComponent >

    In dc.jsff

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:af =" " http://xmlns.Oracle.com/ADF/faces/rich " " > "

    < var af:componentDef = "uploading" >

    < af:xmlContent >

    " < element xmlns =" http://xmlns.Oracle.com/ADF/faces/rich/component "> "

    < description > < / description >

    < attribute >

    < name of the attribute - > var < / attribute name >

    java.lang.String < class attribute > < / attribute class >

    < / attribute >

    < / component >

    < / af:xmlContent >

    Threshold works perfectly...

    "{[< af:outputText id ="dc_ot1"value =" #{bundle ['Display.one]} "]}" / >

    Threshold of does not work...

    Trail 1)

    < af:outputText id = value = "#{bundle ['var.one']}" / "dc_ot1" >

    Reason for not working: var is not taken as a variable

    Trail 2)

    < c:set var = 'temp' value = "#{bundle ['display']}" / >

    < af:outputText id = value = "#{temp.one'}" / "dc_ot1" >

    < / af:componentDef >

    < / jsp:root >

    User, please tell us your jdev version!

    I do not understand your question.

    I understand what you try to do, is to reassess a variable inside an EL. There is no reassessment within an EL (as you have already discovered).

    Why don't spend you the ' #{bundle ['Display.one']} "directly on the declarative component instead of pass the name of the key to read from the package?

    Timo

Maybe you are looking for

  • where is my junk e-mail folder

    Quite simply, I find no junk e-mail.

  • Z575-question

    be a z575 from lenovo with a6-3400 with a 6520g integrated ati and a map 1024ddr3.y 6650 m dedicated ati have seen a lot of control of Russia, Italy, etc. for this laptop model and also tested by myself with gpu - z, aida64, everest, etc. and all the

  • HP Officejet Pro 6830: problem with printhead

    Error message: there is a problem with the printhead I turned printer off and unplugged, rebooted and then same message.

  • H9 SCSI Disk Device

    My desktop computer HP Pavilion HPE h9 - 1215t Phoenix CTO has a hard drive WD 2 .0TB with the C drive, containing the Windows 7 operating system.  There is also a SCSI disk (MTFDDAK2 MTFDDAK256MAM - 1 K). What is the SCSI drive?

  • The printer port?

    You just bought a new T400 and I'm feeling pretty stupid that I can't find the port printer... can someone help me?