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: Privilege problem ?????

Re: Privilege problem ?????

From: <Witold.Iwaniec_at_atl.bluecross.ca>
Date: Wed, 11 Jul 2001 05:24:08 -0700
Message-ID: <F001.00346C1B.20010711044555@fatcity.com>

Andrea

I assume it is a shell (or batch) script, run from OS - you have "connect internal" in your script so even if joe_doe runs the script, he connects as internal, not as joe_doe. This can be your problem. Try it yourself - connect to DB as internal (not yourself) and try to execute the commands that you have in the script.

Or is it error related to OS permissions- if you are on UNIX, is the script's mode set as executable by everyone or at least a group the users belong to?

I have done similar things many times and have my script run be users who were not even database users. But I have used internal for DB installation/configuration related tasks and different user for DDL or DML - the table/procedure owners or user with proper privileges. For example I have created setup programs for some products that required Oracle database with set of tables, viewes, procedures, etc. Instead of sending the scripts to build tables, views, synonyms, etc, which users often failed to do, I included the database (datafiles, controlfiles, etc) in my install program. During the setup I connected as internal and set up the database eg. modified paths to datafiles, redologs etc and then connected as different user to modify records in tables.

While internal is used to install, startup/shutdown, and other similar tasks I am not sure if it has the same privileges as SYSTEM when it comes to tables, views etc. DBA's can tell it better.

HTH Witold

Andrea Oracle <andreaoracle_at_yahoo.com> on 07/10/2001 20:00:29

Please respond to ORACLE-L_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: (bcc: Witold Iwaniec/ATL_BLUECROSS_CA)

Hi all,

I wrote a script for developers to run. I have svrmgrl, connect internal in the script. The developer got error since he doesn't have privileges. So how to make the script runnable by non dbas???

Thanks.

Andrea



Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Andrea Oracle
  INET: andreaoracle_at_yahoo.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: INET: Witold.Iwaniec_at_atl.bluecross.ca 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 Wed Jul 11 2001 - 07:24:08 CDT

Original text of this message

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