Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Histogram information Oracle
  • Implementing Listener Security Oracle
  • More info about /proc folder and its relation with processes. Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • Sending email with file attachment. Linux/Unix
  • Oracle 10g Wait Model Oracle
  • send email from unix mailx with attachment. Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • find checksum of a file. Linux/Unix
  • Oracle Release Explaination Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Getting started with notebook Python/PySpark
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • Important Solaris Commands 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

  • How to choose Driver table in SQL statement Oracle
  • This is im telling Kishore Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • All Hints for Oracle Databases Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • Oracle Identifiers 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
  • Find long Running Transaction Linux/Unix
  • To see only files and/or folders using LS command Linux/Unix
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • db_status.sql Oracle
  • create trigger syntax Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • TRUNCATE table and disabling referential constraints. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme