Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • sesswait.sql Oracle
  • Jai Shree Ram Linux/Unix
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • How to choose Driver table in SQL statement Oracle
  • Check SQL Server edition SQL Server
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • online_ts_bkup.sql Oracle
  • Oracle Metalink useful notes Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • move_arch_files.ksh Linux/Unix
  • Passing from Unix to PLSQL using bind variables 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

  • refre.sql Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • Oracle Release Explaination Oracle
  • Goog notes on X$ tables Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to check current redo log progress redo_progress.sql Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Library cahe Latches and internal explaination Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • backspace in SQL Plus not working then..? Linux/Unix
  • DBMS_JOB all example Oracle
  • Drop tempfiles from database Oracle
  • Find nth max and min. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme