viernes, 14 de diciembre de 2012

Hasta los grandes se equivocan: Burleson error de sintáxis SQL en artículo


Falta de cuidado o simplemente tanta confianza en tantos años de experiencia, que no revisó lo que publicó. Aquí les dejo la imagen que capturé de la pantalla, o bien, si lo desean, pueden comprobarlo directamente en el link del sitio, en : http://www.dba-oracle.com/concepts/indexes_for_table_query.htm

Este es un caso: 





Oracle Database SQL funciones no documentadas: LNNVL



La función LNNVL funciona como un semáforo FALSO/VERDADERO, evaluando la condición utilizada en el filtro de una sentencia, para devolver el predicado de la instrucción ejecutada.

Por ejemplo, si queremos devolver un mensaje, pero el mismo debe de darse sólo y sólo sí, la condición  de evaluación es incorrecta o falsa, podemos utilizar la siguiente sintaxis.


Esta función no puede evaluar condiciones compuestas que contengan los operadores AND, OR o BETWEEN.

También, puede ser utilizada internamente por la base de datos, para reescribir consultas.

[oracle@lab1 ~]$ sqlplus hr/hr

SQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 14 12:54:55 2012
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select 'Aqui estoy' as Afirmacion
  2  from dual
  3  where lnnvl ( 1 = 2 );

AFIRMACION
----------
Aqui estoy

Elapsed: 00:00:00.01

Si cambiamos la condición de evaluación y la hacemos afirmativa, no obtendremos ningún mensaje de regreso con la ejecución de la sentencia.

SQL> select 'Aqui no estoy' as Afirmacion
  2  from dual
  3  where lnnvl ( 1 = 1 );

no rows selected

Elapsed: 00:00:00.01

Podemos utilizar no sólo condiciones simples, sino también, complejas, como operaciones aritméticas o evaluaciones de hileras de caracteres.

SQL> select 'Aqui estoy' as Afirmacion
  2  from dual
  3  where lnnvl ( (10/2) = 5 );

no rows selected


Elapsed: 00:00:00.01
SQL> select 'Aqui no estoy' as Afirmacion
  2  from dual
  3  where lnnvl ( (11/2) = 5);

AFIRMACION
-------------
Aqui no estoy

Elapsed: 00:00:00.00
SQL>

SQL> select 'Si funciona' as Afirmacion
  2  from dual
  3  where lnnvl ('ABC' = 'ABCD');

AFIRMACION
-----------
Si funciona

Elapsed: 00:00:00.01

Otro ejemplo utilizando funciones en el proceso de evaluación. Recordemos, que la condición evaluada, debe ser falsa, para devolver las columnas, valores o hileras establecidas en el "comando" ejecutado.

SQL> select 'Si funciona' as Afirmacion
  2  from dual
  3  where lnnvl (UPPER('oracle') = 'ORACLE');

no rows selected

Elapsed: 00:00:00.01

SQL> select 'Si funciona' as Afirmacion
  2  from dual
  3  where lnnvl ( LOWER('ORACLE') = 'ORACLE');

AFIRMACION
-----------
Si funciona

Elapsed: 00:00:00.01
SQL>

Otro ejemplo basado en la evaluación de valores de un campo de una tabla y devolviendo las columnas que no cumplen con la evaluación.

SQL> select * from countries;

CO COUNTRY_NAME                              REGION_ID
-- ---------------------------------------- ----------
AR Argentina                                         2
AU Australia                                         3
BE Belgium                                           1
BR Brazil                                            2
CA Canada                                            2
CH Switzerland                                       1
CN China                                             3
DE Germany                                           1
DK Denmark                                           1
EG Egypt                                             4
FR France                                            1
IL Israel                                            4
IN India                                             3
IT Italy                                             1
JP Japan                                             3
KW Kuwait                                            4
ML Malaysia                                          3
MX Mexico                                            2
NG Nigeria                                           4
NL Netherlands                                       1
SG Singapore                                         3
UK United Kingdom                                    1
US United States of America                          2
ZM Zambia                                            4
ZW Zimbabwe                                          4

25 rows selected.

Elapsed: 00:00:00.06

SQL> SELECT region_id, country_name FROM countries
  2  where lnnvl ( substr(country_id,1,1) like 'Z');

 REGION_ID COUNTRY_NAME
---------- ----------------------------------------
         2 Argentina
         3 Australia
         1 Belgium
         2 Brazil
         2 Canada
         1 Switzerland
         3 China
         1 Germany
         1 Denmark
         4 Egypt
         1 France
         4 Israel
         3 India
         1 Italy
         3 Japan
         4 Kuwait
         3 Malaysia
         2 Mexico
         4 Nigeria
         1 Netherlands
         3 Singapore
         1 United Kingdom
         2 United States of America

23 rows selected.

Elapsed: 00:00:00.02
SQL>

Sin embargo al revisar el plan de ejecución de la sentencia utilizando la función "LNNVL"  o reemplazando la función por un "NOT LIKE"; a simple vista, se logra observar que la función, no es muy optimizada para devolver los resultados.

SQL> explain plan for
  2  select region_id, country_name from countries
  3  where lnnvl ( substr(country_id,1,1) like 'Z');

Explained.

Elapsed: 00:00:00.18

SQL> set linesize 200
SQL> select * from table(dbms_xplan.display);

PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------
Plan hash value: 1253225340

------------------------------------------------------------------------------------
| Id  | Operation        | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT |                 |    25 |   375 |     1   (0)| 00:00:01 |
|*  1 |  INDEX FULL SCAN | COUNTRY_C_ID_PK |    25 |   375 |     1   (0)| 00:00:01 |
------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------

   1 - filter(LNNVL(SUBSTR("COUNTRY_ID",1,1)='Z'))

13 rows selected.

Elapsed: 00:00:01.51
SQL> explain plan for
  2  select region_id, country_name from countries
  3  where substr(country_id,1,1) not like 'Z';

Explained.

Elapsed: 00:00:00.00
SQL> select * from table(dbms_xplan.display);

PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------
Plan hash value: 1253225340

------------------------------------------------------------------------------------
| Id  | Operation        | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT |                 |     1 |    15 |     1   (0)| 00:00:01 |
|*  1 |  INDEX FULL SCAN | COUNTRY_C_ID_PK |     1 |    15 |     1   (0)| 00:00:01 |
------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------

   1 - filter(SUBSTR("COUNTRY_ID",1,1)<>'Z')

13 rows selected.

Elapsed: 00:00:00.04
SQL>



jueves, 13 de diciembre de 2012

ExaBriefing – Great Article

Colaboración: Paola Girotti
Customer Care South Region Manager
Oracle Lad User Group Relationship Manager 
ExaBriefing
The IOUG Engineered Systems Newsletter
Published in Cooperation with the Independent Oracle Users Group (IOUG).
December 12, 2012
Welcome to ExaBriefing: The IOUG Engineered Systems Newsletter, an information resource prepared by Database Trends and Applications Magazine and published in cooperation with the Independent Oracle Users Group (IOUG). To subscribe, click here.
Visit IOUG at:

NEWS FLASHES


University of Minnesota Reduces Data Center Footprint with Exadata

The University of Minnesota, a top research institution comprised of five campuses, 65,000 students and 25,000 employees, has made systematic changes and improved database administration efficiency with Oracle Exadata Database Machine. By hosting its IT environment on two Oracle Exadata Database Machine half racks, the university consolidated more than 200 Oracle database instances into fewer than 20, enabling it to reduce data center floor space and total cost of ownership.

Full article
Oracle SPARC SuperCluster Adds Cloud and Consolidation Capabilities

Oracle announced new software enhancements to the Oracle SPARC SuperCluster engineered system that are intended to enable customers to consolidate any combination of mission-critical enterprise databases, middleware and applications on a single system and rapidly deploy secure, self-service cloud services. According to Oracle, the SPARC SuperCluster can deliver 10x application consolidation ratios as a result of new layered, zero-overhead virtualization combined with the database offload functions of Oracle Exadata Storage Servers and efficient networking.

Full article
IOUG's John Matelski Makes the Case for the Engineered Systems

At OpenWorld, Oracle's annual conference for customers and partners, John Matelski, president of the IOUG, gave his perspective on the key takeaways from this year's event. He also talked about the user group's efforts to help the community understand the value of Oracle's engineered systems and deal with the broad implications of big data - and how the IOUG is supporting Oracle DBAs in their evolving roles.

Full article



IOUG NEWS AND INFORMATION


IOUG's new ExaEverything Training Modules are now available!

Participate in real-time, interactive discussions on today's most relevant ExaEverything topics. IOUG's ExaModules provide a clear, soup-to-nuts understanding of the Oracle Exadata Machine, and will define the learning objectives of each session.

Sessions include:
Exadata 101 - What You Need to Know
Exadata: Is it Right for Your Environment?
Exadata Database Migration and Consolidation
Oracle Exadata Management Fundamentals: New Features for Monitoring, Tuning and More
Training modules are available to all IOUG paid members.
Learn more at www.ioug.org/examodules
Save the Date for the Second Annual Exadata Virtual Symposium!

