Tuesday, May 10, 2011

Oracle TDE: Tablespace Encryption handson

Specify an Oracle Wallet Location in the sqlnet.ora File


[oracle@vmxdb01 ~]$ cat $ORACLE_HOME/network/admin/sqlnet.ora

ENCRYPTION_WALLET_LOCATION=

(SOURCE=

(METHOD=FILE)

(METHOD_DATE=

(DIRECTORY=/u01/app/oracle/product/11.2.0.2/db_1/wallet)

)

)


Create the Master Encryption Key


[oracle@vmxdb01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Mon May 9 22:34:17 2011

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> ALTER SYSTEM SET ENCRYPTION KEY IDENTIFIED BY "Easy2rem";

ALTER SYSTEM SET ENCRYPTION KEY IDENTIFIED BY "Easy2rem"

*

ERROR at line 1:

ORA-28368: cannot auto-create wallet


[oracle@vmxdb01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Mon May 9 22:34:17 2011

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> ! ls -l /u01/app/oracle/product/11.2.0.2/db_1/wallet

ls: cannot access /u01/app/oracle/product/11.2.0.2/db_1/wallet: No such file or directory

SQL> ! mkdir /u01/app/oracle/product/11.2.0.2/db_1/wallet

SQL> -- Easy2rem is the wallet password, not the master key.

SQL> -- master key is a key stored in wallet, can not be seen

SQL> alter system set encryption key identified by "Easy2rem";

System altered.

SQL> -- Wallet is open after initial creation


SQL> ! ls -ltr /u01/app/oracle/product/11.2.0.2/db_1/wallet

total 4

-rw-r--r--. 1 oracle oinstall 1573 May 9 22:35 ewallet.p12


SQL> create tablespace securetbs

2 datafile '/u01/app/oracle/oradata/orcl/securetbs01.dbf' size 10m autoextend on

3 encryption

4 default storage(encrypt);

Tablespace created.

SQL> create table tbl_sec (name varchar2(20));

Table created.

SQL> drop table tbl_sec purge;

Table dropped.

SQL> create table tbl_sec (name varchar2(20)) tablespace securetbs;

Table created.

SQL> insert into tbl_sec values('donghua');

1 row created.

SQL> insert into tbl_sec values('kaitlyn');

1 row created.

SQL> commit;

Commit complete.

SQL> create tablespace securetbs2

2 datafile '/u01/app/oracle/oradata/orcl/securetbs201.dbf' size 10m autoextend on

3 encryption using 'aes256'

4 default storage(encrypt);

Tablespace created.


SQL> select ts#,name from v$tablespace;

TS# NAME

---------- ------------------------------

0 SYSTEM

1 SYSAUX

2 UNDOTBS1

4 USERS

3 TEMP

6 EXAMPLE

7 SECURETBS

8 SECURETBS2

8 rows selected.


Rekey the master key


SQL> select * from v$encrypted_tablespaces;

TS# ENCRYPT ENC

---------- ------- ---

ENCRYTPEDKEY

----------------------------------------------------------------

MASTERKEYID BLOCKS_ENCRYPTED BLOCKS_DECRYPTED

-------------------------------- ---------------- ----------------

7 AES128 YES

204FD4ADFEAF4E1C30EDF832EAF60FBA00000000000000000000000000000000

4BF36F5317CC4FBFBFE376412BA3E2BF 0 0

8 AES256 YES

07852161AA012F3BF201D058F41E92EC28C946F04BDD44684F07C51B3883CF52

4BF36F5317CC4FBFBFE376412BA3E2BF 0 0

Change the master encryption key


SQL> alter system set encryption key identified by "Easy2rem";

System altered.

SQL> select * from v$encrypted_tablespaces;

TS# ENCRYPT ENC

---------- ------- ---

ENCRYTPEDKEY

----------------------------------------------------------------

MASTERKEYID BLOCKS_ENCRYPTED BLOCKS_DECRYPTED

-------------------------------- ---------------- ----------------

7 AES128 YES

D0273DC55D82A8CA01F50795001E2DF7E9CA6BD63D67347CAD5FD323BC0FCFF8

0CBD900BD9E24FE7BFA2A120F1353E0A 5 0

8 AES256 YES

7F408761EB8E2605E1843681512997D7B4AFBC5ADBA531C84A1F516B50FDBD22

0CBD900BD9E24FE7BFA2A120F1353E0A 0 0

SQL> select * from tbl_sec;

select * from tbl_sec

*

ERROR at line 1:

ORA-28365: wallet is not open

SQL> drop table tbl_sec;

Table dropped.

SQL> flashback table tbl_sec to before drop;

Flashback complete.


SQL> insert into tbl_sec values('donghua');

insert into tbl_sec values('donghua')

*

ERROR at line 1:

ORA-28365: wallet is not open

SQL> alter system set encryption wallet open identified by "Easy2rem";

System altered.

SQL> select * from tbl_sec;

NAME

--------------------

donghua

kaitlyn

SQL> alter system set encryption wallet close;

alter system set encryption wallet close

*

ERROR at line 1:

ORA-28390: auto login wallet not open

SQL> alter system set encryption wallet close identified by "Easy2rem";

System altered.


SQL> select * from tbl_sec;

select * from tbl_sec

*

ERROR at line 1:

ORA-28365: wallet is not open


SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

Total System Global Area 627732480 bytes

Fixed Size 1345992 bytes

Variable Size 419431992 bytes

Database Buffers 201326592 bytes

Redo Buffers 5627904 bytes

Database mounted.

Database opened.

SQL> select * from tbl_sec;

select * from tbl_sec

*

ERROR at line 1:

ORA-28365: wallet is not open

SQL> alter system set encryption wallet open identified by "Easy2rem";

System altered.

SQL> select * from tbl_sec;

NAME

--------------------

donghua

kaitlyn


[oracle@vmxdb01 ~]$ ls -ltr /u01/app/oracle/product/11.2.0.2/db_1/wallet

-rw-r--r--. 1 oracle oinstall 1837 May 9 22:47 /u01/app/oracle/product/11.2.0.2/db_1/wallet/ewallet.p12


Change Wallet Password


[oracle@vmxdb01 ~]$ orapki

Oracle PKI Tool : Version 11.2.0.2.0 - Production

Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.

orapki [crl|wallet|cert|help] <-nologo>


[oracle@vmxdb01 ~]$ orapki wallet display -wallet $ORACLE_HOME/wallet

Oracle PKI Tool : Version 11.2.0.2.0 - Production

Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.

Enter wallet password: Easy2rem

Requested Certificates:

Subject: CN=oracle

User Certificates:

Oracle Secret Store entries:

ORACLE.SECURITY.DB.ENCRYPTION.AQy9kAvZ4k/nv6KhIPE1PgoAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

ORACLE.SECURITY.DB.ENCRYPTION.AUvzb1MXzE+/v+N2QSuj4r8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA

ORACLE.SECURITY.DB.ENCRYPTION.MASTERKEY

ORACLE.SECURITY.TS.ENCRYPTION.BUsUJZGRoNKeBXtav3J2iDYCAwAAAAAAAAAAAAAAAAAAAAAAAAAA

Trusted Certificates:


[oracle@vmxdb01 ~]$ orapki wallet change_pwd -wallet $ORACLE_HOME/wallet

Oracle PKI Tool : Version 11.2.0.2.0 - Production

Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.

Enter wallet password: Easy2rem

New password:

Enter wallet password: Never4get


[oracle@vmxdb01 ~]$ orapki wallet change_pwd -wallet $ORACLE_HOME/wallet -oldpwd Never4get -newpwd Lost1World

Oracle PKI Tool : Version 11.2.0.2.0 - Production

Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.


SQL> conn donghua/donghua

Connected.

SQL> select * from sys.tbl_sec;

NAME

--------------------

donghua

kaitlyn


SQL> alter system set encryption wallet close identified by "Lost1World";

System altered.


SQL> alter system set encryption wallet open identified by "Lost1World";

System altered.

SQL> select * from sys.tbl_sec;

NAME

--------------------

donghua

kaitlyn


[oracle@vmxdb01 ~]$ orapki wallet change_pwd -wallet $ORACLE_HOME/wallet -oldpwd Lost1World -newpwd Big2Recall

Oracle PKI Tool : Version 11.2.0.2.0 - Production

Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.


[oracle@vmxdb01 ~]$ sqlplus donghua/donghua

SQL*Plus: Release 11.2.0.2.0 Production on Mon May 9 23:16:36 2011

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from sys.tbl_sec;

NAME

--------------------

donghua

kaitlyn

SQL> alter system set encryption wallet close identified by "Lost1World";

System altered.

SQL> alter system set encryption wallet open identified by "Lost1World";

alter system set encryption wallet open identified by "Lost1World"

*

ERROR at line 1:

ORA-28353: failed to open wallet

SQL> alter system set encryption wallet open identified by "Big2Recall";

System altered.

SQL> alter system set encryption wallet close identified by "Lost1World";

alter system set encryption wallet close identified by "Lost1World"

*

ERROR at line 1:

ORA-28391: cannot close wallet or HSM, password mismatch

Auto Login Wallet


[oracle@vmxdb01 ~]$ orapki wallet create -wallet $ORACLE_HOME/wallet -auto_login -pwd Big2Recall

Oracle PKI Tool : Version 11.2.0.2.0 - Production

Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.

[oracle@vmxdb01 ~]$ ls -l $ORACLE_HOME/wallet

total 8

-rw-------. 1 oracle oinstall 1915 May 9 23:19 cwallet.sso

-rw-------. 1 oracle oinstall 1838 May 9 23:16 ewallet.p12


[oracle@vmxdb01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Mon May 9 23:20:37 2011

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

Total System Global Area 627732480 bytes

Fixed Size 1345992 bytes

Variable Size 419431992 bytes

Database Buffers 201326592 bytes

Redo Buffers 5627904 bytes

Database mounted.

Database opened.

SQL> select * from tbl_sec;

NAME

--------------------

donghua

kaitlyn


SQL> select * from v$encryption_wallet;

WRL_TYPE

--------------------

WRL_PARAMETER

--------------------------------------------------------------------------------

STATUS

------------------

file

/u01/app/oracle/product/11.2.0.2/db_1/wallet

OPEN


[oracle@vmxdb01 ~]$ orapki wallet display -wallet $ORACLE_HOME/wallet

Oracle PKI Tool : Version 11.2.0.2.0 - Production

Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.

Requested Certificates:

Subject: CN=oracle

User Certificates:

Oracle Secret Store entries:

ORACLE.SECURITY.DB.ENCRYPTION.AQy9kAvZ4k/nv6KhIPE1PgoAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

ORACLE.SECURITY.DB.ENCRYPTION.AUvzb1MXzE+/v+N2QSuj4r8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA

ORACLE.SECURITY.DB.ENCRYPTION.MASTERKEY

ORACLE.SECURITY.TS.ENCRYPTION.BUsUJZGRoNKeBXtav3J2iDYCAwAAAAAAAAAAAAAAAAAAAAAAAAAA

Trusted Certificates:



Disable Autologin Wallet


[oracle@vmxdb01 wallet]$ rm $ORACLE_HOME/wallet/cwallet.sso

[oracle@vmxdb01 wallet]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Mon May 9 23:33:22 2011

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from tbl_sec;

NAME

--------------------

donghua

kaitlyn

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

Total System Global Area 627732480 bytes

Fixed Size 1345992 bytes

Variable Size 419431992 bytes

Database Buffers 201326592 bytes

Redo Buffers 5627904 bytes

Database mounted.

Database opened.

SQL> select * from tbl_sec;

select * from tbl_sec

*

ERROR at line 1:

ORA-28365: wallet is not open

SQL> select * from v$encryption_wallet;

WRL_TYPE

--------------------

WRL_PARAMETER

--------------------------------------------------------------------------------

STATUS

------------------

file

/u01/app/oracle/product/11.2.0.2/db_1/wallet

CLOSED

SQL> alter system set encryption wallet open identified by Big2Recall;

alter system set encryption wallet open identified by Big2Recall

*

ERROR at line 1:

ORA-28353: failed to open wallet

SQL> alter system set encryption wallet open identified by "Big2Recall";

System altered.

SQL> select * from v$encryption_wallet;

WRL_TYPE

--------------------

WRL_PARAMETER

--------------------------------------------------------------------------------

STATUS

------------------

file

/u01/app/oracle/product/11.2.0.2/db_1/wallet

OPEN

Backup without wallet open


Starting backup at 09-MAY-11

using channel ORA_DISK_1

channel ORA_DISK_1: starting compressed full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf

input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf

input datafile file number=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf

input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf

input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf

input datafile file number=00006 name=/u01/app/oracle/oradata/orcl/securetbs01.dbf

input datafile file number=00007 name=/u01/app/oracle/oradata/orcl/securetbs201.dbf

channel ORA_DISK_1: starting piece 1 at 09-MAY-11

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 05/09/2011 23:36:49

ORA-19914: unable to encrypt backup

ORA-28365: wallet is not open

continuing other job steps, job failed will not be re-run

channel ORA_DISK_1: starting compressed full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

including current control file in backup set

including current SPFILE in backup set

channel ORA_DISK_1: starting piece 1 at 09-MAY-11

channel ORA_DISK_1: finished piece 1 at 09-MAY-11

piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_ncsnf_TAG20110509T233648_6wj2jl9n_.bkp tag=TAG20110509T233648 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of backup plus archivelog command at 05/09/2011 23:36:51

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 05/09/2011 23:36:49

ORA-19914: unable to encrypt backup

ORA-28365: wallet is not open



RMAN> sql 'alter system set encryption wallet open identified by "Big2Recall"';

sql statement: alter system set encryption wallet open identified by "Big2Recall"

RMAN> backup as compressed backupset database;

Starting backup at 09-MAY-11

using channel ORA_DISK_1

channel ORA_DISK_1: starting compressed full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf

input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf

input datafile file number=00005 name=/u01/app/oracle/oradata/orcl/example01.dbf

input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf

input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf

input datafile file number=00006 name=/u01/app/oracle/oradata/orcl/securetbs01.dbf

input datafile file number=00007 name=/u01/app/oracle/oradata/orcl/securetbs201.dbf

channel ORA_DISK_1: starting piece 1 at 09-MAY-11

channel ORA_DISK_1: finished piece 1 at 09-MAY-11

piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T233809_6wj2m1w7_.bkp tag=TAG20110509T233809 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:01:05

channel ORA_DISK_1: starting compressed full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

including current control file in backup set

including current SPFILE in backup set

channel ORA_DISK_1: starting piece 1 at 09-MAY-11

channel ORA_DISK_1: finished piece 1 at 09-MAY-11

piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_ncsnf_TAG20110509T233809_6wj2o42l_.bkp tag=TAG20110509T233809 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01

Finished backup at 09-MAY-11



RMAN> sql 'alter tablespace securetbs offline';

sql statement: alter tablespace securetbs offline

RMAN>

RMAN>

RMAN> sql 'alter system set encryption wallet close identified by "Big2Recall"';

sql statement: alter system set encryption wallet close identified by "Big2Recall"

RMAN> restore tablespace securetbs;

Starting restore at 09-MAY-11

using channel ORA_DISK_1

channel ORA_DISK_1: starting datafile backup set restore

channel ORA_DISK_1: specifying datafile(s) to restore from backup set

channel ORA_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/orcl/securetbs01.dbf

channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T233809_6wj2m1w7_.bkp

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of restore command at 05/09/2011 23:43:16

ORA-19870: error while restoring backup piece /u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T233809_6wj2m1w7_.bkp

ORA-19913: unable to decrypt backup

ORA-28365: wallet is not open

RMAN> list backup of database;

List of Backup Sets

===================

BS Key Type LV Size Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

3 Full 285.05M DISK 00:00:58 09-MAY-11

BP Key: 3 Status: AVAILABLE Compressed: YES Tag: TAG20110509T233809

Piece Name: /u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T233809_6wj2m1w7_.bkp

List of Datafiles in backup set 3

File LV Type Ckp SCN Ckp Time Name

---- -- ---- ---------- --------- ----

1 Full 1055434 09-MAY-11 /u01/app/oracle/oradata/orcl/system01.dbf

2 Full 1055434 09-MAY-11 /u01/app/oracle/oradata/orcl/sysaux01.dbf

3 Full 1055434 09-MAY-11 /u01/app/oracle/oradata/orcl/undotbs01.dbf

4 Full 1055434 09-MAY-11 /u01/app/oracle/oradata/orcl/users01.dbf

5 Full 1055434 09-MAY-11 /u01/app/oracle/oradata/orcl/example01.dbf

6 Full 1055434 09-MAY-11 /u01/app/oracle/oradata/orcl/securetbs01.dbf

7 Full 1055434 09-MAY-11 /u01/app/oracle/oradata/orcl/securetbs201.dbf

RMAN> sql 'alter tablespace users offline';

sql statement: alter tablespace users offline

RMAN> restore tablespace users;

Starting restore at 09-MAY-11

using channel ORA_DISK_1

channel ORA_DISK_1: starting datafile backup set restore

channel ORA_DISK_1: specifying datafile(s) to restore from backup set

channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf

channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T233809_6wj2m1w7_.bkp

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of restore command at 05/09/2011 23:44:07

ORA-19870: error while restoring backup piece /u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T233809_6wj2m1w7_.bkp

ORA-19913: unable to decrypt backup

ORA-28365: wallet is not open

RMAN> sql 'alter system set encryption wallet open identified by "Big2Recall"';

sql statement: alter system set encryption wallet open identified by "Big2Recall"

RMAN> restore tablespace securetbs;

Starting restore at 09-MAY-11

using channel ORA_DISK_1

channel ORA_DISK_1: starting datafile backup set restore

channel ORA_DISK_1: specifying datafile(s) to restore from backup set

channel ORA_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/orcl/securetbs01.dbf

channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T233809_6wj2m1w7_.bkp

channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T233809_6wj2m1w7_.bkp tag=TAG20110509T233809

channel ORA_DISK_1: restored backup piece 1

channel ORA_DISK_1: restore complete, elapsed time: 00:00:01

Finished restore at 09-MAY-11

RMAN> recover tablespace securetbs;

Starting recover at 09-MAY-11

using channel ORA_DISK_1

starting media recovery

media recovery complete, elapsed time: 00:00:00

Finished recover at 09-MAY-11

RMAN> sql 'alter tablespace securetbs online';

sql statement: alter tablespace securetbs online

RMAN> sql 'alter tablespace users online';

sql statement: alter tablespace users online



The side effects of backup encrytion does not apply to other tablespace alone


RMAN> sql 'alter system set encryption wallet close identified by "Big2Recall"';

sql statement: alter system set encryption wallet close identified by "Big2Recall"

RMAN> backup as compressed backupset tablespace users;

Starting backup at 09-MAY-11

using channel ORA_DISK_1

channel ORA_DISK_1: starting compressed full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf

channel ORA_DISK_1: starting piece 1 at 09-MAY-11

channel ORA_DISK_1: finished piece 1 at 09-MAY-11

piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T234702_6wj33pr3_.bkp tag=TAG20110509T234702 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01

Finished backup at 09-MAY-11

RMAN> sql 'alter tablespace users offline';

sql statement: alter tablespace users offline

RMAN> restore tablespace users;

Starting restore at 09-MAY-11

using channel ORA_DISK_1

channel ORA_DISK_1: starting datafile backup set restore

channel ORA_DISK_1: specifying datafile(s) to restore from backup set

channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf

channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T234702_6wj33pr3_.bkp

channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2011_05_09/o1_mf_nnndf_TAG20110509T234702_6wj33pr3_.bkp tag=TAG20110509T234702

channel ORA_DISK_1: restored backup piece 1

channel ORA_DISK_1: restore complete, elapsed time: 00:00:01

Finished restore at 09-MAY-11

RMAN> recover tablespace users;

Starting recover at 09-MAY-11

using channel ORA_DISK_1

starting media recovery

media recovery complete, elapsed time: 00:00:00

Finished recover at 09-MAY-11

RMAN> sql 'alter tablespace users online';

sql statement: alter tablespace users online

RMAN> exit

Recovery Manager complete.

[oracle@vmxdb01 wallet]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Mon May 9 23:47:52 2011

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from v$encryption_wallet;

WRL_TYPE

--------------------

WRL_PARAMETER

--------------------------------------------------------------------------------

STATUS

------------------

file

/u01/app/oracle/product/11.2.0.2/db_1/wallet

CLOSED

Monday, May 9, 2011

Why crosscable is not supported in Oracle RAC?


Although it is possible in a two-node cluster to have the private network consist of a simple crossover cable, this is not recommended (or supported), because some network interface cards (NICs) and drivers require media sensing, which is not available without connectivity to a switch. For example, if one node is powered down, the card for the interconnect on the surviving node is disabled, because no more activity is being sensed across the interconnect. This can lead to errors on the surviving node.

Tuesday, May 3, 2011

Connect to MYSQL database from Oracle through DG4ODBC

Envrionment:

[root@ncsdba2 lib]# lsb_release -id
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
[root@ncsdba2 oracle]# rpm -qa|grep mysql
mysql-server-5.0.77-4.el5_4.2
mysql-connector-odbc-5.1.8-1.rhel5
mysql-5.0.77-4.el5_4.2

MySQL Setup

[oracle@ncsdba2 ~]$ mysql -u oragwuser -pora123 -h ncsdba2.ncs.corp.int-ads
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create user oragwuser@'%' identified by 'ora123';
Query OK, 0 rows affected (0.00 sec)

mysql> create database oragwdb;
Query OK, 1 row affected (0.02 sec)

mysql> use oragwdb;
Database changed
mysql> grant all privileges on oragwdb.* to 'oragwuser'@'%';
Query OK, 0 rows affected (0.00 sec)


mysql> show grants for 'oragwuser'@'%';
+----------------------------------------------------------------------------+
| Grants for oragwuser@% |
+----------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'oragwuser'@'%' IDENTIFIED BY PASSWORD 'eae540d9bbf' |
| GRANT ALL PRIVILEGES ON `oragwdb`.* TO 'oragwuser'@'%' |
+----------------------------------------------------------------------------+
2 rows in set (0.00 sec)

mysql> use oragwdb;
Database changed

mysql> insert into mysql_table1 values(1,'donghua'),(2,'kaitlyn');
Query OK, 2 rows affected (0.00 sec)
Records: 2 Duplicates: 0 Warnings: 0

mysql> commit;
Query OK, 0 rows affected (0.00 sec)

mysql> select * from mysql_table1;
+------+---------+
| id | name |
+------+---------+
| 1 | donghua |
| 2 | kaitlyn |
+------+---------+
2 rows in set (0.00 sec)

Install MySQL-ODBC

[root@ncsdba2 oracle]# /usr/bin/myodbc-installer -d -l
PostgreSQL
MySQL ODBC 5.1 Driver
[root@ncsdba2 oracle]# /usr/bin/myodbc-installer -s -a -c2 -n "mysql_odbc" \
> -t "DRIVER=MySQL ODBC 5.1 Driver;SERVER=ncsdba2.ncs.corp.int-ads;DATABASE=oragwdb;UID=oragwuser;PWD=ora123"
Success
[root@ncsdba2 oracle]# /usr/bin/myodbc-installer -s -l -c2 -n "mysql_odbc"
Name: mysql_odbc
Driver: /usr/lib/libmyodbc5.so
Server: ncsdba2.ncs.corp.int-ads
Uid: oragwuser
Pwd: ora123
Database: oragwdb
Port: 3306
Options:

[root@ncsdba2 oracle]# cat /etc/odbc.ini
[mysql_odbc]
Driver = /usr/lib/libmyodbc5.so
SERVER = ncsdba2.ncs.corp.int-ads
UID = oragwuser
PWD = ora123
DATABASE = oragwdb
PORT = 3306
Verify MySQL-ODBC Setup

[oracle@ncsdba2 ~]$ odbcinst -j
unixODBC 2.2.11
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
USER DATA SOURCES..: /home/oracle/.odbc.ini
[root@ncsdba2 oracle]# isql -v mysql_odbc oragwuser ora123
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> help mysql_table1
+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+----------+---------------------+------------+--------------+---------------+---------------+---------+-----------------------------------------------------------------+-----------------------------------------------------------------+--------------+-----------------+------------------+-----------------+------------+
| TABLE_CAT | TABLE_SCHEM | TABLE_NAME | COLUMN_NAME | DATA_TYPE| TYPE_NAME | COLUMN_SIZE| BUFFER_LENGTH| DECIMAL_DIGITS| NUM_PREC_RADIX| NULLABLE| REMARKS | COLUMN_DEF | SQL_DATA_TYPE| SQL_DATETIME_SUB| CHAR_OCTET_LENGTH| ORDINAL_POSITION| IS_NULLABLE|
+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+----------+---------------------+------------+--------------+---------------+---------------+---------+-----------------------------------------------------------------+-----------------------------------------------------------------+--------------+-----------------+------------------+-----------------+------------+
| | | mysql_table1 | id | 4 | integer | 10 | 4 | 0 | 10 | 1 | | | 4 | | | 1 | YES |
| | | mysql_table1 | name | 12 | varchar | 200 | 200 | | | 1 | | | 12 | | 200 | 2 | YES |
+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+----------+---------------------+------------+--------------+---------------+---------------+---------+-----------------------------------------------------------------+-----------------------------------------------------------------+--------------+-----------------+------------------+-----------------+------------+
SQLRowCount returns 2
2 rows fetched
SQL> select * from mysql_table1;
+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | name |
+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1 | donghua |
| 2 | kaitlyn |
+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SQLRowCount returns 2
2 rows fetched
SQL> help
+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+---------------------------------------------------------------------------------+
| TABLE_CAT | TABLE_SCHEM | TABLE_NAME | TABLE_TYPE | REMARKS |
+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+---------------------------------------------------------------------------------+
| oragwdb | | mysql_table1 | TABLE | |
+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+---------------------------------------------------------------------------------+
SQLRowCount returns 1
1 rows fetched
SQL> quit

Configure DG4ODBC in Oracle

Modify file “$ORACLE_HOME/hs/admin/initdg4odbc.ora”
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC

#
# HS init parameters
#
HS_FDS_CONNECT_INFO = mysql_odbc
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib/libmyodbc5.so

#
# ODBC specific environment variables
#
set ODBCINI=/etc/odbc.ini


#
# Environment variables required for the non-Oracle system
#
#set =
Modify file “$ORACLE_HOME/network/admin/listener.ora”:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ncsdba2.ncs.corp.int-ads)(PORT = 1521))
)
)

ADR_BASE_LISTENER = /u01/app/oracle

SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=dg4odbc)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM=dg4odbc)
)
)
Modify file “$ORACLE_HOME/network/admin/tnsnames.ora”:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ncsdba2.ncs.corp.int-ads)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)

dg4odbc =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=dg4odbc))
(HS=OK)
)
[oracle@ncsdba2 ~]$ tnsping dg4odbc

TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 03-MAY-2011 14:50:01

Copyright (c) 1997, 2009, Oracle. All rights reserved.

Used parameter files:
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)) (CONNECT_DATA=(SID=dg4odbc)) (HS=OK))
OK (50 msec)

Create Database Link

[oracle@ncsdba2 log]$ sqlplus donghua/donghua

SQL*Plus: Release 11.2.0.1.0 Production on Tue May 3 14:52:30 2011

Copyright (c) 1982, 2009, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, Data Mining and Oracle Database Vault options
SQL> create database link mysqldb connect to "oragwuser" identified by "ora123" using 'dg4odbc';

Database link created.

Verify the Setup

SQL> desc "mysql_table1"@mysqldb;
Name Null? Type
---------------------------------- -------- ----------------
id NUMBER(10)
name VARCHAR2(200)
SQL> select * from "mysql_table1"@mysqldb;

id name
---------- ----------
1 donghua
2 kaitlyn

