Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • find_cons.sql Oracle
  • TNSNAMES entries details Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • JSON/XML Types in Oracle Oracle
  • Roles and Stored Procs II Oracle
  • catall.sh Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • Recovering lost SYS password Oracle
  • Caching sequence in Memory Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • To check whether standby is recovering properly or not?? Oracle
  • logminer and my_lbu Oracle
  • proc.sql Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • To see only files and/or folders using LS command Linux/Unix

Sequence Resetting

Posted on 09-Jan-2009 By Admin No Comments on Sequence Resetting

—————— CS Sequences maintenance——————-

column last_number format 9999999999999999

select * from user_sequences where sequence_name in (‘UOC_ORDER_SEQ_ID’);

select 2300000000 – 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 2399999999 NOCACHE;

Oracle, SQL scripts

Post navigation

Previous Post: DBMS_SQL for alter session.
Next Post: Oracle 11g RAC on OEL 5 and Vmware 2

Related Posts

  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • All Hints for Oracle Databases Oracle
  • Oracle 11g Environment Setup Oracle
  • How to choose Driver table in SQL statement Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • ORA-01220 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
  • sql_plan9i.sql Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • newupload.html PHP/MYSQL/Wordpress
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Some OS level threshold for performance. Linux/Unix
  • Index Range Scan Oracle
  • catting.sh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme