Sobre a enquete realizada entre os meses de Agosto a Dezembro/2017, segue o resultado abaixo.
Estarei analisando as possibilidades!!!
Feliz Ano Novo!!!!
Legatti
SQL> select id,count(*) from t1 group by id order by 1;
ID COUNT(*)
---------- ----------
1 16777216
2 262144
3 64
SQL> exec dbms_stats.gather_table_stats(
2 ownname=>'SCOTT',
3 tabname=>'T1',
4 cascade => true,
5 METHOD_OPT => 'for all columns size 1');
Procedimento PL/SQL concluído com sucesso.
SQL> show parameter cursor_sharing;
NAME TYPE VALUE
--------------------------- ------------- ---------------------
cursor_sharing string EXACT
SQL> select count(object_name) from t1 where id=1;
COUNT(OBJECT_NAME)
------------------
16777216
SQL> select count(object_name) from t1 where id=2;
COUNT(OBJECT_NAME)
------------------
262144
SQL> select count(object_name) from t1 where id=3;
COUNT(OBJECT_NAME)
------------------
64
SQL> SELECT sql_id,
2 hash_value,
3 version_count,
4 executions,
5 parsing_schema_name,
6 module,
7 last_active_time,
8 is_bind_sensitive,
9 is_bind_aware,
10 sql_profile,
11 sql_text
12 FROM V$SQLAREA
13 WHERE LOWER (SQL_TEXT) LIKE 'select count(object_name) from t1%'
14 AND LOWER (SQL_TEXT) NOT LIKE '%HASH%';
SQL_ID HASH_VALUE VERSION_COUNT EXECUTIONS PARSING_SC MODULE LAST_ACTIVE_TIME I I SQL_PROFIL SQL_TEXT
---------------- ---------- ------------- ---------- ---------- ---------- ------------------- - - ---------- --------------------------------------------
d6jg3h82uc7t1 94773025 1 1 SCOTT SQL*Plus 17/11/2017 10:56:25 N N select count(object_name) from t1 where id=3
84nk5292j0umb 1158703723 1 1 SCOTT SQL*Plus 17/11/2017 10:55:18 N N select count(object_name) from t1 where id=2
1wgjtthkcftxt 617047993 1 1 SCOTT SQL*Plus 17/11/2017 10:55:15 N N select count(object_name) from t1 where id=1
SQL> SELECT sql_id,
2 hash_value,
3 child_number,
4 child_address,
5 plan_hash_value,
6 optimizer_mode,
7 executions,
8 parsing_schema_name,
9 module,
10 last_active_time,
11 is_bind_sensitive,
12 is_bind_aware,
13 sql_profile,
14 sql_text
15 FROM V$SQL
16 WHERE LOWER (SQL_TEXT) LIKE 'select count(object_name) from t1%'
17 AND LOWER (SQL_TEXT) NOT LIKE '%HASH%';
SQL_ID HASH_VALUE CHILD_NUMBER CHILD_ADDRESS PLAN_HASH_VALUE OPTIMIZER_ EXECUTIONS PARSING_SC MODULE LAST_ACTIVE_TIME I I SQL_PROFIL SQL_TEXT
---------------- ---------- ------------ ---------------- --------------- ---------- ---------- ---------- ---------- ------------------- - - ---------- --------------------------------------------
d6jg3h82uc7t1 94773025 0 0000000092188610 3724264953 ALL_ROWS 1 SCOTT SQL*Plus 17/11/2017 10:56:25 N N select count(object_name) from t1 where id=3
84nk5292j0umb 1158703723 0 000000009F85B2D8 3724264953 ALL_ROWS 1 SCOTT SQL*Plus 17/11/2017 10:55:18 N N select count(object_name) from t1 where id=2
1wgjtthkcftxt 617047993 0 00000000944BC930 3724264953 ALL_ROWS 1 SCOTT SQL*Plus 17/11/2017 10:55:15 N N select count(object_name) from t1 where id=1
SQL> explain plan for select count(object_name) from t1 where id=1;
Explicado.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
---------------------------------------------------------------------------
Plan hash value: 3724264953
---------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 10 | 55703 (1)| 00:11:09 |
| 1 | SORT AGGREGATE | | 1 | 10 | | |
|* 2 | TABLE ACCESS FULL| T1 | 5679K| 54M| 55703 (1)| 00:11:09 |
---------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - filter("ID"=1)
14 linhas selecionadas.
SQL> SELECT a.owner,
2 a.table_name,
3 a.column_name,
4 a.data_type,
5 a.num_distinct,
6 a.density,
7 a.histogram,
8 a.num_buckets,
9 a.last_analyzed,
10 b.endpoint_number,
11 b.endpoint_value
12 FROM dba_tab_columns a, dba_tab_histograms b, dba_tab_col_statistics c
13 WHERE a.owner = b.owner(+)
14 AND a.table_name = b.table_name(+)
15 AND a.column_name = b.column_name(+)
16 AND b.owner = c.owner(+)
17 AND b.table_name = c.table_name(+)
18 AND b.column_name = c.column_name(+)
19 AND a.owner='SCOTT'
20 AND a.table_name='T1'
21 AND a.column_name='ID';
OWNER TABLE_NAME COLUMN_NAME DATA_TYPE NUM_DISTINCT DENSITY HISTOGRAM NUM_BUCKETS LAST_ANALYZED ENDPOINT_NUMBER ENDPOINT_VALUE
------------ --------------- ---------------- ---------- ------------ ---------- --------------- ----------- ------------------- --------------- --------------
SCOTT T1 ID NUMBER 3 ,333333333 NONE 1 17/11/2017 10:41:12 1 3
SCOTT T1 ID NUMBER 3 ,333333333 NONE 1 17/11/2017 10:41:12 0 1
SQL> exec dbms_stats.gather_table_stats(
2 ownname=>'SCOTT',
3 tabname=>'T1',
4 cascade => true,
5 METHOD_OPT => 'for columns ID');
Procedimento PL/SQL concluído com sucesso.
SQL> SELECT a.owner,
2 a.table_name,
3 a.column_name,
4 a.data_type,
5 a.num_distinct,
6 a.density,
7 a.histogram,
8 a.num_buckets,
9 a.last_analyzed,
10 b.endpoint_number,
11 b.endpoint_value
12 FROM dba_tab_columns a, dba_tab_histograms b, dba_tab_col_statistics c
13 WHERE a.owner = b.owner(+)
14 AND a.table_name = b.table_name(+)
15 AND a.column_name = b.column_name(+)
16 AND b.owner = c.owner(+)
17 AND b.table_name = c.table_name(+)
18 AND b.column_name = c.column_name(+)
19 AND a.owner='SCOTT'
20 AND a.table_name='T1'
21 AND a.column_name='ID';
OWNER TABLE_NAME COLUMN_NAME DATA_TYPE NUM_DISTINCT DENSITY HISTOGRAM NUM_BUCKETS LAST_ANALYZED ENDPOINT_NUMBER ENDPOINT_VALUE
------------ --------------- ---------------- ---------- ------------ ---------- --------------- ----------- ------------------- --------------- --------------
SCOTT T1 ID NUMBER 3 3,0206E-08 FREQUENCY 3 17/11/2017 11:28:47 5262 1
SCOTT T1 ID NUMBER 3 3,0206E-08 FREQUENCY 3 17/11/2017 11:28:47 5343 3
SCOTT T1 ID NUMBER 3 3,0206E-08 FREQUENCY 3 17/11/2017 11:28:47 5342 2
SQL> select count(object_name) from t1 where id=1;
COUNT(OBJECT_NAME)
------------------
16777216
SQL> select count(object_name) from t1 where id=2;
COUNT(OBJECT_NAME)
------------------
262144
SQL> select count(object_name) from t1 where id=3;
COUNT(OBJECT_NAME)
------------------
64
SQL> SELECT sql_id,
2 hash_value,
3 child_number,
4 child_address,
5 plan_hash_value,
6 optimizer_mode,
7 executions,
8 parsing_schema_name,
9 module,
10 last_active_time,
11 is_bind_sensitive,
12 is_bind_aware,
13 sql_profile,
14 sql_text
15 FROM V$SQL
16 WHERE LOWER (SQL_TEXT) LIKE 'select count(object_name) from t1%'
17 AND LOWER (SQL_TEXT) NOT LIKE '%HASH%';
SQL_ID HASH_VALUE CHILD_NUMBER CHILD_ADDRESS PLAN_HASH_VALUE OPTIMIZER_ EXECUTIONS PARSING_SC MODULE LAST_ACTIVE_TIME I I SQL_PROFIL SQL_TEXT
---------------- ---------- ------------ ---------------- --------------- ---------- ---------- ---------- ---------- ------------------- - - ---------- --------------------------------------------
d6jg3h82uc7t1 94773025 0 000000009F8DED10 1284813898 ALL_ROWS 1 SCOTT SQL*Plus 17/11/2017 11:40:25 N N select count(object_name) from t1 where id=3
84nk5292j0umb 1158703723 0 0000000098978A30 1284813898 ALL_ROWS 1 SCOTT SQL*Plus 17/11/2017 11:40:22 N N select count(object_name) from t1 where id=2
1wgjtthkcftxt 617047993 0 000000009F8CA890 3724264953 ALL_ROWS 1 SCOTT SQL*Plus 17/11/2017 11:40:14 N N select count(object_name) from t1 where id=1
SQL> explain plan for select count(object_name) from t1 where id=3;
Explicado.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------
Plan hash value: 1284813898
------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 10 | 52 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | 10 | | |
| 2 | TABLE ACCESS BY INDEX ROWID| T1 | 3189 | 31890 | 52 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | IDX_T1_ID | 3189 | | 9 (0)| 00:00:01 |
------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
3 - access("ID"=3)
15 linhas selecionadas.
SQL> SELECT owner,
2 data_mb,
3 indx_mb,
4 lob_mb,
5 total_mb
6 FROM (SELECT data.owner,
7 NVL(data_mb,0) data_mb,
8 NVL(indx_mb,0) indx_mb,
9 NVL(lob_mb,0) lob_mb,
10 NVL(data_mb,0) + NVL(indx_mb,0) + NVL(lob_mb,0) total_mb
11 FROM ( SELECT owner,
12 ROUND(SUM(data_mb),2) data_mb
13 FROM (SELECT owner, data_mb
14 FROM (SELECT a.owner,
15 b.bytes/1024/1024 AS data_mb
16 FROM dba_tables a, dba_segments b
17 WHERE a.owner = b.owner and a.table_name = b.segment_name))
18 GROUP BY owner) data,
19 ( SELECT a.owner,
20 ROUND(SUM(b.bytes/1024/1024),2) AS indx_mb
21 FROM dba_indexes a, dba_segments b
22 WHERE a.owner = b.owner and a.index_name = b.segment_name
23 GROUP BY a.owner) indx,
24 ( SELECT a.owner,
25 ROUND(SUM(b.bytes/1024/1024),2) AS lob_mb
26 FROM dba_lobs a, dba_segments b
27 WHERE a.owner = b.owner and a.segment_name = b.segment_name
28 GROUP BY a.owner) lob
29 WHERE
30 data.owner = indx.owner(+)
31 AND data.owner = lob.owner(+))
32 WHERE owner in ('SCHEMA01',
33 'SCHEMA02',
34 'SCHEMA03',
35 'SCHEMA04',
36 'SCHEMA05',
37 'SCHEMA06',
38 'SCHEMA07')
39 ORDER BY owner;
OWNER DATA_MB INDX_MB LOB_MB TOTAL_MB
------------------------ ---------- ---------- ---------- ----------
SCHEMA01 16069.38 58428.25 174381.44 248879.07
SCHEMA02 11618 43081.31 9064.94 63764.25
SCHEMA03 93944.63 529311 206722.38 829978.01
SCHEMA04 78.5 107.63 98.56 284.69
SCHEMA05 2814.25 9761.5 14573.5 27149.25
SCHEMA06 3211.88 13447.94 555.75 17215.57
SCHEMA07 9777.44 41685.13 258100.44 309563.01
7 rows selected.
SQL> create index idx_emp_name on emp (emp_name) tablespace indx_tbs_01 online;
ORA-03113: end-of-file on communication channel
SQL> create index idx_emp_name on emp (emp_name) tablespace indx_tbs_01 online;
alter index idx_emp_name rebuild online
*
ERRO na linha 1:
ORA-08104: este objeto de índice 248352 está sendo construído ou reconstruído on-line
SQL> alter index idx_emp_name rebuild online;
alter index idx_emp_name rebuild online
*
ERRO na linha 1:
ORA-08104: este objeto de índice 248352 está sendo construído ou reconstruído on-line
SQL> set timing on
SQL> DECLARE
2 isClean BOOLEAN;
3 BEGIN
4 isClean := FALSE;
5 WHILE isClean=FALSE
6 LOOP
7 isClean := dbms_repair.online_index_clean(
8 dbms_repair.all_index_id, dbms_repair.lock_wait);
9 dbms_lock.sleep(10);
10 END LOOP;
11 END;
12 /
Procedimento PL/SQL concluído com sucesso.
Decorrido: 00:01:00.01
sql> create index idx_emp_name on emp (emp_name) tablespace indx_tbs_01 online;
Índice criado.
Decorrido: 00:00:03.08
SQL> alter system set log_archive_dest_1='LOCATION=/oradata/archivelog';
System altered.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oradata/archivelog
Oldest online log sequence 49
Next log sequence to archive 51
Current log sequence 51
SQL> select
2 supplemental_log_data_min,
3 supplemental_log_data_pk,
4 supplemental_log_data_ui
5 from v$database;
SUPPLEME SUP SUP
-------- --- ---
NO NO NO
SQL> create table scott.emp (id number, data date);
Table created.
SQL> insert into scott.emp values (1,sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> insert into scott.emp values (2,sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> insert into scott.emp values (3,sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> insert into scott.emp values (4,sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> insert into scott.emp values (5,sysdate);
1 row created.
SQL> rollback;
Rollback complete.
SQL> insert into scott.emp values (6,sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
Database altered.
SQL> select
2 supplemental_log_data_min,
3 supplemental_log_data_pk,
4 supplemental_log_data_ui
5 from v$database;
SUPPLEME SUP SUP
-------- --- ---
YES NO NO
SQL> insert into scott.emp values (7,sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> insert into scott.emp values (8,sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> alter system switch logfile;
System altered.
SQL> insert into scott.emp values (9,sysdate);
1 row created.
SQL> rollback;
Rollback complete.
SQL> insert into scott.emp values (10,sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> alter system switch logfile;
System altered.
[oracle@linux1 /]$ ls -lh /oradata/archivelog/
total 7,0M
-rw-r----- 1 oracle oinstall 2,9M Jul 29 12:55 1_51_804786092.dbf
-rw-r----- 1 oracle oinstall 1,9M Jul 29 13:26 1_52_804786092.dbf
-rw-r----- 1 oracle oinstall 1,0K Jul 29 13:26 1_53_804786092.dbf
-rw-r----- 1 oracle oinstall 2,2M Jul 29 14:16 1_54_804786092.dbf
-rw-r----- 1 oracle oinstall 111K Jul 29 14:24 1_55_804786092.dbf
SQL> select name,sequence#,first_time,next_time,completion_time
2 from v$archived_log
3 where name like '%1_5__804786092.dbf%';
NAME SEQUENCE# FIRST_TIME NEXT_TIME COMPLETION_TIME
--------------------------------------- ---------- ------------------- ------------------- -------------------
/oradata/archivelog/1_51_804786092.dbf 51 29/07/2017 12:01:48 29/07/2017 12:55:52 29/07/2017 12:55:53
/oradata/archivelog/1_52_804786092.dbf 52 29/07/2017 12:55:52 29/07/2017 13:26:18 29/07/2017 13:26:19
/oradata/archivelog/1_53_804786092.dbf 53 29/07/2017 13:26:18 29/07/2017 13:26:26 29/07/2017 13:26:27
/oradata/archivelog/1_54_804786092.dbf 54 29/07/2017 13:26:26 29/07/2017 14:16:33 29/07/2017 14:16:33
/oradata/archivelog/1_55_804786092.dbf 55 29/07/2017 14:16:33 29/07/2017 14:24:57 29/07/2017 14:24:57
SQL> BEGIN
2 DBMS_LOGMNR.ADD_LOGFILE(LOGFILENAME => '/oradata/archivelog/1_51_804786092.dbf',OPTIONS => DBMS_LOGMNR.NEW);
3 DBMS_LOGMNR.ADD_LOGFILE(LOGFILENAME => '/oradata/archivelog/1_52_804786092.dbf');
4 DBMS_LOGMNR.ADD_LOGFILE(LOGFILENAME => '/oradata/archivelog/1_53_804786092.dbf');
5 DBMS_LOGMNR.ADD_LOGFILE(LOGFILENAME => '/oradata/archivelog/1_54_804786092.dbf');
6 DBMS_LOGMNR.ADD_LOGFILE(LOGFILENAME => '/oradata/archivelog/1_55_804786092.dbf');
7 DBMS_LOGMNR.START_LOGMNR(OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG);
8 END;
9 /
PL/SQL procedure successfully completed.
SQL> SELECT rbasqn,
2 timestamp,
3 operation,
4 seg_owner,
5 table_name,
6 table_space,
7 username,
8 os_username,
9 machine_name,
10 session#,
11 serial#,
12 session_info,
13 sql_redo,
14 sql_undo
15 FROM v$logmnr_contents
16 WHERE seg_owner IN ('SCOTT')
17 ORDER BY timestamp;
RBASQN TIMESTAMP OPERATION SEG_OWNER TABLE_NAME TABLE_SPACE USERNAME OS_USERNAME MACHINE_NAME SESSION# SERIAL# SESSION_INFO SQL_REDO SQL_UNDO
---------- ------------------- -------------- ------------ ------------ ------------ ---------- ------------- ------------------- ---------- ---------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------
51 29/07/2017 12:11:31 DDL SCOTT EMP UNKNOWN UNKNOWN UNKNOWN 0 0 UNKNOWN create table scott.emp (id number, data date);
51 29/07/2017 12:12:23 INSERT SCOTT EMP USERS UNKNOWN UNKNOWN UNKNOWN 0 0 UNKNOWN insert into "SCOTT"."EMP"("ID","DATA") values ('1',TO_DATE('19/07/2017 12:12:18', 'dd/mm/yyyy hh24:mi:ss')); delete from "SCOTT"."EMP" where "ID" = '1' and "DATA" = TO_DATE('19/07/2017 12:12:18', 'dd/mm/yyyy hh24:mi:ss') and ROWID = 'AAADZtAAEAAAACcAAA';
51 29/07/2017 12:35:19 DELETE SCOTT EMP USERS UNKNOWN UNKNOWN UNKNOWN 0 0 UNKNOWN delete from "SCOTT"."EMP" where ROWID = 'AAADZtAAEAAAACcAAE';
54 29/07/2017 14:15:37 INSERT SCOTT EMP USERS SYS oracle linux1.localdomain 36 49 login_username=SYS client_info= OS_username=oracle Machine_name=linux1.localdomain OS_terminal=pts/0 OS_process_id=14479 OS_program_name=sqlplus@linux1.localdomain (TNS V1-V3) insert into "SCOTT"."EMP"("ID","DATA") values ('7',TO_DATE('19/07/2017 14:15:34', 'dd/mm/yyyy hh24:mi:ss')); delete from "SCOTT"."EMP" where "ID" = '7' and "DATA" = TO_DATE('19/07/2017 14:15:34', 'dd/mm/yyyy hh24:mi:ss') and ROWID = 'AAADZtAAEAAAACcAAF';
54 29/07/2017 14:16:19 INSERT SCOTT EMP USERS SYS oracle linux1.localdomain 36 49 login_username=SYS client_info= OS_username=oracle Machine_name=linux1.localdomain OS_terminal=pts/0 OS_process_id=14479 OS_program_name=sqlplus@linux1.localdomain (TNS V1-V3) insert into "SCOTT"."EMP"("ID","DATA") values ('8',TO_DATE('19/07/2017 14:16:19', 'dd/mm/yyyy hh24:mi:ss')); delete from "SCOTT"."EMP" where "ID" = '8' and "DATA" = TO_DATE('19/07/2017 14:16:19', 'dd/mm/yyyy hh24:mi:ss') and ROWID = 'AAADZtAAEAAAACcAAG';
55 29/07/2017 14:22:06 INSERT SCOTT EMP USERS SYS oracle linux1.localdomain 36 49 login_username=SYS client_info= OS_username=oracle Machine_name=linux1.localdomain OS_terminal=pts/0 OS_process_id=14479 OS_program_name=sqlplus@linux1.localdomain (TNS V1-V3) insert into "SCOTT"."EMP"("ID","DATA") values ('9',TO_DATE('19/07/2017 14:22:04', 'dd/mm/yyyy hh24:mi:ss')); delete from "SCOTT"."EMP" where "ID" = '9' and "DATA" = TO_DATE('19/07/2017 14:22:04', 'dd/mm/yyyy hh24:mi:ss') and ROWID = 'AAADZtAAEAAAACcAAH';
55 29/07/2017 14:22:08 DELETE SCOTT EMP USERS SYS oracle linux1.localdomain 36 49 login_username=SYS client_info= OS_username=oracle Machine_name=linux1.localdomain OS_terminal=pts/0 OS_process_id=14479 OS_program_name=sqlplus@linux1.localdomain (TNS V1-V3) delete from "SCOTT"."EMP" where ROWID = 'AAADZtAAEAAAACcAAH';
55 29/07/2017 14:24:42 INSERT SCOTT EMP USERS SYS oracle linux1.localdomain 36 49 login_username=SYS client_info= OS_username=oracle Machine_name=linux1.localdomain OS_terminal=pts/0 OS_process_id=14479 OS_program_name=sqlplus@linux1.localdomain (TNS V1-V3) insert into "SCOTT"."EMP"("ID","DATA") values ('10',TO_DATE('19/07/2017 14:24:41', 'dd/mm/yyyy hh24:mi:ss')); delete from "SCOTT"."EMP" where "ID" = '10' and "DATA" = TO_DATE('19/07/2017 14:24:41', 'dd/mm/yyyy hh24:mi:ss') and ROWID = 'AAADZtAAEAAAACcAAH';
8 linhas selecionadas.
SQL> exec DBMS_LOGMNR.END_LOGMNR();
PL/SQL procedure successfully completed.
[oracle@linux1 ~]$ cat /install/database/response/db_install.rsp
####################################################################
## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## can help to populate the variables with the appropriate ##
## values. ##
## ##
## IMPORTANT NOTE: This file contains plain text passwords and ##
## should be secured to have read permission only by oracle user ##
## or db administrator who owns this installation. ##
## ##
####################################################################
#------------------------------------------------------------------------------
# Do not change the following system generated value.
#------------------------------------------------------------------------------
oracle.install.responseFileVersion=/install/database/response/db_install.rsp
#------------------------------------------------------------------------------
# Specify the installation option.
# It can be one of the following:
# - INSTALL_DB_SWONLY
# - INSTALL_DB_AND_CONFIG
# - UPGRADE_DB
#-------------------------------------------------------------------------------
oracle.install.option=INSTALL_DB_SWONLY
#-------------------------------------------------------------------------------
# Specify the hostname of the system as set during the install. It can be used
# to force the installation to use an alternative hostname rather than using the
# first hostname found on the system. (e.g., for systems with multiple hostnames
# and network interfaces)
#-------------------------------------------------------------------------------
ORACLE_HOSTNAME=Linux1
#-------------------------------------------------------------------------------
# Specify the Unix group to be set for the inventory directory.
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=oinstall
#-------------------------------------------------------------------------------
# Specify the location which holds the inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
INVENTORY_LOCATION=/u01/app/oraInventory
#-------------------------------------------------------------------------------
# Specify the languages in which the components will be installed.
#
# en : English ja : Japanese
# fr : French ko : Korean
# ar : Arabic es : Latin American Spanish
# bn : Bengali lv : Latvian
# pt_BR: Brazilian Portuguese lt : Lithuanian
# bg : Bulgarian ms : Malay
# fr_CA: Canadian French es_MX: Mexican Spanish
# ca : Catalan no : Norwegian
# hr : Croatian pl : Polish
# cs : Czech pt : Portuguese
# da : Danish ro : Romanian
# nl : Dutch ru : Russian
# ar_EG: Egyptian zh_CN: Simplified Chinese
# en_GB: English (Great Britain) sk : Slovak
# et : Estonian sl : Slovenian
# fi : Finnish es_ES: Spanish
# de : German sv : Swedish
# el : Greek th : Thai
# iw : Hebrew zh_TW: Traditional Chinese
# hu : Hungarian tr : Turkish
# is : Icelandic uk : Ukrainian
# in : Indonesian vi : Vietnamese
# it : Italian
#
# all_langs : All languages
#
# Specify value as the following to select any of the languages.
# Example : SELECTED_LANGUAGES=en,fr,ja
#
# Specify value as the following to select all the languages.
# Example : SELECTED_LANGUAGES=all_langs
#------------------------------------------------------------------------------
SELECTED_LANGUAGES=en,pt_BR
#------------------------------------------------------------------------------
# Specify the complete path of the Oracle Home.
#------------------------------------------------------------------------------
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
#------------------------------------------------------------------------------
# Specify the complete path of the Oracle Base.
#------------------------------------------------------------------------------
ORACLE_BASE=/u01/app/oracle
#------------------------------------------------------------------------------
# Specify the installation edition of the component.
#
# The value should contain only one of these choices.
# - EE : Enterprise Edition
# - SE : Standard Edition
# - SEONE : Standard Edition One
# - PE : Personal Edition (WINDOWS ONLY)
#------------------------------------------------------------------------------
oracle.install.db.InstallEdition=EE
#------------------------------------------------------------------------------
# This variable is used to enable or disable custom install and is considered
# only if InstallEdition is EE.
#
# true : Components mentioned as part of 'optionalComponents' property
# are considered for install.
# false : Value for 'optionalComponents' is not considered.
#------------------------------------------------------------------------------
oracle.install.db.EEOptionsSelection=true
#------------------------------------------------------------------------------
# This variable is considered only if 'EEOptionsSelection' is set to true.
#
# Description: List of Enterprise Edition Options you would like to enable.
#
# The following choices are available. You may specify any
# combination of these choices. The components you choose should
# be specified in the form "internal-component-name:version"
# Below is a list of components you may specify to enable.
#
# oracle.oraolap:11.2.0.4.0 - Oracle OLAP
# oracle.rdbms.dm:11.2.0.4.0 - Oracle Data Mining
# oracle.rdbms.dv:11.2.0.4.0 - Oracle Database Vault
# oracle.rdbms.lbac:11.2.0.4.0 - Oracle Label Security
# oracle.rdbms.partitioning:11.2.0.4.0 - Oracle Partitioning
# oracle.rdbms.rat:11.2.0.4.0 - Oracle Real Application Testing
#------------------------------------------------------------------------------
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.4.0
###############################################################################
# #
# PRIVILEGED OPERATING SYSTEM GROUPS #
# ------------------------------------------ #
# Provide values for the OS groups to which OSDBA and OSOPER privileges #
# needs to be granted. If the install is being performed as a member of the #
# group "dba", then that will be used unless specified otherwise below. #
# #
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
# Operating System. #
# #
###############################################################################
#------------------------------------------------------------------------------
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
#------------------------------------------------------------------------------
oracle.install.db.DBA_GROUP=dba
#------------------------------------------------------------------------------
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
# The value to be specified for OSOPER group is optional.
#------------------------------------------------------------------------------
oracle.install.db.OPER_GROUP=dba
#------------------------------------------------------------------------------
# Specify the cluster node names selected during the installation.
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
#------------------------------------------------------------------------------
oracle.install.db.CLUSTER_NODES=
#------------------------------------------------------------------------------
# This variable is used to enable or disable RAC One Node install.
#
# - true : Value of RAC One Node service name is used.
# - false : Value of RAC One Node service name is not used.
#
# If left blank, it will be assumed to be false
#------------------------------------------------------------------------------
oracle.install.db.isRACOneInstall=
#------------------------------------------------------------------------------
# Specify the name for RAC One Node Service.
#------------------------------------------------------------------------------
oracle.install.db.racOneServiceName=
#------------------------------------------------------------------------------
# Specify the type of database to create.
# It can be one of the following:
# - GENERAL_PURPOSE/TRANSACTION_PROCESSING
# - DATA_WAREHOUSE
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.type=
#------------------------------------------------------------------------------
# Specify the Starter Database Global Database Name.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.globalDBName=
#------------------------------------------------------------------------------
# Specify the Starter Database SID.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.SID=
#------------------------------------------------------------------------------
# Specify the Starter Database character set.
#
# It can be one of the following:
# AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
# EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
# BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
# AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
# IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
# KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
# ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.characterSet=
#------------------------------------------------------------------------------
# This variable should be set to true if Automatic Memory Management
# in Database is desired.
# If Automatic Memory Management is not desired, and memory allocation
# is to be done manually, then set it to false.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.memoryOption=true
#------------------------------------------------------------------------------
# Specify the total memory allocation for the database. Value(in MB) should be
# at least 256 MB, and should not exceed the total physical memory available
# on the system.
# Example: oracle.install.db.config.starterdb.memoryLimit=512
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.memoryLimit=
#------------------------------------------------------------------------------
# This variable controls whether to load Example Schemas onto
# the starter database or not.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.installExampleSchemas=false
#------------------------------------------------------------------------------
# This variable includes enabling audit settings, configuring password profiles
# and revoking some grants to public. These settings are provided by default.
# These settings may also be disabled.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.enableSecuritySettings=true
###############################################################################
# #
# Passwords can be supplied for the following four schemas in the #
# starter database: #
# SYS #
# SYSTEM #
# SYSMAN (used by Enterprise Manager) #
# DBSNMP (used by Enterprise Manager) #
# #
# Same password can be used for all accounts (not recommended) #
# or different passwords for each account can be provided (recommended) #
# #
###############################################################################
#------------------------------------------------------------------------------
# This variable holds the password that is to be used for all schemas in the
# starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.ALL=
#-------------------------------------------------------------------------------
# Specify the SYS password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYS=
#-------------------------------------------------------------------------------
# Specify the SYSTEM password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYSTEM=
#-------------------------------------------------------------------------------
# Specify the SYSMAN password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYSMAN=
#-------------------------------------------------------------------------------
# Specify the DBSNMP password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.DBSNMP=
#-------------------------------------------------------------------------------
# Specify the management option to be selected for the starter database.
# It can be one of the following:
# - GRID_CONTROL
# - DB_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.control=DB_CONTROL
#-------------------------------------------------------------------------------
# Specify the Management Service to use if Grid Control is selected to manage
# the database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
###############################################################################
# #
# SPECIFY BACKUP AND RECOVERY OPTIONS #
# ------------------------------------ #
# Out-of-box backup and recovery options for the database can be mentioned #
# using the entries below. #
# #
###############################################################################
#------------------------------------------------------------------------------
# This variable is to be set to false if automated backup is not required. Else
# this can be set to true.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.automatedBackup.enable=false
#------------------------------------------------------------------------------
# Regardless of the type of storage that is chosen for backup and recovery, if
# automated backups are enabled, a job will be scheduled to run daily to backup
# the database. This job will run as the operating system user that is
# specified in this variable.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.automatedBackup.osuid=
#-------------------------------------------------------------------------------
# Regardless of the type of storage that is chosen for backup and recovery, if
# automated backups are enabled, a job will be scheduled to run daily to backup
# the database. This job will run as the operating system user specified by the
# above entry. The following entry stores the password for the above operating
# system user.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.automatedBackup.ospwd=
#-------------------------------------------------------------------------------
# Specify the type of storage to use for the database.
# It can be one of the following:
# - FILE_SYSTEM_STORAGE
# - ASM_STORAGE
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.storageType=
#-------------------------------------------------------------------------------
# Specify the database file location which is a directory for datafiles, control
# files, redo logs.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
#-------------------------------------------------------------------------------
# Specify the backup and recovery location.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
#-------------------------------------------------------------------------------
# Specify the existing ASM disk groups to be used for storage.
#
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.asm.diskGroup=
#-------------------------------------------------------------------------------
# Specify the password for ASMSNMP user of the ASM instance.
#
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.asm.ASMSNMPPassword=
#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username.
#
# Example : MYORACLESUPPORT_USERNAME=abc@oracle.com
#------------------------------------------------------------------------------
MYORACLESUPPORT_USERNAME=
#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username password.
#
# Example : MYORACLESUPPORT_PASSWORD=password
#------------------------------------------------------------------------------
MYORACLESUPPORT_PASSWORD=
#------------------------------------------------------------------------------
# Specify whether to enable the user to set the password for
# My Oracle Support credentials. The value can be either true or false.
# If left blank it will be assumed to be false.
#
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
#------------------------------------------------------------------------------
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
#------------------------------------------------------------------------------
# Specify whether user doesn't want to configure Security Updates.
# The value for this variable should be true if you don't want to configure
# Security Updates, false otherwise.
#
# The value can be either true or false. If left blank it will be assumed
# to be false.
#
# Example : DECLINE_SECURITY_UPDATES=false
#------------------------------------------------------------------------------
DECLINE_SECURITY_UPDATES=true
#------------------------------------------------------------------------------
# Specify the Proxy server name. Length should be greater than zero.
#
# Example : PROXY_HOST=proxy.domain.com
#------------------------------------------------------------------------------
PROXY_HOST=
#------------------------------------------------------------------------------
# Specify the proxy port number. Should be Numeric and at least 2 chars.
#
# Example : PROXY_PORT=25
#------------------------------------------------------------------------------
PROXY_PORT=
#------------------------------------------------------------------------------
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example : PROXY_USER=username
#------------------------------------------------------------------------------
PROXY_USER=
#------------------------------------------------------------------------------
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example : PROXY_PWD=password
#------------------------------------------------------------------------------
PROXY_PWD=
#------------------------------------------------------------------------------
# Specify the proxy realm. This value is used if auto-updates option is selected.
#
# Example : PROXY_REALM=metalink
#------------------------------------------------------------------------------
PROXY_REALM=
#------------------------------------------------------------------------------
# Specify the Oracle Support Hub URL.
#
# Example : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
#------------------------------------------------------------------------------
COLLECTOR_SUPPORTHUB_URL=
#------------------------------------------------------------------------------
# Specify the auto-updates option. It can be one of the following:
# - MYORACLESUPPORT_DOWNLOAD
# - OFFLINE_UPDATES
# - SKIP_UPDATES
#------------------------------------------------------------------------------
oracle.installer.autoupdates.option=SKIP_UPDATES
#------------------------------------------------------------------------------
# In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
# the updates are to be downloaded.
# In case OFFLINE_UPDATES option is chosen, specify the location where the updates
# are present.
#------------------------------------------------------------------------------
oracle.installer.autoupdates.downloadUpdatesLoc=
#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username which has the patches download privileges
# to be used for software updates.
# Example : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
#------------------------------------------------------------------------------
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username password which has the patches download privileges
# to be used for software updates.
#
# Example : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
#------------------------------------------------------------------------------
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
[oracle@linux1 ~]$ cd /install/database
[oracle@linux1 ~]$ ./runInstaller -silent -responseFile /install/database/response/db_install.rsp -waitforcompletion -ignorePrereq -showProgress
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 76999 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3066 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-06-19_08-45-47AM. Please wait ...You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2017-06-20_06-45-47AM.log
Prepare in progress.
.................................................. 9% Done.
Prepare successful.
Copy files in progress.
.................................................. 14% Done.
.................................................. 20% Done.
.................................................. 26% Done.
.................................................. 31% Done.
.................................................. 36% Done.
.................................................. 44% Done.
.................................................. 49% Done.
.................................................. 54% Done.
.................................................. 59% Done.
.................................................. 64% Done.
.................................................. 69% Done.
.................................................. 74% Done.
.................................................. 79% Done.
.................................................. 84% Done.
....................
Copy files successful.
Link binaries in progress.
..........
Link binaries successful.
Setup files in progress.
.................................................. 89% Done.
.................................................. 94% Done.
Setup files successful.
The installation of Oracle Database 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2017-06-20_06-45-47AM.log' for more details.
Execute Root Scripts in progress.
As a root user, execute the following script(s):
1. /u01/app/oraInventory/orainstRoot.sh
2. /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
.................................................. 100% Done.
Execute Root Scripts successful.
[root@linux1 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@linux1 ~]# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
Check /u01/app/oracle/product/11.2.0/dbhome_1/install/root_linux1_2017-06-20_06-59-50.log for the output of root script
[oracle@linux1 ~]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/assistants/dbca/templates/New_Database2.dbt
[DatabaseTemplate name="New Database" description="" version="11.2.0.0.0"]
[CommonAttributes]
[option name="OMS" value="false"/]
[option name="JSERVER" value="false"/]
[option name="SPATIAL" value="false"/]
[option name="IMEDIA" value="false"/]
[option name="ORACLE_TEXT" value="false"]
[tablespace id="SYSAUX"/]
[/option]
[option name="XDB_PROTOCOLS" value="false"]
[tablespace id="SYSAUX"/]
[/option]
[option name="CWMLITE" value="false"]
[tablespace id="SYSAUX"/]
[/option]
[option name="EM_REPOSITORY" value="false"]
[tablespace id="SYSAUX"/]
[/option]
[option name="SAMPLE_SCHEMA" value="false"/]
[option name="APEX" value="false"/]
[option name="OWB" value="false"/]
[option name="DV" value="false"/]
[/CommonAttributes]
[Variables/]
[CustomScripts Execute="false"/]
[InitParamAttributes]
[InitParams]
[initParam name="db_block_size" value="8" unit="KB"/]
[initParam name="memory_target" value="250" unit="MB"/]
[initParam name="open_cursors" value="300"/]
[initParam name="undo_tablespace" value="UNDOTBS1"/]
[initParam name="control_files" value="("{ORADATA}/oradata/{DB_UNIQUE_NAME}/control01.ctl", "{ORADATA}/oradata/{DB_UNIQUE_NAME}/control02.ctl", "{ORADATA}/oradata/{DB_UNIQUE_NAME}/control03.ctl")"/]
[initParam name="compatible" value="11.2.0.0.0"/]
[initParam name="processes" value="150"/]
[initParam name="audit_file_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/adump"/]
[initParam name="audit_trail" value="db"/]
[initParam name="diagnostic_dest" value="{ORACLE_BASE}"/]
[initParam name="remote_login_passwordfile" value="EXCLUSIVE"/]
[initParam name="dispatchers" value="(PROTOCOL=TCP) (SERVICE={SID}XDB)"/]
[initParam name="db_recovery_file_dest" value="{ORACLE_BASE}/fast_recovery_area"/]
[initParam name="db_recovery_file_dest_size" value="" unit="MB"/]
[/InitParams]
[MiscParams]
[databaseType]OLTP[/databaseType]
[maxUserConn]20[/maxUserConn]
[percentageMemTOSGA]40[/percentageMemTOSGA]
[customSGA]true[/customSGA]
[archiveLogMode]false[/archiveLogMode]
[initParamFileName]{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/pfile/init.ora[/initParamFileName]
[/MiscParams]
[SPfile useSPFile="true"]{ORACLE_HOME}/dbs/spfile{SID}.ora[/SPfile]
[/InitParamAttributes]
[StorageAttributes]
[ControlfileAttributes id="Controlfile"]
[maxDatafiles]100[/maxDatafiles]
[maxLogfiles]16[/maxLogfiles]
[maxLogMembers]3[/maxLogMembers]
[maxLogHistory]1[/maxLogHistory]
[maxInstances]8[/maxInstances]
[image name="control01.ctl" filepath="{ORADATA}/oradata/{DB_UNIQUE_NAME}/"/]
[image name="control02.ctl" filepath="{ORADATA}/oradata/{DB_UNIQUE_NAME}/"/]
[image name="control03.ctl" filepath="{ORADATA}/oradata/{DB_UNIQUE_NAME}/"/]
[/ControlfileAttributes]
[DatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/sysaux01.dbf"]
[tablespace]SYSAUX[/tablespace]
[temporary]false[/temporary]
[online]true[/online]
[status]0[/status]
[size unit="MB"]600[/size]
[reuse]true[/reuse]
[autoExtend]true[/autoExtend]
[increment unit="KB"]10240[/increment]
[maxSize unit="MB"]-1[/maxSize]
[/DatafileAttributes]
[DatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/users01.dbf"]
[tablespace]USERS[/tablespace]
[temporary]false[/temporary]
[online]true[/online]
[status]0[/status]
[size unit="MB"]5[/size]
[reuse]true[/reuse]
[autoExtend]true[/autoExtend]
[increment unit="KB"]1280[/increment]
[maxSize unit="MB"]-1[/maxSize]
[/DatafileAttributes]
[DatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/system01.dbf"]
[tablespace]SYSTEM[/tablespace]
[temporary]false[/temporary]
[online]true[/online]
[status]0[/status]
[size unit="MB"]700[/size]
[reuse]true[/reuse]
[autoExtend]true[/autoExtend]
[increment unit="KB"]10240[/increment]
[maxSize unit="MB"]-1[/maxSize]
[/DatafileAttributes]
[DatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/temp01.dbf"]
[tablespace]TEMP[/tablespace]
[temporary]false[/temporary]
[online]true[/online]
[status]0[/status]
[size unit="MB"]20[/size]
[reuse]true[/reuse]
[autoExtend]true[/autoExtend]
[increment unit="KB"]640[/increment]
[maxSize unit="MB"]-1[/maxSize]
[/DatafileAttributes]
[DatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/undotbs01.dbf"]
[tablespace]UNDOTBS1[/tablespace]
[temporary]false[/temporary]
[online]true[/online]
[status]0[/status]
[size unit="MB"]200[/size]
[reuse]true[/reuse]
[autoExtend]true[/autoExtend]
[increment unit="KB"]5120[/increment]
[maxSize unit="MB"]-1[/maxSize]
[/DatafileAttributes]
[TablespaceAttributes id="SYSAUX"]
[online]true[/online]
[offlineMode]1[/offlineMode]
[readOnly]false[/readOnly]
[temporary]false[/temporary]
[defaultTemp]false[/defaultTemp]
[undo]false[/undo]
[local]true[/local]
[blockSize]-1[/blockSize]
[allocation]1[/allocation]
[uniAllocSize unit="KB"]-1[/uniAllocSize]
[initSize unit="KB"]64[/initSize]
[increment unit="KB"]64[/increment]
[incrementPercent]50[/incrementPercent]
[minExtends]1[/minExtends]
[maxExtends]4096[/maxExtends]
[minExtendsSize unit="KB"]64[/minExtendsSize]
[logging]true[/logging]
[recoverable]false[/recoverable]
[maxFreeSpace]0[/maxFreeSpace]
[bigfile]false[/bigfile]
[datafilesList]
[TablespaceDatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/sysaux01.dbf"]
[id]-1[/id]
[/TablespaceDatafileAttributes]
[/datafilesList]
[/TablespaceAttributes]
[TablespaceAttributes id="USERS"]
[online]true[/online]
[offlineMode]1[/offlineMode]
[readOnly]false[/readOnly]
[temporary]false[/temporary]
[defaultTemp]false[/defaultTemp]
[undo]false[/undo]
[local]true[/local]
[blockSize]-1[/blockSize]
[allocation]1[/allocation]
[uniAllocSize unit="KB"]-1[/uniAllocSize]
[initSize unit="KB"]128[/initSize]
[increment unit="KB"]128[/increment]
[incrementPercent]0[/incrementPercent]
[minExtends]1[/minExtends]
[maxExtends]4096[/maxExtends]
[minExtendsSize unit="KB"]128[/minExtendsSize]
[logging]true[/logging]
[recoverable]false[/recoverable]
[maxFreeSpace]0[/maxFreeSpace]
[bigfile]false[/bigfile]
[datafilesList]
[TablespaceDatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/users01.dbf"]
[id]-1[/id]
[/TablespaceDatafileAttributes]
[/datafilesList]
[/TablespaceAttributes]
[TablespaceAttributes id="SYSTEM"]
[online]true[/online]
[offlineMode]1[/offlineMode]
[readOnly]false[/readOnly]
[temporary]false[/temporary]
[defaultTemp]false[/defaultTemp]
[undo]false[/undo]
[local]true[/local]
[blockSize]-1[/blockSize]
[allocation]3[/allocation]
[uniAllocSize unit="KB"]-1[/uniAllocSize]
[initSize unit="KB"]64[/initSize]
[increment unit="KB"]64[/increment]
[incrementPercent]50[/incrementPercent]
[minExtends]1[/minExtends]
[maxExtends]-1[/maxExtends]
[minExtendsSize unit="KB"]64[/minExtendsSize]
[logging]true[/logging]
[recoverable]false[/recoverable]
[maxFreeSpace]0[/maxFreeSpace]
[bigfile]false[/bigfile]
[datafilesList]
[TablespaceDatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/system01.dbf"]
[id]-1[/id]
[/TablespaceDatafileAttributes]
[/datafilesList]
[/TablespaceAttributes]
[TablespaceAttributes id="TEMP"]
[online]true[/online]
[offlineMode]1[/offlineMode]
[readOnly]false[/readOnly]
[temporary]true[/temporary]
[defaultTemp]true[/defaultTemp]
[undo]false[/undo]
[local]true[/local]
[blockSize]-1[/blockSize]
[allocation]1[/allocation]
[uniAllocSize unit="KB"]-1[/uniAllocSize]
[initSize unit="KB"]64[/initSize]
[increment unit="KB"]64[/increment]
[incrementPercent]0[/incrementPercent]
[minExtends]1[/minExtends]
[maxExtends]0[/maxExtends]
[minExtendsSize unit="KB"]64[/minExtendsSize]
[logging]true[/logging]
[recoverable]false[/recoverable]
[maxFreeSpace]0[/maxFreeSpace]
[bigfile]false[/bigfile]
[datafilesList]
[TablespaceDatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/temp01.dbf"]
[id]-1[/id]
[/TablespaceDatafileAttributes]
[/datafilesList]
[/TablespaceAttributes]
[TablespaceAttributes id="UNDOTBS1"]
[online]true[/online]
[offlineMode]1[/offlineMode]
[readOnly]false[/readOnly]
[temporary]false[/temporary]
[defaultTemp]false[/defaultTemp]
[undo]true[/undo]
[local]true[/local]
[blockSize]-1[/blockSize]
[allocation]1[/allocation]
[uniAllocSize unit="KB"]-1[/uniAllocSize]
[initSize unit="KB"]512[/initSize]
[increment unit="KB"]512[/increment]
[incrementPercent]50[/incrementPercent]
[minExtends]8[/minExtends]
[maxExtends]4096[/maxExtends]
[minExtendsSize unit="KB"]512[/minExtendsSize]
[logging]true[/logging]
[recoverable]false[/recoverable]
[maxFreeSpace]0[/maxFreeSpace]
[bigfile]false[/bigfile]
[datafilesList]
[TablespaceDatafileAttributes id="{ORADATA}/oradata/{DB_UNIQUE_NAME}/undotbs01.dbf"]
[id]-1[/id]
[/TablespaceDatafileAttributes]
[/datafilesList]
[/TablespaceAttributes]
[RedoLogGroupAttributes id="1"]
[reuse]false[/reuse]
[fileSize unit="KB"]51200[/fileSize]
[Thread]1[/Thread]
[member ordinal="0" memberName="redo01.log" filepath="{ORADATA}/oradata/{DB_UNIQUE_NAME}/"/]
[/RedoLogGroupAttributes]
[RedoLogGroupAttributes id="2"]
[reuse]false[/reuse]
[fileSize unit="KB"]51200[/fileSize]
[Thread]1[/Thread]
[member ordinal="0" memberName="redo02.log" filepath="{ORADATA}/oradata/{DB_UNIQUE_NAME}/"/]
[/RedoLogGroupAttributes]
[RedoLogGroupAttributes id="3"]
[reuse]false[/reuse]
[fileSize unit="KB"]51200[/fileSize]
[Thread]1[/Thread]
[member ordinal="0" memberName="redo03.log" filepath="{ORADATA}/oradata/{DB_UNIQUE_NAME}/"/]
[/RedoLogGroupAttributes]
[/StorageAttributes]
[/DatabaseTemplate]
[oracle@linux1 ~]$ dbca -silent
-createDatabase
-templateName New_Database2.dbt
-gdbName BD01
-sysPassword manager
-systemPassword manager
-characterset WE8MSWIN1252
-nationalCharacterSet AL16UTF16
-emConfiguration NONE
-databaseType OLTP
-variables ORADATA=/data/
Creating and starting Oracle instance
2% complete
3% complete
5% complete
12% complete
Creating database files
13% complete
25% complete
Creating data dictionary views
28% complete
32% complete
36% complete
37% complete
38% complete
39% complete
40% complete
41% complete
42% complete
43% complete
44% complete
45% complete
46% complete
47% complete
48% complete
55% complete
59% complete
62% complete
63% complete
66% complete
Completing Database Creation
70% complete
73% complete
77% complete
88% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/BD01/BD01.log" for further details.
[oracle@linux1 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 20-JUN-2017 07:06:39
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Log messages written to /u01/app/oracle/diag/tnslsnr/linux1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux1)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 20-JUN-2017 07:06:40
Uptime 0 days 0 hr. 0 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/diag/tnslsnr/linux1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux1)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@linux1 ~]$ dbca -silent
-createDatabase
-templateName General_Purpose.dbc
-gdbname BD01
-sysPassword manager
-systemPassword manager
-responseFile NO_VALUE
-characterSet WE8MSWIN1252
-nationalCharacterSet AL16UTF16
-memoryPercentage 20
-emConfiguration NONE
-databaseType OLTP
-datafileDestination "/data/oradata/"
Copying database files
1% complete
3% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
50% complete
55% complete
56% complete
60% complete
62% complete
Completing Database Creation
66% complete
70% complete
73% complete
85% complete
96% complete
100% complete
[oracle@linux1 ~]$ dbca -silent -deleteDatabase -sourceDB BD01 -sysDBAUserName sys -sysDBAPassword manager
Connecting to database
4% complete
9% complete
14% complete
19% complete
23% complete
28% complete
47% complete
Updating network configuration files
52% complete
Deleting instance and datafiles
76% complete
100% complete