SQL> insert into "mysql_table1"@mysqldb
2 values (3,'succeed');

1 row created.

SQL> commit;

Commit complete.

SQL> select * from "mysql_table1"@mysqldb;

id
----------
name
--------------------------------------------------------------------------------
1
donghua

2
kaitlyn

3
succeed
[root@ncsdba2 lib]# isql -v mysql_odbc oragwuser ora123
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> select * from mysql_table1;
+-----------+----------------------------------------------------------+
| id | name +----------------------------------------------------------------------+
| 1 | donghua
| 2 | kaitlyn
| 3 | succeed
+-------- -------------------------------------------------------------+
SQLRowCount returns 3
3 rows fetched
SQL> quit
[root@ncsdba2 lib]# mysql -u oragwuser -pora123 -h ncsdba2.ncs.corp.int-ads
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 23
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select * from oragwdb.mysql_table1;
+------+---------+
| id | name |
+------+---------+
| 1 | donghua |
| 2 | kaitlyn |
| 3 | succeed |
+------+---------+
3 rows in set (0.00 sec)

mysql> exit
Bye

Enforcing client to use didicated server connection






The “Routing” tab enables you to direct connection requests from this computer to a specific process at all times.


“Always Use Dedicated Server” Choose to force the listener to spawn a dedicated server for all network sessions from this client. It does this by adding (SERVER=dedicated) to the CONNECT_DATA portion of connect descriptors. Connections from this client use dedicated servers, even if shared server is configured.


Using this option makes connections faster, but makes the server slower. Oracle Corporation recommends using this option if you are making massive database transactions with very little idle time.



Note: This option, if enabled, overrides the Connect Type option in the Service Identification property sheet.



This option is equivalent to set “USE_DEDICATED_SERVER = on” in the sqlnet.ora


Monday, May 2, 2011

How to read the “Oracle Critical Patch Update Advisory - April 2011

Original CPU Apr-2011 URL: http://www.oracle.com/technetwork/topics/security/cpuapr2011-301950.html

 

Oracle does not want to disclose any information that an attacker might use to develop a successful exploit against an Oracle product. For this reason, there is no clue that what the security vulnerabilities exactly are.

 

Important Section (1):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Affected Products and Versions

Patch Availability

Oracle Database 11g Release 2, versions 11.2.0.1, 11.2.0.2

Database

Oracle Database 11g Release 1, version 11.1.0.7

Database

Oracle Database 10g Release 2, versions 10.2.0.3, 10.2.0.4, 10.2.0.5

Database

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

Above section indicates affected product releases and versions that are in Premier Support or Extended Support. If your database version is not there, it could be 2 reasons: 1) it's not affected. 2) it's affected, but the version is not under premier/extended support, one example is 11.1.0.6 and 10.2.0.1.

 

 

