creation and use of sequence within a proc

Hi the gems... Good afternoon...

I know that we can create a sequence inside a proc. That I created, but when you use this sequence in the same process, it gave me error:
SQL> DECLARE
  2  L_LINE VARCHAR2(1000);
  3  BEGIN
  4  EXECUTE IMMEDIATE 'CREATE SEQUENCE SANDY_SEQ MINVALUE 1 START WITH 1 MAXVALUE 100000 INCREMENT BY 1';
  5  FOR I IN 1..1000
  6  LOOP
  7  L_LINE:='HI, I AM NUMBER'||SANDY_SEQ.NEXTVAL;
  8  DBMS_OUTPUT.put_line(L_LINE);
  9  END LOOP;
 10  END;
 11  /

 
ORA-06550: line 8, column 28:
PLS-00201: identifier 'SANDY_SEQ.NEXTVAL' must be declared
ORA-06550: line 8, column 1:
PL/SQL: Statement ignored
I grant this user the CREATE SEQUENCE.

Cant, we use the same sequence in the proc where it was created.

Help, please... Thanks in advance.

Published by: gogol on August 21, 2012 03:00

If you create a sequence dynamically, you must also select dynamically.

 DECLARE
  L_LINE VARCHAR2(1000);
   v_number number;
  BEGIN
 EXECUTE IMMEDIATE 'CREATE SEQUENCE SANDY_SEQ MINVALUE 1 START WITH 1 MAXVALUE 100000 INCREMENT BY 1';
 FOR I IN 1..1000
  LOOP
execute immediate 'select sandy_seq.nextval from dual' into v_number;
 L_LINE:='HI, I AM NUMBER '||v_number;
  DBMS_OUTPUT.put_line(L_LINE);
  END LOOP;
  END;
 / 

Published by: Keith Jamieson on August 21, 2012 11:02

Tags: Database

Similar Questions

  • OpenSSL with 'Cisco VCS Certificate Creation and use - deployment guide. "

    Hi team,

    To prevent users to log on with the VCS Highway, we want to use OpenSSL (version: 1.0.1p 9 julio 2015), but I am facing the following problem:

    1 - I can't implement the command "touch index.txt".

    2 - I can´t implement the command "openssl genrsa-aes256-out private/cakey.pem 4096"; and when I apply these commands I get "OpenSSL is not recognized.

    I did all the steps that says "VCS certificate creation and use Cisco".

    What could be the matter?

    Thanks for your advice.

    Kind regards

    Bill

    Already explained why touch does not, simply create the .txt through windows command file.

  • The document has been changed since its creation and use of the extended functionality is no longer available

    I have Adobe Acrobat Reader DC 2015.016.20039 on my system. I filled a form using Foxit Reader. When I tried to open the form with Adobe Acrobat Reader DC I received the error "the document enabled extended in Adobe Acrobat Reader DC features. The document has been changed since its creation and use of the extended functionality is no longer available. Please contact the author for the original version of this document.

    I tried other PDF programs, no problem at the opening of this form.

    Ashampoo_Snap_2016.05.17_02h01m01s_002_.png

    Function "Activation reader" comes from the original shape, and it's essentially a digital signature. It is specific for the free product of Viewer PDF by Adobe (aka Adobe (Acrobat) Reader).

    The problem is that only Adobe products are able to (re) make these documents without breaking the seal of the digital signature.

    So, what happened in your case is the Foxit Viewer broke the seal during the recording of back and what's. Using Acrobat, you can save a copy of the form, and then continue will fill. Otherwise, you will be better off to start over, but stay with viewers Adobe PDF all the time, working with the form, or with a different Viewer, once again all the time you work with the shape.

    BTW, player XI and most recent no. have more need of extended for more rights blocked by previous versions of Reader. This is not enough in this case; only, it would be useful for the sender of the form.

    Update (after rereading of the original message): if it's just for viewing or print the form, you can ignore this message. You can also try to save just, you have a version of player who no longer has the rights extended (at your risk).

    I hope this can help.

  • I'm 7 days in LR to the trial. After creation and 'use' to develop to edit 6 catalogues, I find without changing this or that all catalogs when opening, now have a bright red nail in different areas of the photos in the catalog. Some of the

    I'm 7 days in LR to the trial. After creation and 'use' to develop to edit 6 catalogues, I find without changing this or that all catalogs when opening, now have a bright red nail in different areas of the photos in the catalog. Some of the catalogues have been created several days ago and were considered OK, but now this 'red' hue appeared in all the catalogues without any intervention by me.

    I don't know why you create several different catalogs. Lightroom is managed much more efficiently using a single catalog. But regardless of this issue, it seems that if you have enabled clipping indicators. Pressing the J button makes the point high and indicators on shadow clipping or out of service. Or you can click on the small square in the upper corners of the histogram. Clicking the square to the left turns clipping shadow power. Clicking the square to the right will turn point highlight clipping power. I leave switched indicators so that I can identify areas that need to be adjusted so that I can eliminate all clipping.

  • UDF creation and use for self-service requests

    Hi all

    I am currently using OIM 11 g (11.1.1.3.0) and I had a feature working before, but now I can't remember what I did to make it work...

    I created two fields that are defined by the user and authorization policies associated with them so that I can view (at least since the creation of the direct user via Xelsysadm). I can't, however, view these attributes in a self-service basis 'Create User' or 'Edit user' for the life of me.

    My ultimate goal is to be able to see these attributes on forms (direct creation of the user, creating self-service user) and ultimate make both required (via changing the CreateUserDataset.xml in metadata).

    When I run WeblogicExportMetadata.bat, I get off the elements of the IOM, but attributes that are not visible on the self-service application dataset are not the CreateUserDataset.xml (which is a given). How to enable these attributes to be on this form?

    Also, should what xml metadata I change so that my custom attribute is required on the direct creation page in the administration console?

    Thanks in advance!

    Can you post your dataset xmls here so that we can check.

    -BB

  • Why has long lead times of creation and use of titles?

    I use Adobe CC body. When I create a title, it takes maybe 10 seconds to load the module of titration. When I preview the video, the image is often frozen for a few seconds, then displays. What could be the cause of the delays? What is the 'power' of the video card?

    Ok.

    Something is not right with your system, even if I really know what.  Nothing is permanent as a plausible explanation here.

    The best estimate I have at this point is your CPU.  It has integrated graphics, and there have been problems in the past when using such a processor.  The ideal is an Intel CPU without built-in graphics combined with an nVidia GPU.  I'm a bit skeptical, it's actually the cause here, but... it's the only thing I can see that could be 'wrong' (so to speak).

  • Creation and use of buttons in InDesign - help!

    InDesign CS5 (V7.0.3), Mac 10.6.8

    I have a 23 page InDesign document. At the bottom left corner, I have a button to go to the previous page, in the Middle at the bottom I have a button to access the table of contents on page 2, bottom right I have a button to go to the next page. I export to PDF (interactive). When I open the PDF for the go to the next Page is located in the middle of the document and pass it to the Table of contents is at halfway off left hand side of the document (the go to the previous Page is not visible). Any thoughts?

    Screen shot 2011-09-06 at 9.13.20 AM.pngScreen shot 2011-09-06 at 9.13.39 AM.png

    Try to restore your preferences:

    http://forums.Adobe.com/thread/526990

  • Need help! Re: Sequence Presets understanding & settings + using multiple sequences!

    Hi, I'm newer to Premiere Pro (using the new version of Pro obtained in March 2010 on a PC) and watched all the tutorials (lots of video) and read a LOT about the subject! And I have answered several questions about mine. But there is one main thing (that I'll probably have to divide it into 2 or more questions) that I just got a complete knowledge & really your expert need help on!

    Thank you very, VERY MUCH! Really...

    I have designed/product audio (music) for a while now and when you start a new session just, you select your sample rate & are locked in for the most part therefore... Pretty simple... Now with Pro, when you start your new session, you choose your Preset sequence. Now for this first project, a video clip (3 minutes), the audio is done (as I said) and for the clip, we use images from several sources including: maybe 55% compared with a mini-camera DV, 40% of the .vob files right & the remaining 5% of some mpeg files + a few YouTube videos (we only have it our preserved images of front on YouTube) + some JPEGs (still images). And we plan to export the final video on YouTube and the internet. And we want also ready to be broadcast on both television (MTV, some media, shows, etc.). And Yes, we will also use it on cell phones (even if it is the least important right now). So 3 main exports (which I believe are all made at the end through media encoder).

    • But to choose the right Preset sequence at the beginning, I am confused, unfortunately.   I

    Believe you choose the one that best fits to of your assets sizes & frame rate [in this case, which is a camera film regular DV; & mediainfo said the .vob file = 720 x 480 (4:3) to 29.970 fps MPEG video (NTSC), one of the shots (of our) YouTube = 480 x 270 (16:9) at 29.970 fps STROKE, a MPEG = 352 x 288 (4:3) at 25.000 fps and 2 examples of jpeg = 300 x 400 (size = 57 KB)] and another = 720 x 450 (size = 100 KB)]. So if I am wrong in my assumption on the choice of a pre-defined sequence just on the best corresponds to the your assets rates & sizes, I would choose (I think): DV-NTSC Standard 48 kHz (the 48 just to 41 over our audio sampling frequency). 

    And if all goes well, it is excellent for our export needs YouTube at the end of the process the video & tv as well!

    .. . Is this correct?

    Can I choose the predefined sequence that best matches most of the sizes/frame rate of your assets?

    * And ESPECIALLY... is CE Preset of the sequence is the BEST for this current music video (based on the sources of our assets & where it will be considered when it is finished - mainly of YouTube, & also some TV [for media and broadcasting] - probably on a DVD, I guess)?

    Or I'm wrong, & it (your Preset Sequence) depends on your final product & the output?

    My friend (who admits that he is no expert in some way) explained that I would probably go with HDV 1080 p 30 as this will give a much better value for my release. But after he saw the results in Pro with this setting for my property, he agrees with MY above conclusion instead. 

    When you use the DV - NTSC Standard 48 kHz preset, I saw the asset in the Source monitor Panel (& then dragged the clips to the timeline) & seen in the finale of "Project Monitor" (I think it is called). And they looked decent in this final screen (where I'll crop & use some shared screens sometimes). 

    And when I used his suggestion of 1080 p HDV 30, assets looked ok in the Source monitor Panel (I think), but very little in the final project monitor. 

    • And led me to another big question - when you use the jpeg format which is 1280 x 960 e.g. (largest

    as the previous ones) in the Standard DV NTSC 48 kHz preset, happening in the Source monitor. But when you drag it down to the timeline and view it in the program monitor, the head was cut off, etc. and of course, when you use instead the HDV 1080 p 30 preset, as larger jpeg even adapt very well in the in the program monitor. Now, I understand that this is because the size of the frame (dimensions) close match those of the HDV preset. I get it. What none of us got was however WHY in the DV - NTSC Standard 48 kHz preset, he looks very well in the Source monitor Panel (but not in the program monitor)? (The two were simply put to 'Fit'). We thought he not would not have looked at well & fit fine and complete source of follow-up at first - but that's the difference between this largest jpeg display when it is displayed in two different monitors that really confused us!

    • And the final main confusion on this topic lies in something, that a technician in Adobe, tell us, informing that

    We can create multiple sequences. Now, I saw How to do this in the project Panel, but it's really the full understanding of the workings that we don't get. The tech said: "each sequence MUST have the good frame rates, sizes of images." Ok, you understand - understood. And he said: we can be: convert the size of the image (of this large jpeg example, say reducing) to match the predefined video frame size. But in this way, we would lose the quality (jpeg - assets). And he says: - or - you CAN use multiple sequences for different sources & when everything is completed (the whole video), I just export it them all as a single project! And I have that a sequence may be getting the DV preset (with the heights of these assets corresponding closely to this preset) and another sequence (in the same project) can be the HDV preset (with the heights of remaining assets corresponds closely to the preset instead). , But he couldn't explain was: how you can view your entire music video (3 minutes) in its entirety in Pro. It seems that when you choose a 2nd sequence, it obviously creates on the timeline, and assets that you put in the 1st (DV) timeline is completely separate from the 2nd (HDV) timeline. And you get no display either at the same time (because they are distinct sequences). 

    So... is this true?

    Are we supposed to use multiple sequences within our project to clip one of the assets with a higher (or other) image size/rate?

    And you export sequences as a final clip?

    And if so, HOW the world watch you your video chats (in the monitor of the project with all of your changes - as you change) when you use more than one sequence?

    Sorry, it seems quite stretched out, but I want to answer your questions you can in turn have for me & be clear so I can finally receive clarity on this topic!

    I know it's much, but if you could address all of the above questions (more background or discussion - is but a handful of issues in there), you have my gratitude... we were afraid to start the part of the video of this project is NOT know what sequence preset start with (as "we don't want to be locked into the wrong choice & waste weeks of editing), let alone a good understanding of the 'why' or the ramifications!

    Thank you so very, very well... You have no idea how...

    Rendering is done on a basis as needed. If we do a complex animation with keyframes, or if they have odd source files, they could do. For keyframe animations, I could make this section of the timeline of a dozen or more times. Otherwise, maybe not.

    Rendering is the production of AV files, just for reading. They take a lot of space and will take a while. It's one of the reasons that a Publisher must familiarize themselves with the WAB (work area bar), so that they do things like rendering for all what they might need. Tip: remember to put this back to the full timeline.

    Good luck

    Hunt

  • How capture and save a sequence continues to images using NI 1422 LVDS card capture, through Measurement & Automation Explorer?

    It is possible to capture and record a sequence of images with a LVDS OR 1422 EZMaker using Measurement & Automation Explorer?  Everything is installed correctly and running and I am able to use the "Snap" command to save an image, as well as the 'Grab' command, but it seems that you must stop the dump command before you can save anything, and it only allows you to save the final image.  Is there a way to record a sequence that is being caught, or should I use LabVIEW or other additional software to do this?

    Kind regards

    James S.

    Hello James,.

    You will need to LabVIEW or another environment development in order to record a sequence of images. If you have LabVIEW and the Acquisition of Vision software, you will be able to capture and save images in an AVI file. There are examples that come with the Acquisition of Vision software that can do this.

    I hope this helps.

  • No related video and audio when using a sequence of nest in the source Panel and try to insert a clip in the timeline

    When I use a sequence of nest in the source Panel and try to insert a clip in the timeline, the video and audio are not related. Before this update (2015.1), I did not have this problem.

    Issue.png

    Hi Daniel,.

    I can confirm this matter and will get a logged bug. It is a pain, but after having been published in the sequence, select the audio and video components, right click and select 'Link' to link the components between them. Sorry for the inconvenience.

    Colin

    First Pro EQ

  • I accidentally hit command + w on my calendar and my closed sequence. When I drag my return sequence in my editing is so more videos... Please can someone pick me up in individual videos within the sequence?

    I hit accidentally command + w on my calendar and my closed sequence (and I haven't recorded manually). When I drag which seems to be my return sequence in my editing that is no longer in videos... Please can someone pick me up in individual videos within the sequence? ! ?

    button "insert and overright sequences such as nests or clips of everything."

    sequence - top of the page to the left panel just below the timecode display

    Adobe Premiere Pro help. Edit sequences in the Source monitor

    the link above should explain

  • The use of sequence and generate the number in a table that has data

    Hello

    There is a custom table that has a column Rowid (NULL).
    This table already has 10 k with rowid as null lines, now the user asks me to enter a unique number for the Rowid.
    I created a sequence, but don't know how to use this sequence and generate numbers for the Rowid.

    Could you suggest.

    Thank you.

    "rowid" is an oracle reserved word and should be avoided. Perhaps "Rowid" between quotes or something.

    Here's how to "fill" a column by a sequence:

    SQL> create table t (id number, value varchar2(100));
    
    Table created.
    
    SQL> insert into t (value) select object_name from all_objects where rownum <= 10000;
    
    10000 rows created.
    
    SQL> create sequence idgen_sequence;
    
    Sequence created.
    
    SQL> update t set id = idgen_sequence.nextval;
    
    10000 rows updated.
    

    Given that the sequence was used all the 'id's will be unique.

  • How to read a variable main.swf (this content.swf of load) and use within the loaded movie?

    Hello

    How to read a variable main.swf (this content.swf of load) and use it within the content.swf?

    I have a variable called TextColor = 'Green' handmade film and I want to read this variable from inside the content movie?

    anyone can help!

    Thank you very much.

    MyGiantBrain thanks for your reply but kglad method worked very well.

    Thanks kglad but there is some changes to your code so that it works, and it is:

    trace (MovieClip (parent.parent) ["TextColor"]);

    Thank you

  • Save and reuse a sequence of effect

    I would like to save and reuse a sequence effect in FCPX. Can I do it?

    mnstudio wrote:

    I would like to save and reuse a sequence effect in FCPX. …

    something like disucssed here?

    Registration of composite clip - how?

    Alternatively, use

    cmd + c to copy the effects to a clip

    cmd-shift-v to paste it all / or a selection of these effects of other clips.

  • Date of creation and the Date of importation

    When you import photos or video in the Photos to a folder, the application uses the date of importation of integration rather than the original creation date.  The result is that imports are all presented together under "Today."  Many photos and video taken on different dates, so I would only they listed according to date of creation rather than be grouped under the date of importation.  I went 'View' and checked "date of creation".  Photos don't work with "SORT" because it is always grey.  Any help would be greatly appreciated!

    If you look in the window of Photos photos and videos are sorted by date with the oldest items at the top.  This sort order cannot be change.

    In the pictures window, the elements are sorted by the date imported into the library with the oldest at the top.  The sort order cannot be changed here either.

    So, you can use a smart album to include all your photos in the library and then sort them one of these ways:

    The smart album could be created to this criterion:

    that would include all the photos in the library.  Now you can sort them as you like.  Just make sure that the date is early enough to catch all the photos in the library.

    Moments in Photos are new events, i.e. groups of photos sorted by date of catch.

    When the iPhoto library has been migrated first to the pictures there is a folder created in the box titled iPhoto events and all migrated iPhoto events (which are now Moments) are represented by an album in this folder. Use the Command + Option + S key combination to open the sidebar if it is not already open.

    NOTE: it has been reported by several users that if the albums of the event are moved in the iPhoto Library folder in the sidebar, they disappear.  It is not widespread, but several users have reported this problem.  Therefore, if you want to if ensure that you keep these event albums do not transfer out of the iPhoto events folder.

    Is there a way to simulate events in pictures.

    When new photos are imported in the library of Photos, go to the smart album last import , select all the photos and use the file menu option ➙ New Album or use the key combination command + N.  Call it what you want.  It appears just above the folder to iPhoto events where you can drag it into the events in iPhoto folder

    When you click on the folder to iPhoto events, you will get a window simulated of iPhoto events.

    Albums and smart albums can be sorted by title, by Date, with the oldest first and by Date with the most recent first.

    Tell Apple what missing features you want restored or new features added in Photos Photo-Applefeedback.

Maybe you are looking for

  • Strange problem with the opening of FaceBook

    Hello When I connect Facebook with my own account, patients of the page loading style mode. But the strange Hat if I sign with my account of a friend, everything will be OK. Another thing when I connect with my own account firefox will show me a mess

  • How to restart the Satellite A100 after update BIOS to version 6.00?

    I've updated my BIOS to version 6.00, but when restarting my Toshiba Satllite the BIOS shows me an error:"No TPM or TPM has problem.The ram test has passed but I can't get into Setup and BIOS freeze after the RAM testDo you understand what the proble

  • can not pass a power on password request

    I'm trying to revive my dad's laptop computer.  My father is an old man and he forgot all his passwords.  When I turn it on, it asks an admin password or power on password, neither of which I have.   The laptop is a HP G62 340us, model: XH066UAR I ge

  • Windows Vista KB2887069 update installs, error code: 80070233

    I think I downloaded successfully several more recent updates that made the update of obsolete KB2887069.  Because I have successfully downloaded KB2887069 still could not install it because it becomes obsolete compared to my other updates downloaded

  • Want DV6-7300ea problem of updating Bios with SSD

    Hello Recently, I swapped my HARD drive to the STRANGE Bay and put an SSD in the startup location.  Everything works fine until it was update the BIOS to the new version F.26.  After having downloaded the update and run the .exe, the computer restart