How to create a sequence in oracle forms6i

Oracle forms 6i
Hai All
I am working in leave application entry so i need to create a sequence for giving a unique number for each entry
Pls tell me the steps how to created and how to call the sequence from database
Thanks in Advance

Create sequence <sequence_name>
Start with <number>
increment by <number>
in database
eg:- create sequence test_seq
start with 1
increment by 1;
in forms
you can assign value in pre-insert trigger
cursor cur_seq is
select test_seq.nextval from dual;
open cur_seq;
fetch cur_seq into :item_key ; /* :item_key give name of ur primary key field*/
close cur_seq;

Similar Messages

  • How to create a SEQUENCE in MSSQL2005

    I am also having a similar problem which opened the thread
    Actually i am using a Repositery which is created in MSSQL2005.
    Now i want to create a SEQUENCE similar to Oracle and populate My surrogate Key Column.
    Can u tell me how to create a SEQUENCE in MSSQL2005?
    Does anyone is having the sql syntax?

    Hi Gourisankar,
    There is no sequence concept in MS SQL Server rather it has IDENTITY.
    In MS SQL Server if you declare a column type as a Identity it will be auto increment when a new record inserts.
    So in you underlying table create a column as ID and type as "Identity" and in your mapping leave that field un mapped.
    Have a look and google more on "identity in ms sql server" ;)

  • How to create a user in oracle.

    how to create a user in oracle level.i know how to create from front end.can any body to create oracle user from backend.

    We can use the 'hr_user_acct_internal.create_fnd_user' API to create the users. The sample code is as follows:
    (p_user_name => 'XXX',
    p_password => 'XXX',
    p_employee_id => 1234(This is the person id from per_all_people_f),
    p_user_id => x_user_id,
    p_user_start_date => SYSDATE,
    p_email_address => 'XXX',
    p_description => 'XXX',
    p_password_date => NULL
    and to add the responsibility to the user, we can use the following code.
    (username => 'XXX',
    resp_app => user_res_rec.application_short_name,
    resp_key => user_res_rec.responsibility_key,
    security_group => 'STANDARD',
    description => 'DESCRIPTION',
    start_date => SYSDATE,
    end_date => NULL
    Best Regards
    Arun Kumar S.R
    Apps Associates

  • How to create a wallet in oracle RAC environment

    How to create a wallet in oracle RAC environment.
    While running following command "alter system set encryption key identified by "thalesdata4";
    I am getting error message "cannot auto create wallet" or "failed to open wallet.
    Please suggest correct way to create a wallet in RAC environment.

    please refer for detailed explanation
    Master Note for SSL Configuration in Fusion Middleware 11g [ID 1218695.1]

  • How to create a database in ORACLE 8i

    How to create a database in ORACLE 8i

    hello ...
    enter in between demand and type in "create database"
    or read others docs ORACLE.

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • How To create Connection Pooling in Oracle Application Server

    How to create Conncetion Pooling in Oracle 10g Application Server. I am using version.

    How about these tutorials?

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,

    Please help with how to create database link from oracle to sql server
    Best regards,
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Elvis Long
    TechNet Community Support

  • How to create new database on Oracle 10g

    Hi All,
    Can any one tell me how to create new database on oracle 10g.
    Thanks in Advance for your help.

    again some confusion here.....
    u said u need a new database in your first post and now you saying u need a new schema..
    one database has many schemas(users)..... ex: scott,sys,system are few of them...
    now it depends you need seperate database for test,dev environment - this is in the case u have many schemas under each database and many tables(objects) under each schema.
    You just need a separate schema (in same db) for test,dev environment...where in you will have multiple tables in each schema...U need to know the dba credentials of the db to create a new schema.
    ideally u need to have different database...You can create one with out sys/system(oracle users) password as these passwords are db dependent.
    what you need is access to the any machine where server is installed(can be the same mc where you have your dev db or a diff machine) and that will be the machine where your db will be installed (can do it through database configuration assistance),ofcourse you will need windows authentication for this.
    so you login to the same machine or access it from your machine using remote login.
    I hope that is clear.Hope i am not listing things that you already know..Just did it coz of confusion between db and schema
    Message was edited by:

  • How to Create Test Sequence Document in HTML using command line

    How to Create Test Sequence Document  in HTML using command line
    I have lot of sequences and I want to create Test Sequence Documentation in HTML format using Command Line automatically, is there a way to automate this task using .bat file or using   C#  .Net

    If you aren't able to figure out how to call a C++ DLL in .net then there may be another option.  Unfortunately I don't know how to do this off the top of my head and I don't have an example.
    The other option would be to change docgen.seq a little bit to the dialog doesn't display and you just hardcode the options.  Then you can use a command line to call testexec.exe:
    Hope this helps,
    CTA, CLA
    ~Will work for kudos and/or BBQ~

  • How to create Invoice Approval in oracle Payable R12 ?

    Hi All..
    Can any one let me know how to create Invoice Approval in oracle payable R12?

    pl.go thru following link.

  • How to create trial  version in oracle project

    assalamualikum and hi ..
    sir how to create trial version in oracle project
    i want to
    anyone use my oracle (forms) project for some limited time..
    and then expire after some time.. test it using the UTL_FILE package. can also spool text files out of SQL*Plus on your local machine, without even needing UTL_FILE. but if you need to create files on a server, then UTL_FILE is the way to go.

  • How to create page zero in oracle apex 4.0?

    Hi All,
    How to create page zero in oracle apex 4.0?

    Home > Application Builder > Application xxx > Create Page
    At bottom center on wizard there is Page Zero
    Edited by: jarola on Aug 25, 2010 7:28 PM
    And here is chapter about in documentation

  • How to create dynamics columns in oracle query1.

    how to create dynamics columns in oracle query.its very urgent.

    Urgent is it?
    Why? Have you forgotten to do your coursework and you'll get thrown off your course if you don't hand it in today?
    What makes you believe that your request for help is more important than someone else who has requested help? It's very rude to assume you are more important than somebody else, and I'm sure they would like an answer to their issue as soon as they can get one too, but they've generally been polite and not demanded that it is urgent.
    Also, you assume that people giving answers are all sitting here just waiting to answer your question for you. That's not so. We're all volunteers with our own jobs to do. How dare you presume to demand our attention with urgency.
    If you want help and you want it answering quickly you simply just put your issue forward and provide as much valuable information as possible.
    Looking at your post you haven't told us what database version you are using, you haven't provided any create table DDL's and insert statements to populate that with sample data, and you haven't even shown us that you've had a go at doing something yourself.
    You will find if you post on here demanding your post is urgent then most people will just ignore it, some will tell you to get lost, and some will explain to you why you shouldn't post "urgent" requests. Occasionally you may find somebody who's got nothing better to do who will actually provide you with an answer, but you really are limiting your options by not asking properly.
    As a basic example of dyanamic SQL:
      cols DBMS_SQL.DESC_TAB;
      ncols PLS_INTEGER;
      -- Parse the query.
      DBMS_SQL.PARSE(cur, 'SELECT hiredate, sal FROM emp', DBMS_SQL.NATIVE);
      -- Retrieve column information
      DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
      -- Display each of the column names
      FOR colind IN 1 .. ncols
        DBMS_OUTPUT.PUT_LINE (cols.col_name);
      END LOOP;

  • How to Create a Sequence Number from BI Publisher Layout editor?

    How to Create a Sequence Number (1,2,3,4,......,etc) from BI Publisher Layout editor

    Thank you for your replay, but <?position()?> we can used it in template builder only not from BI layout editor
    I found a solution in this case we can used the following query.
    ROW_NUMBER() OVER(order by item_status) as Row,

Maybe you are looking for

  • What keystrokes to move to end of document on an Mac Book Pro keyboard using Microsoft word?

    What keystrokes do I use to move to the end of document on an Mac Book Pro keyboard using Microsoft word? I've tried fn+option+ right arrow etc but doesn't do it. Cheers, Much appreciated. Schbang

  • Bluetooth stops working now and then

    My bluetooth stops working now and then. Let's say I haven't used bluetooth for a few hours and I want to sync my mobile phone. I try, but it's unable to connect. If I then try to turn off Bluetooth, I'm unable to turn it back on. In Bluetooth prefer

  • Flash Player Square troubles in Mac OS X Snow Leopard

    For the last 2 - 3 days or so, I have been having severe problems with Flash Player Square Preview 2, 64-bit in Firefox 4.0 Beta 7. Most sites seem to work fine, but on YouTube nearly every video I try to play performs very poorly. The video lags hor

  • Query for batchwise remaining stock

    Hello i create the following query that show remaining quantity in that batch the quer are as, SELECT T0.[ItemCode], T0.[Quantity], T0.[WhsCode], T3.[ItmsGrpNam], T1.[DistNumber] FROM OBTQ T0  INNER JOIN OBTN T1 ON T0.AbsEntry = T1.AbsEntry INNER JOI

  • Windows 7 x64 bluetooth problem

    Hi, I just upgraded my T400 to Windows 7 Professional x64 and I now have a problem with finding the bluetooth on it. When I tried to install the "Bluetooth with Enhanced Data Rate Software II for Windows 7, Vista - ThinkPad" it just say "No bluetooth