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

Thread: Connect to Remote database through stored procedure i am getting following error

Threaded View

  1. #1
    Join Date
    Nov 2007
    Posts
    2

    Thumbs up Connect to Remote database through stored procedure i am getting following error

    Hi,

    Please find the code which i written to connect remote database :

    create or replace PROCEDURE REMOTE_CONNECT( :idb IN VARCHAR2(14) :='PROD',
    :dbname IN VARCHAR2(14) :='PROD',
    :uid IN VARCHAR2(14) :='user',
    wd IN VARCHAR2(14) :='password',
    SQLCODE)
    IS


    BEGIN


    connect to :dbid AS :dbname USER :uid USING wd;


    dbms_output.put_line('connected to database');
    END;

    I am getting following error :

    ORA-SQL-PLSQL S1982

    (S1982) Expecting Identifier

    The alert message which i get at the time of compilation is :

    NO CREATE[OR REPLACE] statement found to execute.


    Please know why i am getting the following error message. Is the above cod e to be modified ? Please guide me
    Last edited by prakashchakra; 11-17-2007 at 10:41 AM. Reason: Change in text

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