Important Section (2):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Appendix - Oracle Database Server

 

Oracle Database Server Executive Summary

 

This Critical Patch Update contains 6 new security fixes for the Oracle Database Server.  2 of these vulnerabilities may be remotely exploitable without authentication, i.e., may be exploited over a network without the need for a username and password.  None of these fixes are applicable to client-only installations, i.e., installations that do not have the Oracle Database Server installed.

 

Oracle Database Server Risk Matrix

 

CVE#

Component

Protocol

Package and/or Privilege Required

Remote Exploit without Auth.?

CVSS VERSION 2.0 RISK (see Risk Matrix Definitions)

Supported Versions Affected

Notes

Base Score

Access Vector

Access Complexity

Authen-
tication

Confiden-
tiality

Integrity

Avail-
ability

CVE-2011-0792

Oracle Warehouse Builder

Oracle Net

Dimensional Data Modeling

No

6.5

Network

Low

Single

Partial+

Partial+

Partial+

10.2.0.5 (OWB), 11.1.0.7

 

CVE-2011-0799

Oracle Warehouse Builder

Oracle Net

Oracle Warehouse Builder User Account

No

6.5

Network

Low

Single

Partial+

Partial+

Partial+

10.2.0.5 (OWB), 11.1.0.7, 11.2.0.1

 

CVE-2009-3555 (Oracle Fusion Middleware)

Oracle Security Service

SSL/HTTPS

C Oracle SSL API

Yes

5.8

Network

Medium

None

None

Partial

Partial

10.1.0.5, 10.2.0.3, 10.2.0.4, 10.2.0.5, 11.1.0.7, 11.2.0.1, 11.2.0.2

 

CVE-2011-0787 (Oracle Enterprise Manager Grid Control)

Application Service Level Management

HTTP

Service Level Agreements

No

5.5

Network

Low

Single

Partial+

Partial+

None

11.1.0.7

 

CVE-2011-0806

Network Foundation

Oracle Net

None

Yes

5.0

Network

Low

None

None

None

Partial+

10.1.0.5, 10.2.0.4, 10.2.0.5, 11.1.0.7, 11.2.0.1, 11.2.0.2

See Note 1

CVE-2011-0785 (Oracle Fusion Middleware)

Oracle Help

HTTP

-

Yes

4.3

Network

Medium

None

None

Partial

None

See note

See Note 2

CVE-2011-0805

UIX

HTTP

None

Yes

4.3

Network

Medium

None

None

Partial

None

10.1.0.5, 10.2.0.4, 11.1.0.7, 11.2.0.1

 

CVE-2011-0793

Database Vault

Oracle Net

SYSDBA

No

3.6

Network

High

Single

None

Partial

Partial

10.2.0.3, 10.2.0.4, 10.2.0.5, 11.1.0.7, 11.2.0.1

 

CVE-2011-0804

Database Vault

Oracle Net

Valid Account

No

3.6

Network

High

Single

Partial

Partial

None

10.2.0.3, 10.2.0.4, 10.2.0.5, 11.1.0.7, 11.2.0.1, 11.2.0.2

 

 

 

Notes:

1.     Applicable to Windows servers only.

2.     Fixed in all supported Releases and Patchsets.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To interpret above table:

 

CVE#: This is the industry standard identifier of the vulnerability and is provided by the Common Vulnerability and Exposures group at http://cve.mitre.org/

 

Component: This is the high level component affected by the vulnerability.

 

Protocol: This is the protocol over which the vulnerability can be exploited. Reported protocols typically include TCP/IP such as HTTP or Oracle Net. If the attack is launched via the Operating System then the reported protocol is designated "Local" or "Local Login". In some instances, it is possible to mitigate the vulnerability on the affected systems by blocking or limiting connections using the reported protocol.

 

Package and/or Privilege Required: This is either a subcomponent under the component or the privilege required to launch an attack. When this column contains a privilege, the nature of the privilege required will often be very important in determining risk. For example, if the privilege required is "Session only", meaning that only a logon is required, the risk is much greater than if the privilege was reported as "create table".

 

Remote Exploit without Auth.?: remotely exploitable without authentication, i.e., may be exploited over a network without the need for a username and password

 

Base Score: The CVSS base score defines the severity of the vulnerability and ranges between 0.0 and 10.0, where 10.0 represents the highest severity. Each risk matrix is ordered using this value, with the most severe vulnerability at the top of each risk matrix.

 

Access Vector: The values reported by Oracle are "Network", which means an attack can occur over the network, and "Local", which means that only local attacks are possible (i.e. attacker has physical access to the machine). Generally, local only attacks may be considered lower risk in instanced where the IT staff is trusted (and has been properly vetted).

 

Access Complexity: This column reports on the difficulty of launching an attack that has already been created. Low means easy access and typically requires no or low levels of privilege.

 

Authentication: This column indicates whether authentication is required in order to exploit the vulnerability. Possible values are : "None", "Single Authentication" or "Multiple Authentications".

 

Confidentiality: Unauthorized disclosure of data

 

Integrity: Unauthorized create/update/delete of data

 

Availability: Unauthorized denial of service

 

Supported Versions Affected: Affected version, only list these version under premier/extended supporthttps://gcmprm.oracle.com/ctd/tmo?RID=3-1SKLG7O

What are these shrept.lst files, and are they can be safely removed?

Symptoms:

[oracle@vmxdb01 db_1]$ find $ORACLE_HOME -name '*shrept.lst'
/u01/app/oracle/product/11.2.0.2/db_1/xdk/admin/shrept.lst
/u01/app/oracle/product/11.2.0.2/db_1/network/admin/shrept.lst
/u01/app/oracle/product/11.2.0.2/db_1/rdbms/admin/shrept.lst
/u01/app/oracle/product/11.2.0.2/db_1/rdbms/admin/orasdkbase_shrept.lst
/u01/app/oracle/product/11.2.0.2/db_1/rdbms/admin/orasdk_shrept.lst
/u01/app/oracle/product/11.2.0.2/db_1/plsql/admin/shrept.lst
/u01/app/oracle/product/11.2.0.2/db_1/precomp/admin/shrept.lst
/u01/app/oracle/product/11.2.0.2/db_1/ldap/admin/shrept.lst

Explaination:
From $ORACLE_HOME/bin/genclntsh
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


# mluong 05/30/97 - Read entry points from $PRODUCT/admin/shrept.lst

# List the required symbols from a product's shrept.lst file
listf () {
product=$1
entryList=$ORACLE_HOME/$product/admin/shrept.lst
grep -v '#' $entryList | \
grep $product | \
awk '{ printf (" -u %s", $3); }'
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

From $ORACLE_HOME/bin/genorasdksh
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


# listf2: List the required symbols from the given shrept.lst file
###
listf2 () {
entryList=$1
product=$2
grep -v '#' $entryList | grep "$product *:" | \
awk '{ printf (" -u %s", $3); }'
}

# listf: List the required symbols from a product's shrept.lst file
###
listf () {
listf2 $ORACLE_HOME/$1/admin/shrept.lst $1
}

#------------------------------------------------------------------------------
# Main program starts here
#------------------------------------------------------------------------------

# Each product *must* provide a $PRODUCT/admin/shrept.lst
###
ErrFiles=
for product in rdbms precomp plsql ldap network; do
SHREPT=$ORACLE_HOME/$product/admin/shrept.lst
[ ! -f $SHREPT ] && ErrFiles="$ErrFiles $SHREPT"
done
[ "$ErrFiles" ] && Error 1 "$PROGRAM: Could not locate $ErrFiles"

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Can these files being manually modified/removed?No recommended. DBA should not modify them unless fully understand the impact.