Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Pull NEXTVAL thru a DB_LINK

Re: Pull NEXTVAL thru a DB_LINK

From: Igor Neyman <ineyman_at_perceptron.com>
Date: Fri, 09 Nov 2001 12:26:32 -0800
Message-ID: <F001.003C1478.20011109115613@fatcity.com>

Workaround:

On the remote system (where the sequence exists) create a view:

create or replace view vSome_Seq as select some_seq.NEXTVAL from dual;

Then, you can query it remotely:

select nextval from vSome_Seq_at_db_link;

Igor Neyman, OCP DBA
ineyman_at_perceptron.com

> Is there any way to get the next value of a sequence via a db_link.
>
> I tried
>
> select some_seq.nextval from dual_at_db_link
>
> but it told me the sequence didn't exist. I went to the database where
the
> sequence exists and, using the userid that is in the db_link, I was able
to
> get the next value, so it isn't a permissions problem. Do I have the
wrong
> syntax or is it just not possible?
>
> TIA
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: tday6_at_csc.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Igor Neyman
  INET: ineyman_at_perceptron.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Nov 09 2001 - 14:26:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US