Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Find_planinfo.sql Oracle
  • column level grant syntax Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • AWR settings- MMON is not taking snapshot. Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Good Site for Oracle Internals Oracle
  • GSQ.sql Oracle
  • To find all disk io ( EMC as well as local) Linux/Unix
  • Alter procedure auditing Oracle
  • longtx.sql Oracle
  • move_arch_files.ksh Linux/Unix
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix

reset Sequence

Posted on 25-Sep-2007 By Admin No Comments on reset Sequence

column last_number format 9999999999999999

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

select 2400000000 – 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 2499999999 NOCACHE;

Oracle, SQL scripts

Post navigation

Previous Post: _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade
Next Post: Specify the Rollback segment to use in Transaction

Related Posts

  • Changing Instance Name ( No DB_NAME) Oracle
  • online_ts_bkup.sql Oracle
  • Oracle Metalink useful notes Oracle
  • Facts about SCN and Rollback Segment Oracle
  • switchover for primary database Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) 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
  • Jai Shree Ram Oracle
  • cur_sql.sql Oracle
  • to see when crontab is changed. Linux/Unix
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Complete Git Tutorial for Beginners GIT
  • oradebug ipcrm ipcs Oracle
  • Resolving RMAN Hung Jobs Oracle
  • Caching sequence in Memory Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme