Create sequence Problem

I am creating these sequences but going no where, while in the 3rd sequence i get atleast error ORA-00955: name is already used by an existing object.
What should be the solution? Is there any error code problem, need suggesitons, how to fix that?
SQL> CREATE SEQUENCE SeqRecipeID INCREMENT BY 1 START
2 WITH 1 MAXVALUE 1.0E28 MINVALUE 1 CYCLE
3 NOCACHE ORDER
4 /
5
SQL> CREATE SEQUENCE SeqModuleID INCREMENT BY 1 START
2 WITH 1 MAXVALUE 1.0E28 MINVALUE 1 CYCLE
3 NOCACHE ORDER
4 /
5
SQL> CREATE SEQUENCE SeqEquipmentID INCREMENT BY 1 START
2 WITH 1 MAXVALUE 1.0E28 MINVALUE 1 CYCLE
3 NOCACHE ORDER
4 /
CREATE SEQUENCE SeqEquipmentID INCREMENT BY 1 START
ERROR at line 1:
ORA-00955: name is already used by an existing object

why this sequence are not creating
SQL> CREATE SEQUENCE SeqRecipeID INCREMENT BY 1 START
2 WITH 1 MAXVALUE 1.0E28 MINVALUE 1 CYCLE
3 NOCACHE ORDER
4 /
5
SQL> CREATE SEQUENCE SeqModuleID INCREMENT BY 1 START
2 WITH 1 MAXVALUE 1.0E28 MINVALUE 1 CYCLE
3 NOCACHE ORDER
4 /
5
while they dont exist , going no where...
1 select * from user_objects
2* where object_name = upper('SeqModuleID')
SQL> /
no rows selected

Similar Messages

  • Problem with creating sequence in procedure

    I am getting the following error when trying to create a sequence inside a procedure:
    ORA-01031: insufficient privileges
    But, I have no problem creating the sequence outside the procedure, by just issuing the create sequence command.
    How can I make this work?
    Thanks.

    I am getting different result for this:
    INSERT INTO DEPNODE.SEQ_MEID (proc_id, me_id, seq_id)
    SELECT 'tstamp' AS proc_id, M.MANAGED_ENTITY_ID AS ME_ID, ROW_NUMBER () OVER (ORDER BY M.MANAGED_ENTITY_ID) AS seq_id
    FROM FDM.MANAGED_ENTITIES M, FDM.PHYSICAL_ADDRESSES P
    WHERE M.MANAGED_ENTITY_ID = P.ME_MANAGED_ENTITY_ID
    AND M.MANAGED_ENTITY_ID < 5;
    If I ran this at the prompt, I get the correct result:
    tstamp     1     1
    tstamp     2     2
    tstamp     3     3
    tstamp     4     4
    But, if its part of the procedure, I get this:
    tstamp     1     1
    tstamp     1     2
    tstamp     1     3
    tstamp     1     4
    ** the middle row is the seq_id
    Thanks.

  • Using dynamic query to create sequence

    Hello,
    I created the sequence dynamically in a Procedure, but when I executed, it gave me an Insufficient privileges error:
    SQL> create table dummy (id number, module_id varchar2(20), p_order number, status varchar2(1));
    SQL> insert into dummy values (10, 'test', 0, 'D');
    SQL> CREATE OR REPLACE PROCEDURE PRO_SEQ_ARRNGE(P_ID NUMBER) AS
    V_MOD DUMMY.MODULE_ID%TYPE;
    v_query1 varchar2(200);
    v_query2 varchar2(200);
    V_COUNT NUMBER;
    begin
    v_query1 := 'drop sequence unqid';
    v_query2 := 'create sequence unqid start with 1 increment by 1 minvalue 1';
    SELECT COUNT(*)
    INTO V_COUNT
    FROM USER_SEQUENCES
    WHERE SEQUENCE_NAME = 'UNQID';
    IF V_COUNT = 0 THEN
    execute immediate v_query2;
    ELSE
    execute immediate v_query1;
    execute immediate v_query2;
    END IF;
    SELECT distinct MODULE_ID INTO V_MOD FROM DUMMY WHERE ID = P_ID;
    update dummy
    set P_order = 0, status = 'D'
    WHERE ID = P_ID
    and module_id = v_mod;
    --COMMIT;
    execute immediate 'UPDATE DUMMY SET P_ORDER = UNQID.NEXTVAL WHERE MODULE_ID = V_MOD AND STATUS = ''A''';
    --COMMIT;
    END PRO_SEQ_ARRNGE;
    SQL> exec PRO_SEQ_ARRNGE(10);
    BEGIN PRO_SEQ_ARRNGE(10); END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYSTEM.PRO_SEQ_ARRNGE", line 15
    ORA-06512: at line 1
    Can you please advise how to resolve it?
    Thanks in advance,
    Tinku

    When I try it, I get a different error
    SQL> create table dummy (id number, module_id varchar2(20), p_order number, status varchar2(1));
    Table created.
    SQL>  insert into dummy values (10, 'test', 0, 'D');
    1 row created.
    SQL>  CREATE OR REPLACE PROCEDURE PRO_SEQ_ARRNGE(P_ID NUMBER) AS
      2  V_MOD DUMMY.MODULE_ID%TYPE;
      3  v_query1 varchar2(200);
      4  v_query2 varchar2(200);
      5  V_COUNT NUMBER;
      6  begin
      7  v_query1 := 'drop sequence unqid';
      8  v_query2 := 'create sequence unqid start with 1 increment by 1 minvalue 1';
      9  SELECT COUNT(*)
    10  INTO V_COUNT
    11  FROM USER_SEQUENCES
    12  WHERE SEQUENCE_NAME = 'UNQID';
    13
    14  IF V_COUNT = 0 THEN
    15  execute immediate v_query2;
    16  ELSE
    17  execute immediate v_query1;
    18  execute immediate v_query2;
    19  END IF;
    20
    21  SELECT distinct MODULE_ID INTO V_MOD FROM DUMMY WHERE ID = P_ID;
    22
    23  update dummy
    24  set P_order = 0, status = 'D'
    25  WHERE ID = P_ID
    26  and module_id = v_mod;
    27  --COMMIT;
    28
    29  execute immediate 'UPDATE DUMMY SET P_ORDER = UNQID.NEXTVAL WHERE MODULE_ID = V_MOD AND STATUS = ''A''';
    30  --COMMIT;
    31
    32  END PRO_SEQ_ARRNGE;
    33  /
    Procedure created.
    SQL> exec PRO_SEQ_ARRNGE(10);
    BEGIN PRO_SEQ_ARRNGE(10); END;
    ERROR at line 1:
    ORA-00904: "V_MOD": invalid identifier
    ORA-06512: at "SCOTT.PRO_SEQ_ARRNGE", line 29
    ORA-06512: at line 1The problem is that you can't refer to a local variable like V_MOD in a dynamic SQL statement. You'd need to use a bind variable
    SQL> ed
    Wrote file afiedt.buf
      1   CREATE OR REPLACE PROCEDURE PRO_SEQ_ARRNGE(P_ID NUMBER) AS
      2  V_MOD DUMMY.MODULE_ID%TYPE;
      3  v_query1 varchar2(200);
      4  v_query2 varchar2(200);
      5  V_COUNT NUMBER;
      6  begin
      7  v_query1 := 'drop sequence unqid';
      8  v_query2 := 'create sequence unqid start with 1 increment by 1 minvalue 1';
      9  SELECT COUNT(*)
    10  INTO V_COUNT
    11  FROM USER_SEQUENCES
    12  WHERE SEQUENCE_NAME = 'UNQID';
    13  IF V_COUNT = 0 THEN
    14  execute immediate v_query2;
    15  ELSE
    16  execute immediate v_query1;
    17  execute immediate v_query2;
    18  END IF;
    19  SELECT distinct MODULE_ID INTO V_MOD FROM DUMMY WHERE ID = P_ID;
    20  update dummy
    21  set P_order = 0, status = 'D'
    22  WHERE ID = P_ID
    23  and module_id = v_mod;
    24  --COMMIT;
    25  execute immediate 'UPDATE DUMMY SET P_ORDER = UNQID.NEXTVAL WHERE MODULE_ID = :1 AND STATUS = ''A'''
    26    using v_mod;
    27  --COMMIT;
    28* END PRO_SEQ_ARRNGE;
    29  /
    Procedure created.
    SQL> exec pro_seq_arrnge(10);
    PL/SQL procedure successfully completed.Of course, I'm not using the SYSTEM schema. You should really, really avoid SYS and SYSTEM-- things often work differently there than they do normally. I also join the other folks that have tried to help you in suggesting that creating a sequence dynamically in a procedure is a very poor idea and almost certainly indicates that you need to reconsider your design.
    Justin

  • How to create sequence when minvalue is unknown?

    I am currently migrating a lot of tables (that already have data) over to using sequences. I'd like to have a script that creates these sequences without having to hardcode the minimum value that the sequence should start at.
    I am trying to do something like this:
    create sequence mySeq minvalue (select max(id)+1 from table) increment BY 1 cache 20;
    This always gives the error "Invalid number". Can anyone provide some guidance on how to solve this problem?

    Like this..?
    SQL> declare
      2   min_val number;
      3   str varchar2(1000);
      4  begin
      5   select nvl(max(empno),0)+1
      6   into min_val
      7   from emp;
      8   str := 'create sequence seq1 start with '||min_val||' increment by 1 cache  20';
      9   execute immediate str;
    10  end;
    11  /
    PL/SQL procedure successfully completed.
    SQL> select seq1.nextval
      2  from dual;
       NEXTVAL
          7935
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_dynamic_sql.htm#i1006172                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error when creating Sequence inside a stored procedure

    I tried to drop a sequence and then re-create it with new starting number in a pl/sql procedure by using 'execute immediate' command.
    However, I got the 'ORA-01031: insufficient privileges' error when I actually executed the procedure.
    I was able to create the sequence directly from SQL*Plus prompt. So, I believe I have the sufficient privilege to create sequence.
    Why it's not working when it's in a procedure?
    Please advise. Thanks!

    I'm not mean at all. You asked a redundant question, and you didn't research it or for less than 1 minute.
    Doing so you add to the clutter, and contribute to turning this forum in a chatroom (which it isn't ) and to a place of garbage
    (which it is thanks to you and thousands of other DBAs who never consult documentation before asking a question)
    That's just the truth. I can't help it you can't bear to hear the truth. That is a problem with you, not with me.
    I am in forums like this one for over 15 years. Over the years I have seen more and more people who don't want to learn to fish.
    And as things are getting worser and worser: yes, it annoys me.
    And I did anwer the question, didn't I. Frankly, all over the globe real DBAs are tearing their hair out (provided they still have it) because of the sort of 'applications' you and your colleagues develop.
    They are a disaster.
    Sybrand Bakker
    Senior Oracle DBA

  • Create Sequence command doesn't work on my MSSMS-Microsoft SQL Server Management Studio 11.0.2100.60

    Hi!
     For some reason Create Sequence command doens't work on my Management Studtio version mentioned above.
     Please advise, thanks

    What counts is not the SQL Server Management Studio level, but the release level of the SQL Server you are connected to and the the compatibility of the database you are connected to.  Run
    Select name, ServerProperty('ProductVersion') As ProductVersion, compatibility_level
    From master.sys.databases
    Where database_id = DB_ID()
    Product Version should show as 11.<something> or higher.  compatability_level should show as 110 or higher.  If either of those values are lower, then that is your problem.
    Tom

  • Cannot create sequence with nocache

    hi there,
    actual I try Raptor build 919 and I have a problem with creating sequences with NOCACHE using the wizzard.
    When I want to create a sequence with NOCACHE, the DDL shown in the wizzard is: CREATE SEQUENCE SEQUENCE1 INCREMENT BY 1 START WITH 1 MAXVALUE 10 MINVALUE 1 ;
    So the sequence is created with CACHE and cache size 20. After creating it is possible to switch the sequence to NOCACHE.

    I just checked in our bug database and this was fixed in our development version 1060 so it will be fixed in our next Early Adopter release (post v919).
    -- Sharon

  • Oracle11 Sequence problem

    Hello,
    after moving from Oracle9 to Oracle11 we have found, that there are very big wholes in the ID numbers of one of our tables. The table gets its primary key over "select seq.nextval from dual" and the sequence cache set to 100. This was exactely the same before moving to Oracle11, but we didn't have problems with IDs like now. During one day the sequnse increases by 3000 while there are about 200 new records in the table.
    Please, help.
    Vladimir

    user487111 wrote:
    Yes, we cache sequences. In this case it is 100. This does not explain the difference between Oracle9 and Oracle11. It does not explain the jumps of 300 values either.Why not? If there is sufficient activity in your database maybe the cache got aged out. This could possibly explain large gaps in sequence numbers.
    Example:
    SQL> CREATE SEQUENCE test CACHE 100;
    Sequence created.
    SQL> SELECT test.NEXTVAL FROM DUAL;
                 NEXTVAL
                       1
    SQL> ALTER SYSTEM FLUSH SHARED_POOL;
    System altered.
    SQL> SELECT test.NEXTVAL FROM DUAL;
                 NEXTVAL
                     101

  • Would trying to manually load NSS Internal PKSS #11 Module create a problem or would nothing happen without a filename in the load window under Security Devices?

    Would clicking the load button while NSS Internal PKSS #11 Module is selected and accepting the pop-up window without filling in any more information create a problem for the Firefox 8 program?

    Quote from: lcwhitlock on 04-April-14, 13:44:09
    Hello darkhawk,
    Thank you for the recommendation.  I somewhat understand what a MS DOS disk is, but I'm not sure how to go about creating one. I've seen where you can use a program, like Rufus, to create a usb one  - but I'm leery about using 3rd-party programs (especially ones I'm not familiar with). I've come across a couple of 'how-to' tuts, but they didn't clarify what files (if any) I would need to include on the disk (for my particular situation). Right now I don't have any blank cds, nor any extra flash/thumb drives - wish I did, but hadn't needed these for years. There has only been one other time where I needed to re-install Windows, but that was over 15 years ago - I did it through BIOS, reformatting my drives, and then reinstalled via the Windows XP disk. Windows 8 is an entirely different breed, which has left me feeling a bit stumped, at times. If there was a way I could perform it (successfully), similar to the first time I did it years ago, I'd give it a try - but at the same time, I'm a bit reluctant, because if it doesn't work, then I'm stuck without any internet access to get further help.
    Ask and ye shall receive. This should be doable in Windows 7 and Windows 8 on another PC. I recommend using a USB Flash drive like in this tutorial, but I'm sure you could use something else.
    If you want, you could also use Hiren's BootCD to make a bootable CD with many options and programs on it (I keep one, just for certain situations) that will allow you to do the same things.
    http://www.hiren.info/pages/bootcd
    Also very useful for sorting out virus's as long as it's downloaded and made on another PC that is virus free......

  • CREATE SEQUENCE from a stored procedure

    Hello,
    Is it possible, to create a sequence object from an own written stored procedure? Can I reinitialize the actual value of a sequence object without recreating it from a stored procedure?
    Thank you for recommendations,
    Matthias Schoelzel
    EDV Studio ALINA GmbH
    Bad Oeynhausen

    maybe this example might be of some help.
    SQL> create or replace procedure dy_sequence (pSeqName varchar2,
      2                                           pStart number,
      3                                           pIncrement number) as
      4    vCnt     number := 0;
      5  begin
      6    select count(*) into vCnt
      7      from all_sequences
      8     where sequence_name = upper(pSeqName);
      9 
    10    if vCnt = 0 then
    11      execute immediate 'create sequence '||pSeqName||
    12                        ' start with '||to_char(pStart)||
    13                        ' increment by '||to_char(pIncrement);
    14    else
    15      execute immediate 'alter sequence '||pSeqName||' increment by '||to_char(pIncrement);
    16    end if;
    17  end;
    18  /
    Procedure created.
    SQL> -- create the sequence by calling the dy_sequence procedure
    SQL> execute dy_sequence ('test_sequence',1,1);
    PL/SQL procedure successfully completed.
    SQL> select test_sequence.nextval from dual;
       NEXTVAL
             1
    SQL> -- alter the sequence to increment by 2
    SQL> execute dy_sequence ('test_sequence',0,2);
    PL/SQL procedure successfully completed.
    SQL> select test_sequence.nextval from dual;
       NEXTVAL
             3
    SQL>

  • I would like to upgrade to the next step, but because I have many problems with the version 10.4.11, I'm worried that upgrading would create more problems.

    Due to a misunderstanding with [email protected] in September of 2010, many of my applications and important files were put into the trash during a cleaning.  The trash hadn't been deleted, so a CleanApp rep told me to drag my important files to a folder on my desktop.  They were unable to help me with anymore advice with the exception that if I followed the pathway of the application, I could manually restore it to its proper location. 
    This was asking a lot of me because I didn't have the experience or knowledge of undertaking such a massive restoration.  However, I did the best I could.  What had been put in the trash was not just a few files -- there were hundreds of files or apps that I discovered in the trash.  As I said, this was a misunderstanding.  I was left feeling devastated at what had happened. 
    Since then, my iMac Intel Core Duo has been running on its last legs.  I'm surprised I can even get to my email.  As far as using the software that I bought with my iMac, I can't.  I just do the basics.
    What I have been wanting to do is to upgrade to the next level.  However, I worry that if I upgrade a crippled OS X 10.4.11 Tiger, I would be creating more problems than what I already have.  Do you agree that an upgrade would make matters worse? 

    It won't necessarily make it worse, but may not make it better.  I am not familiar with the utility you usedm though anything that cleans or maintains your Mac should be avoided unless you know what you are doing and what it does.  Probably re-installing software from the official sources (download or CDs) is the best way to ensure missing parts are all replaced.
    If this is a core duo and not a core 2 duo then the highest you can go is Snow Leopard 10.6 Get more information about your computer. Go to the Apple in the upper left corner of any window, then "About This Mac", then "More Info..."  Copy and paste the information here, but omit the serial number and Hardware UUID (if present).

  • Error while Creating sequence. Please help

    I'm using below script to create sequence but getting error
    Error report:
    SQL Error: ORA-01722: invalid number
    01722. 00000 - "invalid number"
    CREATE SEQUENCE BL_BTN_MASTER_SEQ
    MINVALUE 1
    MAXVALUE 999999999999999999
    INCREMENT BY 1
    START WITH (SELECT MAX(BULLETIN_MASTER_ID)+1
    FROM BL_BTN_MASTER)
    NOCACHE;
    FYI..Data type of bulletin_master_id column is NUMBER(22,0)
    PLease help.
    Edited by: user11228834 on May 29, 2013 10:22 AM
    Edited by: user11228834 on May 29, 2013 10:23 AM
    Edited by: user11228834 on May 29, 2013 10:25 AM

    Oracle doesn't like the "(select max(bulletin_master_id)+1 from bl_btn_master)' statement embedded in the CREATE SEQUENCE statement because if you look at the syntax it is expecting an acual number. You could use execute immediate to create the sequence this way:
    {code}
    declare
    v_seq number;
    v_statement varchar2(200);
    begin
    select max(bulletin_master_id)+1
    into v_seq
    from bl_btn_master;
    v_statement := 'CREATE SEQUENCE BL_BTN_MASTER_SEQ ' ||
    'MINVALUE 1 ' ||
    'MAXVALUE 999999999999999999 ' ||
    'INCREMENT BY 1 ' ||
    'START WITH ' || v_seq ||
    'NOCACHE';
    execute immediate(v_statement);
    end;
    {code}

  • Assigning a 'dynamically created sequence' value to a variable

    in my procedure i am creating a sequence on the fly, i am preparing the name with some passed parameters like below
    v_seq_name := 'seq_'||loadid||v_table_name;
    execute immediate 'CREATE SEQUENCE '||v_seq_name||' MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 increment by 1 cache 20';
    and now after doing some operations i need to assign the current value of sequence to a number variable i tried following but not working
    1) v_curr_value : = v_seq_name.currval ;
    2) select v_seq_name||'.nextval' into v_curr_value from dual;
    can you please suggest me how i can get the value in plsql block.

    DIVI wrote:
    in my procedure i am creating a sequence on the fly, i am preparing the name with some passed parameters like below
    v_seq_name := 'seq_'||loadid||v_table_name;
    execute immediate 'CREATE SEQUENCE '||v_seq_name||' MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 increment by 1 cache 20';
    and now after doing some operations i need to assign the current value of sequence to a number variable i tried following but not working
    1) v_curr_value : = v_seq_name.currval ;
    2) select v_seq_name||'.nextval' into v_curr_value from dual;
    can you please suggest me how i can get the value in plsql block.Well, you haven't given the error you are getting but I guess the procedure isn't compiling? You need to execute immediate any reference to the sequence.
    Having said that, your architecture is probably wrong if you are dynamically creating things in a procedure.
    Why do you need to create them dynamically?

  • Issue in creating Sequence

    Hi All,
    I am using
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - ProductionI have schema with following roles
    ALTER ANY OUTLINE
    CREATE ANY OUTLINE
    CREATE ANY SYNONYM
    CREATE DATABASE LINK
    CREATE MATERIALIZED VIEW
    CREATE PUBLIC DATABASE LINK
    CREATE VIEW
    DROP ANY OUTLINE
    DROP PUBLIC DATABASE LINK
    SELECT ANY TABLE
    UNLIMITED TABLESPACE
    CONNECT
    DBA
    EXP_FULL_DATABASE
    IMP_FULL_DATABASE
    OEM_MONITOR
    RESOURCEI can able create a sequence through SQLPLUS as well as from toad.
    SQL> CREATE SEQUENCE ROLE_ACTIVITY_SEQ START WITH 225006249 INCREMENT BY 1 MAXVALUE 9999999999999999999 MINVALUE 225006249 NOCYCLE CACHE 100 ORDER;
    Sequence created.
    SQL>when i try to create sequence dynamically through PL/SQL procedure getting error
    SQL> execute PROC_CLONE_BU;
    BEGIN PROC_CLONE_BU; END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SUPERNOVA.PROC_CLONE_BU", line 19
    ORA-06512: at line 1
    SQL>Even though I have DBA role for the schema. I don't know what privileges oracle still excepting..
    Pls guide me to resolve it..
    Thanks & Regards
    Sami

    Hi All,
    As said early creating sequence through dynamic SQL
    its creating sequence fine but when i try to use sequence in same procedure then procedure getting error..
    create or replace procedure proc_seq_genrate as
    begin
    EXECUTE IMMEDIATE 'CREATE SEQUENCE BU_ROLE_DSK_ITEM_SEQ START WITH 100 INCREMENT BY 1 MAXVALUE 9999999999999999999 '||
    'MINVALUE 100 NOCYCLE CACHE 100 ORDER';--- hard coded value 100 will changed according to  PK max value of the table .. for getting max value i will write SQL Query
    end;
    Procedure created.
    create or replace procedure proc_seq_genrate as
    begin
    EXECUTE IMMEDIATE 'CREATE SEQUENCE BU_ROLE_DSK_ITEM_SEQ START WITH 100 INCREMENT BY 1 MAXVALUE 9999999999999999999 '||
    'MINVALUE 100 NOCYCLE CACHE 100 ORDER';--- hard coded value 100 will changed according to  PK max value of the table .. for getting max value i will write SQL Query
    INSERT INTO ROLE_ACTIVITY (SELECT ROLE_ACTIVITY_SEQ.NEXTVAL, -98, ACTIVITY_CD, REC_ST, 1, ROW_TS, USER_ID, CREATE_DT, SYS_CREATE_TS, CREATED_BY FROM ROLE_ACTIVITY WHERE ROLE_ID=-99 );
    end;
    7     35     PL/SQL: ORA-02289: sequence does not existI have understood that its looking for Sequence but
    pls any one explain me why its looking sequence in compile time itself.. any way we are going to use the sequence only at run time right.. i would like to know is there any technical reason behind this..
    Thanks & regards
    Sami.

  • Creating sequences for all tables in the database at a time

    Hi ,
    I need to create sequences for all the tables in my database.
    i can create individually ,using toad and sqlplus.
    Can any one give me a code for creating the sequences dynamically at a time for all the tables.
    it is urgent ..
    Regards.

    I need to create sequences for majority of the tables that are having ID column
    which is sequences."The majority" is not the same as all. So you probably want to drive your generation script off the ALL_TAB_COLUMNS view...
    where column_name = 'ID'You need to think about this carefully. You might want different CACHE sizes or different INCREMENT BY clauses for certain tables. You might even (whisper it) want a sequence to be shared by more than one table.
    Code generation is a useful technique, but it is a rare application where one case fits all.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

Maybe you are looking for

  • My Mac can't find airport express in AirPort Utility - I'm stuck!

    I've been fiddling around with this thing for three hours and can't get it to work. I only want to use my airport express to wirelessly play music from my laptop to my speakers on my desk. I dot not want it affiliated with the internet in any way. I

  • Badi for Z-Fields updating using BAPI_CONTRACT_CREATE

    Hi Experts, I need badi name required for updating Custom fields in contract while creating purchase contract. I am using BAPI_CONTRACT_CREATE for creating contract. Thanks & Regards, Sushant singh

  • Calculating distances

    Hi, i need some guidance, i need to calculate the distances between two atoms (all combinations). Each atom as x, y and z axis points e.g. x y z ATOM 5 CA PHE 1 113.142 75.993 130.862 ATOM 25 CA ARG 2 113.940 72.288 131.419 ATOM 49 CA TYR 3 116.236 7

  • Managing existing keywords with Controlled Vocabulary

    Hi, my photos (10,000 RAW/JPG's) were previously keyworded in another application. I just imported David Rieck's Controlled Vocabulary keyword file into Lightroom 1.1 and now I have a mess of keywords. Any suggestions on how best to mange the keyword

  • Custom control color changes

    I need to change a boolean control color based on certain cases. This is simple, I would normally just wire up a color array to the boolean property node and set the false color to be green, yellow, or red (whichever was needed). However, the control