Oracle Tidbits – May 2018 #oratidbit

Oracle *daily* TidBits” (#oratidbit) published on FacebookTwitter, and Google+ during weekdays in May 2018. Hope you find these helpful to learn something new or to remind you of its existence and use.

#oratidbit #db18c When cloning a non-CDB as a PDB or relocating a PDB, use the DBMS_PDB.EXPORTRMANBACKUP procedure to export RMAN backup metadata into the PDB dictionary, enabling backups of the source non-CDB or PDB to be usable for restore and recovery of the target PDB.
#oratidbit #db18c When a PDB resides in Oracle ASM, you can use a split mirroring technique to clone a PDB. The cloned PDB is independent of the original PDB.
#oratidbit #multitenant Every CDB has one and only one root container named CDB$ROOT. The root stores the system metadata required to manage PDBs. All PDBs belong to the root. The system container is the CDB root and all PDBs that belong to this root.
#oratidbit #multitenant A proxy PDB refers to a remote PDB, called the referenced PDB. Although you issue SQL statements in the proxy (referring) PDB, the statements execute in the referenced PDB. A proxy PDB is loosely analogous to a symbolic link file in Linux.
#oratidbit #multitenant By default, a user connected to one PDB must use database links to access objects in a different PDB in the same CDB. This behavior is directly analogous to a user in a non-CDB accessing objects in a different non-CDB.
#oratidbit #orclebs When a user tries to login and cannot be validated, meaning is not a valid user, a record is inserted into FND_UNSUCCESSFUL_LOGINS table for tracking purposes with username ANONYMOUS.
#oratidbit #orclebs The E-Business Suite Technology Codelevel Checker (ETCC) tool helps to identify application or database tier overlay patches that need to be applied to the Oracle E-Business Suite Release 12.2 system.
#oratidbit Oracle Database 18c is the terminal release for support of the Oracle Streams feature. Oracle Streams will be desupported from Oracle Database 19 onwards. Oracle Streams was deprecated in Oracle Database 12c (12.1).
#oratidbit #db18c When a PDB resides in Oracle ASM, a split mirroring technique can be used to clone a PDB. The cloned PDB is independent of the original PDB. The principal use case is to rapidly provision test and development PDBs in an Oracle ASM environment.
#oratidbit #orcldb The utllockt.sql script displays, in a tree fashion, the sessions in the system that are waiting for locks and the locks that they are waiting for.
#oratidbit #orcldb DBA_DDL_LOCKS view lists all DDL locks held in the database and all outstanding requests for a DDL lock. DBA_DML_LOCKS lists all DML locks held in the database and all outstanding requests for a DML lock.
#oratidbit DBMS_UTILITY.GET_TIME function determines the current time in 100th’s of a second. Call this function twice- at the beginning and end of some process– and then the first (earlier) number is subtracted from the second (later) number to determine the time elapsed.
#oratidbit DBMS_UTILITY.EXPAND_SQL_TEXT procedure recursively replaces any view references in the input SQL query with the corresponding view subquery.
#oratidbit DBMS_UTILITY.GET_DEPENDENCY procedure shows the dependencies on the object passed in. Uses the DBMS_OUTPUT package to display results, so declare SET SERVEROUTPUT ON to view dependencies.
#oratidbit #db18c Storage of private temporary table is memory only. Storage of global temporary table (pre-18c) is disk (temp tablespace). For global and private temporary tables, the database allocates temporary segments when a session first inserts data.
#oratidbit #db18c Starting 18c, each pluggable database (PDB) can have its own keystore, instead of there being only one keystore for the entire container database (CDB).
#oratidbit #db18c In a WITH or FROM clause of a SELECT statement, a query of an analytic view may include the FILTER FACT keywords to filter the data accessed by the analytic view prior to aggregation.
#oratidbit Analytic views provide a fast and efficient way to create analytic queries of data stored in existing database tables and views. Analytic views organize data using a dimensional model.
#oratidbit The #ORAchk Upgrade Readiness Assessment can be used to obtain an automated upgrade specific health check for upgrades to 11.2.x to 12.2.x. Many of the manual pre and post checks detailed in various upgrade related documents are automated using ORAchk.
#oratidbit Use the DBA_REGISTRY view to check the status of the database components. Status of NOSCRIPT indicates that the component is enabled, but there is no upgrade/downgrade script for this component.
#oratidbit Database Upgrade Assistant (DBUA) gets the information of the databases available for upgrade from the /etc/oratab file, and other locations in the oraInventory.
#oratidbit When upgrading database using DBUA, hidden parameters are not carried to the target database by DBUA. To keep the underscore (hidden) parameters after an upgrade, invoke “dbua -keepHiddenParams”.

Oracle Tidbits – April 2018 #oratidbit

Oracle *daily* TidBits” (#oratidbit) published on Facebook, Twitter, and Google+ during weekdays in April 2018. Hope you find these helpful to learn something new or to remind you of its existence and use.

#oratidbit #db18c #Dataguard Broker 18c VALIDATE DATABASE SPFILE performs a comparison of server parameter file (SPFILE) entries between the primary database and a specified standby database.
#oratidbit #db18c #Dataguard A standby database can be refreshed over the network using one RMAN command, RECOVER STANDBY DATABASE.
#oratidbit #db18c If you have an existing Oracle Database with services that you want to migrate to 18c, you must install the new release Oracle Database software in the Oracle home, and then use DBUA to migrate those services.
#oratidbit #db18c Oracle Streams does not support any Oracle Database features added in Oracle Database 12c Release 1 (12.1) or later releases.
#oratidbit #orachk To run Oracle Grid Infrastructure checks in an environment with no Oracle Database has been installed, use the option -nordbms with orachk and exachk.
#oratidbit #db18c Before upgrading to Oracle Database 18c, you must set the COMPATIBLE initialization parameter to at least 11.2.0, which is the minimum setting for Oracle Database 18c.
#oratidbit To upgrade #orcldb 11g release 2 (11.2) Express Edition (Oracle Database XE) to 12c release 2 (12.2), you must first upgrade from XE to 12c release 1 (12.1.0.2) Enterprise Edition, and then upgrade to 12c release 2 (12.2).
#oratidbit #db18c Read-only Oracle Home: ORACLE_BASE_HOME is a subdirectory within the ORACLE_BASE directory that contains user-specific files, instance-specific files, and log files.
#oratidbit #db18c Read-only Oracle Home: ORACLE_BASE_CONFIG is same as the ORACLE_BASE directory that contains instance-specific dynamic files, such as configuration files.
#oratidbit Starting up the database in UPGRADE mode enables to open a database based on an earlier release. It also restricts log-ins to AS SYSDBA sessions, disables system triggers, and performs additional operations that prepare the environment for the upgrade.
#oratidbit #db18c New Parameter: ADG_ACCOUNT_INFO_TRACKING – Value of GLOBAL maintainins a single global copy of users account information across all Data Guard databases (primary and standby). Login anywhere will be denied when the login failure count is reached.
#oratidbit #db18c New Parameter: PARALLEL_MIN_DEGREE controls the minimum degree of parallelism computed by automatic degree of parallelism.
#oratidbit #db18c New Parameter: PRIVATE_TEMP_TABLE_PREFIX specifies the prefix that the database uses for private temporary tables. The default value used for the PRIVATE_TEMP_TABLE_PREFIX parameter is ORA$PTT_.
#oratidbit SQL*Plus command-line option –F[ast] changes the setting values as ARRAYSIZE = 100, LOBPREFETCH = 16384, PAGESIZE = 50000, ROWPREFETCH = 2, STATEMENTCACHE = 20.
#oratidbit SQL*Plus SET FEEDBACK command has an ONLY option to display the number of rows selected. No data is displayed.
#oratidbit #orcldb Initialization parameter INSTANCE_MODE indicates whether the instance is read-write, read-only, or read-mostly. A READ-MOSTLY instance is an Oracle instance that performs very few database writes.
#oratidbit #orcldb Initialization parameter ENABLE_AUTOMATIC_MAINTENANCE_PDB can be used to enable or disable the running of automated maintenance tasks for all the PDBs in a CDB or for individual PDBs in a CDB.
#oratidbit #orcldb Initialization parameter CURSOR_INVALIDATION controls whether deferred cursor invalidation or immediate cursor invalidation is used for DDL statements by default. Prior to 12.2.0.1, immediate cursor invalidation was used.
#oratidbit #orcldb Init LONG_MODULE_ACTION enables the use of longer lengths for modules and actions. Module length was 48 bytes and action length was 32 bytes in releases prior to 12.2.0.1. If set to TRUE (the default value), then the length of both will be 64 bytes each.
#oratidbit #orcldb Initialization parameter MAX_IDLE_TIME specifies the maximum number of minutes that a session can be idle. After that point, the session is automatically terminated.
#oratidbit #db18c A CDB fleet provides the database infrastructure for scalability and centralized management of many CDBs. A CDB fleet is a collection of CDBs and hosted PDBs that you can manage as one logical CDB.