Oracle NZ - Francisco Munoz Alvarez

16. December 2009

DB_ULTRA_SAFE a new GEM for High Availability

Filed under: Oracle FAQ, 11gR2, DBA Career Tips, Others, Tutorials, General — admin @ 00:45

DB_ULTRA_SAFE is a new parameter introduced with Oracle 11gR1, and a fantastic new GEM for High Availability, that using Data Guard to configure on both the primary and standby will trigger the most comprehensive data corruption prevention and detection (and repair on 11gR2, see **) tool in the market.

** Starting in Oracle Database 11g Release 2 (11.2), the primary database automatically attempts to repair the corrupted block in real time by fetching a good version of the same block from a physical standby database.

Speaking simple, what this new functionality will do is use your Standby Database as a backup to correct automatically any data corruption on your primary database and vice-versa (again on 11.2).

The DB_ULTRA_SAFE initialization parameter also controls other data protection behavior in Oracle Database, such as requiring ASM to perform sequential mirror write I/Os.

You basically need to understand that when setting DB_ULTRA_SAFE it will control the behaviour of DB_BLOCK_CHECKING, DB_BLOCK_CHECKSUM, or DB_LOST_WRITE_PROTECT parameters for you, which mean:

When you set DB_ULTRA_SAFE to Then the following parameters…
DATA_AND_INDEX (recommended by Oracle)
  • DB_BLOCK_CHECKING is set to FULL.
  • DB_LOST_WRITE_PROTECT is set to TYPICAL.
  • DB_BLOCK_CHECKSUM is set to FULL.
DATA_ONLY
  • DB_BLOCK_CHECKING is set to MEDIUM.
  • DB_LOST_WRITE_PROTECT is set to TYPICAL.
  • DB_BLOCK_CHECKSUM is set to FULL.

Lets’ Check  all the parameters affected by DB_ULTRA_SAFE:

  • DB_BLOCK_CHECKING (Introduced with Oracle 8.1.6) prevents memory and data corruptions, but it incurs some performance overhead on every block change.
  • DB_BLOCK_CHECKSUM (Introduced with Oracle 8.1.6) detects redo and data block corruptions and detect corruptions on the primary database and protect the standby database. This parameter requires minimal CPU resources.
  • DB_LOST_WRITE_PROTECT (also introduced with 11gR1) enable or disable a physical standby database to detect lost write corruptions on both the primary and physical standby database.

Important: if you explicitly set the DB_BLOCK_CHECKING, DB_BLOCK_CHECKSUM, or DB_LOST_WRITE_PROTECT parameters in the initialization parameter file, then the DB_ULTRA_SAFE parameter has no effect and no changes are made to the parameter values. Thus, if you specify the DB_ULTRA_SAFE parameter, do not explicitly set these underlying parameters.

To activate it, all you need to do is follow the following steps:

On the Primary Database:  

  1. Set the DB_ULTRA_SAFE=DATA_AND_INDEX initialization parameter using:
  2. SQL> alter system set db_ultra_safe=dta_and_index scope=spfile;
  3. SQL> shutdown immediate (Shutdown your Database)
  4. SQL> startup (This will start your primary Database using your new parameter set in the SPFILE previously)

On the Physical Standby Database: 

  1. Set the DB_ULTRA_SAFE=DATA_AND_INDEX initialization parameter using:
  2. SQL> alter system set db_ultra_safe=dta_and_index scope=spfile;
  3. SQL> startup nomount
  4. SQL> alter database mount standby database;
  5. SQL> alter database recover managed standby database disconnect from session;

If you are using your Standby Database on Read Only mode you also need to run the follow commands on your Physical Standby DB: 

  1. SQL> alter database recover managed standby database cancel;
  2. SQL> alter database open read only;

If you decide to change later the Read Only Standby to Standby again, you just will need to run the following command: 

  1. SQL> alter database recover managed standby database disconnect from session;

Hoping this information could help you in the future,

Francisco Munoz Alvarez

Example done on primary:

Screen 1

Example done at the Standby:

Screen 2

Technorati Tags: ,,,

15. December 2009

Error libdb.so.2: cannot open shared object file when installing Grid Control

Filed under: Oracle FAQ, Grid Control, Linux, General — admin @ 05:28

I’m writing this post due that I receive this question almost once a week regarding OEM installations.
If you see this error when installing your Oracle Enterprise Manager (Grid Control 10.2.0.3) at OEL 5 or RHEL 5:

Grid Control Error

/home/oracle/OracleHomes/oms10g/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory

Don’t panic, all you need to do is:

  1. Connect as root
  2. Run : ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
  3. Problem solved, for more information please refer to: http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15659/toc.htm#CJAHFHCJ

Kind Regards,

Francisco Munoz Alvarez

2. September 2009

Finally, Oracle 11gR2 is here!!

Filed under: Oracle FAQ, 11gR2, Upgrade/Migration, News, Migrations, General — admin @ 00:31

After months of tests, Oracle released today the newest release of 11g Database (11.2.0.1 - for Linux x86 and 64bit only), with more than 200 new features and a lot of excellent surprises.

Oracle Database 11g Release 1 (11.1 – Released at August 2007) and Release 2 (11.2 – Released today) are the versions with the bigger number of new capabilities ever build and released by Oracle, that’s way was not a complete surprise when it received the 2009 Best Database of the year award by InfoWorld magazine, and certified by Garner as the Database #1 in the world with 48.9% of the worldwide market..

Capabilities as Real Application Testing, Active Data Guard, Advance Compression, In-Memory Database Cache, ASM Cluster File System (ACFS), the Grid Infrastructure Installation option,  Desktop and Server  class options, Intelligent Data Placement, Oracle Restart,Transparent Tablespace Encryption, Automatic Compilation for Java and PL/SQLs, ADDM for RAC,RAC One Node option, SecureFiles, online upgrade, Flashback Data Archive, Advisors for Streams, Partitioning and Repair  to name some, are new functionalities that in the past where only available at DBA dreams.

If you are looking to upgrade your current DB, direct upgrades are only allowed for versions:

  • 9.2.0.8 or higher

  • 10.1.0.5 or higher

  • 10.2.0.2 or higher

  • 11.1.0.6 or higher

 Some deprecated initialization parameters are:

  • remote_os_authent

  • commit_write

  • cursor_space_for_time

  • instance_groups

  • log_archive_local_first

  • plsql_debug replaced by plsql_optimize_level

  • plsql_v2_compatibility

  • resource_manager_cpu_allocation

  • standby_archive_dest

  • transaction_lag attribute

  • ddl_wait_for_locks

  • logmnr_max_persistent_sessions

  • plsql_compiler_flags

  • max_enabled_roles

  • background_dump_dest replace by diagnostic_dest

  • user_dump_dest replaced by diagnostic_dest

Always remember that today the most IT and Business challenges/goals are related to:

  • Reduce IT Costs
  • Reduce Complexity
  • Reduce Risk
  • Increase the rate of changes
  • Be allow to manage more information
  • Improve the Quality of service

Clearly Oracle 11g is the best option available in the market to allow you and your business to achieve all these goals. Some of the new functionalities included with 11g are:

New data types

The new data types available in Oracle 11g are:

  • Binary XML type - up to 15X faster over XML LOBs. (11gR1)
  • DICOM Medical Images. (11gR1)
  • 3 D Spatial Support. (11gR1)
  • RFID tag data types. (11gR1)

SQL

  • Automatic SQL tuning with self-learning capabilities. (11gR1)
  • Tables can have Virtual columns (calculated from other columns). (11gR1)
  • Virtual Columns Indexes on VC and Partitioning on VC. (11gR1)
  • Fast “alter table … add column” with default values. (11gR1)
  • Online rebuilding of indexes with no pause on DML activity. (11gR1)
  • Ability to mark a table as “read only”. (11gR1)
  • New PIVOT and UNPIVOT operations. (11gR1)
  • Attribute Extraction of Requested Attributes Only of DICOM metadata. (11gR2)

PL/SQL and XML

  • Native Compilation no longer requires a C-compiler. (11gR1)
  • New “SIMPLE_INTEGER” data type - always NOT NULL, wraps instead of overflows and is faster than PLS_INTEGER. (11gR1)
  • SQL and PL/SQL result caching (in SGA). (11gR1)
  • Can specify trigger firing order (FOLLOWS-clause). (11gR1)
  • Compound triggers - a trigger can be before, after, row and statement all in one. (11gR1)
  • New CONTINUE statement - starts the next iteration of the loop. (11gR1)
  • DML triggers are up to 25% faster - in particular, row level triggers doing updates against other tables. (11gR1)
  • Finer grained dependency tracking. (11gR1)
  • Dynamic SQL enhancements. (11gR1)
  • Ability to reference sequences (no need to select seq.nextval into :var from dual). (11gR1)
  • Support WITH HOLD Option for CURSOR DECLARATION in Pro*C. (11gR2)
  • JDBC Support for Time Zone Patching. (11gR2)
  • OCI Support for 8-Byte Integer Bind/Define. (11gR2)
  • Pro*C Support for 8-Byte Native Numeric Host Variable for INSERT and FETCH. (11gR2)
  • Pro*COBOL Support for 8-Byte Native Numeric Host Variable for INSERT and FETCH (11gR2)
  • Binary XML Enhancements. (11gR2)
  • Oracle XML DB Repository Performance Improvements and Guidelines. (11gR2)
  • XMLIndex Enhancements. (11gR2)· XMLType Partitioning. (11gR2)
  • JDBC Support for SecureFile Zero-Copy LOB I/O and LOB Prefetching. (11gR2)

ASM

  • Support for rolling upgrades. (11gR1)
  • Automatic bad block detection and repair. (11gR1)
  • Fast mirror resync after temporary connectivity lost. (11gR1)
  • ASM Cluster File System (ACFS) (11gR2) - The ASM Cluster File System (ACFS) extends Automatic Storage Management (ASM) by providing a robust, modern, general purpose file system for files beyond the Oracle database files. ACFS provides support for files such as Oracle binaries, report files, trace files, alert logs, and other application data files.
  • ASM Dynamic Volume Manager (DVM) (11gR2) - is a kernel-loadable device driver that provides a standard device driver interface to clients (for example, ACFS). File systems or other processes can do I/O to this device driver as they would to any other disk device driver on the system.
  • ASM FS Snapshot (11gR2) - is a point-in-time copy of a file system and can provide up to 64 snapshot images.
  • Enterprise Manager Integration for ASM File Access Control. (11gR2)
  • Oracle Cluster Registry (OCR) and Voting Disk on ASM. (11gR2)
  • ASM Optimal Disk Placement. (11gR2)
  • ASMCMD Command Extensions (11gR2) - The ASMCMD tool is extended to include management of ASM disks, disk groups, and ASM instance in addition to managing ASM files.
  • Automatic Storage Management (ASM) File Access Control. (11gR2)

Partitioning

  • Partition advisor - figure out what partitions to create. (11gR1)
  • Automated partitioning by interval (new partitions are added automatically). (11gR1)
  • Automated reference partitioning by Parent/Child reference (as partitions are created, partitions are created in tables that reference them). (11gR1)
  • Partitioning by virtual columns. (11gR1)
  • New composite partition types: Range/Range, List/Range, List/Hash, and List/List. (11gR1)
  • Support for transportable partitions - for moving partitions between different operating systems. (11gR1)

Compression

  • Support compression on INSERT, UPDATE and DELETE operations. 10g only supported compression for bulk data-loading operations. (11gR1)
  • Advanced compression allows up to 4 x compression rate of structured and unstructured data improving query performance and reducing storage costs. (11gR1)
  • Datapump export dump files can be compressed. (11gR1)
  • New Columnar Table Compression .(11gR2)

Clustering

  • Agent Development Framework - Oracle Clusterware provides an agent framework for managing all kinds of applications with Oracle Clusterware. Using the agent framework provides optimized application startup, checking, and stopping based on user-defined scripts. This feature helps save money and reduces costs efficiently enabling high availability for applications using Oracle Clusterware. (11gR2)
  • Out-of-Place Oracle Clusterware Upgrade - A new version of Oracle Clusterware is now installed into a separate home from the current installation. This reduces the downtime required to upgrade a node in the cluster and facilitate the provisioning of clusters within an enterprise. (11gR2)
  • Cluster Time Service - The Cluster Time Service synchronizes the system time on all nodes in the cluster. A synchronized system time across the cluster is a prerequisite to install and successfully run an Oracle cluster. (11gR2)
  • Configuration Assistant Support for Removing Oracle RAC Installations. (11gR2)
  • Configuration Assistants Support New Oracle RAC Features. (11gR2)
  • Downgrading Database Configured With DBControl. (11gR2)
  • Enhanced Cluster Verification Utility. (11gR2)
  • Enterprise Manager Provisioning for Oracle Clusterware and Oracle Real Application Clusters - Enterprise Manager provisioning introduces procedures to easily scale. (11gR2)
  • Enterprise Manager Support for Grid Plug and Play. (11gR2)
  • Enterprise Manager Support for Oracle Restart. (11gR2)
  • Enterprise Manager-Based Clusterware Resource Management. (11gR2)
  • Grid Plug and Play (GPnP). (11gR2)
  • Improved Clusterware Resource Modeling. (11gR2)
  • Integration of Cluster Verification Utility (CVU) and Oracle Universal Installer (OUI). (11gR2)
  • Java API for Oracle RAC FAN High Availability Events. (11gR2)
  • Oracle Cluster Registry (OCR) Enhancements. (11gR2)
  • Faster relocation of services on node failure.
  • Oracle Clusterware now supports up to 5 copies of the OCR for improved availability of the cluster.
  • OCR can now be stored in Automatic Storage Management (ASM).
  • Oracle Restart Integration with Oracle Universal Installer. (11gR2)
  • Oracle Universal Installer Support for Removing Oracle RAC Installations. (11gR2)
  • OUI Support for Out-of-Place Oracle Clusterware Upgrade. (11gR2)
  • Patch Application with DBControl. (11gR2)
  • Policy-Based Cluster and Capacity Management. (11gR2)
  • Role-Separated Management - Role-separated management for Oracle Clusterware allows certain administrative tasks to be delegated to different people, representing different roles in the company. It is based on the idea of a clusterware administrator. (11gR2)
  • Server Control (SRVCTL) Enhancements. (11gR2)
  • Server Control (SRVCTL) Enhancements to Support Grid Plug and Play. (11gR2)
  • SRVCTL Support for Single-Instance Database in a Cluster. (11gR2)
  • UCP Integration with Oracle Data Guard. (11gR2)
  • UCP Integration with Oracle Real Application Clusters. (11gR2)
  • Universal Connection Pool (UCP) for JDBC. (11gR2)
  • Zero Downtime Patching for Oracle Clusterware and Oracle RAC. (11gR2
  • Database QoS Management Support. (11gR2)
  • Database Quality of Service (QoS) Management Server (11gR2)
  • Enterprise Manager QoS Management Integration. (11gR2)

Performance improvements

  • RAC - 70% faster (ADDM has a better global view of the RAC cluster). (11gR1)
  • Streams - 30-50% faster. (11gR1)
  • Optimizer stats collection – 10X faster. (11gR1)
  • Query results caching - 25% faster. (11gR1)
  • Table Scans 2.5x Faster using advance compression. (11gR1)
  • OLAP-based Materialized Views for fast OLAP CUBE building. (11gR1)
  • New In-Memory Database Cache, Data cached in application memory, fast and consistent response times and a standard SQL interface.
  • Result caches - new memory areas in the SGA for storing SQL query results, PL/SQL function results and OCI call results. (11gR1)
  • Invisible indexes - indexes that are ignored by the optimizer. Handy for testing without dropping. (11gR1)
  • Oracle secure files – 5X faster than normal file systems. (11gR1)
  • No need to have a C-compiler installed to use Native PL/SQL Compilation. (11gR1)
  • Stored Outlines Migration for SQL Plan Management - Stored outlines can be migrated for future and enhanced usage with SQL Plan Management (SPM).
  • Support for 4 KB Sector Disk Drives - Today, disk drives have 512 byte sectors. Disk drive manufacturers are moving to 4 KB sector drives because it allows them to offer higher capacity with lower overhead.
  • Client Result Cache Using Table Annotations Support - enables applications to leverage client and server result caching through deployment time knobs as opposed to making application changes. In addition, this feature provides automatic client cache invalidation.
  • Segment Creation on Demand (11gR2) - The initial segment creation for non partitioned tables and indexes can be delayed until data is first inserted into an object.
  • System-Managed Indexes for List Partitioning Tables. (11gR2)
  • Zero-Size Unusable Indexes and Index Partitions (11gR2) - Unusable indexes and index partitions do not consume any space in the database anymore; they become segment less.

Availability improvements

  • Ability to apply many patches on-line without downtime (RAC and single instance databases). (11gR1)
  • Data recovery advisor - quickly identify the root cause of failures; auto fix or present recovery options to the DBA. (11gR1)
  • ASM Preferred Mirror Read/ Faster Mirror Resync. (11gR1)
  • XA transactions spanning multiple servers. (11gR1)
  • Improved runtime connection load balancing. (11gR1)
  • Flashback Transaction/ Oracle Total Recall. (11gR1)
  • Automatic Block Repair - Automatic block repair allows corrupt blocks on the primary database or physical standby database to be automatically repaired, as soon as they are detected, by transferring good blocks from the other destination. (11gR2)
  • Backup to Amazon Simple Storage Service (S3) Using OSB Cloud Computing. (11gR2)
  • DUPLICATE Without Connection to Target Database. (11gR2)
  • Enhanced Tablespace Point-In-Time Recovery (TSPITR). (11gR2)
  • New DUPLICATE Options:
    • NO REDO (11gR2)
    • UNDO TABLESPACE <ts_name> [, <ts_name> …] (11gR2)
  • New SET NEWNAME Clauses and Format Options (11gR2)
  • Tablespace Checks in DUPLICATE. (11gR2)
  • New Oracle Streams Features like (11gR2):
    • XStream In - Extended Streams Inbound (XStream In) provides a high performance, transaction-based interface to Oracle Streams for information exchange from non-Oracle databases or file systems.
    • XStream Out - Extended Streams Outbound (XStream Out) provides a high performance, transaction-based interface to Oracle Streams for information exchange to non-Oracle databases or file systems.

Security improvements

  • Support for case sensitive and multi-byte passwords (disable by setting SEC_CASE_SENSITIVE_LOGON initialization parameter to FALSE. (11gR1)
  • Transparent Data Encryption (support for tablespace level encryption). (11gR1)
  • Hardware based master key protection. (11gR1)
  • Encrypt backups. (11gR1)
  • Kerberos authentication - strong passwords. (11gR1)
  • Add Multi-factor DBA controls with Data Vault. (11gR1)
  • Tablespace Master Key Re-Key (11gR2) - Oracle Advanced Security capability allows customers to change the master key used to protect the encryption keys used to encrypt Oracle tablespaces.

Manageability improvements

  • New MEMORY_TARGET parameter for Automatic memory tuning. (11gR1)
  • Enterprise Manager Support Workbench for ASM. (11gR2)
  • New Gateway Support (11gR2)
  • EMCA Supports New Oracle RAC Configuration for EM. (11gR2)
  • SQL monitoring (11gR2) - Monitoring the progress of long-running SQL statements at the XPlan level.
  • Automatic Patching of Time Stamp with Time Zone Data. (11gR2)
  • Prevent Data Loss for Time Zone with Local Time Zone Data Type. (11gR2)
  • Enterprise Manager Integration with ASM Optimal Disk Placement. (11gR2)
  • Enterprise Manager Support for ASM Cluster File System (ACFS). (11gR2)

Business Intelligence and Data Warehousing

  • Allow Virtual Columns in the Primary Key or Foreign Key for Reference Partitioning. (11gR2)
  • Analytic Functions 2.0. (11gR2)
  • EXECUTE Privilege for DIRECTORY Objects. (11gR2)
  • In-Memory Parallel Query. (11gR2)
  • Minimal Effort Parallel Execution - Auto Degree of Parallelism (DOP) and Queuing. (11gR2)
  • Preprocessing Data for ORACLE_LOADER Access Driver in External Tables. (11gR2)
  • Recursive WITH Clause. (11gR2)
  • Significant Performance Improvement of On-Commit Fast Refresh. (11gR2)

Oracle Warehouse Builder

  • Database 11g now Integrated ETL, Analytics and Data Mining. (11gR1)
  • Advanced Find Support in Mapping Editor. (11gR2)
  • Copy and Paste of Operators and Attributes in Mapping Editor. (11gR2)
  • Current Configuration Dropdown Box in Design Center Toolbar. (11gR2)
  • Editor Menu Experts. (11gR2)
  • Enhanced Support for Flat File Imports. (11gR2)
  • Expression Editing in Operator Edit Dialog. (11gR2)
  • Foldering and Spotlighting. (11gR2)
  • Fusion Client Platform Integration. (11gR2)
  • Grouping and Spotlighting of Objects in Mapping Editor. (11gR2)
  • Guided Assistance. (11gR2)
  • Improved Management of Locations Registered in Multiple Control Centers. (11gR2)
  • Improved User Interface for Managing Locations. (11gR2)
  • Key Lookup Operator Enhancements. (11gR2)
    • More efficient use of screen real estate.
    • Support for non-equality lookups.
    • Dynamic lookups, where the lookup table may be modified during the mapping execution.
  • Mapping Debugger Enhancements. (11gR2)
    • Improved support for watch points and enabling and disabling of individual break points.
    • Support for user-defined type columns.
    • Enhanced support for numerous existing operators, such as VARRAY, EXPAND, and CONSTRUCT.
    • Support for key lookup and table function operators.
    • Support for correlated joins.o Improved cleanup of debugger-specific objects.
  • Metadata Import from COBOL Copybooks. (11gR2)
  • OMB*Plus Activity Type. (11gR2)
  • Operator References Included in Generated PL/SQL Code. (11gR2)
  • Quick Mapper. (11gR2)
  • Repository Browser Changes. (11gR2)
  • Simplified Oracle Warehouse Builder Repository Upgrades. (11gR2)
  • Subquery in Join Operator. (11gR2)
  • Support for Extracting Data From Tables Containing LONG Data Type. (11gR2)
  • Table Functions. (11gR2)

Data Guard improvements

  • Standby databases can now simultaneously be in read and recovery mode - so use it for running reports 24×7. (11gR1)
  • Online upgrades: Test on standby and “roll” to production. (11gR1)
  • Snapshot standby (create test databases). (11gR1)
  • Incremental Backup on Physical Readable Physical Standby. (11gR1)
  • Offload: Complete database and fast incremental backups. (11gR1)
  • Logical standby databases now supports XML and CLOB datatypes as well as transparent data encryption. (11gR1)
  • Compressed Table Support in Logical Standby Databases and Oracle LogMiner. (11gR2)
  • Configurable Real-Time Query Apply Lag Limit. (11gR2)
  • Integrated Support for Application Failover in a Data Guard Configuration. (11gR2)
  • Support Up to 30 Standby Databases. (11gR2)

Oracle SecureFiles

  • SecureFiles (also known as “FastFiles” in the 11g beta release) provide faster access to unstructured data than normal file systems. For example, write access to SecureFiles is faster than a standard Linux file system, while read access is about the same. In addition, it provides compression, encryption and data deduplication. (11gR1)
  • LZO Support for SecureFiles (11gR2) – This allows Fast decompression - LZO is about 2 times faster than zlib, and Fast compression - LZO is about 3 times faster than zlib.
  • SecureFiles Archive Manager. (11gR2)

Real Application Testing

Real Application Testing or RAT will make it easier to do upgrades, hardware replacements and operating system changes. RAT consists of two components:

  • Database Replay - capture production workload and replay on different (test) environment. (11gR1)
  • SQL Performance Analyzer - identifies SQL execution plan changes and performance regressions. (11gR1)

Other features

  • Online application upgrades and “hot” patching (Hot patching is described in educational and marketing materials, but no actual hot patches exist, to date.) (11gR1)· Online table and index redefinition. (11gR1)
  • Improved data compression. (11gR1 and 11gR2)
  • “duality” between SQL and XML - users can embed XML within PL/SQL and vice versa. (11gR1)
  • New binary XML data type, a new XML index & better XQuery support. (11gR1)
  • Automated capture of fault diagnostics for faster fault resolution. (11gR1)
  • Repair advisers to guide DBAs through the fault diagnosis and resolution process. (11gR1)
  • SQL Developer is installed with the database server software (all editions)
  • The Windows SQL*Plus GUI is deprecated. (11gR1)
  • APEX is now shipped with the DB. (11gR1)
  • Improvements to Oracle Scheduler (11gR2) like:
    • E-mail Notification.o File Watcher.
    • Multiple Destination Jobs.
    • Remote Database Jobs.
  • Data Pump Legacy Mode. (11gR2)
  • Complete IPv6 Support for JDBC Thin Clients. (11gR2)
  • Complete IPv6 Support for JVM and Java Debuggers. (11gR2)
  • IPv6 Support in Oracle Database. (11gR2)
  • Enhanced Spatial Support (11gR2) like:
    • 3D Visualization Framework.
    • Network Data Model Enhancements.
    • New GeoRaster JAVA API.
    • Raster Reprojections and Ground Control Point-Based (GCP) Georeferencing.
    • Routing and Geocoding Enhancements.

Desupported features

The following features are desupported in 11g:

  • Oracle export utility (exp). Imp is still supported for backwards compatibility.
  • iSQLPlus not shipped anymore, you will need to use the SQL Developer instead.
  • Oracle Ultra Search
  • Java Development Kit (JDK) 1.4, Oracle recommends to use JDK 5.0, but JDK 1.5 is fully supported
  • CTXXPATH Index, Oracle recommends to use XMLIndex Instead

For more information and to download 11gR2 please refer to:

http://www.oracle.com/technology/index.html and

http://www.oracle.com/pls/db112/portal.all_books

If after all this information you still thinking about not move to 11g, please think again a do a favor to yourself and your company, try it ;)

Kind Regards,

Francisco Munoz Alvarez

15. July 2009

Back to Basics:The Oracle Editions

Filed under: Oracle FAQ, Tutorials, Questions, General — admin @ 02:26

Sometimes understanding the Oracle Database Editions is a little confuse, and on my opinion know all the options available in the market is something very important and fundamental for any DBA. The main idea of this post is to help you to understand a little bit more about all available options in the Oracle market, learn some key differences and functionalities of each Edition.

Understanding the Different Editions

All the time I receive questions regarding Oracle Database Editions like:

  • What’s the difference between Standard Edition and Enterprise Edition?  
  • How complicate is to upgrade a Standard Edition Database to Enterprise Edition and vice versa?   
  • Can you explain me the most important Options and Packages available with Oracle?  
  • Is Oracle Express Edition really free? What are the limitations and what it can do?

So many people don’t understand the diversity of Editions available with Oracle Databases, most of the time everyone associate it with the Enterprise Edition only, saying “Oracle is so expensive! Let’s look to other brands due that we can’t afford it!”, That’s a huge mistake, if you want the best available in the market you need to pay for it, but you need to understand all the options available for you by Oracle Corporation before take a precipitate and wrong decision, you always can find an edition that is affordable for your budget, and I can guarantee that you will not find the same performance and functionality at any other product in the market.

This is like buy a car, you can always dream to have a top brand vehicle, but you don’t need to buy the most expensive model if you only need a compact one, it will be more affordable and you know that you can trust in the quality of the product. The same happens with Oracle Databases. Oracle have available several editions of their Database product, all are the same product (internal code) but depending of the edition it can have some limitations or additional options to improve the performance, security, availability, and management of your 11g Database.

Oracle Database 11g is available in a choice of editions tailored to meet your business, personal, or IT needs, and also offers several extra options to enhance your Database capabilities depending of your applications requirements. Oracle have basically 5 different editions available for you, all are build using the same reliable database engine architecture and are compatible with each other, making this way an upgrade to be a very easy task to the DBA and this will also help to make your database grow at the same speed of your business.
The Editions available are: Express Edition, Personal Edition, Standard One Edition, Standard Edition and Enterprise Edition, now let’s take a quick look on each one:

  • Oracle Express Edition (XE): This edition is an entry-level, small-footprint database based at the Oracle 10g release 2 Enterprise code that is free to develop, deploy, and distribute; due to it, this is an excellent option for developers, students, and very small organizations trying to initiate their journey in the Oracle world. Oracle XE is very easy to download and very simple to administrate, it can be installed on any host machine size, with any number of CPU’s and memory available, but it will have several limitations like: will storage only 4GB of data, will use up to 1GB of memory, and will use only 1 CPU in the host machine. Currently this edition is not supported by My Oracle Support (old Metalink), this means no patches available and support, but you can always refer to the OTN forums to ask your peers for any kind of help relate to this edition.
  • Oracle Personal edition (PE): This edition supports single-user development and deployment environments that require full compatibility with Oracle Database Standard Edition One, Oracle Database Standard Edition, and Oracle Database Enterprise Edition. Oracle PE includes all of the components, options and functionalities that are included with Enterprise Edition with the exception of the Oracle Real Application Clusters (RAC) option. The negative side of this edition is that this is only available for Windows environments (Windows 2000, Windows NT, Windows XP, Windows Vista, and Windows Server 2003/32-bit and 64-bit versions), and the Management Packs are not included.
  • Oracle Standard Edition One (SEO): Delivers an unprecedented ease to use, power, price/performance for workgroups, department-level, and Web applications. This edition is highly recommended to be used from single-server environments for small business to any highly distributed branch environments. Oracle Database SEO includes all the facilities necessary to build any business-critical applications.
  • Oracle Standard Edition (SE): Offers a low cost alternative for small/medium business or departmental applications that want to have the power of Oracle, this Edition has all the benefits of Oracle SEO plus support for larger machines and clustering of services with Real Application Clusters (Free in this Edition); RAC was not included in previous Standard Edition releases prior to Oracle Database version 10g.
  • Oracle Enterprise Edition (EE): It’s the top of the Oracle Editions line, provides the best in performance, availability, scalability, and security required for mission-critical applications such as high-volume online transaction processing (OLTP) applications, query-intensive data warehouses, and demanding Internet applications. Oracle Database EE contains all of the components of Oracle Database, and can be further enhanced with the purchase of several available options and packs.

Now let’s take a closer look to all availabilities and restrictions of each Oracle Edition:

Limitations/ Availability

Express Edition Personal Edition Standard Edition One Standard Edition Enterprise Edition
Number of CPU/Sockets 1 CPU No Limit 2 Sockets 4 Sockets No Limit
RAM 1GB OS Maximum OS Maximum OS Maximum OS Maximum
Max. Number of Users No Limit 1 No Limit No Limit No Limit
Databases per Host 1 No Limit No Limit No Limit No Limit
Minimum User License Requirements Not Apply Not Apply 5 Named Users Plus 5 Named Users Plus 25 Named Users Plus per CPU
Database Size 4GB No Limit No Limit No Limit No Limit
Windows Available Available Available Available Available
Linux Available No Available Available Available Available
Unix No Available No Available Available Available Available
64-Bit No Available Available Available Available Available

Now you have a clear idea of all available Editions of Oracle in the market, in the next post I’ll go thru the most important options and packs available to enhance your database to achieve all your personal or company goals.

Cheers,

Francisco Munoz Alvarez

27. April 2009

RemoteOperationException: ERROR: NMO not setuid-root (Unix-only)

Filed under: Oracle FAQ, Questions, General — admin @ 14:22

One of my DBA’s just ask me why he was receiving the following error each time he tried to setup the host information thru the dbconsole (OEM):

- RemoteOperationException: ERROR: NMO not setuid-root (Unix-only)

The answer is very easy, this error occurs when you forgot to run the root.sh after you finished your installation, you can solve this problem easily running the root.sh  which is located in $ORACLE_HOME/root.sh (as root) and the  error will disappear.

Kind Regards,

Francisco Munoz Alvarez

16. January 2009

How to solve the error “EXP-00056: ORACLE error 19206″ during an export

Filed under: Oracle FAQ, General — admin @ 13:11

If you see the error EXP-00056 with Oracle error 19206 (like show bellow) when executing a export of an entire schema in Oracle 9i or 10g, don’t panic. The solution is easy.

EXP-00056: ORACLE error 19206 encountered
ORA-19206: Invalid value for query or REF CURSOR parameter
ORA-06512: at “SYS.DBMS_XMLGEN”, line 83
ORA-06512: at “SYS.DBMS_METADATA”, line 345
ORA-06512: at “SYS.DBMS_METADATA”, line 410
ORA-06512: at “SYS.DBMS_METADATA”, line 449
ORA-06512: at “SYS.DBMS_METADATA”, line 1156
ORA-06512: at “SYS.DBMS_METADATA”, line 1141
ORA-06512: at line 1
EXP-00056: ORACLE error 19206 encountered
ORA-19206: Invalid value for query or REF CURSOR parameter
ORA-06512: at “SYS.DBMS_XMLGEN”, line 83
ORA-06512: at “SYS.DBMS_METADATA”, line 345
ORA-06512: at “SYS.DBMS_METADATA”, line 410
ORA-06512: at “SYS.DBMS_METADATA”, line 449
ORA-06512: at “SYS.DBMS_METADATA”, line 1156
ORA-06512: at “SYS.DBMS_METADATA”, line 1141
ORA-06512: at line 1
EXP-00000: Export terminated unsuccessfully

This problem happens when the metadata tables needed to perform an export are missing or invalid and can sometimes occur when you dropped or modified the XMLDB schema or due to an upgrade.

The solution is very easy, like I said before. Just run the catmeta.sql scrip located at ”$ORACLE_HOME/rdbms/admin/catmeta.sql” when connected as sysdba, and the problem will be fixed.

Cheers,

Francisco Munoz Alvarez

10. January 2009

Be a hero, be proactive!

Filed under: Oracle FAQ, DBA Career Tips, Tuning, Monitoring, Scripts — admin @ 13:33

 

Let start this New Year with a new mentality or a new resolution if you prefer call this way, let stop being reactive and start being proactive. Being proactive will reduce your database administration costs and increase your level of efficiency, and best of all, save your hours of sleep when you are on call.

Why check the problems only when they are critical, or when is too late and the database is down, or the users are screaming?

Being proactive is the best approach to keep your DB healthy and to show your company, or your clients that you really care about them.

Many DBA’s expend most of their time being firefighters only, fixing problems and working on user’s requests all the time. They don’t do any proactive work; this mentality only will cause an overload of work to them, thousands of dollars of overtime, several hours without access to the data to the users,  poor performance to the applications, and what is worse of all, several unhappy users thinking that you doesn’t have the knowledge needed to take care of their data.

Let’s mention a small example, you have the archive log area alert set to fire when it is 95% full, and this happens in the middle of the night, some DBA’s will take seriously the alert and solve the problem quickly, others will wait until the next day to take care of it because they are tired, or sleeping, or they are in a place without internet access at the moment the alert arrived. Will be a lot easier if they set a proactive alert to be fire when 75% or 85%, or even better ,take a look in the general health status of the DB before leave their work shift, to try to detect and solve any possible problem before be a real problem and be awake in the middle of the night or during the weekend (Remember how important is your personal and family time). I’ll always recommend to DBA’s to run 2 checklists daily, one in the start of their shift and other before they leave their shift.

I know several DBA’s that complain all the time that they got so many calls when they are on call, but they don’t do anything to solve the root problem, they only expend their time to solve the symptoms.

Here you can find an Oracle checklist script that will help to make your life a little easier (This is not my complete script, but will be a good start for you). This script is a compilation of several normal checklists and you can setup them with your own requirement and thresholds and always remember to have a baseline to compare. This script will not only help you to detect future or current problems, but also will help you to detect possible tuning requirement.

Here is an example of the script first phase outcome:

– ———————————————————————– –
– Oracle Instance Information
– ———————————————————————– –
Cpu_Count                                    4   |      Host_Name             OLIVER
Instance_Name                      prod   |      Database_Status    ACTIVE
Status                                     OPEN   |      Startup_Time        10-01-2009 19:50
Version                            11.1.0.7.0   |      Instance_Role        PRIMARY_INSTANCE
Database Space (Mb)       36604    |     SGA (Mb)                 511
Nb. Datafiles                                 43    |    Nb. Tempfiles          1

Archive destination LOCATION=E:\oracle\oradata\prod\archive
Database log mode ARCHIVELOG
Background Dump Dest d:\oracle\diag\rdbms\prod\prod\trace
Spfile D:\ORACLE\PRODUCT\11.1\PROD\DATABASE\SPFILEPROD.ORA
Redo size (Kb) 102400

– ———————————————————————– –
– Instance CheckList –
– ———————————————————————– –
Instance Status                                  OK    |      Listener Status      OK
– ———————————————————————– –
– Performance Memory CheckList –
– ———————————————————————– –
Total Sessions < 700                           OK - 19
Active sessions number <15               OK - 9
Data Buffer Hit Ratio > 80                   OK - 97
L.Buffer Reload Pin Ratio > 99         OK - 99
Row Cache Miss Ratio < 0.015         NO - 1.351
Dict.Buffer Hit Ratio > 80                     OK - 99
Log Buffer Waits = 0                             NO - 110
Log Buffer Retries < 0.0010               OK - 0
Switch number (Daily Avg) < 5          OK - 1
Jobs Broken = 0                                     OK 0
Shared_Pool Failure = 0                    OK - 0
– ———————————————————————– –
– Storage CheckList                                            –
– ———————————————————————– –
Dba_Tablespaces Status                   OK   |       V$Log Status             OK
V$Datafile Status                                  OK   |       V$Tempfile Status   OK
V$Recover_File                                    OK   |       V$Recovery_Log      OK
Tablespace in Backup Mode = 0     OK - 0
Tablespace < 95%                               OK- 0
Objects Invalid = 0                                NO - 147
Indexes unusable = 0                          OK - 0
Trigger Disabled = 0                            NO- 5
Constraint Disabled = 0                       NO - 2
Objects close max extents = 0           OK - 0
Objects can not extent = 0                  NO - 552
User Objects on Systems = 0              NO - 26
FK Without Index = 0                           NO - 138
– ———————————————————————– –
– Datagard CheckList                                          –
– ———————————————————————– –
Datagard Errors = 0                               OK- 0
Datagard Gap = 0                                OK - 0
Archives not Aplied < 5                       OK - 2
– ———————————————————————- –
– Installed options :
– ———————————————————————- –
- Objects option
- Connection multiplexing option
- Connection pooling option
- Database queuing option
- Incremental backup and recovery option
- Instead-of triggers option
- Parallel load option
- Proxy authentication/authorization option
- Plan Stability option
- Coalesce Index option
- Transparent Application Failover option
- Sample Scan option
- Java option
- OLAP Window Functions option

You also have several tools available in the market that can help you to monitor and setup your DB alerts, and help you with the proactive monitoring like: Grid Control, Enterprise Manager, Insider (FourthElephant), Spotlight (Quest) or if you prefer, your own scripts. The idea is to use them always on a proactive way, never reactive.

Let’s change our mentality, let stop being a firefighter and start to be a real hero!

Cheers,

Francisco Munoz Alvarez

12. October 2008

Plz tell me Main difference between Oracle8i,Oracle9i and 10g?

Filed under: Oracle FAQ, Questions — mksingh017 @ 18:10

Thanks & Regards:

M K SINGH

>>>>>

Dear Singh,

 It’s very hard to tell you the diferrences between each version, it’s a lot more easy for me to show you the new features of each one, here are a small resume (not a full list) of what was new on each version you asked for:

Version

8i 9i 10g
First Released February, 1999 June, 2001 January 2004
Support Not Supported Extended Support Ends: 30/07/2010 10gR1:

Premier Support Ends: 31/01/2009
Extended Support Ends: 01/01/2012

10gR2:

Premier Support Ends: 31/07/2010
Extended Support Ends: 31/07/2013

New Features
  • Real Application Clusters
  • Dynamic Memory Management
  • Data Guard
  • Automatic Undo Management
  • Flashback Query
  • XMLType
  • List Partitioning
  • Range List Partitioning
  • FastStart Recovery
  • Two-Pass Recovery
  • Zero Data Loss
  • SVRMGRL and Connect Internal Desupport
  • Server Parameter Files (SPFILE)
  • Resumable Space Management
  • Default Temporary Tablespaces
  • Oracle Managed Files (OMF)
  • Multiple Database Block Size Support
  • Self Tuning PGA
  • Online Table Redefinition
  • Dbms_metadata package
  • Automatic Segment Space Management
  • Skip Scanning of Indexes
  • Bitmap Join Indexes
  • Mapping tables and Bitmap Indexes on Index-Organized Tables
  • External Tables
  • View Constraints
  • Multi-Table Insert Statements
  • Associative Arrays
  • Oracle Merge Statements
  • Opatch
  • DBCA
  • DBUA
  • Support for ANSI/ISO SQL 1999 Compliance
  • DBMS_XPLAN
  • Better Support for LOB’s
  • PL/SQL Native Compilation
  • Character vs. Byte Semantics
  • Fine Grained Auditing 
  • Manageability improvements
  • Performance and scalability improvements
  • Automated Storage Management
  • Automatic Workload Repository
  • Automatic Database Diagnostic Monitor
  • Flashback operations available on row, transaction, table or database level
  • Ability to UNDROP a table using a recycle bin
  • Ability to rename tablespaces
  • Ability to transport tablespaces across machine types
  • New ‘drop database’ statement
  • New database scheduler - DBMS_SCHEDULER ·          DBMS_FILE_TRANSFER Package
  • Support for bigfile tablespaces that are up to 8 Exabytes in size
  • Datapump
  • Grid computing
  • Grid Control
  • OEM DB Control
  • Transparent Data Encryption
  • ASMCMD
  • Async Commits
  • The CONNECT ROLE can now only connect (CREATE privs removed)
  • Passwords for DB Links are encrypted
  • Rule based optimizer Desupported 

 

As happened with Oracle 9i, Oracle 10g has many enhancements to support largest database size limits and continues to remove the complexity from the DB to make it easier to manage and to reduce the total cost of ownership of it. 

Cheers,

Francisco Munoz Alvarez

11. October 2008

Are you having problems with the OEM Host Credential?

Filed under: Oracle FAQ, Grid Control, Questions, General — admin @ 08:38

If you are using LINUX/Windows the hostname credentials should be the same user who has installed the oracle  database software, if Windows the user you are using need to be member of the ORA_DBA group and have Local Security privilege ‘Log on as a batch job’.

What you need to do is go to:

 Start—->

Programs—->

Admin tools—->

Local security policy —>

Local policies —>

User rights assignments


In the list to your right, look for ‘Log on as a batch job’, double click and add the same OS local user you using to access OEM web to the group.

I hope this tips will help you  solve your problem ;)

Cheers,

Francisco Munoz Alvarez

25. September 2008

How to find all user Roles and Privileges?

Filed under: Oracle FAQ, Security, Questions — admin @ 03:56

Here is the scripts to help you to get this information:

PROMPT 

PROMPT 

PROMPT ******************************************** ROLES AND PRIVILEGES 

PROMPT 

PROMPT ******************************************** USER ROLES 

SELECT grantee user, granted_role, admin_option, default_role 

FROM dba_role_privs 

WHERE grantee IN (SELECT username FROM dba_users)

AND       grantee NOT LIKE ‘%SYS%’

AND       grantee NOT IN (‘DBSNMP’,‘OUTLN’

ORDER BY grantee; 

PROMPT 

PROMPT ******************************************** USER PRIVILEGES 

SELECT grantee user, privilege, admin_option 

FROM dba_sys_privs 

WHERE    grantee IN (SELECT username FROM dba_users)

AND      grantee NOT LIKE ‘%SYS%’

AND      grantee NOT IN (‘DBSNMP’,‘OUTLN’

ORDER BY grantee; 

set pages 58 

column role         format a19 heading ‘User or Role’ 

column admin_option format a3  heading ‘Ad?’ 

column owner        format a7 heading ‘Owner’ 

column table_name   format a26 heading ‘Table name’ 

column privilege    format a21 heading ‘Priv, Grant or Role’ 

column r_ord noprint 

break on role start

titel132 ‘ORACLE ROLES REPORT’ 

select    2 r_ord, b.role role, b.owner owner, b.table_name,  

b.privilege privilege, b.grantable admin_option 

from sys.role_tab_privs b 

union 

select    1 r_ord, a.role role, ‘N/A’ owner, ‘N/A’ table_name,   

a.privilege privilege, a.admin_option admin_option  

from sys.role_sys_privs a 

union 

select    3 r_ord, c.role role, ‘N/A’ owner, ‘N/A’ table_name,   

c.granted_role privilege, c.admin_option admin_option 

from sys.role_role_privs c 

order by role,r_ord; 

set flush on term on pagesize 22  linesize 80 

clear columns 

clear breaks 

ttitle off 

pause Press enter to continue

Cheers,

Francisco Munoz Alvarez

Next Page »

Powered by WordPress