Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle Support Metalink ID 161818.1 Oracle
  • Insert cause enqueue locks Oracle
  • Parallel DML Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Drop database in Oracle 10g Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • V$ROLLSTAT status is Full Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • Roles and Stored Procs II Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • FRA Information. Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 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

  • find_err.sql for finding errors from dba_errors. Oracle
  • RAC 11g with vmware Oracle
  • switchover for primary database Oracle
  • All About Trace Fils Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • Oracle Standby Database Library Index from Metalink 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
  • JSON/XML Types in Oracle Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Alter procedure auditing Oracle
  • Vivek Tuning for Row Locks. Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • How to calculate PROCESSES parameter Oracle
  • oracle Dba site Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme