- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- get sequence definition in oracle
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 07:52 AM
тАО03-11-2008 07:52 AM
get sequence definition in oracle
I am using toad with oracle and it is just easy to get the sequence definition viewing the script
CREATE SEQUENCE ABC
START WITH 1048
MAXVALUE 999999999999999999999999999
MINVALUE 1
NOCYCLE
NOCACHE
NOORDER;
How can we get this definition from sqlplus. I am doing this because I need to dynational run a sql file in sqlplus to recreate it after some process.
Thanks,
Jane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 09:45 AM
тАО03-11-2008 09:45 AM
Re: get sequence definition in oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 09:47 AM
тАО03-11-2008 09:47 AM
Re: get sequence definition in oracle
select * from dba_sequences where SEQUENCE_NAME='ABC_SEQ';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 10:30 AM
тАО03-11-2008 10:30 AM
Re: get sequence definition in oracle
Jane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 10:31 AM
тАО03-11-2008 10:31 AM
Re: get sequence definition in oracle
Jane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2008 12:15 PM
тАО03-11-2008 12:15 PM
Re: get sequence definition in oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2008 10:34 PM
тАО03-12-2008 10:34 PM
Re: get sequence definition in oracle
can you try the following?
select 'create sequence '||sequence_name||' start with '||last_number||' maxvalue '||max_value||' minvalue '||min_value||decode(ORDER_FLAG,'N',' noorder',null)||decode(CYCLE_FLAG,'N',' nocycle',null)||'cache '||cache_size||' increment by '||increment_by||';' from dba_sequences
where sequence_name='ABC'
/
hope this helps!
kind regards
yogeeraj