Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from puck1183.startdedicated.com (localhost [127.0.0.1])
 by puck1183.startdedicated.com (Postfix) with ESMTP id F2C6819601C1
 for <oracle-l@orafaq.com>; Tue,  3 Mar 2015 00:16:48 +0100 (CET)
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by puck1183.startdedicated.com (Postfix) with ESMTP
 for <oracle-l@orafaq.com>; Tue,  3 Mar 2015 00:16:48 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1D8E527991;
 Mon,  2 Mar 2015 18:16:48 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1425338208;
 bh=G/Ne7g08jcOz64hapKSrNonSwKmyfzDVPD4YSoH0BVA=;
 h=Message-ID:Date:From:MIME-Version:To:Subject:References:
	 In-Reply-To:Content-Type:Sender:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive;
 b=WKO2SE5Mzsv+OrdsUIsDvjjzYBB9mXh3/L2EhUyJGRPNanWW5gsr1ezI7JRqf7I6y
	 3fxpQLUK0a6eekslo670nnSf0k2McJJ6IXG8d2am7GHbOyLKKvYNrrm526H10wBRxj
	 rD6jcl4yDRrErGzxP1gDy3lQrpCczs5FsRG5RXik=
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id y47HuhFs2XG0; Mon,  2 Mar 2015 18:16:48 -0500 (EST)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id AE92127988;
 Mon,  2 Mar 2015 18:16:31 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1425338207;
 bh=G/Ne7g08jcOz64hapKSrNonSwKmyfzDVPD4YSoH0BVA=;
 h=Message-ID:Date:From:MIME-Version:To:Subject:References:
	 In-Reply-To:Content-Type:Sender:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive;
 b=cusDUkLrNv4HnlHoduX3rNJUibFK6vv7zbtLDiDIl9Dpi5Uvd2ejPCThkrBVvx7iq
	 +mzMgmou5inTCzh3uoGk6hjp7pUSkb0O87G8/7jIbzOx+MiLV0civI6wXctLuh9Lrl
	 kGKpXZv2csrUKPH8i0KoGkEB/ZSwB3To25myZVbs=
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 02 Mar 2015 18:15:10 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D070D27973
 for <oracle-l@freelists.org>; Mon,  2 Mar 2015 18:15:09 -0500 (EST)
Authentication-Results: turing.freelists.org; dkim=pass
 (2048-bit key; insecure key) header.i=@yahoo.com; dkim-adsp=pass
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ZXKdyS2kVPkX for <oracle-l@freelists.org>;
 Mon,  2 Mar 2015 18:15:09 -0500 (EST)
Received: from nm27-vm1.bullet.mail.bf1.yahoo.com (nm27-vm1.bullet.mail.bf1.yahoo.com [98.139.213.148])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 860E421780
 for <oracle-l@freelists.org>; Mon,  2 Mar 2015 18:15:08 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1425338108; bh=z2Ow+3CfV9ByvU0oOB+YtIUqjrNQ3+S6sf5qdY74vMY=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=Lrhh4OWD8u0q6YJUeaQWLn0rSe5DaXqHRhkDFDXJmlW9n7Qlj9mQ+7G6adUK40LltixjKK++zAmiyR0SHJ3Mgpi95fvumgDPZ02GTqvFHpBSIT43T/YUpSvj/4PkPsYugiVXNbYnIcpNKlNp+D+qO6oZLivqZxAAmteBeasOzclq7XfBe0yX0o31j4F58cobOBjvToznD8WUeKRgTZhgdlltG6YYmG3DGY7vSzhw3SM9LAljvH01TSlPiH1GPhEZBcG1fCksztD5Y78cKT+b4HGfnkA/Dskx6gWvczl/9EUBJG3jCDi/OY+j5JZVkBjI4S6DsRu347pCOKWZtzosFg==
Received: from [98.139.215.142] by nm27.bullet.mail.bf1.yahoo.com with NNFMP; 02 Mar 2015 23:15:08 -0000
Received: from [98.139.211.200] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 02 Mar 2015 23:15:08 -0000
Received: from [127.0.0.1] by smtp209.mail.bf1.yahoo.com with NNFMP; 02 Mar 2015 23:11:26 -0000
X-Yahoo-Newman-Id: 400861.24219.bm@smtp209.mail.bf1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: h02ObhQVM1nWhgWr.mmDIz1QdCfup_2mU_nsGqCosyePuX0
 FDgZV6iWLvERHiViOHFZnlRkTZ8SzT_c4OtGzb400mf41.RAgn7.JWB1J5rA
 DJ6dg.TWfmuQ9yStRnSOffYLydlxwn7vCDmabWlVV6WYIXH53H.CuEpkuXxy
 OOII54nYNON7GG076O5ndWquQ0XwEat.Gw2HELVJ4lNvrAW6r.xETsZYj74P
 dOeqg2S.FcMxr70_XCeASq7bh.jIg6rI24POyJBDOh6F.eoYl3r8JqTyh0gX
 6GwK95vEBw9.1SZz_aUV82D3iK8NHz682uov8lGWYJNtG8Ql4ISlWyuTa16D
 FDsqaTrgKUEnYRGYjQQGkU3sV1mfSfBcuWQZOzqOIMfjHkEDNz4TB6z3CJd3
 K88gil2CMq01rP.jrMVkKGIQaUQTdBktP2veAdISYlmmsYp39hlDfdY_HExX
 IkV1CJT3iTtpQ9pADswsUGgyOSjVB5KCkC9HImqyitAkekFp1hEQv4dEfApe
 U8J0Uah8ShmAMbruE0kukf2Pgfr2qhkeLieMzmghG11ml4zyHWxFwoFRZJwt
 PlXl6gmvqHnnAOZfamtw8DyZebIPTDQsG9l86pFES9KvGfKxg2nN95BIuZwj
 MaW05DDBaDPPRzfN9sN9OTglxUG8.k6lEYIXlIdO.7uzLKa38bcE.cbWJ8HP
 3AuwTURQo55o5uZON1Ma7lTkhz7V6PVIAJBLV5TCqErf2_jN7
X-Yahoo-SMTP: zyyAf0SswBDX80OvHRaNDZlQ9WM-
Message-ID: <54F4EE1D.5070604@yahoo.com>
Date: Mon, 02 Mar 2015 18:11:25 -0500
From: "Mladen Gogala" <dmarc-noreply@freelists.org> (Redacted sender "mgogala@yahoo.com" for DMARC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: oracle-l@freelists.org
Subject: Re: gcc compiler
References: <1211288883.1853437.1425324345912.JavaMail.yahoo@mail.yahoo.com> <CAAaXtLBZFhgnW+AWnHQp8tmwqhKmemcF7aot0TTwwVxzj_1mxQ@mail.gmail.com>
In-Reply-To: <CAAaXtLBZFhgnW+AWnHQp8tmwqhKmemcF7aot0TTwwVxzj_1mxQ@mail.gmail.com>
Content-Type: multipart/alternative;
 boundary="------------060303050008010807020901"
X-archive-position: 58907
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: dmarc-noreply@freelists.org
Precedence: normal
Reply-To: dmarc-noreply@freelists.org
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:mark.bobak@proquest.com>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--------------060303050008010807020901
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Nope. So called "natural compilation" is an Oracle gimmick which doesn't 
require a compiler and will put the output into NCOMP_DLL$ table in the 
SYS schema. Gory details are here:

http://mgogala.byethost5.com/Native_PLSQL_Execution.html


On 03/02/2015 03:39 PM, MARK BRINSMEAD wrote:
> That is MOSTLY true.
>
> Starting in 10g, as I recall, Oracle has the ability to "natively 
> compile" PL/SQL code, though, and for that I suspect you will need the 
> C compilers. Natively compiled PL/SQL can be a significant performance 
> boost, perhaps enough that you would not want to sacrifice the capability.
>
> I understand the "remove the compilers" thing.  Its a pretty common 
> "security" measure, and its also sometimes done for change-control 
> purposes (to ensure that rogue developers cannot compile and deploy 
> new code on a production machine).
>
> In the case of a purpose-built Oracle database server, the measure may 
> not be nearly so "pointful", though, as it would be in other contexts.
>
> Do they plan to also remove all JDKs?  All JREs?  (What about the ones 
> inside the database?)  How do the security people plan to restrict 
> your ability to write shell scripts?  To upload executable code?  To 
> download executable code via HTTP?
>
> Perhaps it would be acceptable to keep the compilers in place, and 
> restrict ACCESS to them?  (For example, allow only members of the 
> group  "compiler-users" to run the C compiler, and then make the 
> database-owner account a member of that group to allow patching and 
> natively-compiled PL/SQL.)
>
> Anyway, be prepared to remove and re-install your compilers. In my 
> experience, people who have such rules don't seem to have a lot of 
> flexibility when it comes to enforcing them. Alternatively, be 
> prepared to compile/link your Oracle binaries on another host entirely 
> and resign yourself to the fact that one-off patches are going to be 
> more work than they strictly need to be.
>
> Removing the compilers will work.  But it will be a headache on occasion.
>
> On Mon, Mar 2, 2015 at 2:25 PM, Chris King <ckaj111@yahoo.ca 
> <mailto:ckaj111@yahoo.ca>> wrote:
>
>     Greetings all!
>     I’m doing a fresh installation of Oracle 12c and 11g on a new
>     linux RHEL6 server. Pre-requisites include gcc and gcc-c++
>     compilers. The system admin wants to remove these compilers after
>     installation because they constitute a security risk. I’m thinking
>     doing so should be okay, as long as these compilers are
>     re-installed when Oracle patches are applied. Does anyone have
>     experience doing this?
>     Thanks in advance.
>     ChrisK
>
>


-- 
Mladen Gogala
Oracle DBA
http://mgogala.freehostia.com


--------------060303050008010807020901
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Nope. So called "natural compilation"
      is an Oracle gimmick which doesn't require a compiler and will put
      the output into NCOMP_DLL$ table in the SYS schema. Gory details
      are here:<br>
      <br>
      <a class="moz-txt-link-freetext" href="http://mgogala.byethost5.com/Native_PLSQL_Execution.html">http://mgogala.byethost5.com/Native_PLSQL_Execution.html</a><br>
      <br>
      <br>
      On 03/02/2015 03:39 PM, MARK BRINSMEAD wrote:<br>
    </div>
    <blockquote
cite="mid:CAAaXtLBZFhgnW+AWnHQp8tmwqhKmemcF7aot0TTwwVxzj_1mxQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>That is MOSTLY true.<br>
                      <br>
                    </div>
                    Starting in 10g, as I recall, Oracle has the ability
                    to "natively compile" PL/SQL code, though, and for
                    that I suspect you will need the C compilers. 
                    Natively compiled PL/SQL can be a significant
                    performance boost, perhaps enough that you would not
                    want to sacrifice the capability.<br>
                    <br>
                  </div>
                  I understand the "remove the compilers" thing.  Its a
                  pretty common "security" measure, and its also
                  sometimes done for change-control purposes (to ensure
                  that rogue developers cannot compile and deploy new
                  code on a production machine).<br>
                  <br>
                </div>
                In the case of a purpose-built Oracle database server,
                the measure may not be nearly so "pointful", though, as
                it would be in other contexts.<br>
                <br>
              </div>
              Do they plan to also remove all JDKs?  All JREs?  (What
              about the ones inside the database?)  How do the security
              people plan to restrict your ability to write shell
              scripts?  To upload executable code?  To download
              executable code via HTTP?<br>
              <br>
            </div>
            Perhaps it would be acceptable to keep the compilers in
            place, and restrict ACCESS to them?  (For example, allow
            only members of the group  "compiler-users" to run the C
            compiler, and then make the database-owner account a member
            of that group to allow patching and natively-compiled
            PL/SQL.)<br>
            <br>
          </div>
          Anyway, be prepared to remove and re-install your compilers. 
          In my experience, people who have such rules don't seem to
          have a lot of flexibility when it comes to enforcing them. 
          Alternatively, be prepared to compile/link your Oracle
          binaries on another host entirely and resign yourself to the
          fact that one-off patches are going to be more work than they
          strictly need to be.<br>
          <br>
        </div>
        Removing the compilers will work.  But it will be a headache on
        occasion.<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Mar 2, 2015 at 2:25 PM, Chris
          King <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:ckaj111@yahoo.ca" target="_blank">ckaj111@yahoo.ca</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div
                style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica
                Neue,Helvetica,Arial,Lucida
                Grande,sans-serif;font-size:16px">
                <div dir="ltr">
                </div>
                <div><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Greetings
                    all!</span></div>
                <div><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></div>
                <div><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I’m
                    doing a fresh installation of Oracle 12c and 11g on
                    a new linux
                    RHEL6 server. Pre-requisites include gcc and gcc-c++
                    compilers. The system
                    admin wants to remove these compilers after
                    installation because they
                    constitute a security risk. I’m thinking doing so
                    should be okay, as long as these
                    compilers are re-installed when Oracle patches are
                    applied. Does anyone have
                    experience doing this?</span></div>
                <div><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></div>
                <div><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks
                    in advance.</span></div>
                <div><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">ChrisK</span></div>
                <div dir="ltr"><br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Mladen Gogala
Oracle DBA
<a class="moz-txt-link-freetext" href="http://mgogala.freehostia.com">http://mgogala.freehostia.com</a>
</pre>
  </body>
</html>

--------------060303050008010807020901--
--
http://www.freelists.org/webpage/oracle-l


