Quantcast
Channel: Donghua's Blog - DBAGlobe
Viewing all 604 articles
Browse latest View live

1z0-060 Upgrade to 12c: ENABLE_DDL_LOGGING changing behaviour in 12c

$
0
0

ENABLE_DDL_LOGGING enables or disables the writing of a subset of data definition language (DDL) statements to a DDL alert log.

The DDL log is a file that has the same format and basic behavior as the alert log, but it only contains the DDL statements issued by the database. The DDL log is created only for the RDBMS component and only if the ENABLE_DDL_LOGGING initialization parameter is set to true. When this parameter is set to false, DDL statements are not included in any log.

The DDL log contains one log record for each DDL statement issued by the database. The DDL log is included in IPS incident packages.

There are two DDL logs that contain the same information. One is an XML file, and the other is a text file. The DDL log is stored in the log/ddl subdirectory of the ADR home.

SQL> alter system set enable_ddl_logging=true;

System altered.

SQL> create table t1 (id number);
create table t1 (id number)
             *
ERROR at line 1:
ORA-00955: name is already used by an existing object


SQL> drop table t1;

Table dropped.

SQL> create table t1 (id number);

Table created.


oracle@solaris:/u01/app/oracle/diag/rdbms/orcl/orcl/log$ cat ddl_orcl.log
diag_adl:drop table t1
diag_adl:create table t1 (id number)


oracle@solaris:/u01/app/oracle/diag/rdbms/orcl/orcl/log$ cat ddl/log.xml
<msg time='2014-08-05T21:20:08.030+08:00' org_id='oracle' comp_id='rdbms'
msg_id='opiexe:4383:2946163730' type='UNKNOWN' group='diag_adl'
level='16' host_id='solaris' host_addr='::1'
version='1'>
<txt>drop table t1
</txt>
</msg>
<msg time='2014-08-05T21:20:09.390+08:00' org_id='oracle' comp_id='rdbms'
msg_id='opiexe:4383:2946163730' type='UNKNOWN' group='diag_adl'
level='16' host_id='solaris' host_addr='::1'>
<txt>create table t1 (id number)
</txt>
</msg>


1z0-060 Upgrade to 12c: Managing Column Group Statistics

$
0
0

You can use DBMS_STATS.SEED_COL_USAGE and REPORT_COL_USAGE to determine which column groups are required for a table based on a specified workload. This technique is useful when you do not know which extended statistics to create. This technique does not work for expression statistics.

Setup the simulation environment

SQL> CREATE TABLE customers_test AS SELECT * FROM sh.customers;

Table created.

SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS(user, 'customers_test');

PL/SQL procedure successfully completed.

Detecting Useful Column Groups for a Specific Workload

SQL> BEGIN
  2    DBMS_STATS.SEED_COL_USAGE(null,null,300);
  3  END;
  4  /

PL/SQL procedure successfully completed.

SQL>
SQL> EXPLAIN PLAN FOR
  2    SELECT *
  3    FROM      customers_test
  4    WHERE  cust_city = 'Los Angeles'
  5    AND       cust_state_province = 'CA'
  6    AND       country_id = 52790;

Explained.

SQL>
SQL> SELECT PLAN_TABLE_OUTPUT
  2  FROM   TABLE(DBMS_XPLAN.DISPLAY('plan_table', null,'basic rows'));

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 2112738156

----------------------------------------------------
| Id  | Operation         | Name           | Rows  |
----------------------------------------------------
|   0 | SELECT STATEMENT  |                |     1 |
|   1 |  TABLE ACCESS FULL| CUSTOMERS_TEST |     1 |
----------------------------------------------------

8 rows selected.

SQL>
SQL> EXPLAIN PLAN FOR
  2    SELECT   country_id, cust_state_province, count(cust_city)
  3    FROM     customers_test
  4    GROUP BY country_id, cust_state_province;

Explained.

SQL>
SQL> SELECT PLAN_TABLE_OUTPUT
  2  FROM   TABLE(DBMS_XPLAN.DISPLAY('plan_table', null,'basic rows'));

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 1820398555

-----------------------------------------------------
| Id  | Operation          | Name           | Rows  |
-----------------------------------------------------
|   0 | SELECT STATEMENT   |                |  1949 |
|   1 |  HASH GROUP BY     |                |  1949 |
|   2 |   TABLE ACCESS FULL| CUSTOMERS_TEST | 55500 |
-----------------------------------------------------

9 rows selected.


SQL> SET LONG 100000
SQL> SET LINES 120
SQL> SET PAGES 0
SQL> SELECT DBMS_STATS.REPORT_COL_USAGE(user, 'customers_test')
  2  FROM   DUAL;
LEGEND:
.......

EQ         : Used in single table EQuality predicate
RANGE      : Used in single table RANGE predicate
LIKE       : Used in single table LIKE predicate
NULL       : Used in single table is (not) NULL predicate
EQ_JOIN    : Used in EQuality JOIN predicate
NONEQ_JOIN : Used in NON EQuality JOIN predicate
FILTER     : Used in single table FILTER predicate
JOIN       : Used in JOIN predicate
GROUP_BY   : Used in GROUP BY expression
...............................................................................

###############################################################################


COLUMN USAGE REPORT FOR DONGHUA.CUSTOMERS_TEST
..............................................

1. COUNTRY_ID                          : EQ
2. CUST_CITY                           : EQ
3. CUST_STATE_PROVINCE                 : EQ
4. (CUST_CITY, CUST_STATE_PROVINCE,
    COUNTRY_ID)                        : FILTER
5. (CUST_STATE_PROVINCE, COUNTRY_ID)   : GROUP_BY

###############################################################################

Creating Column Groups Detected During Workload Monitoring

SQL> SELECT DBMS_STATS.CREATE_EXTENDED_STATS(user, 'customers_test') FROM DUAL;
###############################################################################

EXTENSIONS FOR DONGHUA.CUSTOMERS_TEST
.....................................

1. (CUST_CITY, CUST_STATE_PROVINCE,
    COUNTRY_ID)                        : SYS_STUMZ$C3AIHLPBROI#SKA58H_N created
2. (CUST_STATE_PROVINCE, COUNTRY_ID)   : SYS_STU#S#WF25Z#QAHIHE#MOFFMM_ created
###############################################################################

 

SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS(user,'customers_test');

PL/SQL procedure successfully completed.


SQL> col COL_GROUP for a40
SQL> col EXTENSION_NAME for a40
SQL> col EXTENSION for a70
SQL> set pages 999
SQL> col COLUMN_NAME for a40
SQL> SELECT COLUMN_NAME, NUM_DISTINCT, HISTOGRAM
  2  FROM   USER_TAB_COL_STATISTICS
  3  WHERE  TABLE_NAME = 'CUSTOMERS_TEST'
  4  ORDER BY 1;

COLUMN_NAME                              NUM_DISTINCT HISTOGRAM
---------------------------------------- ------------ ---------------
COUNTRY_ID                                         19 FREQUENCY
CUST_CITY                                         620 HYBRID
CUST_CITY_ID                                      620 NONE
CUST_CREDIT_LIMIT                                   8 NONE
CUST_EFF_FROM                                       1 NONE
CUST_EFF_TO                                         0 NONE
CUST_EMAIL                                       1699 NONE
CUST_FIRST_NAME                                  1300 NONE
CUST_GENDER                                         2 NONE
CUST_ID                                         55500 NONE
CUST_INCOME_LEVEL                                  12 NONE
CUST_LAST_NAME                                    908 NONE
CUST_MAIN_PHONE_NUMBER                          51344 NONE
CUST_MARITAL_STATUS                                11 NONE
CUST_POSTAL_CODE                                  623 NONE
CUST_SRC_ID                                         0 NONE
CUST_STATE_PROVINCE                               145 FREQUENCY
CUST_STATE_PROVINCE_ID                            145 NONE
CUST_STREET_ADDRESS                             49900 NONE
CUST_TOTAL                                          1 NONE
CUST_TOTAL_ID                                       1 NONE
CUST_VALID                                          2 NONE
CUST_YEAR_OF_BIRTH                                 75 NONE
SYS_STU#S#WF25Z#QAHIHE#MOFFMM_                    145 NONE
SYS_STUMZ$C3AIHLPBROI#SKA58H_N                    620 HYBRID

25 rows selected.

SQL>
SQL> EXPLAIN PLAN FOR
  2    SELECT *
  3    FROM      customers_test
  4    WHERE  cust_city = 'Los Angeles'
  5    AND       cust_state_province = 'CA'
  6    AND       country_id = 52790;

Explained.

SQL>
SQL> SELECT PLAN_TABLE_OUTPUT
  2  FROM   TABLE(DBMS_XPLAN.DISPLAY('plan_table', null,'basic rows'));

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 2112738156

----------------------------------------------------
| Id  | Operation         | Name           | Rows  |
----------------------------------------------------
|   0 | SELECT STATEMENT  |                |   871 |
|   1 |  TABLE ACCESS FULL| CUSTOMERS_TEST |   871 |
----------------------------------------------------

8 rows selected.

SQL>
SQL> EXPLAIN PLAN FOR
  2    SELECT   country_id, cust_state_province, count(cust_city)
  3    FROM     customers_test
  4    GROUP BY country_id, cust_state_province;

Explained.

SQL>
SQL> SELECT PLAN_TABLE_OUTPUT
  2  FROM   TABLE(DBMS_XPLAN.DISPLAY('plan_table', null,'basic rows'));

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 1820398555

-----------------------------------------------------
| Id  | Operation          | Name           | Rows  |
-----------------------------------------------------
|   0 | SELECT STATEMENT   |                |   145 |
|   1 |  HASH GROUP BY     |                |   145 |
|   2 |   TABLE ACCESS FULL| CUSTOMERS_TEST | 55500 |
-----------------------------------------------------

9 rows selected.

SQL>
SQL> SELECT EXTENSION_NAME, EXTENSION
  2  FROM   USER_STAT_EXTENSIONS
  3  WHERE  TABLE_NAME='CUSTOMERS_TEST';

EXTENSION_NAME
----------------------------------------
EXTENSION
----------------------------------------------------------------------
SYS_STUMZ$C3AIHLPBROI#SKA58H_N
("CUST_CITY","CUST_STATE_PROVINCE","COUNTRY_ID")

SYS_STU#S#WF25Z#QAHIHE#MOFFMM_
("CUST_STATE_PROVINCE","COUNTRY_ID")


SQL>
SQL> SELECT e.EXTENSION col_group, t.NUM_DISTINCT, t.HISTOGRAM
  2  FROM   USER_STAT_EXTENSIONS e, USER_TAB_COL_STATISTICS t
  3  WHERE  e.EXTENSION_NAME=t.COLUMN_NAME
  4  AND    e.TABLE_NAME=t.TABLE_NAME
  5  AND    t.TABLE_NAME='CUSTOMERS_TEST';

COL_GROUP                                NUM_DISTINCT HISTOGRAM
---------------------------------------- ------------ ---------------
("CUST_STATE_PROVINCE","COUNTRY_ID")              145 NONE
("CUST_CITY","CUST_STATE_PROVINCE","COUN          620 HYBRID
TRY_ID")

 

Manually creating and dropping a Column Group

SQL> BEGIN
  2    DBMS_STATS.GATHER_TABLE_STATS( USER,'customers_test',
  3    METHOD_OPT => 'FOR ALL COLUMNS SIZE SKEWONLY ' ||
  4                  'FOR COLUMNS SIZE SKEWONLY (cust_state_province,country_id)' );
  5  END;
  6  /

PL/SQL procedure successfully completed.

SQL> BEGIN
  2    DBMS_STATS.DROP_EXTENDED_STATS( 'donghua', 'customers_test',
  3                                    '(cust_state_province, country_id)' );
  4  END;
  5  /

PL/SQL procedure successfully completed.

SQL> SELECT EXTENSION_NAME, EXTENSION
  2  FROM   USER_STAT_EXTENSIONS
  3  WHERE  TABLE_NAME='CUSTOMERS_TEST';

EXTENSION_NAME                           EXTENSION
---------------------------------------- ----------------------------------------------------------------------
SYS_STUMZ$C3AIHLPBROI#SKA58H_N           ("CUST_CITY","CUST_STATE_PROVINCE","COUNTRY_ID")

1z0-060 Upgrade to 12c: CONTAINER CLAUSE & Common granted privilege

$
0
0

If the current container is a pluggable database (PDB):

  • Specify CONTAINER=CURRENT to revoke a locally granted system privilege, object privilege, or role from a local user, common user, local role, or common role. The privilege or role is revoked from the user or role only in the current PDB. This clause does not revoke privileges granted withCONTAINER=ALL.

If the current container is the root:

  • Specify CONTAINER=CURRENT to revoke a locally granted system privilege, object privilege, or role from a common user or common role. The privilege or role is revoked from the user or role only in the root. This clause does not revoke privileges granted with CONTAINER=ALL.

  • Specify CONTAINER=ALL to revoke a commonly granted system privilege, object privilege on a common object, or role from a common user or common role. The privilege or role is revoked from the user or role across the entire CDB. This clause can revoke only a privilege or role granted withCONTAINER=ALL from the specified common user or common role. This clause does not revoke privileges granted locally with CONTAINER=CURRENT. However, any locally granted privileges that depend on the commonly granted privilege being revoked are also revoked.

If you omit this clause, then CONTAINER=CURRENT is the default.

 

SQL> desc cdb_sys_privs
Name                                      Null?    Type
----------------------------------------- -------- ----------------------------
GRANTEE                                            VARCHAR2(128)
PRIVILEGE                                          VARCHAR2(40)
ADMIN_OPTION                                       VARCHAR2(3)
COMMON                                             VARCHAR2(3)
CON_ID                                             NUMBER

SQL> create user c##admin identified by password;

User created.

SQL> grant create table to c##admin container=ALL;

Grant succeeded.

SQL> grant create view to c##admin container=CURRENT;

Grant succeeded.


SQL> select privilege, common,con_id from cdb_sys_privs where grantee='C##ADMIN';

PRIVILEGE                                COM     CON_ID
---------------------------------------- --- ----------
CREATE VIEW                              NO           1
CREATE TABLE                             YES          1
CREATE TABLE                             YES          3

SQL> revoke create table from c##admin;
revoke create table from c##admin
*
ERROR at line 1:
ORA-65092: system privilege granted with a different scope to 'C##ADMIN'

SQL> revoke create table from c##admin container=CURRENT;
revoke create table from c##admin container=CURRENT
*
ERROR at line 1:
ORA-65092: system privilege granted with a different scope to 'C##ADMIN'

SQL> revoke create table from c##admin container=ALL;

Revoke succeeded.

SQL> select privilege, common,con_id from cdb_sys_privs where grantee='C##ADMIN';

PRIVILEGE                                COM     CON_ID
---------------------------------------- --- ----------
CREATE VIEW                              NO           1

SQL> revoke create view from c##admin container=ALL;
revoke create view from c##admin container=ALL
*
ERROR at line 1:
ORA-65092: system privilege granted with a different scope to 'C##ADMIN'

SQL> select privilege, common,con_id from cdb_sys_privs where grantee='C##ADMIN';

PRIVILEGE                                COM     CON_ID
---------------------------------------- --- ----------
CREATE VIEW                              NO           1

SQL> revoke create view from c##admin container=CURRENT;

Revoke succeeded.

SQL> select privilege, common,con_id from cdb_sys_privs where grantee='C##ADMIN';

no rows selected

Reduce ZFS File Data to free up memory used for Oracle or MySQL Database

$
0
0

root@solaris:~# echo "::memstat"|mdb -k
Page Summary                 Pages             Bytes  %Tot
----------------- ----------------  ----------------  ----
Kernel                      137139            535.6M   21%
Guest                            0                 0    0%
ZFS Metadata                 10569             41.2M    2%
ZFS File Data               216961            847.5M   33%
Anon                         36668            143.2M    6%
Exec and libs                 1135              4.4M    0%
Page cache                    5639             22.0M    1%
Free (cachelist)             30191            117.9M    5%
Free (freelist)             210289            821.4M   32%
Total                       648591              2.4G


root@solaris:~# echo "set zfs:zfs_arc_max = 104857600" >> /etc/system
root@solaris:~# init 6

root@solaris:~# echo "::memstat"|mdb -k
Page Summary                 Pages             Bytes  %Tot
----------------- ----------------  ----------------  ----
Kernel                      137401            536.7M   21%
Guest                            0                 0    0%
ZFS Metadata                  8837             34.5M    1%
ZFS File Data                20755             81.0M    3%
Anon                         36965            144.3M    6%
Exec and libs                 1706              6.6M    0%
Page cache                    9972             38.9M    2%
Free (cachelist)             36747            143.5M    6%
Free (freelist)             396208              1.5G   61%
Total                       648591              2.4G

Install Oracle Linux 7.0

$
0
0

clip_image001

clip_image003

clip_image005

clip_image007

clip_image009

the “/boot” shall be minimal 200MB, suggest assign 300MB

clip_image011

clip_image013

clip_image015

clip_image017

clip_image019

clip_image021

clip_image023

clip_image025

Implementing Temporal Validity

$
0
0


oracle@solaris:~$ sqlplus donghua@orcl

SQL*Plus: Release 12.1.0.2.0 Production on Sun Sep 7 10:08:36 2014

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

Enter password:
Last Successful login time: Wed Sep 03 2014 22:28:04 +08:00

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options


SQL> create table emp_temp as
  2  select employee_id, first_name, salary
  3  from hr.employees
  4  where rownum<4;

Table created.

SQL> desc emp_temp
Name                                      Null?    Type
----------------------------------------- -------- ----------------------------
EMPLOYEE_ID                                        NUMBER(6)
FIRST_NAME                                         VARCHAR2(20)
SALARY                                             NUMBER(8,2)


SQL>  alter table emp_temp add period for valid_time;

Table altered.

SQL> desc emp_temp
Name                                      Null?    Type
----------------------------------------- -------- ----------------------------
EMPLOYEE_ID                                        NUMBER(6)
FIRST_NAME                                         VARCHAR2(20)
SALARY                                             NUMBER(8,2)

 
SQL> select column_name,data_type from dba_tab_columns where table_name='EMP_TEMP';

COLUMN_NAME          DATA_TYPE
-------------------- --------------------
SALARY               NUMBER
FIRST_NAME           VARCHAR2
EMPLOYEE_ID          NUMBER


SQL> select first_name,
  2  to_char(valid_time_start,'dd-mon-yyyy') "Start",
  3 to_char(valid_time_end,'dd-mon-yyyy') "End"
  4  from emp_temp;

FIRST_NAME           Start       End
-------------------- ----------- -----------
Donald
Douglas
Jennifer

SQL> insert into emp_temp values (100,'Donghua',5000);

1 row created.

SQL> commit;

Commit complete.

SQL> select first_name,
  2  to_char(valid_time_start,'dd-mon-yyyy') "Start",
  3  to_char(valid_time_end,'dd-mon-yyyy') "End"
  4  from emp_temp;

FIRST_NAME           Start       End
-------------------- ----------- -----------
Donald
Douglas
Jennifer
Donghua

SQL>

SQL> update emp_temp
  2  set valid_time_start = to_date('01-JUN-1995','dd-MON-yyyy'), valid_time_end = to_date('15-SEP-2010','dd-MON-yyyy')
  3 where first_name in ('Donald');

1 row updated.

SQL> update emp_temp
  2  set valid_time_start = to_date('01-AUG-1999','dd-MON-yyyy'), valid_time_end = to_date('01-MAR-2012','dd-MON-yyyy')
  3  where first_name in ('Douglas');

1 row updated.

SQL> update emp_temp
  2  set valid_time_start = to_date('20-MAY-1998','dd-MON-yyyy')
  3  where first_name in ('Jennifer');

1 row updated.

SQL> update emp_temp
  2  set valid_time_end = to_date('20-MAY-2017','dd-MON-yyyy')
  3 where first_name in ('Donghua');

1 row updated.

SQL> commit;

Commit complete.

SQL> select first_name,
  2  to_char(valid_time_start,'dd-mon-yyyy') "Start",
  3 to_char(valid_time_end,'dd-mon-yyyy') "End"
  4  from emp_temp
  5  order by 2;

FIRST_NAME           Start       End
-------------------- ----------- -----------
Douglas              01-aug-1999 01-mar-2012
Donald               01-jun-1995 15-sep-2010
Jennifer             20-may-1998
Donghua                          20-may-2017

SQL> select first_name,
  2 to_char(valid_time_start,'dd-mon-yyyy') "Start",
  3  to_char(valid_time_end,'dd-mon-yyyy') "End"
  4  from emp_temp
  5 as of period for valid_time to_date('01-JUN-2011')
  6 order by 2;

FIRST_NAME           Start       End
-------------------- ----------- -----------
Douglas              01-aug-1999 01-mar-2012
Jennifer             20-may-1998
Donghua                          20-may-2017

SQL> select first_name,
  2  to_char(valid_time_start,'dd-mon-yyyy') "Start",
  3 to_char(valid_time_end,'dd-mon-yyyy') "End"
  4 from emp_temp
  5 versions period for valid_time
  6  between to_date('01-SEP-1995') and to_date('01-SEP-1996')
  7  order by 2;

FIRST_NAME           Start       End
-------------------- ----------- -----------
Donald               01-jun-1995 15-sep-2010
Donghua                          20-may-2017

SQL> exec dbms_flashback_archive.enable_at_valid_time('CURRENT');

PL/SQL procedure successfully completed.

SQL> select first_name,
  2  to_char(valid_time_start,'dd-mon-yyyy') "Start",
  3  to_char(valid_time_end,'dd-mon-yyyy') "End"
  4  from emp_temp
  5 order by 2;

FIRST_NAME           Start       End
-------------------- ----------- -----------
Jennifer             20-may-1998
Donghua                          20-may-2017

SQL> exec dbms_flashback_archive.enable_at_valid_time('ALL');

PL/SQL procedure successfully completed.

SQL> select first_name,
  2  to_char(valid_time_start,'dd-mon-yyyy') "Start",
  3 to_char(valid_time_end,'dd-mon-yyyy') "End"
  4 from emp_temp
  5  order by 2;

FIRST_NAME           Start       End
-------------------- ----------- -----------
Douglas              01-aug-1999 01-mar-2012
Donald               01-jun-1995 15-sep-2010
Jennifer             20-may-1998
Donghua                          20-may-2017

SQL> exec dbms_flashback_archive.enable_at_valid_time('ASOF',to_timestamp('2012-01-01','yyyy-mm-dd'));

PL/SQL procedure successfully completed.

SQL> select first_name,
  2  to_char(valid_time_start,'dd-mon-yyyy') "Start",
  3  to_char(valid_time_end,'dd-mon-yyyy') "End"
  4  from emp_temp
  5 order by 2;

FIRST_NAME           Start       End
-------------------- ----------- -----------
Douglas              01-aug-1999 01-mar-2012
Jennifer             20-may-1998
Donghua                          20-may-2017


SQL> alter table emp_temp add (Last_Name varchar2(20) default 'Unknown');

Table altered.

SQL> truncate table emp_temp;
truncate table emp_temp
                      *
ERROR at line 1:
ORA-04020: deadlock detected while trying to lock object
30x0C1618A880x0BD751A000x0C5208FA0


SQL> select * from emp_temp;

EMPLOYEE_ID FIRST_NAME               SALARY LAST_NAME
----------- -------------------- ---------- --------------------
        199 Douglas                    2600 Unknown
        200 Jennifer                   4400 Unknown
        100 Donghua                    5000 Unknown

Bring ASM disk back online after transient failure (with feature Oracle ASM Fast Mirror Resync)

$
0
0

Messages in the ASM alert log:

2014-09-16 22:05:59.529000 +08:00
WARNING: Disk 2 (LODG_0002) in group 2 will be dropped in: (12777) secs on ASM inst 1
2014-09-16 22:09:02.620000 +08:00
WARNING: Disk 2 (LODG_0002) in group 2 will be dropped in: (12594) secs on ASM inst 1
2014-09-16 22:12:05.702000 +08:00
WARNING: Disk 2 (LODG_0002) in group 2 will be dropped in: (12410) secs on ASM inst 1
2014-09-16 22:15:08.793000 +08:00
WARNING: Disk 2 (LODG_0002) in group 2 will be dropped in: (12227) secs on ASM inst 1

How to bring it back:

SQL> select name,header_status,mount_status,path from v$asm_disk;

NAME            HEADER_STATU MOUNT_S PATH
--------------- ------------ ------- ----------------------------------------
                MEMBER       CLOSED  /dev/raw/raw1
LODG_0002       UNKNOWN      MISSING
VOL12G          MEMBER       CACHED  ORCL:VOL12G
VOL4G           MEMBER       CACHED  ORCL:VOL4G
LODG_0001       MEMBER       CACHED  /dev/raw/raw2

SQL> alter diskgroup lodg online disk 'LODG_0002';

Diskgroup altered.

SQL> select name,header_status,mount_status,path from v$asm_disk;

NAME            HEADER_STATU MOUNT_S PATH
--------------- ------------ ------- ----------------------------------------
VOL12G          MEMBER       CACHED  ORCL:VOL12G
VOL4G           MEMBER       CACHED  ORCL:VOL4G
LODG_0001       MEMBER       CACHED  /dev/raw/raw2
LODG_0002       MEMBER       CACHED  /dev/raw/raw1

Alternatively, you could run“alter diskgroup lodg online all;”

 

Message you are expecting from ASM alert log:

SQL> alter diskgroup lodg online disk 'LODG_0002'
NOTE: initiating online disk group 2 disks
LODG_0002 (2)
NOTE: process _s000_+asm (5843) initiating offline of disk 2.3915946016 (LODG_0002) with mask 0x7e in group 2
NOTE: sending set offline flag message 1439557556 to 1 disk(s) in group 2
WARNING: Disk LODG_0002 in mode 0x1 is now being offlined
NOTE: initiating PST update: grp = 2, dsk = 2/0xe9689820, mask = 0x6a, op = clear
GMON updating disk modes for group 2 at 36 for pid 23, osid 5843
NOTE: cache closing disk 2 of grp 2: (not open) LODG_0002
NOTE: PST update grp = 2 completed successfully
NOTE: initiating PST update: grp = 2, dsk = 2/0xe9689820, mask = 0x7e, op = clear
GMON updating disk modes for group 2 at 37 for pid 23, osid 5843
NOTE: cache closing disk 2 of grp 2: (not open) LODG_0002
NOTE: PST update grp = 2 completed successfully
NOTE: requesting all-instance membership refresh for group=2
2014-09-16 22:16:58.772000 +08:00
NOTE: F1X0 copy 2 relocating from 2:2 to 2:4294967294 for diskgroup 2 (LODG)
NOTE: initiating PST update: grp = 2, dsk = 2/0x0, mask = 0x11, op = assign
GMON updating disk modes for group 2 at 38 for pid 23, osid 5843
NOTE: cache closing disk 2 of grp 2: (not open) LODG_0002
NOTE: group LODG: updated PST location: disk 0001 (PST copy 0)
NOTE: PST update grp = 2 completed successfully
NOTE: requesting all-instance disk validation for group=2
NOTE: disk validation pending for group 2/0xeff868ea (LODG)
2014-09-16 22:17:01.835000 +08:00
NOTE: Found /dev/raw/raw1 for disk LODG_0002
WARNING: ignoring disk  in deep discovery
SUCCESS: validated disks for 2/0xeff868ea (LODG)
GMON querying group 2 at 39 for pid 23, osid 5843
NOTE: initiating PST update: grp = 2, dsk = 2/0x0, mask = 0x19, op = assign
GMON updating disk modes for group 2 at 40 for pid 23, osid 5843
NOTE: group LODG: updated PST location: disk 0001 (PST copy 0)
NOTE: group LODG: updated PST location: disk 0002 (PST copy 1)
NOTE: PST update grp = 2 completed successfully
NOTE: membership refresh pending for group 2/0xeff868ea (LODG)
2014-09-16 22:17:04.845000 +08:00
GMON querying group 2 at 41 for pid 13, osid 1845
NOTE: cache opening disk 2 of grp 2: LODG_0002 path:/dev/raw/raw1
SUCCESS: refreshed membership for 2/0xeff868ea (LODG)
NOTE: initiating PST update: grp = 2, dsk = 2/0x0, mask = 0x5d, op = assign
SUCCESS: alter diskgroup lodg online disk 'LODG_0002'
GMON updating disk modes for group 2 at 42 for pid 23, osid 5843
NOTE: group LODG: updated PST location: disk 0001 (PST copy 0)
NOTE: group LODG: updated PST location: disk 0002 (PST copy 1)
NOTE: PST update grp = 2 completed successfully
NOTE: initiating PST update: grp = 2, dsk = 2/0x0, mask = 0x7d, op = assign
GMON updating disk modes for group 2 at 43 for pid 23, osid 5843
NOTE: group LODG: updated PST location: disk 0001 (PST copy 0)
NOTE: group LODG: updated PST location: disk 0002 (PST copy 1)
NOTE: PST update grp = 2 completed successfully
NOTE: Voting File refresh pending for group 2/0xeff868ea (LODG)
NOTE: F1X0 copy 2 relocating from 2:4294967294 to 2:2 for diskgroup 2 (LODG)
2014-09-16 22:17:07.856000 +08:00
NOTE: Attempting voting file refresh on diskgroup LODG

How to manage the SQL Server error log

$
0
0

 

Reinitializing SQL Server error logs
PS C:\Users\Administrator> sqlcmd -S "10.0.2.15\PROD,3433"
1> xp_enumerrorlogs
2> go
Archive #   Date                     Log File Size (Byte)
----------- --------                --------------------
          0 09/22/2014  21:26         0
          1 09/22/2014  21:26           19192
          2 09/17/2014  15:57         18486
          3 09/02/2014  21:28         29756
          4 09/02/2014  20:36         19254
          5 08/28/2014  15:25         18366
          6 08/27/2014  16:38         50636
(7 rows affected)

1> sp_cycle_errorlog
2> go
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Limiting the size of SQL Server error logs (2012 and later version)

1> EXEC xp_instance_regread N'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer',N'ErrorLogSizeInKb'
2> go

(0 rows affected)
1>
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer',N'ErrorLogSizeInKb', REG_DWORD, 5120;
2> go

(0 rows affected)
1> EXEC xp_instance_regread N'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer',N'ErrorLogSizeInKb'
2> go
Value                 Data
---------------     -----------
ErrorLogSizeInKb     5120
(1 rows affected)

 

Increasing the number of SQL Server error log

1> EXEC xp_instance_regread N'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs'
2> go
(0 rows affected)


1> EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs', REG_DWORD, 12
2> go
(0 rows affected)

1> EXEC xp_instance_regread N'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs'
2> go
2> go
Value                 Data
---------------     -----------
NumErrorLogs         12
(1 rows affected)

 

image

image


Stop logging all successful backups in SQL Server error logs

$
0
0

sp_cycle_errorlog

BACKUP DATABASE [D1] 
TO DISK = N'C:\Temp\D1.bak' WITH NOFORMAT, INIT
GO

DBCC TRACEON (3226,-1)

BACKUP DATABASE [D1] 
TO DISK = N'C:\Temp\D1.bak' WITH NOFORMAT, INIT
GO

DBCC TRACEOFF (3226,-1)

BACKUP DATABASE [D1] 
TO DISK = N'C:\Temp\D1.bak' WITH NOFORMAT, INIT
GO

image

image

Permanent solution:

image

1z0-060 Row Limiting Clause for Top-N Queries in Oracle Database 12c Release 1

$
0
0

SQL> select * from v$version;

BANNER                                                                               CON_ID
-------------------------------------------------------------------------------- ----------
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production              0
PL/SQL Release 12.1.0.1.0 - Production                                                    0
CORE    12.1.0.1.0      Production                                                                0
TNS for Solaris: Version 12.1.0.1.0 - Production                                          0
NLSRTL Version 12.1.0.1.0 - Production                                                    0


SQL> explain plan for
  2  select * from hr.employees
  3  fetch first 20 percent rows only;

Explained.

SQL> set pages 999
SQL> set lin 120
SQL> select * from table(dbms_xplan.display);

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------
Plan hash value: 48081388

---------------------------------------------------------------------------------
| Id  | Operation           | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
---------------------------------------------------------------------------------
|   0 | SELECT STATEMENT    |           |   107 | 17013 |     3   (0)| 00:00:01 |
|*  1 |  VIEW               |           |   107 | 17013 |     3   (0)| 00:00:01 |
|   2 |   WINDOW BUFFER     |           |   107 |  7383 |     3   (0)| 00:00:01 |
|   3 |    TABLE ACCESS FULL| EMPLOYEES |   107 |  7383 |     3   (0)| 00:00:01 |
---------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   1 - filter("from$_subquery$_002"."rowlimit_$$_rownumber"<=CEIL("from$_
              subquery$_002"."rowlimit_$$_total"*20/100))

16 rows selected.

SQL> ALTER SESSION SET EVENTS '10053 trace name context forever';

Session altered.

SQL> select * from hr.employees
  2  fetch first 20 percent rows only;


22 rows selected.

SQL> ALTER SESSION SET EVENTS '10053 trace name context off';

Session altered.

SQL> select 107*0.2 from dual;

   107*0.2
----------
      21.4
     
SQL> select value from v$diag_info where name='Default Trace File';

VALUE
------------------------------------------------------------------------------------------------------------------------
/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4477.trc

SQL> exit

Final query after transformations:******* UNPARSED QUERY IS *******
SELECT "from$_subquery$_002"."EMPLOYEE_ID" "EMPLOYEE_ID",
    "from$_subquery$_002"."FIRST_NAME" "FIRST_NAME",
    "from$_subquery$_002"."LAST_NAME" "LAST_NAME",
    "from$_subquery$_002"."EMAIL" "EMAIL",
    "from$_subquery$_002"."PHONE_NUMBER" "PHONE_NUMBER",
    "from$_subquery$_002"."HIRE_DATE" "HIRE_DATE",
    "from$_subquery$_002"."JOB_ID" "JOB_ID",
    "from$_subquery$_002"."SALARY" "SALARY",
    "from$_subquery$_002"."COMMISSION_PCT" "COMMISSION_PCT",
    "from$_subquery$_002"."MANAGER_ID" "MANAGER_ID",
    "from$_subquery$_002"."DEPARTMENT_ID" "DEPARTMENT_ID"
    FROM 
        (SELECT "EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
            "EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
            "EMPLOYEES"."LAST_NAME" "LAST_NAME",
            "EMPLOYEES"."EMAIL" "EMAIL",
            "EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
            "EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
            "EMPLOYEES"."JOB_ID" "JOB_ID",
            "EMPLOYEES"."SALARY" "SALARY",
            "EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
            "EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
            "EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID",
            ROW_NUMBER() OVER ( ORDER BY  NULL ) "rowlimit_$$_rownumber",
            COUNT(*) OVER () "rowlimit_$$_total"
            FROM "HR"."EMPLOYEES" "EMPLOYEES"
            ) "from$_subquery$_002"
    WHERE "from$_subquery$_002"."rowlimit_$$_rownumber"<=CEIL("from$_subquery$_002"."rowlimit_$$_total"*20/100
)

1z0-060 Making Multisection Backups Using Image Copies

$
0
0

RMAN enables you to create multisection backups using image copies. Multisection backups provide better performance by using multiple channels to back up large files in parallel. Starting with Oracle Database 12c Release 1 (12.1), you can create multisection full backups that are stored as image copies. While the image copy is being created, multiple channels are used to write files sections. However, the output of this operation is one copy for each data file.

Use the SECTION SIZE clause to create multisection backups. If the section size that you specify is larger than the size of the file, then RMAN does not use multisection backups for that file. If you specify a small section size that would produce more than 256 sections, then RMAN increases the section size to a value that results in exactly 256 sections.

oracle@s11:~$ rman target /

Recovery Manager: Release 12.1.0.1.0 - Production on Sat Sep 27 23:22:49 2014

Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ORCL (DBID=1359083830)

RMAN>
RMAN> run{
2> allocate channel ch1 device type disk;
3> allocate channel ch2 device type disk;
4> allocate channel ch3 device type disk;
5> allocate channel ch4 device type disk;
6> backup as copy tablespace system section size 100M;
7> }

released channel: ORA_DISK_1
allocated channel: ch1
channel ch1: SID=77 device type=DISK

allocated channel: ch2
channel ch2: SID=1 device type=DISK

allocated channel: ch3
channel ch3: SID=72 device type=DISK

allocated channel: ch4
channel ch4: SID=68 device type=DISK

Starting backup at 27-SEP-14
channel ch1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
backing up blocks 1 through 12800
channel ch2: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
backing up blocks 12801 through 25600
channel ch3: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
backing up blocks 25601 through 38400
channel ch4: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
backing up blocks 38401 through 51200
output file name=/u01/app/oracle/fast_recovery_area/ORCL/datafile/o1_mf_system_b2fojz9l_.dbf tag=TAG20140927T232207
channel ch1: datafile copy complete, elapsed time: 00:00:13
channel ch1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
backing up blocks 51201 through 64000
output file name=/u01/app/oracle/fast_recovery_area/ORCL/datafile/o1_mf_system_b2fojz9l_.dbf tag=TAG20140927T232207
channel ch2: datafile copy complete, elapsed time: 00:00:14
channel ch2: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
backing up blocks 64001 through 76800
output file name=/u01/app/oracle/fast_recovery_area/ORCL/datafile/o1_mf_system_b2fojz9l_.dbf tag=TAG20140927T232207
channel ch3: datafile copy complete, elapsed time: 00:00:14
channel ch3: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
backing up blocks 76801 through 89600
output file name=/u01/app/oracle/fast_recovery_area/ORCL/datafile/o1_mf_system_b2fojz9l_.dbf tag=TAG20140927T232207
channel ch1: datafile copy complete, elapsed time: 00:00:12
channel ch1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
backing up blocks 89601 through 101120
output file name=/u01/app/oracle/fast_recovery_area/ORCL/datafile/o1_mf_system_b2fojz9l_.dbf tag=TAG20140927T232207
channel ch4: datafile copy complete, elapsed time: 00:00:20
output file name=/u01/app/oracle/fast_recovery_area/ORCL/datafile/o1_mf_system_b2fojz9l_.dbf tag=TAG20140927T232207
channel ch2: datafile copy complete, elapsed time: 00:00:15
output file name=/u01/app/oracle/fast_recovery_area/ORCL/datafile/o1_mf_system_b2fojz9l_.dbf tag=TAG20140927T232207
channel ch3: datafile copy complete, elapsed time: 00:00:10
output file name=/u01/app/oracle/fast_recovery_area/ORCL/datafile/o1_mf_system_b2fojz9l_.dbf tag=TAG20140927T232207
channel ch1: datafile copy complete, elapsed time: 00:00:08
Finished backup at 27-SEP-14

Starting Control File and SPFILE Autobackup at 27-SEP-14
piece handle=/u01/app/oracle/fast_recovery_area/ORCL/autobackup/2014_09_27/o1_mf_s_859418562_b2fol2ko_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 27-SEP-14
released channel: ch1
released channel: ch2
released channel: ch3
released channel: ch4

RMAN> exit

Install Solaris 11.2 on Virtual Box

Install Oracle prerequisite package for Oracle Database 12.1 in Solaris 11.2

$
0
0

For Oracle Solaris 11.2, Oracle supplies an installation package group that installs all of the software needed to support Oracle Database implementations. The package group is called:
group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall
Installing this package group creates an Oracle Database configuration on the Oracle Solaris 11.2 operating system, reducing the risk of installation errors and accelerating time-to-deployment. This package group makes sure that that all necessary packages required for a graphical interface installation of Oracle Database 12c are present on the system, regardless of the server package group (solaris-minimal-server, solaris-small-server, etc.) that was used to install Oracle Solaris.

root@solaris:~# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F
http://pkg.oracle.com/solaris/release/

root@solaris:~# pkg search -r oracle-rdbms-server*
INDEX      ACTION VALUE                                                                  PACKAGE
pkg.fmri   set    solaris/group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall  pkg:/group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall@0.5.11-0.175.2.0.0.42.0
pkg.fmri   set    solaris/group/prerequisite/oracle/oracle-rdbms-server-12cR1-preinstall pkg:/group/prerequisite/oracle/oracle-rdbms-server-12cR1-preinstall@0.5.11-0.175.2.0.0.39.0


root@solaris:~# pkg info -r group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall
          Name: group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall
       Summary: Prerequisite package for Oracle Database 12.1
   Description: Provides the set of Oracle Solaris packages required for
                installation and operation of Oracle Database 12.
      Category: Meta Packages/Group Packages
         State: Not installed
     Publisher: solaris
       Version: 0.5.11
Build Release: 5.11
        Branch: 0.175.2.0.0.42.0
Packaging Date: June 23, 2014 09:49:34 PM
          Size: 5.46 kB
          FMRI: pkg://solaris/group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall@0.5.11,5.11-0.175.2.0.0.42.0:20140623T214934Z

root@solaris:~# pkg info -r group/prerequisite/oracle/oracle-rdbms-server-12cR1-preinstall
          Name: group/prerequisite/oracle/oracle-rdbms-server-12cR1-preinstall
       Summary:
         State: Not installed (Renamed)
    Renamed to: group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall@0.5.11-0.175.2.0.0.39.0
     Publisher: solaris
       Version: 0.5.11
Build Release: 5.11
        Branch: 0.175.2.0.0.39.0
Packaging Date: May 12, 2014 04:04:32 PM
          Size: 5.46 kB
          FMRI: pkg://solaris/group/prerequisite/oracle/oracle-rdbms-server-12cR1-preinstall@0.5.11,5.11-0.175.2.0.0.39.0:20140512T160432Z


         
root@solaris:~# pkg install pkg:/group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall
           Packages to install: 11
            Services to change:  2
       Create boot environment: No
Create backup boot environment: No
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                              11/11       254/254      5.0/5.0  169k/s

PHASE                                          ITEMS
Installing new actions                       644/644
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           1/1


root@solaris:~# pkg info /group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall
          Name: group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall
       Summary: Prerequisite package for Oracle Database 12.1
   Description: Provides the set of Oracle Solaris packages required for
                installation and operation of Oracle Database 12.
      Category: Meta Packages/Group Packages
         State: Installed
     Publisher: solaris
       Version: 0.5.11
Build Release: 5.11
        Branch: 0.175.2.0.0.42.0
Packaging Date: June 23, 2014 09:49:34 PM
          Size: 5.46 kB
          FMRI: pkg://solaris/group/prerequisite/oracle/oracle-rdbms-server-12-1-preinstall@0.5.11,5.11-0.175.2.0.0.42.0:20140623T214934Z

Fix “Abnormal Program Termination” OUI error during installation Oracle 10.2.0.1 on Windows 2008

$
0
0

Error:

image

Starter DB state :true
Adding args :15
-scratchPath
C:\Users\ADMINI~1\AppData\Local\Temp\1\OraInstall2014-10-03_02-10-47PM
-sourceLoc
D:\Oracle\10201_database_win32\database\install\../stage/products.xml-sourceType network –timestamp 2014-10-03_02-10-47PM
-debug –oneclick –nosplash –
nowelcome –nocleanUpOnExit -exitOnBack
Exception java.lang.NullPointerException occurred..
java.lang.NullPointerException
        at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:553)
        at oracle.sysman.oii.oiic.OiicBaseApp.setAdditionalProperties(OiicBaseApp.java:374)
        at oracle.sysman.oii.oiic.OiicInstaller.processCommandLine(OiicInstaller.java:669)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:893)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.runInstaller(OiocOneClickInstaller.java:1016)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.startRun(OiocOneClickInstaller.java:1108)
        at oracle.sysman.oio.oioc.OiocOneClickDB.nextClicked(OiocOneClickDB.java:1084)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:1318)

Fix:

image

image

Use “pdb_save_or_discard_state” clause to instruct the database to save or discard the open mode of the PDB when the CDB restarts.

$
0
0

SQL> select name,open_mode from v$pdbs;

NAME                           OPEN_MODE
------------------------------ ----------
PDB$SEED                       READ ONLY
PDB1                           MOUNTED


SQL>  alter pluggable database pdb1 open;

Pluggable database altered.

SQL>  alter pluggable database pdb1 save state;

Pluggable database altered.

SQL> startup force;
ORACLE instance started.

Total System Global Area 1061158912 bytes
Fixed Size                  3011736 bytes
Variable Size             708840296 bytes
Database Buffers          343932928 bytes
Redo Buffers                5373952 bytes
Database mounted.
Database opened.


SQL> select name,open_mode from v$pdbs;

NAME                           OPEN_MODE
------------------------------ ----------
PDB$SEED                       READ ONLY
PDB1                           READ WRITE

SQL> col con_name for a10
SQL> col state for a20

SQL> select con_name,state from dba_pdb_saved_states;

CON_NAME   STATE
---------- --------------------
PDB1       OPEN

Description of pdb_save_or_discard_state.gif follows


Enable the In-Memory column store (IM column store) in database

$
0
0

SQL> select banner from v$version where banner like '%Database%';

BANNER
--------------------------------------------------------------------------------
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production


SQL> select * from v$sgainfo where name='In-Memory Area Size';

NAME                                  BYTES RES     CON_ID
-------------------------------- ---------- --- ----------
In-Memory Area Size                       0 No           0

SQL> show parameter inmemory

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
inmemory_clause_default              string
inmemory_force                       string      DEFAULT
inmemory_max_populate_servers        integer     0
inmemory_query                       string      ENABLE
inmemory_size                        big integer 0
inmemory_trickle_repopulate_servers_ integer     1
percent
optimizer_inmemory_aware             boolean     TRUE

SQL> conn / as sysdba
Connected.
SQL> alter system set inmemory_size=50M scope=spfile;

System altered.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-64353: in-memory area size cannot be less than 100MB

oracle@solaris:/u01/app/oracle/product/12.1.0/dbhome_1/dbs$ grep inmemory initorclcdb.ora
*.inmemory_size=100M

SQL> create spfile from pfile;

File created.

SQL> startup
ORACLE instance started.

Total System Global Area 1258291200 bytes
Fixed Size                  3003176 bytes
Variable Size             905972952 bytes
Database Buffers          218103808 bytes
Redo Buffers               13770752 bytes
In-Memory Area            117440512 bytes
Database mounted.
Database opened.

SQL> show parameter inmemory

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
inmemory_clause_default              string
inmemory_force                       string      DEFAULT
inmemory_max_populate_servers        integer     1
inmemory_query                       string      ENABLE
inmemory_size                        big integer 112M
inmemory_trickle_repopulate_servers_ integer     1
percent
optimizer_inmemory_aware             boolean     TRUE

SQL> conn donghua/password@pdb1
Connected.
SQL> select * from v$sgainfo where name='In-Memory Area Size';

NAME                                  BYTES RES     CON_ID
-------------------------------- ---------- --- ----------
In-Memory Area Size               117440512 No           0


SQL> select * from v$inmemory_area;

POOL       ALLOC_BYTES USED_BYTES POPULATE_STATUS     CON_ID
---------- ----------- ---------- --------------- ----------
1MB POOL      82837504          0 DONE                     3
64KB POOL     16777216          0 DONE                     3

SQL> select sum(alloc_bytes)/1024/1024 from v$inmemory_area;

SUM(ALLOC_BYTES)/1024/1024
--------------------------
                        95

What are these values added in spfile after issued “create spfile from memory”

$
0
0

*.__data_transfer_cache_size=0
orclcdb.__data_transfer_cache_size=0
*.__db_cache_size=208M
orclcdb.__db_cache_size=285212672
*.__java_pool_size=16M
orclcdb.__java_pool_size=16777216
*.__large_pool_size=144M
orclcdb.__large_pool_size=33554432
*.__oracle_base='/u01/app/oracle'# ORACLE_BASE set from environment
*.__pga_aggregate_target=480M
orclcdb.__pga_aggregate_target=503316480
*.__sga_target=720M
orclcdb.__sga_target=754974720
*.__shared_io_pool_size=0
orclcdb.__shared_io_pool_size=16777216
*.__shared_pool_size=224M
orclcdb.__shared_pool_size=251658240
*.__streams_pool_size=0
orclcdb.__streams_pool_size=0
*._adaptive_window_consolidator_enabled=TRUE
*._aggregation_optimization_settings=0
*._always_anti_join='CHOOSE'
*._always_semi_join='CHOOSE'
*._and_pruning_enabled=TRUE
*._b_tree_bitmap_plans=TRUE
*._bloom_filter_enabled=TRUE
*._bloom_folding_enabled=TRUE
*._bloom_pruning_enabled=TRUE
*._bloom_serial_filter='ON'
*._complex_view_merging=TRUE
*._compression_compatibility='12.1.0.2.0'
*._connect_by_use_union_all='TRUE'
*._convert_set_to_join=FALSE
*._cost_equality_semi_join=TRUE
*._cpu_to_io=0
*._diag_adr_trace_dest='/u01/app/oracle/diag/rdbms/orclcdb/orclcdb/trace'
*._dimension_skip_null=TRUE
*._distinct_agg_optimization_gsets='CHOOSE'
*._eliminate_common_subexpr=TRUE
*._enable_type_dep_selectivity=TRUE
*._fast_full_scan_enabled=TRUE
*._first_k_rows_dynamic_proration=TRUE
*._gby_hash_aggregation_enabled=TRUE
*._gby_vector_aggregation_enabled=TRUE
*._generalized_pruning_enabled=TRUE
*._globalindex_pnum_filter_enabled=TRUE
*._gs_anti_semi_join_allowed=TRUE
*._improved_outerjoin_card=TRUE
*._improved_row_length_enabled=TRUE
*._index_join_enabled=TRUE
*._ksb_restart_policy_times='0','60','120','240'# internal update to set default
*._left_nested_loops_random=TRUE
*._local_communication_costing_enabled=TRUE
*._minimal_stats_aggregation=TRUE
*._mmv_query_rewrite_enabled=TRUE
*._new_initial_join_orders=TRUE
*._new_sort_cost_estimate=TRUE
*._nlj_batching_enabled=1
*._optim_adjust_for_part_skews=TRUE
*._optim_enhance_nnull_detection=TRUE
*._optim_new_default_join_sel=TRUE
*._optim_peek_user_binds=TRUE
*._optimizer_adaptive_cursor_sharing=TRUE
*._optimizer_adaptive_plans=TRUE
*._optimizer_aggr_groupby_elim=TRUE
*._optimizer_ansi_join_lateral_enhance=TRUE
*._optimizer_ansi_rearchitecture=TRUE
*._optimizer_batch_table_access_by_rowid=TRUE
*._optimizer_better_inlist_costing='ALL'
*._optimizer_cbqt_no_size_restriction=TRUE
*._optimizer_cluster_by_rowid=TRUE
*._optimizer_cluster_by_rowid_batched=TRUE
*._optimizer_cluster_by_rowid_control=129
*._optimizer_coalesce_subqueries=TRUE
*._optimizer_complex_pred_selectivity=TRUE
*._optimizer_compute_index_stats=TRUE
*._optimizer_connect_by_combine_sw=TRUE
*._optimizer_connect_by_cost_based=TRUE
*._optimizer_connect_by_elim_dups=TRUE
*._optimizer_correct_sq_selectivity=TRUE
*._optimizer_cost_based_transformation='LINEAR'
*._optimizer_cost_hjsmj_multimatch=TRUE
*._optimizer_cost_model='CHOOSE'
*._optimizer_cube_join_enabled=TRUE
*._optimizer_dim_subq_join_sel=TRUE
*._optimizer_distinct_agg_transform=TRUE
*._optimizer_distinct_elimination=TRUE
*._optimizer_distinct_placement=TRUE
*._optimizer_dsdir_usage_control=126
*._optimizer_eliminate_filtering_join=TRUE
*._optimizer_enable_density_improvements=TRUE
*._optimizer_enable_extended_stats=TRUE
*._optimizer_enable_table_lookup_by_nl=TRUE
*._optimizer_enhanced_filter_push=TRUE
*._optimizer_extend_jppd_view_types=TRUE
*._optimizer_extended_cursor_sharing='UDO'
*._optimizer_extended_cursor_sharing_rel='SIMPLE'
*._optimizer_extended_stats_usage_control=192
*._optimizer_false_filter_pred_pullup=TRUE
*._optimizer_fast_access_pred_analysis=TRUE
*._optimizer_fast_pred_transitivity=TRUE
*._optimizer_filter_pred_pullup=TRUE
*._optimizer_fkr_index_cost_bias=10
*._optimizer_full_outer_join_to_outer=TRUE
*._optimizer_gather_feedback=TRUE
*._optimizer_gather_stats_on_load=TRUE
*._optimizer_group_by_placement=TRUE
*._optimizer_hybrid_fpwj_enabled=TRUE
*._optimizer_improve_selectivity=TRUE
*._optimizer_inmemory_access_path=TRUE
*._optimizer_inmemory_autodop=TRUE
*._optimizer_inmemory_bloom_filter=TRUE
*._optimizer_inmemory_cluster_aware_dop=TRUE
*._optimizer_inmemory_gen_pushable_preds=TRUE
*._optimizer_inmemory_minmax_pruning=TRUE
*._optimizer_inmemory_table_expansion=TRUE
*._optimizer_interleave_jppd=TRUE
*._optimizer_join_elimination_enabled=TRUE
*._optimizer_join_factorization=TRUE
*._optimizer_join_order_control=3
*._optimizer_join_sel_sanity_check=TRUE
*._optimizer_max_permutations=2000
*._optimizer_mode_force=TRUE
*._optimizer_multi_level_push_pred=TRUE
*._optimizer_multi_table_outerjoin=TRUE
*._optimizer_native_full_outer_join='FORCE'
*._optimizer_new_join_card_computation=TRUE
*._optimizer_nlj_hj_adaptive_join=TRUE
*._optimizer_null_accepting_semijoin=TRUE
*._optimizer_null_aware_antijoin=TRUE
*._optimizer_or_expansion='DEPTH'
*._optimizer_order_by_elimination_enabled=TRUE
*._optimizer_outer_join_to_inner=TRUE
*._optimizer_outer_to_anti_enabled=TRUE
*._optimizer_partial_join_eval=TRUE
*._optimizer_proc_rate_level='BASIC'
*._optimizer_push_down_distinct=0
*._optimizer_push_pred_cost_based=TRUE
*._optimizer_reduce_groupby_key=TRUE
*._optimizer_rownum_bind_default=10
*._optimizer_rownum_pred_based_fkr=TRUE
*._optimizer_skip_scan_enabled=TRUE
*._optimizer_sortmerge_join_inequality=TRUE
*._optimizer_squ_bottomup=TRUE
*._optimizer_star_tran_in_with_clause=TRUE
*._optimizer_strans_adaptive_pruning=TRUE
*._optimizer_system_stats_usage=TRUE
*._optimizer_table_expansion=TRUE
*._optimizer_transitivity_retain=TRUE
*._optimizer_try_st_before_jppd=TRUE
*._optimizer_undo_cost_change='12.1.0.2'
*._optimizer_unnest_corr_set_subq=TRUE
*._optimizer_unnest_disjunctive_subq=TRUE
*._optimizer_unnest_scalar_sq=TRUE
*._optimizer_use_cbqt_star_transformation=TRUE
*._optimizer_use_feedback=TRUE
*._optimizer_use_gtt_session_stats=TRUE
*._optimizer_use_histograms=TRUE
*._optimizer_vector_transformation=TRUE
*._or_expand_nvl_predicate=TRUE
*._ordered_nested_loop=TRUE
*._parallel_broadcast_enabled=TRUE
*._partition_view_enabled=TRUE
*._pivot_implementation_method='CHOOSE'
*._pre_rewrite_push_pred=TRUE
*._pred_move_around=TRUE
*._push_join_predicate=TRUE
*._push_join_union_view=TRUE
*._push_join_union_view2=TRUE
*._px_adaptive_dist_method='CHOOSE'
*._px_concurrent=TRUE
*._px_cpu_autodop_enabled=TRUE
*._px_external_table_default_stats=TRUE
*._px_filter_parallelized=TRUE
*._px_filter_skew_handling=TRUE
*._px_groupby_pushdown='FORCE'
*._px_join_skew_handling=TRUE
*._px_minus_intersect=TRUE
*._px_object_sampling_enabled=TRUE
*._px_parallelize_expression=TRUE
*._px_partial_rollup_pushdown='ADAPTIVE'
*._px_partition_scan_enabled=TRUE
*._px_pwg_enabled=TRUE
*._px_replication_enabled=TRUE
*._px_scalable_invdist=TRUE
*._px_single_server_enabled=TRUE
*._px_ual_serial_input=TRUE
*._px_wif_dfo_declumping='CHOOSE'
*._px_wif_extend_distribution_keys=TRUE
*._query_rewrite_setopgrw_enable=TRUE
*._remove_aggr_subquery=TRUE
*._replace_virtual_columns=TRUE
*._right_outer_hash_enable=TRUE
*._selfjoin_mv_duplicates=TRUE
*._sql_model_unfold_forloops='RUN_TIME'
*._sqltune_category_parsed='DEFAULT'# parsed sqltune_category
*._subquery_pruning_enabled=TRUE
*._subquery_pruning_mv_enabled=FALSE
*._table_scan_cost_plus_one=TRUE
*._union_rewrite_for_gs='YES_GSET_MVS'
*._unnest_subquery=TRUE
*._use_column_stats_for_function=TRUE

*.audit_file_dest='/u01/app/oracle/admin/orclcdb/adump'
*.audit_trail='DB'
*.compatible='12.1.0.2.0'
*.connection_brokers='((TYPE=DEDICATED)(BROKERS=1))','((TYPE=EMON)(BROKERS=1))'# connection_brokers default value
*.control_files='/u01/app/oracle/oradata/ORCLCDB/controlfile/o1_mf_b2qcr7mn_.ctl','/u01/app/oracle/fast_recovery_area/ORCLCDB/controlfile/o1_mf_b2qcr8oj_.ctl'
*.core_dump_dest='/u01/app/oracle/diag/rdbms/orclcdb/orclcdb/cdump'
*.db_block_size=8192
*.db_create_file_dest='/u01/app/oracle/oradata'
*.db_domain=''
*.db_name='orclcdb'
*.db_recovery_file_dest='/u01/app/oracle/fast_recovery_area'
*.db_recovery_file_dest_size=4560M
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclcdbXDB)'
*.enable_pluggable_database=TRUE
*.inmemory_size=112M
*.local_listener='LISTENER_ORCLCDB'
*.log_buffer=12936K# log buffer update
*.memory_max_target=1200M
*.memory_target=1200M
*.open_cursors=300
*.optimizer_dynamic_sampling=2
*.optimizer_mode='ALL_ROWS'

*.plsql_warnings='DISABLE:ALL'# PL/SQL warnings at init.ora
*.processes=300
*.query_rewrite_enabled='TRUE'
*.remote_login_passwordfile='EXCLUSIVE'
*.result_cache_max_size=3M
*.skip_unusable_indexes=TRUE

*.undo_tablespace='UNDOTBS1'

Optimized Shared Memory & MEMORY_MAX_TARGET in Solaris 11.2 + Oracle 12c

$
0
0

Starting with 12c, Oracle Database uses the Optimized Shared Memory (OSM) model of Oracle Solaris on Oracle Solaris 10 1/13 or later and Oracle Solaris 11 SRU 7.5 or later systems to implement Automatic Memory Management.

OSM allows dynamic resizing of System Global Area (SGA) without restarting the instance. It does not use the oradism utility and swap disk space. OSM is NUMA-optimized.

Total System Global Area 1258291200 bytes
Fixed Size                  3003176 bytes
Variable Size             905972952 bytes
Database Buffers          218103808 bytes
Redo Buffers               13770752 bytes
In-Memory Area            117440512 bytes

SQL> show parameter memory_target

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
memory_target                        big integer 1200M
SQL> show parameter memory_max_target

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
memory_max_target                    big integer 1200M


Dump of system resources acquired for SHARED GLOBAL AREA (SGA)
Available system pagesizes:
  4K, 2048K
Supported system pagesize(s):
  PAGESIZE  AVAILABLE_PAGES  EXPECTED_PAGES  ALLOCATED_PAGES  ERROR(s)
        4K       Configured               2               2        NONE
     2048K       Configured             601             601        NONE


oracle@solaris:~$ ipcs -dm
IPC status from <running system> as of Tuesday, October  7, 2014 08:39:35 PM SGT
T         ID      KEY        MODE        OWNER    GROUP      ALLOC
Shared Memory:
m         25   0x6a4bcd4  --rw-r-----   oracle oinstall           -
m         24   0x0        --rw-r-----   oracle oinstall   14680064
m         23   0x0        --rw-r-----   oracle oinstall   33554432
m         22   0x0        --rw-r-----   oracle oinstall 1123966976
m         21   0x0        --rw-r-----   oracle oinstall   83886080
m         20   0x0        --rw-r-----   oracle oinstall    4194304

If the column ALLOC shows an integer, it specifies that OSM is in use. If the column ALLOC shows a hyphen, it specifies that OSM is not in use.

oracle@solaris:~$ ipcs -im
IPC status from <running system> as of Tuesday, October  7, 2014 08:38:28 PM SGT
T         ID      KEY        MODE        OWNER    GROUP ISMATTCH
Shared Memory:
m         25   0x6a4bcd4  --rw-r-----   oracle oinstall       46
m         24   0x0        --rw-r-----   oracle oinstall       46
m         23   0x0        --rw-r-----   oracle oinstall       46
m         22   0x0        --rw-r-----   oracle oinstall       46
m         21   0x0        --rw-r-----   oracle oinstall       46
m         20   0x0        --rw-r-----   oracle oinstall       46

SQL> select (14680064+33554432+1123966976+83886080+4194304)/1024/1024 from dual;

(14680064+33554432+1123966976+83886080+4194304)/1024/1024
---------------------------------------------------------
                                               1201.89844

SQL> alter system set memory_max_target=1232M;
alter system set memory_max_target=1232M
                 *
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified

                                          
SQL> alter system set memory_max_target=1232M scope=spfile;

System altered.

SQL> startup
ORACLE instance started.

Total System Global Area 1291845632 bytes
Fixed Size                  3003272 bytes
Variable Size             939527288 bytes
Database Buffers          218103808 bytes
Redo Buffers               13770752 bytes
In-Memory Area            117440512 bytes
Database mounted.

All SGA segments were allocated at startup
**********************************************************************
Dump of system resources acquired for SHARED GLOBAL AREA (SGA)
Available system pagesizes:
  4K, 2048K
Supported system pagesize(s):
  PAGESIZE  AVAILABLE_PAGES  EXPECTED_PAGES  ALLOCATED_PAGES  ERROR(s)
        4K       Configured               2               2        NONE
     2048K       Configured             617             617        NONE
**********************************************************************

oracle@solaris:~$ ipcs -dm
IPC status from <running system> as of Tuesday, October  7, 2014 08:53:02 PM SGT
T         ID      KEY        MODE        OWNER    GROUP      ALLOC
Shared Memory:
m  268435459   0x6a4bcd4  --rw-r-----   oracle oinstall           -
m  268435458   0x0        --rw-r-----   oracle oinstall   14680064
m  268435457   0x0        --rw-r-----   oracle oinstall   33554432
m  268435456   0x0        --rw-r-----   oracle oinstall 1157496832
m  251658303   0x0        --rw-r-----   oracle oinstall   83886080
m  251658302   0x0        --rw-r-----   oracle oinstall    4194304

SQL> select (14680064+33554432+1157496832+83886080+4194304)/1024/1024 from dual;

(14680064+33554432+1157496832+83886080+4194304)/1024/1024
---------------------------------------------------------
                                                 1233.875

                                                
SQL> alter system set memory_target=1232M;

System altered.

Possible Reasons for “TNS-01182: Listener rejected registration of service”

$
0
0

Symptom:

03-NOV-2014 20:26:02 * service_register_NSGR * 1182
TNS-01182: Listener rejected registration of service ""

Possible Reasons:

1. VALID_NODE_CHECKING_REGISTRATION_listenername=ON (By default All remote registrations will fail)

2. REGISTRATION_INVITED_NODES_listenername or REGISTRATION_EXCLUDED_NODES_listenername is in use

3. DYNAMIC_REGISTRATION_listenername is off

For example:

DYNAMIC_REGISTRATION_LISTENER=OFF

Install SQL Server 2012 using Silent Mode

$
0
0

D:\setup.exe /ConfigurationFile=C:\ConfigurationFile.ini /IAcceptSQLServerLicenseTerms /SAPWD=password

;SQL Server 2012 Configuration File
[OPTIONS]

; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter.

ACTION="Install"

; Detailed help for command line argument ENU has not been defined yet.

ENU="True"

; Parameter that controls the user interface behavior. Valid values are Normal for the full UI,AutoAdvance for a simplied UI, and EnableUIOnServerCore for bypassing Server Core setup GUI block.
; The /UIMode setting cannot be used in conjunction with /Q or /QS.

; UIMODE="Normal"

; Setup will not display any user interface.

; QUIET="False"

; Setup will display progress only, without any user interaction.

QUIETSIMPLE="True"

; Specify whether SQL Server Setup should discover and include product updates. The valid values are True and False or 1 and 0. By default SQL Server Setup will include updates that are found.

UpdateEnabled="False"

; Specifies features to install, uninstall, or upgrade. The list of top-level features include SQL, AS, RS, IS, MDS, and Tools. The SQL feature will install the Database Engine, Replication, Full-Text, and Data Quality Services (DQS) server. The Tools feature will install Management Tools, Books online components, SQL Server Data Tools, and other shared components.

FEATURES=SQLENGINE,BIDS,CONN,IS,BC,SDK,BOL,SSMS,ADV_SSMS,SNAC_SDK

; Specify the location where SQL Server Setup will obtain product updates. The valid values are "MU" to search Microsoft Update, a valid folder path, a relative path such as .\MyUpdates or a UNC share. By default SQL Server Setup will search Microsoft Update or a Windows Update service through the Window Server Update Services.

UpdateSource="MU"

; Displays the command line parameters usage

HELP="False"

; Specifies that the detailed Setup log should be piped to the console.

INDICATEPROGRESS="False"

; Specifies that Setup should install into WOW64. This command line argument is not supported on an IA64 or a 32-bit system.

X86="False"

; Specify the root installation directory for shared components.  This directory remains unchanged after shared components are already installed.

INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server"

; Specify the root installation directory for the WOW64 shared components.  This directory remains unchanged after WOW64 shared components are already installed.

INSTALLSHAREDWOWDIR="C:\Program Files (x86)\Microsoft SQL Server"

; Specify a default or named instance. MSSQLSERVER is the default instance for non-Express editions and SQLExpress for Express editions. This parameter is required when installing the SQL Server Database Engine (SQL), Analysis Services (AS), or Reporting Services (RS).

INSTANCENAME="MSSQLSERVER"

; Specify the Instance ID for the SQL Server features you have specified. SQL Server directory structure, registry structure, and service names will incorporate the instance ID of the SQL Server instance.

INSTANCEID="MSSQLSERVER"

; Specify that SQL Server feature usage data can be collected and sent to Microsoft. Specify 1 or True to enable and 0 or False to disable this feature.

SQMREPORTING="False"

; Specify if errors can be reported to Microsoft to improve future SQL Server releases. Specify 1 or True to enable and 0 or False to disable this feature.

ERRORREPORTING="False"

; Specify the installation directory.

INSTANCEDIR="C:\Program Files\Microsoft SQL Server"

; Agent account name

AGTSVCACCOUNT="NT AUTHORITY\SYSTEM"

; Auto-start service after installation. 

AGTSVCSTARTUPTYPE="Automatic"

; Startup type for Integration Services.

ISSVCSTARTUPTYPE="Automatic"

; Account for Integration Services: Domain\User or system account.

ISSVCACCOUNT="NT AUTHORITY\SYSTEM"

; CM brick TCP communication port

COMMFABRICPORT="0"

; How matrix will use private networks

COMMFABRICNETWORKLEVEL="0"

; How inter brick communication will be protected

COMMFABRICENCRYPTION="0"

; TCP port used by the CM brick

MATRIXCMBRICKCOMMPORT="0"

; Startup type for the SQL Server service.

SQLSVCSTARTUPTYPE="Automatic"

; Level to enable FILESTREAM feature at (0, 1, 2 or 3).

FILESTREAMLEVEL="0"

; Set to "1" to enable RANU for SQL Server Express.

ENABLERANU="False"

; Specifies a Windows collation or an SQL collation to use for the Database Engine.

SQLCOLLATION="SQL_Latin1_General_CP1_CS_AS"

; Account for SQL Server service: Domain\User or system account.

SQLSVCACCOUNT="NT AUTHORITY\SYSTEM"

; Windows account(s) to provision as SQL Server system administrators.

SQLSYSADMINACCOUNTS="SSOSQL1\Administrator"

; The default is Windows Authentication. Use "SQL" for Mixed Mode Authentication.

SECURITYMODE="SQL"

; Provision current user as a Database Engine system administrator for SQL Server 2012 Express.

ADDCURRENTUSERASSQLADMIN="False"

; Specify 0 to disable or 1 to enable the TCP/IP protocol.

TCPENABLED="1"

; Specify 0 to disable or 1 to enable the Named Pipes protocol.

NPENABLED="0"

; Startup type for Browser Service.

BROWSERSVCSTARTUPTYPE="Disabled"

Viewing all 604 articles
Browse latest View live