Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Locktree.sql Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • switchlogfile.sh Linux/Unix
  • Find nth max and min. Oracle
  • sess_server.sql Oracle
  • catall.sh Linux/Unix
  • DBMS_JOB all example Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • Important Solaris Commands Linux/Unix
  • Roles and Stored Object behaviour Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • Important Script Method for tuning Oracle
  • Parallel DML Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle

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

  • Rman Notes -1 Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Rename Oracle Instance Name Oracle
  • plan10g.sql good Oracle

Leave a Reply Cancel reply

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

Categories

  • AMC10 (0)
  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (9)
  • Videos (0)

Recent Posts

  • Tutornet.US — Source of excellent learning14-Oct-2026
  • OCI Infrastructure Patching14-Oct-2026
  • Free API credits for AI models14-Oct-2026
  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Oracle 11g Environment Setup Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • find the files that are 1 day old. Linux/Unix
  • Histogram information Oracle
  • move_arch_files.ksh Linux/Unix
  • proper cpu stats Linux/Unix
  • UTL_FILE test program Oracle
  • Check SQL Server edition SQL Server

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme