Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • This is from Temi Oracle
  • useful dg links Oracle
  • Clean up Oracle
  • Configure ssh authentications for RAC Oracle
  • Parallel DML Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Good RAC & Standby Notes Oracle
  • ext#.sql Oracle
  • Python class import from different folders Python/PySpark
  • db_status.sql Oracle
  • How to start CRS manually Oracle
  • FGA Part-I Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • fuser to check who is using diretory 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

  • Goog notes on X$ tables Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Oracle Connections expire_time and firewall Oracle
  • SQL_PROFILE – I explaination Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • logminer and my_lbu 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
  • initUOCIOTTO.ora Oracle
  • Formatter Explain plan Output 1 Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • Unix command for system configuration Linux/Unix
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Committing distributed transaction using commit force Oracle
  • AWR settings- MMON is not taking snapshot. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme