Unix Technical Forum

finding user sequences and values

This is a discussion on finding user sequences and values within the Oracle Database forums, part of the Database Server Software category; --> Hi 9i on Linux How do i find the sequences that are associated with a particular user and table? ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-23-2008, 06:58 AM
Tom
 
Posts: n/a
Default finding user sequences and values

Hi

9i on Linux

How do i find the sequences that are associated with a particular user and table? I need to query this value and then increment it
by around 1000.
Can anyone assist me with that?

thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-23-2008, 06:58 AM
Jeremy
 
Posts: n/a
Default Re: finding user sequences and values

In article <1076935173.330.0@damia.uk.clara.net>, Tom says...
> Hi
>
> 9i on Linux
>
> How do i find the sequences that are associated with a particular user and table? I need to query this value and then increment it
> by around 1000.
> Can anyone assist me with that?
>

Hi Tom, sequences are not tied to tables in any way.

To see what sequences are owned by a user:

select * from user_sequences;


--

jeremy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-23-2008, 06:59 AM
Ron
 
Posts: n/a
Default Re: finding user sequences and values

Hello Tom,

As Jeremy mentioned, there is no direct association.

If you cannot get this information from developers, you may try to gather
some related information

1) By querying v$SQLTEXT for the SQL that contains sequence names

2) Checking table triggers - they may use corresponding sequences as
well.

Regards,

Ron
DBA Infopower
http://www.dbainfopower.com
Standard disclaimer:
http://www.dbainfopower.com/dbaip_ad...isclaimer.html






"Jeremy" <newspostings@hazelweb.co.uk> wrote in message
news:MPG.1a9af91df11395fa989ab8@news.individual.ne t...
> In article <1076935173.330.0@damia.uk.clara.net>, Tom says...
> > Hi
> >
> > 9i on Linux
> >
> > How do i find the sequences that are associated with a particular user

and table? I need to query this value and then increment it
> > by around 1000.
> > Can anyone assist me with that?
> >

> Hi Tom, sequences are not tied to tables in any way.
>
> To see what sequences are owned by a user:
>
> select * from user_sequences;
>
>
> --
>
> jeremy



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-23-2008, 07:01 AM
Tom
 
Posts: n/a
Default Re: finding user sequences and values


"Ron" <support@dbainfopower.com> wrote in message
news:b7adnW1e9-VcBazdRVn-tw@comcast.com...
> Hello Tom,
>
> As Jeremy mentioned, there is no direct association.
>
> If you cannot get this information from developers, you may try to

gather
> some related information
>
> 1) By querying v$SQLTEXT for the SQL that contains sequence names
>
> 2) Checking table triggers - they may use corresponding sequences as
> well.


thanks all - managed to get the info out of user sequences got it!

thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:25 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com