DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: DATABASE LINK

  1. #1
    Join Date
    Aug 2001
    Posts
    1
    Please,help me!
    I try to create this procedure :

    create or replace procedure test(link_name string)
    is
    ls_station varchar2(3);
    begin
    SELECT STATION INTO ls_station FROM STATIONS@link_name ;
    end test;
    /

    I received error :
    ERROR at line 1:
    ORA-04054: database link LINK_NAME does not exist

    How can I send name of link to procedure and don't write select for every database ?
    Thanks for help


  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    LINK_NAME is taken as a literal. You will need to use dynamic sql to embed the link_name.
    Jeff Hunter

  3. #3
    Join Date
    Mar 2000
    Location
    Chennai.Tamilnadu.India.
    Posts
    658

    Thread shifted

    Hi Tanyya, 6th Aug 2001 20:35 hrs chennai

    Welcome to DBAsupport.com.

    You have by mistake posted this thread in "How to Forum".

    Hence i have shifted the same to "Oracle Database Administration" forum.

    Cheers

    Padmam
    Attitude:Attack every problem with enthusiasam ...as if your survival depends upon it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width