secconf.Sql. If it will work for upgrades or only for new databases?

Hello

I'm reviewing oracle 11g features and found that few things need special attention, such as checking the settings and the changes in the default profile.

Looking at the secconf.sql file, I found this note

REM only invoked for databases of newly created, not for upgrade of databases

My question is
(1) if I update a database to Oracle 10 G to Oracle 11 G, will, these changes in profile by default and the audit take place or not?
(2) these 11 G changes will happen if we create new databases using DBCA?

Thank you
Delphine

If you take a peek of scripts by calling secconf.sql in 11.2 /rdbms/admin, you see that secconf.sql can be run from catuprgd.sql with the following calling sequence:

catupgrd. SQL-> catproc.sql-> catpexec.sql-> execseq.sql-> secconf.sql

You can retrieve it with:

 pwd
/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin
[oracle@lx01 admin]$ grep secconf.sql *.sql
execsec.sql:Rem  Only run the secconf.sql script for new database creations, not
execsec.sql:      :secconf_name := '@secconf.sql';
secconf.sql:Rem $Header: rdbms/admin/secconf.sql /main/3 2008/10/26 23:05:27 apsrivas Exp $
secconf.sql:Rem secconf.sql
secconf.sql:Rem      secconf.sql - SECure CONFiguration script
[oracle@lx01 admin]$ grep execsec.sql *.sql
catpexec.sql:@@execsec.sql
execsec.sql:Rem $Header: execsec.sql 12-jun-2006.13:39:34 rburns Exp $
execsec.sql:Rem execsec.sql
execsec.sql:Rem      execsec.sql - secure configuration settings
[oracle@lx01 admin]$ grep catpexec.sql *.sql
catpexec.sql:Rem $Header: catpexec.sql 06-jan-2007.20:57:33 rburns Exp $
catpexec.sql:Rem catpexec.sql
catpexec.sql:Rem      catpexec.sql - CATProc EXECute pl/sql blocks
catproc.sql:@@catpexec.sql     --CATFILE -X
execcr.sql:Rem      Run from catpexec.sql (catproc.sql)
[oracle@lx01 admin]$ grep catproc.sql catupgrd.sql
@@catproc.sql --CATFILE -X

Thus, it seems that catupgrd.sql still works secconf.sql. Given that catuprgd.sql is THE upgrade script (see http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/scripts004.htm#sthref3623), it seems that this secconf.sql is still running.

But this is not the case if you read execsec.sql code and comments:

Rem  Only run the secconf.sql script for new database creations, not
Rem  for upgrades or any other reruns of catproc.sql.  The version column
Rem  in registry$ is NULL while catproc.sql is running the first time
Rem  on a new database.

VARIABLE secconf_name VARCHAR2(256)
COLUMN :secconf_name NEW_VALUE secconf_file NOPRINT

DECLARE
   p_version  varchar2(30);
BEGIN
   :secconf_name := '@nothing.sql';
   SELECT version INTO p_version FROM registry$
   WHERE cid='CATPROC';
   IF p_version IS NULL THEN
      :secconf_name := '@secconf.sql';
   END IF;
END;
/

SELECT :secconf_name FROM DUAL;
@&secconf_file

In the case of database upgrade registry .version $ is not null and above the code will run nothing.sql instead of secconf.sql:

[oracle@lx01 admin]$ cat nothing.sql
Rem $Header: nothing.sql 18-oct-2001.09:57:38 Exp $

It is therefore very likely that secconf.sql is not running during the 11.2 database upgrade (I think that the same should apply to 11.1).

Tags: Database

Similar Questions

Maybe you are looking for

  • Access help

    I can't open Lenovo access help on my new Lenovo Thinkpad W510. I get the massage "cannot open the file masteraibl.chm::/Welcome.htm. Maybe someone can help.

  • M425 camera software

    The recognition of the computer and adaptation software is available online?

  • HP Officejet Pro 8600 wireless to automatically reconnect after router turned back?

    I have the printer connected wireless have pick up the IP of the router configuration. Whenever the router is turned off and turned on, the printer loses the configuration of the wireless network and I must choose the wireless network and re-enter th

  • BBC IPlayer and five application won't work and State to install Adobe Flash Player

    Original title: I installed the adobe flash player, but the bbc iplayer doesn't work. I INSTALLED ADOBE FLASH PLAYER BUT THE BBC IPLAYER AND DEMAND THAT FIVE WILL NOT ONLY WORK ILS CONTINUE TO ME SAY TO INSTALL THE FLASH PLAYER

  • SQLdeveloper 4 does not not on windows 7

    SQLdeveloper4 downloaded and unpacked on windows 7 64 bit sp1.Has worked the first time around, but now I have these messages intermittently. I saw another post on this subject, but the solution to remove the files of Appdata\roaming\sqldevloper did