No LIMIT set in parameter loop index?

Hello
Adam in my DB procedure that performs a loop through "a number range (I / p param)..." Does a logical operation... and then inserts these values into a table...
It worked well when a smaller range was adopted. But if the range is passed 11-digit it throw error: "ORA-01426: digital overflow.

The code snippet where his default: -.
BEGIN

FOR I IN 10010010010 + 1... 10010010013
LOOP
DBMS_OUTPUT. PUT_LINE (I);
END LOOP;

EXCEPTION
WHILE OTHERS THEN
DBMS_OUTPUT. PUT_LINE (SQLERRM);
END;

Can any lemme know plss if there is no defined limit on the parameter index in a loop?

Thank you
Siham

>
I tried using while and LOOP statements too. But it did not work.
>
8-0

SQL> declare
  2  t number :=10010010010+1;
  3  t_end number := 10010010013;
  4  i number;
  5  begin
  6    i:=t;
  7  while ( i<= t_end)
  8    loop
  9      dbms_output.put_line(i);
 10      i := i+1;
 11  end loop;
 12  end;
 13  /

10010010011
10010010012
10010010013

PL/SQL procedure successfully completed

SQL> 

See also http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#i22289

Published by: Alexandr November 30, 2011 09:30

Tags: Database

Similar Questions

  • All parameter memory index for Oracle text indexes

    Hi Experts,

    I'm on Oracle 11.2.0.3 on Linux and have implemented Oracle Text. I'm not an expert in this area and need help on a question. I created the Oracle text index with the default setting. However, in a white paper of oracle, I read that the default setting is perhaps not good. Excerpt from the white paper by Roger Ford:

    URL:http://www.oracle.com/technetwork/database/enterprise-edition/index-maintenance-089308.html

    "(Part of this white paper below. )" ...)

    Index memory as mentioned above, $I entries cached emptied out on the disk each time the indexing memory is exhausted. The default index to installing memory is a simple 12MB, which is very low. At the time of creating indexes, users can specify up to 50 MB, but it is still quite low.                                   

    This would be by a CREATE INDEX, something like statement:

     CREATE INDEX myindex ON mytable(mycol) INDEXTYPE IS ctxsys.context PARAMETERS ('index memory 50M');  

    Allow index of the parameters of memory beyond 50 MB, the CTXSYS user must first of all increase the value of the MAX_INDEX_MEMORY parameter, like this:

     begin ctx_adm.set_parameter('max_index_memory', '500M'); end;  

    The parameter memory must never be high point causes paging, because this will have a serious effect on indexing speed. The smallest of dedicated systems, it is sometimes advantageous to temporarily reduce the amount of memory consumed by the Oracle SGA (for example by reducing DB_CACHE_SIZE and/or SHARED_POOL_SIZE) during the index creation process. Once the index has been created, the size of the SGA can be increased again to improve query performance. & quot;

    (End of the excerpt from the white paper)


    My question is:

    (1) to apply this procedure (ctx_adm.set_parameter) obliged me to log on as user CTXSYS. Is this fair? or can it be avoided and will be based on the application schema? The CTXSYS user is locked by default and I had to unlock it. Is this OK to do it in production?

    (2) what value I should use for the max_index_memory there are 500 MB - my SGA is 2 GB in Dev / QA and / 3 GB in the production. Also in the creation of the index which is the value should I set for the parameter memory index - I had left to default, but how do I change now? Should it be 50 MB as shown in the example above?

    (3) the white paper also refer to the reconstruction of an index to an interval like once a month: ALTER INDEX DR$ index_name$ X REBUILD online;

    -Is this good advice? I would like to ask the experts once before doing this.  We are on Oracle 11 g and the white paper was drafted in 2003.

    Basically, while I read the book, I'm still not clear on many aspects and need help to understand this.

    Thank you

    OrauserN

    Index entries are built in memory, and then flushed to disk, memory is exhausted. With a setting of high index memory will mean the index entries can be longer and less fragmented, which provides better performance of the query.  Conversely, a small memory parameter index will mean emptied the disk pieces are smaller, so queries (especially on common words) will have to do a lot more e/s to extract several pieces of index for the words.

  • USE loop index - how?

    Can I follow the UUT in WatchExpression loop index in the execution of my order?

    In short, I want to see how much DUT I already have.

    Thank you

    Fomin

    Hello

    did you try this expression 'RunState.Root.Locals.UUT.UUTLoopIndex '?

    A2

  • ORA-00904 PLS-00364: loop index variable

    Hi all

    create the table xxc_cust_id (cust_id number);

    insert into xxc_cust_id values (1)

    create table xxc_child (id number, part varchar2 (20), amount number);

    insert into xxc_child values (1, "Replaced processor", 1500)

    insert into xxc_child values (1, 'Replaced mouse', 200)

    insert into xxc_child values (' 6, ' mouse replaced ', 200)

    create table xxc_parent (ID, cust_id varchar2 (10));

    insert into xxc_parent values (1,1)

    insert into xxc_parent values (6.1)

    Select * from xxc_parent

    ID CUST_ID

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

    1 1

    6 1

    Select * from xxc_child

    AMOUNT OF PART ID

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

    1 processor replaced 1500

    1 mouse replaced 200

    6 mouse replaced 200

    Select * from xxc_cust_id

    CUST_ID

    --------

    1

    I need

    CUST_ID PLATE

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

    1                     1900

    to insert data into the table xxc_details

    CREATE OR REPLACE PROCEDURE XXC_SUM_DETAILS

    IS

    CURSOR c_1

    IS

    SELECT Cust_id

    OF xxc_cust_id

    ORDER BY cust_id.

    CURSOR c1

    IS

    SELECT a.cust_id, SUM (sum) total_sum

    Xxc_parent a, xxc_child b

    WHERE a.id = b.id

    AND cust_id = c_cust_id.cust_id

    GROUP BY a.cust_id;

    BEGIN

    FOR c_cust_id IN c_1

    LOOP

    dbms_output.put_line ('Enter');

    C_rec IN C1

    LOOP

    BEGIN

    INSERT INTO xxc_details (part_id, total_amount)

    VALUES (c_rec.cust_id, c_rec.total_sum);

    COMMIT;

    END;

    END LOOP;

    END LOOP;

    END;

    LINE/COL ERROR

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

    10/9 PL/SQL: statement ignored

    12/42 PL/SQL: ORA-00904: "C_CUST_ID." "" Cust_id ": invalid identifier

    21/13 PL/SQL: statement ignored

    22/41 PLS-00364: 'C_REC' use the loop index variable is not valid

    22/47 PL/SQL: ORA-00984: column not allowed here

    In this case you cannot include the sequence directly in the GROUP BY in the query part, that you can group on sequences or the aggregated.

    He must ignore the sequence to a higher level, the group so that it is assigned to each row that will be inserted in the sub-sub-group by query to...

    INSERT INTO xxc_details (details_id, cust_id, total_amount, CONTRACT_NUMBER)

    Select DETAILS_ID_SEQ. NEXTVAL

    cust_id

    total_sum

    quantity

    from (select a.cust_id,

    Total_sum SUM (b.amount),

    d.amount

    Xxc_parent a.,

    b xxc_child,

    xxc_cust_id c,

    xxc_sum_acc d

    where a.id = b.id

    and c.cust_id = a.cust_id

    and c.cust_id = d.cust_id

    AND contract_type = 'AML.

    and not exists (select 1

    of e xxc_details

    where c.cust_id = e.cust_id

    )

    GROUP BY a.cust_id, d.amount

    );

  • How can I limit the amout of loops in my animated film

    I appreciate the opportunity to tick a box to ad loops but I can't for the life of figure me out how to limit the number of loops. Much necessary in web advertising.

    Help, please! I need two times in a loop. That's all. and what worked on board does on anime.

    Thank you!

    put this on the last frame of your animation.

    {if(!this.alreadyExecuted)}

    this.alreadyExecuted = true;

    this.loopNum = 1;

    } else {}

    this.loopNum ++;

    {if(this.loopNum==2)}

    This.Stop ();

    }

    }

  • How to set the parameter reset?

    I put the (url, clipStartTime, clipEndTime) alone in the StreamingURLResource class

    How to set the parameter reset? I want to NetStreamPlayTransitions.APPEND set

    THX

    Mike.

    This is not currently supported with OSMF.  You use this feature (APPEND) regularly?  If so, you can file a request for improvement with use case here?  Thank you!

  • Set up a loop timed since another Panel

    Hello

    Fundamental issue here. Is it possible to set up a timed loop (period, priority, due date, etc.) in a vi that has no front panel to the side front of the vi one another? I wanted just a digital command on a front panel that can make these adjustments while the program is running. It seems really easy but I had a few difficulties to do this.

    Any help would be greatly appreciated.

    On the Subvi where the timed loop is, create controls for each parameter that you want to set.  Connect to these controls in the terminal component.  Pass the values of the main vi.  No need for shared or globals variables.

  • Size limit for the parameter in an Oracle stored procedure

    Oracle 11g on Linux SUSE 11.

    What is the LIMIT on the size of a parameter (setting OUT or IN) routed to oracle (Oracle 11 g) procedure?

    If I create a procedure:

    create or replace procedure test_proc (myid number, mydoc CLOB, BLOB img)

    What is the maximum number of bytes that I can spend for each parameter?

    Thank you

    Hello

    scottjhn wrote:

    Oracle 11g on Linux SUSE 11.

    What is the LIMIT on the size of a parameter (setting OUT or IN) routed to oracle (Oracle 11 g) procedure?

    If I create a procedure:

    create or replace procedure test_proc (myid number, mydoc CLOB, BLOB img)

    What is the maximum number of bytes that I can spend for each parameter?

    Thank you

    Depend on the exact maximum size of CLOB and BLOB depends on settings in your database.  I don't know how small these limits can be defined, but I think it's always on a terabyte.

    There are no special restrictions on the parameters; they can be as large as the other BLOB or CLOB.

  • Parental control time limit set at 24 hours by mistake... cannot go beyond login.

    Original title: restriction set at 24 hours a time... error cannot go beyond login.

    We have windows Vista Home Basic.  There are 2 user ID in place, it is not used and nobody remember the password.  Another we know the password. However, my son put the limitation on duration of parental control to 24 hours by chance and we can no longer access the computer.  Whenever we tried to enter, we get the message of time restrictions.  Please let me know how we can get around that we can not get the menu system/controls.

    What you wrote is not logical.

    As said by Umesh P, moderator, you need an administrator account to set the time limit.
    And parental controls can be set on an administrator account.
    This means that you must have an admin account, you can log on. If you are the admin or in possession of an admin password.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Limit set using the variable

    IAM having the following query to load the data of my DataModel

    DataSource {
                id: firstSource
                source: "db/duDatabase.db"
                query: "SELECT title FROM how_to ORDER BY howToId ASC limit 10"
                onDataLoaded:
                    {
                        firstModel.insertList(data);
                    }
               }
    

    My Question is:

    How can I use a variable to set the limit in the query

    That is to say, I want something like that

     query: "SELECT title FROM how_to ORDER BY howToId ASC limit variableName"
    

    Please please help me. IAM stuck here.

    query: "SELECT title OF how_to ORDER BY howToId limit of ASC"+ NomDeLaVariable"

  • PO approval limit setting

    Hi guys,.

    Can someone help me understand where we set the amount of limit for approval of a specific position in the hierarchy approval explanation of Position.

    Thank you

    Assani

    Hi Akash,

    In the Group approval, 'Amount limit' screen for object 'Document Total' is means allowed in. ceiling.

    If you set the limit of amount = 1000 for Document Total and then assign the same approval position 1,2,3 group then 1000 will be become the ceiling authorised for position 1,2,3.

  • Jdev jpr file: set the parameter ${maven:maven.local.repo}

    Hi all

    I use Maven (3.0.5) to compile and deploy complex Applications of ADF (12.1.3).

    I noticed that, contrary to what is said in this discussion of adf Group Google by a member of the ADF team

    «To 12.1.2 we introduced Maven plugins for ojmake and ojdeploy.» It still requires an Oracle executable on your build server, but 1) avoids having to invoke the crafts Maven ant tasks and 2) allows to ojmake/ojdeploy use the dependencies declared in the POM rather hardcoded references to libraries of JDeveloper.«,»

    ojmake still seems to need a reference hardcoded for external dependencies in the JFL Elf, he uses.

    For example, addition of guava as a dependency in the file pom of an ADF project configured in Jdev to use Maven, will result in a similar entry in the JPR file:

    < list n = "libraryDefinitions" >

    < hash >

    < list n = "classPath" >

    < Protocol url = 'file' path = "/${maven:maven.local.repo}com/google/guava/guava/17.0/guava-17.0.jar"/ > "

    < / list >

    < value n = v "deployedByDefault" = "true" / >

    < value n = "description" v="com.google.guava:guava:17.0:jar"/ >

    < value n = 'id' v="com.google.guava:guava:17.0:jar"/ >

    < value n = v 'locked' = "true" / >

    < / hash >

    < / list >

    My question is: what is this variable in the JPR file decided to? How we set the value of ${maven:maven.local.repo} from project pom file?

    The maven variable ${settings.localRepository} did not help.

    PS: what seems to be needed on our server of Jenkins, on which to perform the installation on Jdev 12.1.3 has been installed locally in order to get the ojmake, ojdeploy and they hide dependencies. The user who installed Jdev being another than that actually run the maven jobs (jenkins). In addition, its local maven repository is not the value default ~/.m2/repository but /srv/.m2/repo21

    Thank you very much in advance for your time and help.

    Jeremiah

    Thank you all for your contributions.

    I found it. In case the Jdev Installation is on a CI server, without starting Jdev itself, the following file should be added to allow to use another system as the default file Maven ~/.m2/settings.xml settings:

    • ${ide.pref.dir}/system***/o.jdeveloper/product-prefences.xml

    I have this file, the absolute path to the Maven settings file can be set via:

    http://xmlns.Oracle.com/IDE/hash">

    That's all!

    Please don't tell me that Oracle did not REAL PLUGINS MAVEN (standalone) for ojmake and ojdeploy with the maven as optional parameter settings file.

    This a shame for such an expensive having framework to do what 'kitchen '!

  • Mosaic - how limit/set colors Pixel &amp; size

    Hello

    I am trying to create a mosaic from a photograph

    Want to make 3mm square pixel size (when printing) and limit the range of colors in the colors of 7 or more (white/black to shades of blue in the middle and the extremes). Juggle with the size of the image seems to adjust the size of PIxel - enlarge the overall picture in terms of 'cm', but the image doesn't seem to be larger on the screen.

    FYI will use print as a "guide to support" for the construction of the mosaic. Is there a 'best' approach to use when you print very large images - in photoshop or another app/plugin?

    Either had some progress with the colors using grayscale or black & white - though, in trying to use "replace color" for my desired gray scale etc., it doesn't seem to change the color of a pixel to a different shade of gray - rather than one of the blue shadows

    Any suggestions on the best way to approach the aspects of color and pixelate/mosaic of color?  Seems to be a lot of different alternatives

    • Color: posterise, gray levels, replace color, indexed, colors black and white etc.
    • Mosaic: Mosaic Image size, pixelation, etc.

    So many choices - I'm a little stuck on the part of color...  Thanks in advance

    See you soon

    Understand the final image size and how much 3mm square you want for the height and width. crop or reduce your image size in pixels. Speed of image in your print size using nearest neighbor. This will create the correct number of 3mm squares. To force the colors, use Index color with a custom color table. Once you do this, you'll want to convert to RGB for printing and any other work you want to do with the image.

  • For the loop index rebuild

    DB version 10.2
     BEGIN
          FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('PORT') and index_type='NORMAL')
          LOOP
       EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' REBUILD nologging parallel 4 ';
          5      dbms_output.put_line('-----------------');
             --EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || 'NOPARALLEL';
          END LOOP;
          begin
         FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('PORT') and index_type='NORMAL')
         LOOP
         EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || 'NOPARALLEL';
         end loop;
         end;
       END;
       /
    When I try to do more high I am hit with ORA-02242 after reconstitution with nologging parallel 4. But when I run manually
     ALTER INDEX'  <index_name> NOPARALLEL 
    then ok.

    Some can help me please

    ERROR on line 1:
    ORA-02242: no option specified for the ALTER INDEX statement
    ORA-06512: at line 11 level
    BEGIN
          FOR vIdxList IN (select INDEX_NAME from user_indexes where table_name in('EMPLOYEES') and index_type='NORMAL')
          LOOP
              EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' REBUILD nologging parallel 4 ';
              EXECUTE IMMEDIATE 'ALTER INDEX ' || vIdxList.INDEX_NAME || ' NOPARALLEL ';
           END LOOP;
    END;
    / 
    
  • Cannot set a video loop of background for the menu

    It cannot be that difficult to do.  I have damage animations.  Buttons work fine.  I can not put a video loop behind the menu.

    I tried:

    (a) alt + drag the .mp4 on the menu

    (b) using the icon for selecting the video option in the control panel menu for .mp4 loop property

    (c) by using a single video file to point to animate on for 2 seconds then set a loop after that for 27 seconds of video loop

    Option C preview correctly and all, but just showed as a black background in the final exported .flv

    Option A and B just did nothing.  There is no video vignette that appears, or whatever it is.

    The loop in the audio file works fine in the preview and the final result, but not video.

    I've looked through many tutorials and just may not know what I am doing wrong.  Any suggestion would be appreciated.

    Thank you

    Should work.

    I would try the elementary streams: m4v and audio.

    Are you sure there are no other layer interfering with the motion? For example, adding a still in photoshop without making the 'context' works fine until you add a background of movement. Yet to replace the technical background layer, but luckily leaves your extra layer covering the motion. Probably not in this case as one of your options produces motion.

    What do you mean by video thumbnails? You're adding motion to the mp4 and also animate buttons?

    If it does not, use any closure and just get the movement of work.

    Test your basic bringing in a motion menu and using the m4v that to see if can get motion.

    What is your default transcoding defined on your 1280 x 720?

Maybe you are looking for