Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • Kill a session dynanically using execute immediate Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • sql_plan9i.sql Oracle
  • Generate SSH without password authentication. Linux/Unix
  • Nice notes on wait events Oracle
  • Changing default shell Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • dbinv.sql Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Removing first line Linux/Unix
  • DBMS_JOB all example Oracle

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

  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • All About Trace Fils Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • V$ROLLSTAT status is Full Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • database trigger failing Oracle
  • find_string_in_database.sql Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Wait.sql Oracle
  • Linux CPU info. Linux/Unix
  • Oracle Material from OTN Oracle
  • create PLAN_TABLE command. Oracle
  • Query to Generate aggregate on every 30 mins. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme