Results 1 to 7 of 7

Thread: Which procedure will Oracle server take

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Answers
    2

    Which procedure will Oracle server take

    I write a procedure for a logic, and another person writes a same procedure for the same logic from another machine. which will taken by the oracle server. both have the same names also?


  2. #2
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Which procedure will Oracle server take

    create or replace procedure is used then old procedure will be replace with last created procedure(in case same name is used).If u run
    exec procedure_name then last created procedure(if no errors) is executed.
    if u use 'create procedure' command u can not create more than one procedue with same name..


  3. #3
    Contributing Member
    Join Date
    Sep 2007
    Answers
    35

    Re: Which procedure will Oracle server take

    if the second person is creating the procedure using CREATE OR REPLACE it will be replaced with 1st procedure. so second person's procedure will take.


  4. #4
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Which procedure will Oracle server take

    If the name is same it is not two but one procedure.


  5. #5

    Re: Which procedure will Oracle server take

    if you and the other user belongs to different schemas then two copy of same procedure will be created in two different schemas


  6. #6
    Junior Member
    Join Date
    Jan 2008
    Answers
    4

    Re: Which procedure will Oracle server take

    acoording to the selection of tablespace. Procedure willbe taken by server.


  7. #7
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Which procedure will Oracle server take

    Quote Originally Posted by expertsharingdotcom View Post
    if you and the other user belongs to different schemas then two copy of same procedure will be created in two different schemas
    If that is the case they why this question.

    Different schemas and different procedures. You need to pass the procedure name qualified by schema name to call that ,if u have the required previleges.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact