Oracle Tidbits – February 2015

Oracle *daily* TidBits” (#oratidbit) published at https://www.facebook.com/oraclenotes on weekdays in February 2015. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well… Hope you find these helpful to learn something new or to remind you of its existence and use…

Publish Date TidBit
2-Feb #oratidbit SRVCTL commands and components are case insensitive. Options are case sensitive. Database and database service names are case insensitive and case preserving.
3-Feb #oratidbit “srvctl setenv” command sets values of environment variables in the Oracle Restart configuration for a database, a listener, or the Oracle ASM instance.
4-Feb #oratidbit “crsctl check has” displays the Oracle Restart (srvctl) configuration.
5-Feb #oratidbit “srvctl status home” displays the running status of all of the components that are managed by Oracle Restart in the specified Oracle home.
9-Feb #oratidbit ALTER SYSTEM ARCHIVE LOG CURRENT statement in RAC database will force a log switch on all instances. Oracle Database archives all redo log file groups from all enabled threads, including logs previous to current logs.
10-Feb #oratidbit “crctl eval” command enables (in RAC or Oracle Restart) to simulate a command without making any changes to the system. CRSCTL returns output that informs you what will happen if you run a particular command.
11-Feb #oratidbit The Oracle Interface Configuration Tool (OIFCFG) command-line interface can be used to define and administer network interfaces in RAC environment. “oifcfg iflist” shows the available interfaces to configure. The iflist command queries the operating system to find which network interfaces are present on the node.
12-Feb #oratidbit In RAC environment, use the ocrconfig command to manage Oracle Cluster Registry (OCR). Using ocrconfig you can import, export, add, delete, restore, overwrite, backup, repair, replace, move, upgrade, or downgrade OCR.
13-Feb #oratidbit In RAC environment, olsnodes command provides the list of nodes and other information for all nodes participating in the cluster. The “olsnodes -i” lists all nodes participating in the cluster and includes the Virtual Internet Protocol (VIP) address (or VIP address with the node name) assigned to each node.
16-Feb #oratidbit #Oracle Trace File Analyzer (TFA) is installed automatically with Oracle Grid Infrastructure 11.2.0.4 & 12.1.0.2. It simplifies the diagnostic data collection for Oracle Clusterware, Oracle Grid Infrastructure, and Oracle RAC systems. To install or upgrade with latest version of TFA, use MOS Doc 1513912.1.
17-Feb #oratidbit The most simplistic form of data collection using Trace File Analyzer (TFA) is “tfactl diagcollect”. It will collect and trim log and trace files for the past 4 hours, these logs/traces include: Clusterware/GI, ASM, Database (from all databases) OS, OSWatcher, CHMOS and Procwatcher.  All diagnostic data will be trimmed to this 4 hour window and consolidated for upload to the node in which the diagcollection command was executed on. See MOS Doc 1513912.1
18-Feb #oratidbit Every time an Oracle Clusterware error occurs, run the “Grid_home/bin/diagcollection.pl” script as root user to collect diagnostic information from Oracle Clusterware into trace files. The TFA diagnostics provide additional information so My Oracle Support can resolve problems.
19-Feb #oratidbit The Automatic Diagnostic Collection feature of Trace File Analyzer (TFA) is disabled by default. To enable do “tfactl set autodiagcollect=ON -c” See MOS Doc 1513912.1
20-Feb #oratidbit Trace File Analyzer (TFA) now includes DB Support tools such as ORAChk, EXAChk, OSWatcher, ProcWatcher, ORATOP, SQLT as well as basic AWR report generation. See MOS Doc 1513912.1
23-Feb #oratidbit Heat Map and Automatic Data Optimization are two new features of the #Oracle Advanced Compression option for Oracle #DB12c. Heat Map automatically tracks data modification and query timestamps, providing details of how data is being used. It collects statistical information about the usage frequency or “heat” of a segment, such as a table or a partition.
24-Feb #oratidbit In #Oracle #DB12c, the HEAT_MAP initialization parameter enables both Heat Map and Automatic Data Optimization.
25-Feb #oratidbit JSON (JavaScript Object Notation) is a lightweight data-interchange format. Oracle #DB12c supports JSON natively with relational database features, including transactions, indexing, declarative querying, and views. To see which columns include JSON data, query the USER_JSON_COLUMNS view.
26-Feb #oratidbit With Adaptive Plans feature of Oracle #DB12c, the execution plan of the query may change after starting the execution. During the parse phase of a query, the optimizer computes an execution plan based on the information gathered from the statistics. Optimizer also computes alternative plans called subplans. During query execution, a statistics collector collects runtime statistics, and if a subplan proves to be better than the originally computed plan, the optimizer will make a course correction and choose that subplan.
27-Feb #oratidbit OPTIMIZER_DYNAMIC_SAMPLING in #DB12c has a new level 11. Level 11 enables the optimizer to automatically decide to use dynamic statistics for any SQL statement, even if all basic table statistics exist.

Oracle Tidbits – January 2015

Oracle *daily* TidBits” (#oratidbit) published at https://www.facebook.com/oraclenotes on weekdays in January 2015. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well… Hope you find these helpful to learn something new or to remind you of its existence and use…

Publish Date TidBit
2-Jan #oratidbit the SCHEMA_EXPORT_OBJECTS view shows the valid values you can use with EXCLUDE and INCLUDE parameters when using schema level export/import. DATABASE_EXPORT_OBJECTS and TABLE_EXPORT_OBJECTS are views for full database  and table level export/import respectively.
5-Jan #oratidbit The tables beginning with ROLLING$ owned by SYSTEM are internal system tables used by the DBMS_ROLLING PL/SQL package used to implement the Rolling Upgrade Using Active Data Guard feature, which streamlines the process of upgrading Oracle Database software in a Data Guard configuration in a rolling fashion.
6-Jan #oratidbit The SYSTEM_PRIVILEGE_MAP table lists all system privileges in the Oracle database. Similar table is STMT_AUDIT_OPTION_MAP.
7-Jan #oratidbit The EXPTIME column in SYS.USER$ shows the actual password expiration time of the user. The LTIME column shows time when account is locked.
8-Jan #oratidbit Transparent sensitive data protection (TSDP) is a new feature in #DB12c that enables you to quickly find all table columns in a database that hold sensitive data.
9-Jan #oratidbit Starting with 11g, the $ORACLE_HOME/rdbms/admin/sql.bsq script is modularized, and calls multiple *.bsq scripts. In #DB12c 12.1.0, there are 25 *.bsq scripts called in sql.bsq.
14-Jan #oratidbit In #DB12c when Unified Auditing is enabled, audit records are queried from UNIFIED_AUDIT_TRAIL view. For better efficiency, audit records are written to SGA first and not written to disk until the in-memory queues are full. You may force a flush using SYS.DBMS_AUDIT_MGMT.FLUSH_UNIFIED_AUDIT_TRAIL procedure.
15-Jan #oratidbit AUDIT_SYSLOG_LEVEL init parameter enables SYS and standard OS audit records to be written to the system audit log using the SYSLOG utility.
16-Jan #oratidbit To enable unified auditing in #DB12c, relink the oracle executable using the uniaud_on option.
cd $ORACLE_HOME /rdbms/lib
make -f ins_rdbms.mk uniaud_on ioracle ORACLE_HOME=$ORACLE_HOME
19-Jan #ortidbit Per MOS DOC 161818.1 Oracle Database (RDBMS) Releases Support Status Summary, 12.1.0.2 is the terminal 12.1 Patch Set and is currently only available for Enterprise Edition.
20-Jan #oratidbit RAC and DB Support Tools Bundle MOS in Doc 1594347.1. Tools include
ORAchk (formerly RACcheck)
Trace File Analyzer Collector (TFA)
OSWatcher
Procwatcher
ORATOP
SQLT
Remote Diagnostic Agent (RDA)
Diagnostic Assistant (DA)
21-Jan #oratidbit Check out the Databsae Diagnostic tools in MOS DOC 559339.1. Tools include
ORA-600 Troubleshooting Tool
ORA-1578 Troubleshooting Tool
ORA-2730x Troubleshooting Tool
ORA-3137 Troubleshooting Tool
ORA-4030 Troubleshooting Tool
ORA-4031 Troubleshooting Tool
ORA-7445 Troubleshooting Tool
ORA-600/ORA-7445 Error Look-up Tool
Database Upgrade Troubleshooting Tool
RAC Node Eviction Troubleshooting Tool
EMDIAG Troubleshooting Tool
22-Jan #oratidbit Oracle Database Recommended Pathces in MOS DOC 756671.1. Be proactive!
23-Jan #oratidbit Check out MOS Doc 1555012.2 Troubleshooting Assistant: Oracle Database – Client / Install / Deinstall / Cloning
26-Jan #oratidbit Use the DBMS_PDB.DESCRIBE procedure on the non-CDB to generate the XML file, which you can use to plug in the non-CDB as PDB to a CDB.
27-Jan #oratidbit According to MOS Note 742060.1, Oracle Database 12c Release 2 is expected in First Half 2016.
29-Jan #oratidbit If Oracle Restart is installed, you can manage ASM instance, database instance, ASM diskgroup, listener, database service and Oracle Notification Services (ONS) using SRVCTL.
30-Jan #oratidbit “srvctl start home” starts all of the components that are managed by Oracle Restart in the specified Oracle home.