Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Insert cause enqueue locks Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • proc.sql Oracle
  • prepfiles.sh for step by step generating pending statistics files Oracle
  • Good notes for shared pool Oracle
  • note id 373303.1 Linux/Unix
  • Absolute file number and relative file number Oracle
  • Oracle Standby Database Library Index from Metalink Oracle
  • My Minimum Tuning Programs Oracle
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • Database logon trigger issue Oracle
  • PLSQL Table Syntax 2 Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • oracle 11g RAC on vmware Oracle
  • login.sql Oracle

Sequence Resetting

Posted on 09-Jan-2009 By Admin No Comments on Sequence Resetting

—————— CS Sequences maintenance——————-

column last_number format 9999999999999999

select * from user_sequences where sequence_name in (‘UOC_ORDER_SEQ_ID’);

select 2300000000 – CurrVAl – 20 LAST_NUMBER from dual;

alter sequence UOC_ORDER_SEQ_ID increment by NOCACHE;

Increment Once.

select UOC_ORDER_SEQ_ID.nextval from dual;

Confirm Value comes to 2300000000. After that

alter sequence UOC_ORDER_SEQ_ID increment by 1 NOCACHE;

alter sequence UOC_ORDER_SEQ_ID maxvalue 2399999999 NOCACHE;

Oracle, SQL scripts

Post navigation

Previous Post: DBMS_SQL for alter session.
Next Post: Oracle 11g RAC on OEL 5 and Vmware 2

Related Posts

  • Find sort details from Db find_sort.sql Oracle
  • how to find OS block size Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Rman Notes -1 Oracle
  • get_vmstat.ksh for Solaris Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • find_pk.sql /* Find Primary Key */ Oracle
  • Exadata Basics Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • create PLAN_TABLE command. Oracle
  • Rman Notes -1 Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Check Oracle installed products using one command Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme