GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Oracle
Go To First  |  Previous Question  |  Next Question 
 Oracle  |  Question 14 of 244    Print  
How to find the current value of a sequence number using a dblink to other server.

  
Total Answers and Comments: 3 Last Update: May 14, 2007     Asked by: ram 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 27, 2006 03:25:33   #1  
Guna Sagar Challa        

RE: How to find the current value of a sequence number...

Hi

Use the following query

select <seqnam>.currval from dual@<dblinkname>

Guna Sagar Challa


 
Is this answer useful? Yes | No
April 11, 2006 10:40:43   #2  
yui        

RE: How to find the current value of a sequence number...

this won't work.

before using CURRVAL you should call NEXTVAL first. otherwise you get error.

I am also looking for the solution how to get the current value or last inserted value without call NEXTVAL.


 
Is this answer useful? Yes | No
May 14, 2007 04:55:29   #3  
Hari Kiran P        

RE: How to find the current value of a sequence number...

You can get the current value of the Sequence by querying DBA_SEQUENCES

Column name is Last_number

Thanks
Hari Kiran P.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape