Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • set_env_dba Linux/Unix
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • v$event_name Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • Create type and Grant on it. Oracle
  • Running PDB on single node in RAC Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • Python class import from different folders Python/PySpark
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • move_arch_files.ksh Linux/Unix
  • get_vmstat_solaris Oracle
  • Search and Replace vi editor command. 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

  • Good Site for Oracle Internals Oracle
  • EXTPROC Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • pvm_pre_change.sql Oracle
  • RAC 11g with vmware 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 Time Consuming SQL Statements in Oracle 10g Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • Paste command syntax Linux/Unix
  • Renaming Global Name GLOBAL_NAME Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • Which environment is used by currently running process ( Very good) Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme