Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • PLSQL Table Syntax 2 Oracle
  • How to see which patches are applied. Oracle
  • Find Stale DR Physical Standby Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • grep multuple patterns Linux/Unix
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • Specify the Rollback segment to use in Transaction Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • S3 Basic info AWS
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • How to change hostname in Linux 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

  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • Implementing Listener Security Oracle
  • plan10g.sql good Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • find_string_in_database.sql 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Another Tuning Article for subheap of shared pool Oracle
  • DBMS_SQL for alter session. Oracle
  • Reading parameter file and printing Linux/Unix
  • SQLPLUS COPY command Precautions. Oracle
  • create a folder in multiple places Linux/Unix
  • .profile Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Shuffle an array PHP/MYSQL/Wordpress

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme