Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Unix command for system configuration Linux/Unix
  • Good notes for shared pool Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Important Solaris Commands Linux/Unix
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • tblwopk.sql tablewopk.sql Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Import and export statements Oracle
  • backspace in SQL Plus not working then..? Linux/Unix
  • Clean up Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • eplan.sql 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

  • load SPM baseline from cursor cache Oracle
  • SYSOPER Mystery Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • dbms_job.submit example Oracle
  • VIvek Encryption Package and Its Usage Oracle
  • Import and export statements 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Find Command Linux/Unix
  • CPU speed on Linux Linux/Unix
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • UTL_FILE test program Oracle
  • fuser to check who is using diretory Linux/Unix
  • currwait.sql Oracle
  • S3 Basic info AWS

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme