Why used my script work?

I'm trying to create a script for a table. I want to generate values of a column from a sequence. However when I run the script it gives me this error. ORA-01722: invalid number. Here is my code.
Drop SEQUENCE SiteCodeSeq;
Drop Table IT220_SiteDetails1;

CREATE TABLE  "IT220_SITEDETAILS1" 
   (    "SITECODE1" NUMBER(3) NOT NULL ENABLE, 
    "SITENAME1" VARCHAR2(30), 
     CONSTRAINT "SITEDETAILS1_PK" PRIMARY KEY ("SITENAME1") ENABLE, 
     CONSTRAINT "SITEDETAILS1_UN" UNIQUE ("SITECODE1") ENABLE
          )
/

CREATE SEQUENCE SiteCodeSeq
   INCREMENT BY 1
   START WITH 101
   MAXVALUE   99999
   NOCACHE
   NOCYCLE;


INSERT INTO "IT220_SITEDETAILS1"("SITECODE1","SITENAME1") VALUES ('SiteCodeSeq.nextVal','Yosemite National Park');
Long term, I want to add some other 'SITENAME1' as well as incrementing the "SiteCodeSeq." for example 101 Yosemite National Park, Xian 102, 103 Seville etc.

Any input would be great, thanks in advance!

You must use:

