Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • xargs use Linux/Unix
  • Sending email with file attachment. Linux/Unix
  • How can I tell if ASO is installed ? Oracle
  • How to analyze statspack or AWR report. Oracle
  • 10g oem configuration Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • on IBM-AIX for display Linux/Unix
  • DBMS_UTILITY PACKAGE Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • V$transaction notes for finding XID composition. Oracle
  • v$backup.status information Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • Query to Generate aggregate on every 30 mins. 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

  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • Caching sequence in Memory Oracle
  • Find_table_size.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Flowers Resize datafiles Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • RAC with RHEL4 and 11g Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • CPU Core related projections AWS

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme