| |||||||||||||||||
martes, 7 de junio de 2016
ODTUG Webinars June 2016
Oracle Hot Topics: Failed To Allocate New Temporary Tablespace to Local User In 12c Multitenant Architecture
Knowledge Articles
|
Knowledge Article
|
Product Area
|
Last Updated
|
|
Oracle Database - Enterprise Edition Oracle GoldenGate
|
Tue, 7 Jun 2016 06:03 GMT-06:00
|
|
Knowledge Article
|
Product Area
|
Last Updated
|
|
Oracle Database - Enterprise Edition
|
Sat, 4 Jun 2016 20:57 GMT-06:00
|
Alerts
|
Alert
|
Product Area
|
Last Updated
|
|
Oracle Database - Enterprise Edition
|
Tue, 31 May 2016 06:13 GMT-06:00
|
lunes, 6 de junio de 2016
Qué es más eficiente y que no? Respuesta pendiente de la charla del fin de semana. TECHNOCRUX
Buenas tardes a todos y todas
Me quedó pendiente exponer el siguiente caso en una de mis charlas del día sábado en el evento de TECHNOCRUX y les indique la que respuesta estaría el día de hoy en mi blog.
Nada más para que no crean que se me ha olvidado, aquí esta la respuesta.
Un simple bloque anónimo para trabajar la respuesta.
DECLARE
starting_time TIMESTAMP WITH TIME ZONE;
ending_time TIMESTAMP WITH TIME ZONE;
BEGIN
-- Invokes SQRT for every row of empleados table:
SELECT SYSTIMESTAMP INTO starting_time FROM DUAL;
FOR item IN (
SELECT DISTINCT(SQRT(department_id)) col_alias
FROM empleados
ORDER BY col_alias
)
LOOP
DBMS_OUTPUT.PUT_LINE('Square root of dept. ID = ' || item.col_alias);
END LOOP;
SELECT SYSTIMESTAMP INTO ending_time FROM DUAL;
DBMS_OUTPUT.PUT_LINE('Time = ' || TO_CHAR(ending_time - starting_time));
-- Invokes SQRT for every distinct department_id of empleados table:
SELECT SYSTIMESTAMP INTO starting_time FROM DUAL;
FOR item IN (
SELECT SQRT(department_id) col_alias
FROM (SELECT DISTINCT department_id FROM empleados)
ORDER BY col_alias
)
LOOP
IF item.col_alias IS NOT NULL THEN
DBMS_OUTPUT.PUT_LINE('Square root of dept. ID = ' || item.col_alias);
END IF;
END LOOP;
SELECT SYSTIMESTAMP INTO ending_time FROM DUAL;
DBMS_OUTPUT.PUT_LINE('Time = ' || TO_CHAR(ending_time - starting_time));
END;
/
SQL> set serveroutput on
SQL> @t2
Square root of dept. ID = 3.16227766016837933199889354443271853372
Square root of dept. ID = 4.47213595499957939281834733746255247088
Square root of dept. ID = 5.47722557505166113456969782800802133953
Square root of dept. ID = 6.32455532033675866399778708886543706744
Square root of dept. ID = 7.07106781186547524400844362104849039285
Square root of dept. ID = 7.74596669241483377035853079956479922167
Square root of dept. ID = 8.36660026534075547978172025785187489393
Square root of dept. ID = 8.94427190999915878563669467492510494176
Square root of dept. ID = 9.48683298050513799599668063329815560116
Square root of dept. ID = 10
Square root of dept. ID = 10.48808848170151546991453513679937598475
Square root of dept. ID =
Time = +000000000 00:00:06.176312000
Square root of dept. ID = 3.16227766016837933199889354443271853372
Square root of dept. ID = 4.47213595499957939281834733746255247088
Square root of dept. ID = 5.47722557505166113456969782800802133953
Square root of dept. ID = 6.32455532033675866399778708886543706744
Square root of dept. ID = 7.07106781186547524400844362104849039285
Square root of dept. ID = 7.74596669241483377035853079956479922167
Square root of dept. ID = 8.36660026534075547978172025785187489393
Square root of dept. ID = 8.94427190999915878563669467492510494176
Square root of dept. ID = 9.48683298050513799599668063329815560116
Square root of dept. ID = 10
Square root of dept. ID = 10.48808848170151546991453513679937598475
Time = +000000000 00:00:00.983346000
PL/SQL procedure successfully completed.
SQL>
Respuesta: Lo más eficiente es:
FOR item IN (
SELECT SQRT(department_id) col_alias
FROM (SELECT DISTINCT department_id FROM empleados)
ORDER BY col_alias
)
Hay un artículo que estoy escribiendo para OTN, en donde voy a explicar más a fondo este tema.
jueves, 2 de junio de 2016
ODTUG Kscope16 Chicago, Illinois June 26-30 2016
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comunicado de Prensa, Deborah Hellinger, Vice President
Press Release
Oracle
Statement
Redwood Shores, Calif.—Jun 2,
2016
“We
are confident that all our cloud accounting is proper and correct. This former
employee worked at Oracle for less than a year and did not work in the
accounting group. She was terminated for poor performance and we intend to sue
her for malicious prosecution.”
—Deborah Hellinger, Vice President, Corporate Communications, Oracle
Contact
Info
Deborah Hellinger
Oracle Corporate Communications
1.212.508.7935
Oracle Corporate Communications
1.212.508.7935
miércoles, 1 de junio de 2016
Oracle Hot Topics: ALERT: Reinstating physical standby databases after a Data Guard Failover
Alerts
|
Alert
|
Product Area
|
Last Updated
|
|
Oracle Database - Enterprise Edition
|
Tue, 31 May 2016 06:13 GMT-06:00
|
Knowledge Articles
|
Knowledge Article
|
Product Area
|
Last Updated
|
|
Oracle Database - Enterprise Edition
|
Tue, 31 May 2016 05:11 GMT-06:00
|
Suscribirse a:
Comentarios (Atom)