Take advantage of two days of free, online sessions filled with insights and information from real Exadata users and experts. Go beyond the basics of Exadata with information on what's new for Exadata in X-3, what it takes to manage Exadata on a daily basis, and how to optimize your systems to get the most out of your investment. Register today and be notified when the session schedule becomes available.
Register for the IOUG Exadata Virtual Symposium 2013


ABOUT US


Founded in 1993, the Independent Oracle Users Group (IOUG) is a global membership organization for technology professionals who seek credible, relevant and timely information and education on Oracle technologies. Representing over 20,000 IT professionals and large, medium and small businesses, government and educational organizations, this independent community provides insight, experienced-based solutions and resources that empower DBAs, architects, developers, server administrators and IT managers to do their jobs better. The IOUG provides the professional Oracle user with qualified and vetted perspectives on technology trends, products and best practices; leading edge training and an advocacy channel back to Oracle Corporation. Web site resources include more than 3000 papers, tips and articles as well as networking through Special Interest Groups and a network of regional Oracle user groups. For more information about the IOUG, please visit the IOUG Web site, or call (312) 245-1579.

Database Trends and Applications, published by Unisphere Media, provides timely coverage of the technology and intelligence needed to conceptualize, plan, initiate, implement and manage large-scale integrated information projects. Unisphere Media also publishes 5 Minute Briefing: Oracle, a bi-weekly publication containing news, market research, insight for the Oracle ecosystem, as well as IOUG news and information; 5 Minute Briefing: Information Management, a summary of key news and trends in the technologies that control, protect, deliver and enhance the value of data and information assets, and 5 Minute Briefing: MultiValue, a review of news, technical tips and insights for the MultiValue database community. Visit the DBTA website.

Keep Getting This Newsletter
Don't let future editions of Exabriefing - The IOUG Engineered Systems Newsletter get lost. Take a moment to add Unisphere.Research@emediapro.com

miércoles, 12 de diciembre de 2012

Oracle Announces Oracle Audit Vault and Database Firewall

Unifies Database Activity Monitoring and Audit Data Analysis with New, Single Streamlined Product
REDWOOD SHORES, Calif. – December 12, 2012

News Facts

Continuing its commitment to delivering the most complete portfolio of database security solutions for the enterprise, Oracle today announced the availability of Oracle Audit Vault and Database Firewall, the industry’s only product to effectively protect Oracle and non-Oracle databases, by monitoring network traffic and analyzing audit data.

Merging the core capabilities of proven Oracle Audit Vault and Oracle Database Firewall products, the new Oracle Audit Vault and Database Firewall product expands protection beyond Oracle and third party databases with support for auditing the operating system, directories and custom sources.
Delivering Oracle Audit Vault and Database Firewall in a new software appliance-based platform accelerates enterprise-wide deployments and simplifies operations.

Oracle Audit Vault and Database Firewall serves as a critical detective and preventive control to protect against the abuse of legitimate access to databases responsible for almost all data breaches and cyber attacks.

Part of Oracle's comprehensive portfolio of database security solutions, Oracle Audit Vault and Database Firewall complements Oracle Advanced Security and Oracle Database Vault.
Oracle Database Security solutions provide customers with the most comprehensive and advanced security offerings that help reduce the costs and complexity of securing their business information across the enterprise.

Expanded Protection and Effective Auditing

Key features of the new Oracle Audit Vault and Database Firewall product include:


Database Activity Monitoring and Firewall: SQL Traffic monitoring of all certified versions of Oracle and third party databases including Microsoft SQL Server, SAP Sybase, IBM DB2, and MySQL; a unique approach to SQL grammar analysis to reduce millions of SQL statements into “clusters” for unrivaled accuracy and scalability; and easy to create whitelists, blacklists and exception lists to better detect unauthorized database activity including SQL injection attacks.

Expanded Enterprise Auditing: Capabilities to collect, consolidate, and manage native audit and event logs from Oracle and third party databases; additional support for collecting and consolidating audit and event logs from Microsoft Windows, Microsoft Active Directory, Oracle Solaris and Oracle Automatic Storage Management Cluster File System, as well as XML and table-based audit sources through XML-based Audit Collection Plugins.

Consolidated Reporting and Alerting: Consolidated, centralized repository for all audit and event logs to be analyzed in real-time against pre-defined policies; unprecedented visibility into stored procedure execution, recursive SQL and operational activities; dozens of built-in reports to meet compliance requirements; and powerful alerting capabilities including multi-event alerts and alert thresholds.

Supporting Quotes

“Oracle Audit Vault and Database Firewall is not just an integration of two existing products,” said Vipin Samar, vice president of Database Security Product Development, Oracle. “This is a new product that provides a unified monitoring and auditing platform that goes beyond databases. Customers no longer have to choose between security and compliance – they can now have a product that lets them achieve both easier and at a lower cost.”

“We currently use Oracle Database Firewall to secure Oracle and SQL Server databases and ensure we protect sensitive data in our environment,” said John-Thomas Gaietto, manager, IT Security & Compliance, SquareTwo Financial. “We are excited to see Oracle merge the capabilities of two products into a single unified product that provides us the security intelligence platform we need to run our business.”

"Combining both Oracle Audit Vault and Oracle Database Firewall is a logical step - it combines the real-time analytics and the ability to do ex-post and forensic analytics on database activities," said Martin Kuppinger, founder and principal analyst at Kuppinger-Cole. "Oracle also raises the bar with its broad support for heterogeneous database environments. We recommend evaluating this new offering as the baseline solution for database security."

Supporting Resources

Connect with Oracle Database via Blog, Facebook and Twitter

martes, 11 de diciembre de 2012

Oracle Webcenter Sites: Primer contacto con la herramienta

Durante el día de hoy y los próximos dos días, estaré participando de un nuevo entrenamiento, con la división de PTS de Oracle, en lo que es el segundo entrenamiento en lo que va del año en el tema de de adminitración de contenido, ya que hace unas semanas atrás, tocó el tema de Oracle WebContent.

He logrado terminar mi primer Lab de entranamiento y hemos visto las primeras presentaciones sobre la parte comercial del producto y los componentes asociados al mismo.

Espero en los próximos días el poder aportar un poco sobre estos dos temas y sobre cada una de las nuevas capacitaciones que vayamos realizando.



Oracle User Group Argentina, te invita a su último evento del año



¿La pasaste bien en el OTN y el Apex Tour?

¡Entonces reservate el 18 de diciembre porque nos volvemos a encontrar antes de finalizar el año!

Y esta vez el motivo es contarte todo acerca de Oracle Exadata, la máquina de base de datos de rendimiento extremo.

Junto a Oracle y a usuarios que ya disponen de esta tecnologìa queremos compartir con vos conocimiento y experiencia.

¡No dejes pasar esta oportunidad para conocer Exadata, volver a encontrarnos y pasar un buen momento!

Las vacantes son limitadas, registrate en 

lunes, 10 de diciembre de 2012

Ada Lovelace: los 6 descubrimientos que le deben los programadores


Fuente: abc.es

El día en el que se cumplen 197 años del nacimiento de la británica Augusta Ada King, Condesa de Lovelace, y a la que homenajea este lunes Google, hemos querido hacer un repaso por el que se ha convertido en su legado.

Estas son sus principales aportaciones al mundo científico:

- Describió la máquina analítica de Charles Babbage.
- Dedujo la capacidad de los ordenadores para ir más allá de los simples cálculos de números. Fue la primera persona en escribir un programa para un ordenador programable.
- Escribió un «plan» donde describe los pasos que permitirían calcular los valores de los números de Bernoulli, su primer programa, que utilizaba dos bucles, con lo que demostró la capacidad de bifurcación de la máquina de Babbage.
- Describió cómo se podían calcular operaciones trigonométricas que contaban con variables utilizando la máquina de Babbage.
- Sugirió el uso de tarjetas perforadas como método de entrada de información e instrucciones a la máquina analítica.
- Introdujo una notación para escribir programas, principalmente basada en el dominio que Ada tenía sobre el texto de Luigi Menabrea de 1842 (que comentó personalmente completándolo con anotaciones que son más extensas que el texto mismo) sobre el funcionamiento del telar de Jacquard

viernes, 7 de diciembre de 2012

Atenção Parceiros de Negócios no Brasil



NEW! Certified Specialist Exams Now Available in Brazilian Portuguese!

Oracle PartnerNetwork (OPN) is pleased to announce the availability of 5 OPN Certified Specialist Implementation Exams in Brazilian Portuguese!

Become an OPN Certified specialist and help your company to increase its level of Specialization in the OPN program by passing the associated Oracle Specialist Implementation Exam.

Specialized partners are recognized by Oracle, and preferred by customers!

View the following exam pages for information on exams that are now available in Brazilian Portuguese.  These pages provide information on the exam study guide, exam objectives, number of questions, exam duration and exam pricing:
Exams can be scheduled through Pearson VUE.  Select either the Brazilian Portuguese or English version of the exam.

Learn more about becoming a Certified Specialist:

OPN Certified Specialist Exams
OPN Certified Specialist FAQ

Todos los Sábados a las 8:00PM