How to find the current value of a sequence number using a dblink to other server.

Showing Answers 1 - 6 of 6 Answers

Guna Sagar Challa

  • Mar 27th, 2006
 

Hi,

Use the following query

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

Guna Sagar Challa

  Was this answer useful?  Yes

yui

  • Apr 11th, 2006
 

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.

  Was this answer useful?  Yes

Hari Kiran P

  • May 14th, 2007
 


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

Column name is Last_number

Thanks
Hari Kiran P.

  Was this answer useful?  Yes

HARI SHANKAR SHARMA

  • Jul 18th, 2011
 

select aa_seq.currval from dual

Regards,
Hari Shankar Sharma

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions