Oracle Daily Tidbits March 2016

Oracle *daily* TidBits” (#oratidbit) published at https://www.facebook.com/oraclenotes on weekdays in March 2016. 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…

#oratidbit The awrsqrpt.sql SQL script generates an HTML or text report that displays statistics of a particular SQL statement from a range of AWR snapshot IDs. Run this report to inspect or debug the performance of a SQL statement.
#oratidbit Generate Performance Hub active report by running the perfhubrpt.sql SQL script. Performance Hub active report enables you to view all performance data available for a time period that you specify. Different tabs are available in the Performance Hub, depending on whether real-time or historical data is selected for the time period.
#oratidbit After you do EXPLAIN PLAN on a statement, use UTLXPLS.SQL to display the plan table output for serial processing, or use UTLXPLP.SQL for including parallel execution columns. Using DBMS_XPLAN.DISPLAY can also used.
#oratidbit All SGA components except the redo log buffer allocate and deallocate space in units of contiguous memory called granules. Granule size is platform-specific and is determined by total SGA size.
#oratidbit Every Oracle ASM disk is divided into allocation units (AU). An AU is the fundamental unit of allocation within a disk group. The values can be 1, 2, 4, 8, 16, 32, or 64 MB, depending on the specific disk group compatibility level. Larger AU sizes typically provide performance advantages for data warehouse applications that use large sequential reads.
#oratidbit V$SQL_PLAN contains the execution plan for every statement stored in the shared SQL area.
#oratidbit The V$SQL_PLAN_STATISTICS_ALL view enables side by side comparisons of the estimates that the optimizer provides for the number of rows and elapsed time. This view combines both V$SQL_PLAN and V$SQL_PLAN_STATISTICS information for every cursor.
#oratidbit In 12c 12.1.0.2, the Oracle ASM filter driver rejects any I/O requests that are invalid. This action eliminates accidental overwrites of Oracle ASM disks that would cause corruption in the disks and files within the disk group.
#oratidbit Typical Job role separation groups on Linux Oracle RDBMS install are: OSDBA (dba), OPOPER (oper), OSBACKUPDBA (backupdba), OSDGDBA (dgdba), OSKMDBA (kmdba). ASM install groups are: OSASM (asmadmin), OSDBA (asdba), OSOPER (asmoper). And in practical world for most DBAs, all groups are “dba”!
#oratidbit In 12c, Oracle Cluster Registry Backup supported on ASM Disk Group. Storing the OCR backup in an Oracle ASM disk group simplifies OCR management by permitting access to the OCR backup from any node in the cluster should an OCR recovery become necessary.
#oratidbit In 12c, Oracle Grid Infrastructure and Oracle Real Application Clusters can no longer be installed on 32-bit systems.
#oratidbit To prepare Linux system for Oracle Grid or RDBMS install run the Oracle Preinstallation RPM (OEL6) or Oracle Validated RPM (OEL5). yum install oracle-rdbms-server-12cR1-preinstall.
#oratidbit Specify DEFERRED clause in CREATE MATERIALIZED VIEW to indicate that the materialized view is to be populated by the next REFRESH operation. The first (deferred) refresh must always be a complete refresh. Until then, the materialized view has a staleness value of UNUSABLE, so it cannot be used for query rewrite. This is a good option to get all materialized views created quickly.
#oratidbit You cannot create a database link in another user’s schema, and you cannot qualify dblink with the name of a schema. Periods are permitted in names of database links, so Oracle Database interprets the entire name as the name of a database link in your schema.
#oratidbit The ALTER DATABASE LINK statement is intended only to update password for fixed-user database links. For all other changes, the database link must be dropped and recreated, including connected user change.
#oratidbit FLASHBACK ARCHIVE ADMINISTER and CREATE TABLESPACE system privileges are required to create flashback data archive. Flashback data archives retain historical data for the time duration specified and data queried using the Flashback Query AS OF clause.
#oratidbit To create a normal restore point, you must have either SELECT ANY DICTIONARY or FLASHBACK ANY TABLE privilege. To create a guaranteed restore point, you must have the SYSDBA system privileges.
#oratidbit In #DB12c to enable or disable in-memory queries, you can specify the INMEMORY or NO_INMEMORY hints, which are the per-query equivalent of the INMEMORY_QUERY initialization parameter.
#oratidbit In 12c, DGMGRL command, VALIDATE DATABASE, enables you to determine whether a database is ready to perform a role change. The checks use information available in various Oracle Data Guard views as well as the Automatic Diagnostic Repository.
#oratidbit in CDB 12c standby architecture, redo from primary must always shipped to the service defined on the root container (CON_ID=1).

 

Oracle Daily Tidbits Feb 2016

Oracle *daily* TidBits” (#oratidbit) published at https://www.facebook.com/oraclenotes on weekdays in February 2016. 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…

#oratidbit Oracle XML Database is mandatory component of Oracle Database 12c. You cannot uninstall it, and there is no option not to include it when you create a new database. If during the upgrade, Oracle XML DB is not found, then Oracle XML DB is automatically loaded into the SYSAUX tablespace.
#oratidbit In Oracle DB 12c, catctl.pl utility replaces the catupgrd.sql script to upgrade database manually. If you choose to run the catupgrd.sql script instead of running catctl.pl, then you must provide a parameter input @catupgrd.sql PARALLEL=NO.
#oratidbit The IGNORECASE argument of ORAPWD and the SEC_CASE_SENSITIVE_LOGON system parameter are deprecated in Oracle Database 12c.
#oratidbit When manually upgrading a database to 12c, you must run catuppst.sql script after upgrade to perform remaining upgrade actions that do not require the database to be in UPGRADE mode. If an Oracle patch set update (PSU) has been installed in the Oracle Home, then this script will automatically apply that PSU to the database.
#oratidbit If you created statistics tables using the DBMS_STATS.CREATE_STAT_TABLE procedure, after DB upgrade they must be upgraded to current release using DBMS_STATS.UPGRADE_STAT_TABLE procedure.
#oratidbi OEM Cloud Control 13c requires Oracle WebLogic Server 12c Release 1 (12.1.3.0) and Java Development Kit 1.7.0_80. The installation wizard automatically installs them while installing a new Enterprise Manager system.
#oratidbit Starting with 13c Release 1, Enterprise Manager Cloud Control offers Agent Gold Images that can be used for mass-deployment and upgrade of Management Agents in your environment. An Agent Gold Image represents the ideal state of a Management Agent in a data center managed by Enterprise Manager, having a customized configuration of the desired versions of the Management Agent software, the desired versions of the monitoring plug-ins, and the desired patches.
#oratidbit OEM Cloud Control 12c releases 3,4,5 can be upgraded directly to OEM Cloud Control 13c.
#oratidbit Beginning with Enterprise Manager 13c Release 1 (13.1.0.0.0), BI Publisher is installed and automatically configured alongside Enterprise Manager. It is not possible to de-install or otherwise de-configure BI Publisher, as it is a base framework component of Enterprise Manager.
#oratidbit The system broadcast feature of OEM 13c provides a way for the super administrator to send a pop-up message to all users of Enterprise Manager.
#oratidbit Beginning with Enterprise Manager Cloud Control version 12cR3, EM CLI includes an embedded Jython interpreter (Jython 2.5.3), where all of the verbs are registered as functions, known as EM CLI verb functions or simply functions.
#oratidbit OEM Management Repository tables mgmt_targets, mgmt_roles and mgmt_created_users show the details on targets monitored, roles defined and users in OEM.
#oratidbit Oracle DB 11g and up have block change tracking support for standby databases. License for Oracle Active Data Guard required to enable BCT at standby. MOS 468576.1.
#oratidbit Cloud Management Pack for Oracle Database helps to set up a Database Cloud and operate the Database as a Service model. The Oracle Cloud Management Pack for Oracle Database requires the Oracle Database Lifecycle Management Pack for Oracle Database.
#oratidbit In #Oracle #DB12c 12.1.0.2, Oracle ASM Filter Driver (Oracle ASMFD) is installed with Grid Infrastructure installation. This filter helps to prevent users with administrative privileges from inadvertently overwriting Oracle ASM disks.