Category: TidBits

  • Oracle Tidbits – April 2015

    Oracle *daily* TidBits” (#oratidbit) published at https://www.facebook.com/oraclenotes on weekdays in April 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-Apr #oratidbit #DB12c feature: Real-Time database operations monitoring tracks and reports on active and recently completed database operations. You can monitor details of the execution of a single SQL or PL/SQL statement. You can also monitor the progress of long-running operations such as a batch job, or ETL processing.
    3-Apr #oratidbit #DB12c new feature Real-Time database operations monitoring is part of Oracle Database Tuning Pack. The SQL monitoring feature is enabled by default when the STATISTICS_LEVEL initialization parameter is either set to TYPICAL (the default value) or ALL. SQL monitoring starts automatically for all long-running queries.
    6-Apr #oratidbit #oracle #db12c allows you to use inline function and procedure in SQL using WITH clause.
    7-Apr #oratidbit #db12c SQL: The SYS_CONTEXT(‘SYS_SESSION_ROLES’,'<role>’) returns TRUE if the <role> is enabled for the session. Note, the use of SYS_SESSION_ROLE instead of USERENV in SYS_CONTEXT.
    8-Apr #oratidbit the WITH_PLSQL hint is not an optimizer hint. It enables you to specify the WITH plsql_function or plsql_procedure clause within the SQL statement. This hint could help you avoid “ORA-32034: unsupported use of WITH clause”
    13-Apr #oratidbit #sqldeveloper provides wizards to perform RMAN backups and recovery as well as datapump export and import.
    14-Apr #oratidbit #sqldeveloper Cart is a convenient tool for deploying Oracle Database objects from one or more database connections to a destination connection. You drag and drop objects from the Connections navigator into the Cart window (or you can open a previously saved cart XML file), specify any desired options, and click the Deploy icon to display the Deploy Objects dialog box. After you complete the information in that dialog box, SQL Developer creates a .zip file containing scripts (including a master script) that can be used to create the objects in the schema of a desired destination connection.
    15-Apr #oratidbit #sqldeveloper worksheet supports many SQL*Plus commands excepet buffer editing commands (obviously), oradebug, startup, shutdown, recover, etc.
    16-Apr #oratidbit #sqldeveloper provides integrated support for the Subversion versioning and source control system.
    17-Apr #oratidbit #sqldeveloper has an interface for Oracle Application Express Listener Administration. It enables you to specify global settings and multiple database settings with different database connections for the Oracle Application Express Listener. You can create, retrieve, upload, and save Application Express Listener settings.
    20-Apr #oratidbit Starting with #DB12c Release 1, #Oracle supports results of SQL statements executed in a stored procedure to be returned implicitly to the client applications without the necessity to explicitly use a REF CURSOR. This feature eliminates the overhead of re-writing the client-side code.
    21-Apr #oratidbit ODBC driver in 12.1.0.1 supports the migration of third-party applications to Oracle Databases by using the SQL Translation Framework. This enables non-Oracle database SQL statements to run against Oracle Database. For using this feature with an ODBC application, you must specify the service name, which was created as part of SQL Translation Framework setup, as the ServerName= entry in the odbc.ini file.
    22-Apr #oratidbit #Oracle ODBC driver in 12.1.0.1 supports executing a stored procedure, which can return implicit results without using RefCursor. This support eases any third party ODBC application, which migrated to Oracle and wants to use this same functionality that was provided by their previous vendors.
    23-Apr #oratidbit Starting with #Oracle #DB12c, SQL Translation Framework tool translates the SQL statements of a client program from a foreign (non-Oracle) SQL dialect into the SQL dialect used by the Oracle Database SQL compiler. Various client-side applications, designed to work with non-Oracle Databases, cannot be used with Oracle Database without significant alterations. This is because SQL dialect varies among vendors of database technologies and different vendors use different syntaxes to express SQL queries and statements.
    24-Apr #oratidbit SQL*Plus has three new SHOW command options to display information about pluggable databases: SHOW CON_ID, SHOW CON_NAME and SHOW PDBS.
    27-Apr #oratidbit #developer Use INSTEAD OF CREATE ON SCHEMA trigger to prevent new objects  by a schema  http://wp.me/p3u6kA-os
    28-Apr #oratidbit #developer When a SQL query uses bind variables, the database can compile it once and store the query plan in the shared pool. If the same statement is executed again, then the database can perform a soft parse and reuse the plan. In contrast, a hard parse takes longer and uses more resources.
    29-Apr #oratidbit #developer Instrument application code: Good development practice involves adding debugging code to application. The ability to generate trace files is useful for debugging and diagnosing performance problems.
    30-Apr #oratidbit #developer Application developers can use the DBMS_APPLICATION_INFO package with Oracle Trace and the SQL trace facility to record names of executing modules or transactions in the database for later use when tracking the performance of various modules and debugging.
  • Oracle Tidbits – March 2015

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

    2-Mar #oratidbit You can perform DDL operations (such as ALTER TABLE, DROP TABLE, CREATE INDEX) on a global temporary table (GTT) only when no session is bound to it. A session becomes bound to a temporary table by performing an INSERT operation on the table. A session becomes unbound to the temporary table by issuing a TRUNCATE statement or at session termination, or, for a transaction-specific temporary table, by issuing a COMMIT or ROLLBACK statement.
    3-Mar #oratidbit A global temporary table cannot be partitioned, clustered, or index organized. It cannot have a foreign key and cannot contain INVISIBLE columns.
    4-Mar #oratidbit An INVISIBLE column in a table can be used as a partitioning key. A virtual column can be INVISIBLE.
    5-Mar #oratidbit A virtual column in a table is not stored on disk. Rather, the database derives the values in a virtual column on demand by computing a set of expressions or functions. Virtual columns can be used in queries, DML, and DDL statements. They can be indexed, and you can collect statistics on them.
    6-Mar #oratidbit You cannot directly update a virtual column in a table. Thus, you cannot specify a virtual column in the SET clause of an UPDATE statement. However, you can specify a virtual column in the WHERE clause of an UPDATE statement. Likewise, you can specify a virtual column in the WHERE clause of a DELETE statement to delete rows from a table based on the derived value of the virtual column.
    9-Mar #oratidbit If you are not the owner of the table, then you need the DROP ANY TABLE privilege in order to use the ALTER TABLE … DROP PARTITION or ALTER TABLE … TRUNCATE PARTITION.
    10-Mar #oratidbit The ALTER [PUBLIC] DATABASE LINK statement only supports changing the fixed-user database links with the current password.
    11-Mar #oratidbit The DEFAULT clause of CREATE TABLESPACE statement includes options to set COMPRESS, STORAGE and INMEMORY default values for objects created in the tablespace.
    12-Mar #oratidbit The CON_NAME_TO_ID built-in function takes container name as its argument and returns the container ID.
    13-Mar #oratidbit You cannot rollback a TRUNCATE TABLE statement, nor can you use a FLASHBACK TABLE statement to retrieve the contents of a table that has been truncated.
    16-Mar #oratidbit #Oracle AWR Compare Period Report is generated by running $ORACLE_HOME/rdbms/admin/awrddrpt.sql on non-RAC database and by running $ORACLE_HOME/rdbms/admin/awrgdrpt.sql on RAC database.
    20-Mar #oratidbit DBMS_SQL_MONITOR package in #DB12c provides information about Real-time SQL Monitoring and Real-time Database Operation Monitoring. These features provide automatic monitoring of SQL statements, PL/SQL blocks, or composite database operations that are considered expensive.
    23-Mar #oratidbit #OEM12c 12.1.0.4 feature AWR Warehouse enables you to consolidate and store detailed performance data from the Automatic Workload Repository of your Oracle databases. This consolidated AWR Warehouse allows to analyze historical performance data beyond the AWR retention period of the source database.
    24-Mar #oratidbit #OEM12c 12.1.0.4 feature AWR Warehouse supports source database versions from 10.2.0.4 up to the version of the database hosting the AWR repository.
    25-Mar #roatidbit #OEM12c 12.1.0.4 feature AWR warehouse database must be #Oracle database 12.1.0.2 or higher or 11.2.0.4 with the appropriate patch level. This database must be a managed target in #OEM12c Cloud Control.