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

Thread: Database links....

  1. #1

    Angry

    When I run the attached code I get

    "
    CREATE OR REPLACE package body load_test as
    *
    ERROR at line 1:
    ORA-02083: database name has illegal character '-'
    "

    The link 'sponge' is a public database link connecting as user sponge to database with tnsname of sponge. There is no underscore. What the hell is happening!!! To top it off, I can select directly from the link with no problems. Anybody got any ideas?


    CREATE OR REPLACE package load_test as
    a_var number(10);
    END;
    /
    CREATE OR REPLACE package body load_test as
    PROCEDURE demo IS
    cursor c1 is
    select 'fek'
    FROM dual@sponge;
    BEGIN
    null;
    END;

    END;
    /

    -Bob

  2. #2
    Join Date
    Nov 2000
    Posts
    344
    I think Oracle is complaining about your database link, not the package.

  3. #3
    Join Date
    Nov 2000
    Posts
    344
    Ooops, I see you can select from the link directly.

    OK, how about this - are you granted any privileges through roles or are they granted directly to your user id?

    If they are through roles, grant them direct to the user. Privs granted through roles are not visible from packages, procedures, etc... (Don't ask my why!)

    -John

  4. #4
    Join Date
    Feb 2001
    Posts
    41
    by doing that is one work around but where is '-' related in the code ,check the name for db link in dba_db_links table
    Best Regards,
    Harsh Shah

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