INSERT INTO "IT220_SITEDETAILS1"("SITECODE1","SITENAME1") VALUES (SiteCodeSeq.nextVal,'Yosemite National Park');

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • Why used my key work for 8.1 windows media creation tool

    I have a valid key of Windows 8 Pro.  I downloaded the media help authoring tool
    http://Windows.Microsoft.com/en-GB/Windows-8/upgrade-product-key-only

    When it prompts me for the key, before it allows me to do something else, I get the following error:
    This product key failed.  Check it and try again.

    It is a valid key that I bought and you want to use.  I have the email receipt and confirmation.  My order number is WD06988653.

    Why is it not work?  I need to reimage my computer and Microsoft is always ridiculously hard things to do.

    There is a special step necessary if you use a product key of Windows 8 to 8.1 Windows Installer Clean which is explained in the link in step 4.

    * Edition

  • Why the apple script works in indesign CS3?

    I made a square, entered in the window > automation > scripts. I clicked on the brand script culture, nothing. Then I read a few threads and seemed more think that if you try javascript that will work, but it didn't for me. I'm in CS3. If anyone can help, I'd appreciate it.

    Stick the 3 lines directly under the line

    Tell application "Adobe InDesign CS3"

    Ralf

  • Why used my password work?

    Recently, I upgraded my computer from windows 7 to windows 8, and it worked fine for a while. Today, I started the computer upward, and when asked my Microsoft account password, I entered correctly, it was rejected by the computer. I have reset the password several times, and made sure that caps lock shift is not on. I don't want to not reset my computer and lose all my files, but I will if I have to. However, I don't want to reset my computer just to encounter the same problem in a few days.

    Hi MatthewWSaunders,

    Thanks for posting in the Microsoft community!

    You have reached the right forum for your question. If I understand correctly, you are not able to connect Windows 8.

    Microsoft will not be able to provide support for the lost passwords. I suggest you to see the following link for more information.

    Microsoft's strategy concerning lost or forgotten passwords

     http://support.Microsoft.com/kb/189126

    Hope this information is helpful and let us know if you need more assistance. We will be happy to help.

  • Why the habit of this script work?

    Hello

    I've used this script to make a portrait scroll bar that works perfectly, however I modified the script to work in a landscape scroll bar by altering the x and the y axis and switching on the height to the width. However a portion of it will not work... The left and right arrows are working properly but the bar scroll do not move and I for the life of me understand why.

    Does anyone have any ideas as to what ive missed or done wrong?

    Thanks in advance

    scrolling = function () {}

    var scrollWidth:Number = scrollTrack._width;

    var contentWidth:Number = contentMain._width;

    var scrollFaceWidth:Number = scrollFace._width;

    var maskWidth:Number = maskedView._width;

    var initPosition:Number = scrollFace._x = scrollTrack._x;

    var initContentPos:Number = contentMain._x;

    var finalContentPos:Number = maskWidth-contentWidth + initContentPos;

    var left: Number = scrollTrack._y;

    var top: Number = scrollTrack._x;

    var right: Number = scrollTrack._y;

    lower var: Number = scrollTrack._width - scrollFaceWidth + scrollTrack._x;

    var dy:Number = 0;

    var speed: Number = 10;

    var moveVal:Number = (contentWidth-maskWidth) /(scrollWidth-scrollFaceWidth);

    scrollFace.onPress = function() {}

    var currPos:Number = this ._x;

    startDrag (this, false, left, top, right, bottom);

    this.onMouseMove = function() {}

    DY = Math.abs(initPosition-this._x);

    contentMain._x = Math.round(dy*-1*moveVal+initContentPos);

    };

    };

    scrollFace.onMouseUp = function() {}

    stopDrag();

    delete this.onMouseMove;

    };

    btnUp.onPress = function() {}

    this.onEnterFrame = function() {}

    If (contentMain._x + speed < maskedView._x) {}

    If (scrollFace._x < = high) {}

    scrollFace._x = top;

    } else {}

    scrollFace._x = speed/moveVal;

    }

    contentMain._x += speed;

    } else {}

    scrollFace._x = top;

    contentMain._x = maskedView._x;

    delete this.onEnterFrame;

    }

    };

    };

    btnUp.onDragOut = function() {}

    delete this.onEnterFrame;

    };

    btnUp.onRelease = function() {}

    delete this.onEnterFrame;

    };

    btnDown.onPress = function() {}

    this.onEnterFrame = function() {}

    If (contentMain._x - speed > finalContentPos) {}

    If (scrollFace._x > = bottom) {}

    scrollFace._x = low;

    } else {}

    moveVal/scrollFace._x += speed;

    }

    contentMain._x = speed;

    } else {}

    scrollFace._x = low;

    contentMain._x = finalContentPos;

    delete this.onEnterFrame;

    }

    };

    };

    btnDown.onRelease = function() {}

    delete this.onEnterFrame;

    };

    btnDown.onDragOut = function() {}

    delete this.onEnterFrame;

    };

    If (contentWidth < maskWidth) {}

    scrollFace._visible = false;

    btnUp.enabled = false;

    btnDown.enabled = false;

    } else {}

    scrollFace._visible = true;

    btnUp.enabled = true;

    btnDown.enabled = true;

    }

    };

    scrolling();

    Even with this reduction, it is at best a tangle of code to try to reason with him.  I think I see you have nested functions at least two levels deep, possibly further because I do not see where the original ends, and the nesting of functions is prevented best, and most often unnecessary...

    scrolling = function () {}

       scrollFace.onPress = function() {}

    this.onMouseMove = function() {}

    }

    };

    };

    Since you're telling the problem is that the scroll bar does not move, it does not move in relation to press the keys or does not move relative to slide.

  • Why used my lifecam vx5500 work? XP - sp3 and ati 2400

    Why used my lifecam vx5500 work? XP - sp3 and ati 2400

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?
    3. do you get an error message?

    Step 1: Try to run the fix it tool to the article below and check.

    Hardware devices do not work or are not detected in Windows
    http://support.Microsoft.com/mats/hardware_device_problems/

    Step 2: Download and install the drivers for the webcam using the link below.

    Drivers, software and documentation of your product
    http://www.Microsoft.com/hardware/en-us/d/LifeCam-VX-5500

  • Why use push and pop where addChild and removeChild can do the same work?

    Why use push and pop where addChild and removeChild can do the same work?

    What is the advantage of the push and pop on addChild and removeChild?

    It depends on what you're trying to accomplish. If you explain more about under what circumstances you would use them, a more definitive answer can be provided.    Push and pop of the work for arrays.  addChild and removeChild work for displayObjects.

  • I have a redemption code, I used now when I logged my cc his watch App still the trial period and if I click on buy now it takes me to buy the plan page but I have already bought the plan. why it is not working?

    I have a redemption code, I used now when I logged my cc his watch App still the trial period and if I click on buy now it takes me to buy the plan page but I have already bought the plan. why it is not working?

    Hello

    Please see -https://helpx.adobe.com/manage-account-membership/cc-reverts-to-trial.html

    Make sure that you are connected to your adobe id.

  • Why won't this script work?

    Well so yesterday I posted a question I had with join InDesign files, I thought that I had found a solution and I was wrong. Nothing is as humbling as script... anyway the gist of what I'm trying to do is trying to combine a lot of InDesign files in a single large document. The problem I encounter is that InDesign crashes. What is strange to me is that a single iteration of this script works oddly, however when I try to do with multiple InDesign files * the bed.

    Any help on the figure, it would be much appreciated.

    System: WIndows 7

    Indy Version: CS5

    (1) selecting a folder.

    (2) get the files.

    (3) open one at a time, and duplicate pages in another document. (Which I call OCD because I basically that is what I want to do with the giant document.)

    (4) close the source file without saving the changes. Pages should not change, but better safe than sorry.

    (5) close the (TOC) destination file and save it with the new pages to this subject.

    inDesign #target

    File = Folder.selectDialog ();

    files = folder.getFiles ("*.") INDD");

    for (var i = 0; i < files.length; i ++) {}

    source_doc = app.open (files [i]);

    destination_doc = app.open (file ("c: / / users//user//desktop//TOC.indd"))

    REST();

    }

    function rest() {}

    sourcePages = source_doc.pages.itemByRange (0, -1);

    sourcePages.duplicate (LocationOptions.AFTER, destination_doc.pages.item(-1));

    source_doc. Close (SaveOptions.no);

    destination_doc. Close (SaveOptions.YES, "c://users//user//desktop//TOC.indd");

    }

    Couple of thoughts: the code is kind of a mess. I don't understand why you are opening and closing of your doc of destination with each iteration, or why you have stuff separated in another function, or why you have not any vars. As a general rule, I try to work on spreads rather than pages where possible. I avoid also itemByRange() because of the strange plural object that it returns. Here's one (in my opinion, in any case) cleaned script:

    var folder = Folder.selectDialog(),
        files = folder.getFiles("*.INDD"),
        destination_doc = app.open(new File("c://users//user//desktop//TOC.indd")),
        source_doc, i, j;
    
    for (i = 0; i < files.length; i++) {
        source_doc = app.open(files[i]);
        for (j = 0; j < source_doc.spreads.length; j++) {
            source_doc.spreads[j].duplicate(LocationOptions.AT_END, destination_doc);
        }
        source_doc.close(SaveOptions.NO);
    }
    
    destination_doc.close(SaveOptions.YES);
    

    See if you have better luck with it.

    Jeff

  • Why this simple script script does not work

    I'm pretty new to actionscript, I have learned from books, in fact I still am.

    The script that I'll try to work on my site, worked well in the teachings of the books.

    I don't think that my buttons are different, but why don't they work then.

    Can someone figure this.

    my script:

    Stop();

    whoweare.addEventListener (MouseEvent.MOUSE_UP, onNavigate);

    function onNavigate (evt:MouseEvent): Void {}
    gotoAndPlay ("contact");
    }

    whatwedo.addEventListener (MouseEvent.MOUSE_UP, onNavigate);

    function onNavigate (evt:MouseEvent): Void {}
    gotoAndPlay ("slideshow");
    }

    Error: the class or interface 'MouseEvent' could not be loaded.

    Help?

    Dirkhou,

    void not Void in AS3

  • Is it possible to use a Script in action? -It doesn't seem to work...

    Is it possible to use a Script in action? -It doesn't seem to work...

    I use the script "around any corner" of SATO Hiroyuki..., and I want to apply to only one anchor (on multiple boxes)

    An Action can call a script in the file > Scripts menu through the point of Menu Add Action step. But it works only for the duration of your Illustrator work session. IF you exit and then restart, the add step Menu item will be empty. This bug has been reported for the COMPLETE FOUR VERSIONS of this botched program.

    However, if I understand your description of what you're trying to automate an Action won't able to automate the selection of a particular anchorpoint several paths. You will need to perform the selections at the beginning. If the script would then apply as you wish to each path depends on the way in which the script is written.

    JET

  • Why use the symbol {} in the following script?

    Why use the symbol * {} * in the following script?
    < reading-writing-support-map-plan >
    < scheme name > SampleDatabaseScheme < / system-name >
    < internal-cache-system >
    < local plan >
    < system-Ref > SampleMemoryScheme < / plan-ref >
    < / local plan >
    < / internal-cache-system >
    < dumps-plan >
    schema < class >
    > class name < com.tangosol.examples.coherence.DBCacheStore < / class name >
    < init-params >
    < init-param >
    java.lang.String < param-type > < / param-type >
    * < {cache name} param-value > < / param-value > *.
    < / init-param >
    < / init-params >
    < / class-system >
    < / dumps-plan >
    < / reading-writing-support-map-plan >


    Thank you very much

    Published by: jetq on June 24, 2009 18:26

    Hi Frank,.

    In the example, the '{cache-name}' is supposed to be replaced by a table name or view of data that is queried for the cached data. Its purpose is show how to pass parameters to the constructor of class.

    Kind regards

    Harv

  • power cli script works does not in 5.5-was prior work

    I am trying to perform actions on the virtual machines that reside in a csv file.    Here's what I have:

    to connect-viserver $vcenter

    foreach ()$_.name in ("Import-Csv " "$ENV: USERPROFILE\Desktop\vm_list.csv ' -UseCulture)) { }

    $VM = Get-VM $_. name

    Get-VM $VM | Where {$_. PowerState -eq "PoweredOn"} |

    Select Name, Host, NumCpu, MemoryMB,

    @{N='Cpu.UsageMhz.Average';} E={[Math]::Round((($_ | Get-Stat -Stat cpu.usagemhz.average -Start Get-Date(). () AddHours (-24) -IntervalMins 5 -MaxSamples (12) | Measure-object Value -Average). Average) , 2 )}},

    @{N='Mem.Usage.Average';} E={[Math]::Round((($_ | Get-Stat -Stat mem.usage.average -Start Get-Date(). () AddHours (-24) -IntervalMins 5 -MaxSamples (12) | Measure-object Value -Average). Average) , 2 )}} `

    | Export-Csv c:\Temp\stats.csv

    }

    NOTE - If I get rid of the thing whole 'foreach' script works fine Get - VM and down by removing the $VM variable)

    But I want to get the data of perf for VMs on my list, not only of each of them via the GET - VM against the whole vcEnter.

    Any ideas why it's a failure?   in 5.0, I ran a script that mobilized the "foreach" exactly as you see above and it worked great.  Now we are at 5.5 is more does not work.

    Output showing the errors that have baffled me:

    C:\Users\kwg\Desktop\test2.ps1:8 tank: 12

    + foreach ($_.name in (Import-Csv "$ENV:USERPROFILE\Desktop\vm_ip.csv")

    -UseCulture...

    +            ~

    Missing 'in' after variable in the foreach loop.

    C:\Users\kwg\Desktop\test2.ps1:8 tank: 83

    + ... "- UseCulture)) {}".

    +                    ~

    Unexpected token ')' in expression or statement.

    + CategoryInfo: ParserError: (:)) [], ParseException Exception)

    + FullyQualifiedErrorId: MissingInInForeach

    Not sure why you use the pipeline variable ($_____) in the foreach loop?

    There is no need to use a ForEach loop actually, you can pass several names for the Name parameter on the Get - VM cmdlet.

    And then you use the pipeline at its maximum.

    I would like

    to connect-viserver $vcenter

    Get-VM-name (Import-Csv "$ENV:USERPROFILE\Desktop\vm_list.csv" - UseCulture | % {$_.}) Name}) |

    Where {$_.} PowerState - eq "Receptor"} |

    Select Name, host, NumCpu, MemoryMB,

    @{N = "Cpu.UsageMhz.Average"; E = {[Math]: round ((($_ |))} Get-Stat - Stat cpu.usagemhz.average - Start (Get-Date). AddHours(-24)-IntervalMins 5 - MaxSamples (12) | Measure - Object - average value). Average), 2)}},

    @{N = "Mem.Usage.Average"; E = {[Math]: round ((($_ |))} Get-Stat - Stat mem.usage.average - Start (Get-Date). AddHours(-24)-IntervalMins 5 - MaxSamples (12) | Measure - Object - average value). Average), 2)}} |

    Export-Csv c:\Temp\stats.csv

  • My script works with a #1009 error?

    Hi all

    I spent so much time trying to understand and I do not understand, I have this script where the error #1009 is displayed continually, the stange thing: my script works correctly and I want to get quotes off the coast of this error. When my script is 'correct', which means, no more errors appear, the script does not work with the external swf. The target of the red error 'movie01' in the script, but this reference was already used successfully, why not this one?

    This script works but with the error #1009:

    var movie02:Loader = new Loader();

    movie02. Load (new URLRequest("test/seq.swf"));

    addChild (movie02);

    movie01.addEventListener (Event.ENTER_FRAME, seq01);

    function seq01(main:Event):void {}

    var movie01:MovieClip = main.target.content;

    If {(this.currentFrame is 15)

    movie01. Play();

    }

    If (movie01.currentFrame == 150) {}

    This.Stop ();

    }

    }

    Thank you

    Alain

    :

    var movie01:Loader = new Loader();
    movie01.contentLoaderInfo.addEventListener (Event.Complete, LoadComplete);
    movie01. Load (new URLRequest("test/seq.swf"));
    addChild (movie01);

    movie01.contentLoaderInfo.addEventListener (Event.Complete, LoadComplete);
    function loadcomplete(e:Event) {}
    movie01.addEventListener (Event.ENTER_FRAME, seq01);
    }

    var exectedPreviously:Boolean

    function seq01(main:Event):void {}
    var mc:MovieClip = MovieClip (main.target.content);
    If (this.currentFrame == 15 &! executedPreviously) {}

    executedPreviously = true;
    MC. Play();
    }
    If {(mc.currentFrame is 150)
    This.Stop ();
    }
    }

  • Why most of the work has disappeared from the artist list in the update of iTunes 12.5.1 and 10 IOS and how I get it back?

    Update to the latest version of iTunes on my iMac and update my iPhone to IOS10 why most of the work in the list of artist in my iTunes library disappeared, and how do I get it back?

    Hello

    If you use iTunes game, try here > get help with iTunes - Apple Support

Maybe you are looking for

  • If I remove a MBP drive can I access data?

    On a recent trip, I fried logic board in my MBP 4 year. I don't know if the hard drive is still ok, but it can be. I think to remove the hard drive and put it in a box of HDD external (or whatever we call them). But the drive was encrypted with filev

  • HP ENVY dv6t-7300 'your windows license will expire soon.

    product #: C2Y46AV Laptop: HP ENVY dv6t-7300 CTO Windows: 8.1 Error message: "your windows license will expire soon. I bought the laptop from Costco in 2012. It works well until a week ago, when this particular error message kept popping up. He says

  • Network with the Imac and W-Vista

    I want to create a network with my new Imac. being the center of the network. I have OS Snow Leopard on Imac. The computer windows vista laptop will be the 2nd computer.

  • p 15-112ne: support of hp Pavilion 15-p112ne maximum ram

    Please tell me on my computer hp laptop p-112ne Max Memory Support...

  • error code 'tv_ConfigMgrErr31' for Microsoft ISATAP

    The performance report said that Microsoft ISATAP Adapter does not work on my Vista 32 bit, Home Premium edition, SP2, ASUS laptop. One of the solutions (I tried to manually update the driver already) said to uninstall and then reinstall using the De