Este documento resume uma apresentação sobre as novas características do Oracle Database 12c para DBAs e desenvolvedores, incluindo multitenant, in-memory, e JSON.
Oracle Database 12c - Novas Características para DBAs e DesenvolvedoresAlex Zaballa
1. O documento apresenta novas características do Oracle Database 12c para DBAs e desenvolvedores, incluindo pluggable databases, hot cloning, sharding e in-memory.
2. O Oracle Database 12c oferece suporte nativo para JSON e novas funcionalidades como limites de linhas em consultas SQL, colunas invisíveis e sequências de sessão.
3. O documento discute diferenças entre privilégios SELECT e READ, estatísticas privadas para tabelas globais temporárias e outros recursos como truncate cascade e SQL*Loader express.
O documento discute os comandos DML (Data Manipulation Language) para inserção, alteração e exclusão de dados em bancos de dados. Especificamente, cobre os comandos INSERT para inserção de dados, UPDATE para alteração de dados, e DELETE para exclusão de dados. Fornece exemplos detalhados sobre como usar cada um desses comandos no SQL Server.
SQL Server ES - Escrevendo queries rápidas (Performance/Query Tuning)Dirceu Resende
Palestra de Performance Tuning do do SQL Server ES - 10/06/2017 (Dirceu Resende)
Veja o post completo em: https://www.dirceuresende.com/blog/como-foi-o-2o-encontro-do-sql-server-es/
1) O documento descreve como configurar as topologias no Oracle Data Integrator (ODI) para definir as origens e destinos de dados para um projeto de ETL. 2) Inclui detalhes sobre como configurar as arquiteturas física, lógica e contextos no ODI para mapear as bases de dados físicas às lógicas. 3) Fornece exemplos de como criar servidores de dados, esquemas físicos, contextos e esquemas lógicos no ODI.
1) O documento apresenta os conceitos de views no Oracle Database, incluindo views simples, complexas e materializadas.
2) São descritas as vantagens de utilizar views, como restringir acesso a dados e simplificar consultas complexas.
3) São explicados os tipos de views, como simples, complexas e materializadas, assim como suas características e diferenças.
O documento descreve o processo de administração de caixa no SAP ERP, incluindo:
1) Lançamento de registros de planejamento e documentos como faturas de clientes e fornecedores
2) Importação e lançamento manual de extratos bancários
3) Geração de relatórios de situação de caixa e previsão de liquidez
O objetivo é fornecer informações sobre o fluxo de caixa atual e futuro para tomada de decisões.
O documento descreve como usar o iReport para criar relatórios com o JasperReports de forma visual sem precisar lidar diretamente com o formato XML. O iReport permite projetar, compilar e testar relatórios de forma interativa adicionando campos, grupos, cálculos, gráficos e layout.
Oracle Database 12.1.0.2 introduced several new features including approximate count distinct, full database caching, pluggable database (PDB) improvements like cloning and state management, JSON support, data redaction, SQL query row limits and offsets, invisible columns, SQL text expansion, calling PL/SQL from SQL, session level sequences, and extended data types support.
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
This document summarizes a presentation on DBA commands and concepts that every developer should know. The presentation covers topics such as parallel processing, explain plans, flashback queries, pending statistics, virtual columns, and online table redefinition. It demonstrates several commands and concepts to help developers better understand database administration tasks.
On version 12c Oracle introduced new features to allow Adaptive optimizations: Adaptive Plans and Adaptive Statistics. After a quick presentation of concepts, this session will explore the interaction of these features with other performance management techniques using examples, like SPM and SQL profiles. Attendees will get an updated picture of tools available to troubleshoot performance issues, and how to get the most of these new features.
SQLT XPLORE: The SQLT XPLAIN hidden childCarlos Sierra
Have you ever been in a situation where after a database upgrade one or two SQL statements start performing poorly? If you have then maybe you have tested the performance of these queries by setting your Optimizer to the pre-upgrade release, and discovered the performance was restored. What do you do next? SQLT XPLORE (the hidden child of SQLTXPLAIN) can give you some answers to this problem.
SQLT XPLORE uses brute force analysis to explore some aspects of a SQL statement. The typical case is this: A SQL statement has a performance regression after a database software upgrade. Setting Optimizer Features to the pre-upgrade release causes the performance of the SQL to be restored, so there is a high level of confidence the root cause of the regression was a change to the Optimizer. Since setting the Optimizer to a pre-upgrade release is not a solution but a workaround, the problem becomes "How to find which particular change on the CBO is causing the regression of this particular SQL?". SQLT XPLORE was designed and built to help answer this difficult question. This session covers SQLT XPLORE under the hood, and all the benefits an expert DBA can obtain of its use. Keep in mind that SQLT XPLORE, which is packaged within SQLT, is a free multi-use tool!
SQL Tuning made easier with SQLTXPLAIN (SQLT)Carlos Sierra
If you have experienced the frustration of dealing with an application transaction that takes too long to execute, and which may be affecting your company's business, then it is possible you have one or more SQL statements that may need some performance tuning. This session covers capabilities, installation and use of the free SQL Tuning tool: SQLTXPLAIN.
This session is an introduction to SQLTXPLAIN (SQLT) as a tool to aid in the complex task of SQL Tuning. It assumes nothing. From what is SQLT and its features, to how it is implemented and used, this presentation gives you a good idea how you can benefit of this free tool. As an additional value, since Oracle Support has been requesting the output of this tool on most Query Tuning Service Requests (SR), by learning how to use the right SQLT method, you may help to expedite the resolution of your own SR! During this session you will see how SQLT is installed and how the most common methods - XTRACT and XECUTE are used. A navigation through the main output is also part of this SQLT introductory session.
If you are a DBA that besides many other things is also responsible of Performance issues, or you are a Developer that has to find answers when a SQL performs poorly, you may consider attending this session. SQL Tuning is complex, so simply by collecting the right information on a timely manner is a big help. Nothing to lose when a free tool is available for you to try and use. No strings attached!
Understanding How is that Adaptive Cursor Sharing (ACS) produces multiple Opt...Carlos Sierra
Adaptive Cursor Sharing (ACS) is a feature available since 11g. It is enabled by default. ACS can help to generate multiple non-persistent Optimal Execution Plans for a given SQL. But it requires a sequence of events for it to get truly activated. This presentation describes what is ACS, when it is used and when it is not. Then it demonstrates ACS capabilities and limitations with a live demo.
This session is about: How Adaptive Cursor Sharing (ACS) actually works. How a bind sensitive cursor becomes bind aware. What are those "ACS buckets". How the "Selectivity Profile" works. Why sometimes your SQL becomes bind aware and why sometimes it does not. How is that ACS interacts with SQL Plan Management (SPM). These and other questions about ACS are answered in detail.
Some live demonstrations are used to illustrate the ramp-up process on ACS and how some child cursors are created then flagged as non-shareable. You will also "see" how the ACS Selectivity Profile is adapted as new executions make use of predicates with new Selectivities. ACS promotes Plan Flexibility while SPM promotes Plan Stability. Understanding how these duo interacts becomes of great value when some gentle intervention is needed to restore this delicate balance.
This session is for those Developers and DBAs that "need" to understand how things work. ACS can be seen as a back-box; or you can "look" inside and understand how it actually works. If you are curious about the ACS functionality, then this Session brings some light. Consider this session only if you are pretty familiar with Cursor Sharing, Binds, Plan Stability and Plan Flexibility.
Using SQL Plan Management (SPM) to balance Plan Flexibility and Plan StabilityCarlos Sierra
Have you been in a situation where an Execution Plan changes unexpectedly? Have you been asked to "fix" a Plan Stability issue? If you have, then you may have heard of Adaptive Cursor Sharing (ACS) and SQL Plan Baselines.
SQL Plan Management (SPM) can be explained as a collection of three functions: SQL Plan Baseline (SPB) creation, Plan selection and Plan Evolution. This session is about understanding all 3 major components of SPM and learning how we can use this technology to input a set of Flexible Plans created by Adaptive Cursor Sharing (ACS) and make them more steady.
ACS and SPM actually work really well together. Understanding their complex relationship is key to balance the yin and yang of Plan Flexibility and Plan Stability on an Oracle Database (11g or higher). This Session shows how these duo (ACS and SPM) can do great things if you make them work together as a team.
As a Developer or a DBA, if you need to know more about Execution Plan Stability, this session may provide you with some valuable insight. Some tools to transport a Plan from one system to another, or to simply create a SQL Plan Baseline from different sources are also presented.
How a Developer can Troubleshoot a SQL performing poorly on a Production DBCarlos Sierra
This session is about some free small scripts you can execute from SQL*Plus, which provide you with some basics about a SQL statement, like the Execution Plan from multiple child cursors, their SQL Monitor report if your site has the Tuning Pack, and some useful Active Session History (ASH) summaries for your SQL if your site has the Diagnostics Pack. And if you have neither the Tuning nor the Diagnostics Pack then you may want to learn about some alternatives to collect important performance metrics.
You need to investigate some performance issues on an Oracle database, but you have no access to Oracle Enterprise Manager (OEM), or what is worse, not even to SQL*Plus. Where do you start? What is the first query you ask the DBA to execute for you? What is your second and third? Do you request an AWR report? For which snapshots? This scenario is not uncommon or unheard, it happens often to 3rd party consultants, or even to internal DBAs and Developers when the administration of the database has been subcontracted and access has been restricted.
Performance is not the only case where you may need to reach a database and struggle with access; doing a database health-check or collecting historical performance for a capacity planning exercise may face the same issues. What you wish you had is access to a restricted SQL*Plus account, even if remote, and a toolset to collect as much information as possible from the database of interest; or to ask a DBA with access to this database to simply run this toolset and give you back all the output so you can find answers to most of your questions.
eDB360 is a free tool that installs nothing on the database, executes through a SQL*Plus connection, and produces a zip file with a comprehensive report that provides a 360-degree view of an Oracle database. This session is about edb360. It covers what is included on its output, how you execute this tool, and how it can be used to gain a fair understanding of an Oracle database. This session is for DBAs, Developers and Consultants.
Benefits:
1. Learn how to get a fair 360-degree view of a database
2. Gather enough database information to start a health-check
3. Learn which performance to collect for a sizing exercise
This document provides an overview of Oracle performance tuning fundamentals. It discusses key concepts like wait events, statistics, CPU utilization, and the importance of understanding the operating system, database, and business needs. It also introduces tools for monitoring performance like AWR, ASH, and dynamic views. The goal is to establish a foundational understanding of Oracle performance concepts and monitoring techniques.
The document discusses various Oracle performance monitoring tools including Oracle Enterprise Manager (OEM), Automatic Workload Repository (AWR), Automatic Database Diagnostic Monitor (ADDM), Active Session History (ASH), and eDB360. It provides overviews of each tool and examples of using AWR, ADDM, ASH and eDB360 for performance analysis through demos. The conclusions recommend OEM as the primary tool and how the other tools like AWR, ADDM and ASH complement it for deeper performance insights.
O documento discute os pré-requisitos de sistema operacional para instalação e administração de bancos de dados, cobrindo categorias como hardware, armazenamento, memória, sistema operacional, grupos de usuários e parâmetros do kernel. O palestrante destaca que 40% das instalações auditadas não atendem aos pré-requisitos, podendo causar indisponibilidade, intermitência e problemas de performance. Ele também discute como diagnosticar e evitar problemas relacionados a pré-requisitos.
How to become an Oracle Certified Master - GUOB Tech Day - OTN TOUR LA Brazil...Alex Zaballa
The document discusses how to become an Oracle Certified Master (OCM), including that candidates must take two advanced courses, pass the OCM exam over two days, and the exam is based on performance. It also provides tips for preparing like practicing extensively with virtual machines and Oracle documentation.
Vagas de emprego na area de TI direto do site www.oemprego.com.brwww.oemprego.com.br
O documento lista várias vagas de emprego na área de TI com cargos como analista de sistemas, técnico de informática, programador, estágio em programação e suporte técnico em diversas localidades como São Paulo, Rio de Janeiro e outras cidades. As vagas variam de estágio a gerente e foram extraídas do site www.oemprego.com.br, com salários entre R$500 a R$15.000.
Wilson Ribeiro apresenta seu currículo para vaga de Analista Programador Oracle Senior. Ele tem 42 anos e experiência com PL/SQL, Oracle Forms, Reports e Visual Basic. Ele também tem conhecimento em modelagem de dados, desenvolvimento de sistemas financeiros e logística, e experiência com Oracle, Delphi e banco de dados.
Wilson Ribeiro é um desenvolvedor Oracle sênior de 42 anos que busca uma posição como analista programador Oracle sênior. Ele tem ampla experiência em programação PL/SQL, Oracle Forms e Reports, além de conhecimentos em modelagem de dados, desenvolvimento de sistemas financeiros e BI. Sua formação inclui cursos em PL/SQL, Java e programação orientada a objetos.
André Rafael Tavante Piuci é um profissional de 34 anos com mais de 10 anos de experiência como consultor SAP e líder de projetos SAP. Ele tem experiência em implementações, upgrades e melhorias de vários módulos SAP, como R/3, ECC, BW, APO, EBP, CRM e XI. Atualmente é Gerente de Processos SAP/Basis na empresa Ci&T, onde lidera projetos SAP e gestão de equipes.
1) O documento discute carreiras e profissões relacionadas a banco de dados, com foco em Oracle.
2) Apresenta as diferenças entre Administrador de Dados (AD) e Database Administrator (DBA).
3) Fornece detalhes sobre certificações Oracle, como OCA, OCP, OCE e caminhos para se tornar um especialista Oracle.
O documento apresenta a agenda de uma palestra sobre AlwaysOn no SQL Saturday em Bogotá, Colômbia. A agenda inclui tópicos como introdução ao AlwaysOn, tipos de implementações, características-chave, sincronização e failover. O documento também fornece detalhes sobre o palestrante Luiz Henrique Garetti.
Este documento fornece informações sobre carreiras em banco de dados, com foco em administrador de banco de dados Oracle (DBA). Apresenta as principais profissões nessa área, como DBA e administrador de dados, e explica as responsabilidades de cada uma. Também discute os benefícios de ser DBA e as vantagens do banco de dados Oracle. Fornece detalhes sobre certificações, literatura e a jornada para se tornar um DBA Oracle.
O documento resume uma apresentação sobre técnicas de tuning de banco de dados Oracle, incluindo AWR, ASH, SQL Trace e eventos de espera. O palestrante Marcus Vinicius Miguel Pedro discute como esses métodos podem ser usados para coletar métricas, identificar gargalos e melhorar o desempenho. Exemplos demonstram como analisar os dados desses recursos para diagnosticar e resolver problemas de desempenho.
1) O documento discute diferentes casos de uso e modelos de dados para bancos NoSQL, comparando-os com bancos relacionais.
2) São apresentados exemplos de como modelar logs de aplicação, hierarquias de comentários, documentos com alterações históricas e integração entre aplicações usando bancos do tipo documento, coluna e grafo.
3) O documento conclui comparando os modelos de dados, complexidade de queries e trade-offs entre SQL e NoSQL.
O documento apresenta uma palestra sobre testes de software ministrada por Robson Agapito Correa. A palestra aborda o que são testes de software, a influência dos testes no desenvolvimento de aplicações, profissionais de teste de software e seus cargos e salários. Apresenta também um exemplo prático de jogo para encontrar defeitos e de automação de testes.
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
This document summarizes a presentation on DBA commands and concepts that every developer should know. The presentation covers topics such as parallel processing, explain plans, flashback queries, pending statistics, virtual columns, and online table redefinition. It demonstrates several commands and concepts to help developers better understand database administration tasks.
On version 12c Oracle introduced new features to allow Adaptive optimizations: Adaptive Plans and Adaptive Statistics. After a quick presentation of concepts, this session will explore the interaction of these features with other performance management techniques using examples, like SPM and SQL profiles. Attendees will get an updated picture of tools available to troubleshoot performance issues, and how to get the most of these new features.
SQLT XPLORE: The SQLT XPLAIN hidden childCarlos Sierra
Have you ever been in a situation where after a database upgrade one or two SQL statements start performing poorly? If you have then maybe you have tested the performance of these queries by setting your Optimizer to the pre-upgrade release, and discovered the performance was restored. What do you do next? SQLT XPLORE (the hidden child of SQLTXPLAIN) can give you some answers to this problem.
SQLT XPLORE uses brute force analysis to explore some aspects of a SQL statement. The typical case is this: A SQL statement has a performance regression after a database software upgrade. Setting Optimizer Features to the pre-upgrade release causes the performance of the SQL to be restored, so there is a high level of confidence the root cause of the regression was a change to the Optimizer. Since setting the Optimizer to a pre-upgrade release is not a solution but a workaround, the problem becomes "How to find which particular change on the CBO is causing the regression of this particular SQL?". SQLT XPLORE was designed and built to help answer this difficult question. This session covers SQLT XPLORE under the hood, and all the benefits an expert DBA can obtain of its use. Keep in mind that SQLT XPLORE, which is packaged within SQLT, is a free multi-use tool!
SQL Tuning made easier with SQLTXPLAIN (SQLT)Carlos Sierra
If you have experienced the frustration of dealing with an application transaction that takes too long to execute, and which may be affecting your company's business, then it is possible you have one or more SQL statements that may need some performance tuning. This session covers capabilities, installation and use of the free SQL Tuning tool: SQLTXPLAIN.
This session is an introduction to SQLTXPLAIN (SQLT) as a tool to aid in the complex task of SQL Tuning. It assumes nothing. From what is SQLT and its features, to how it is implemented and used, this presentation gives you a good idea how you can benefit of this free tool. As an additional value, since Oracle Support has been requesting the output of this tool on most Query Tuning Service Requests (SR), by learning how to use the right SQLT method, you may help to expedite the resolution of your own SR! During this session you will see how SQLT is installed and how the most common methods - XTRACT and XECUTE are used. A navigation through the main output is also part of this SQLT introductory session.
If you are a DBA that besides many other things is also responsible of Performance issues, or you are a Developer that has to find answers when a SQL performs poorly, you may consider attending this session. SQL Tuning is complex, so simply by collecting the right information on a timely manner is a big help. Nothing to lose when a free tool is available for you to try and use. No strings attached!
Understanding How is that Adaptive Cursor Sharing (ACS) produces multiple Opt...Carlos Sierra
Adaptive Cursor Sharing (ACS) is a feature available since 11g. It is enabled by default. ACS can help to generate multiple non-persistent Optimal Execution Plans for a given SQL. But it requires a sequence of events for it to get truly activated. This presentation describes what is ACS, when it is used and when it is not. Then it demonstrates ACS capabilities and limitations with a live demo.
This session is about: How Adaptive Cursor Sharing (ACS) actually works. How a bind sensitive cursor becomes bind aware. What are those "ACS buckets". How the "Selectivity Profile" works. Why sometimes your SQL becomes bind aware and why sometimes it does not. How is that ACS interacts with SQL Plan Management (SPM). These and other questions about ACS are answered in detail.
Some live demonstrations are used to illustrate the ramp-up process on ACS and how some child cursors are created then flagged as non-shareable. You will also "see" how the ACS Selectivity Profile is adapted as new executions make use of predicates with new Selectivities. ACS promotes Plan Flexibility while SPM promotes Plan Stability. Understanding how these duo interacts becomes of great value when some gentle intervention is needed to restore this delicate balance.
This session is for those Developers and DBAs that "need" to understand how things work. ACS can be seen as a back-box; or you can "look" inside and understand how it actually works. If you are curious about the ACS functionality, then this Session brings some light. Consider this session only if you are pretty familiar with Cursor Sharing, Binds, Plan Stability and Plan Flexibility.
Using SQL Plan Management (SPM) to balance Plan Flexibility and Plan StabilityCarlos Sierra
Have you been in a situation where an Execution Plan changes unexpectedly? Have you been asked to "fix" a Plan Stability issue? If you have, then you may have heard of Adaptive Cursor Sharing (ACS) and SQL Plan Baselines.
SQL Plan Management (SPM) can be explained as a collection of three functions: SQL Plan Baseline (SPB) creation, Plan selection and Plan Evolution. This session is about understanding all 3 major components of SPM and learning how we can use this technology to input a set of Flexible Plans created by Adaptive Cursor Sharing (ACS) and make them more steady.
ACS and SPM actually work really well together. Understanding their complex relationship is key to balance the yin and yang of Plan Flexibility and Plan Stability on an Oracle Database (11g or higher). This Session shows how these duo (ACS and SPM) can do great things if you make them work together as a team.
As a Developer or a DBA, if you need to know more about Execution Plan Stability, this session may provide you with some valuable insight. Some tools to transport a Plan from one system to another, or to simply create a SQL Plan Baseline from different sources are also presented.
How a Developer can Troubleshoot a SQL performing poorly on a Production DBCarlos Sierra
This session is about some free small scripts you can execute from SQL*Plus, which provide you with some basics about a SQL statement, like the Execution Plan from multiple child cursors, their SQL Monitor report if your site has the Tuning Pack, and some useful Active Session History (ASH) summaries for your SQL if your site has the Diagnostics Pack. And if you have neither the Tuning nor the Diagnostics Pack then you may want to learn about some alternatives to collect important performance metrics.
You need to investigate some performance issues on an Oracle database, but you have no access to Oracle Enterprise Manager (OEM), or what is worse, not even to SQL*Plus. Where do you start? What is the first query you ask the DBA to execute for you? What is your second and third? Do you request an AWR report? For which snapshots? This scenario is not uncommon or unheard, it happens often to 3rd party consultants, or even to internal DBAs and Developers when the administration of the database has been subcontracted and access has been restricted.
Performance is not the only case where you may need to reach a database and struggle with access; doing a database health-check or collecting historical performance for a capacity planning exercise may face the same issues. What you wish you had is access to a restricted SQL*Plus account, even if remote, and a toolset to collect as much information as possible from the database of interest; or to ask a DBA with access to this database to simply run this toolset and give you back all the output so you can find answers to most of your questions.
eDB360 is a free tool that installs nothing on the database, executes through a SQL*Plus connection, and produces a zip file with a comprehensive report that provides a 360-degree view of an Oracle database. This session is about edb360. It covers what is included on its output, how you execute this tool, and how it can be used to gain a fair understanding of an Oracle database. This session is for DBAs, Developers and Consultants.
Benefits:
1. Learn how to get a fair 360-degree view of a database
2. Gather enough database information to start a health-check
3. Learn which performance to collect for a sizing exercise
This document provides an overview of Oracle performance tuning fundamentals. It discusses key concepts like wait events, statistics, CPU utilization, and the importance of understanding the operating system, database, and business needs. It also introduces tools for monitoring performance like AWR, ASH, and dynamic views. The goal is to establish a foundational understanding of Oracle performance concepts and monitoring techniques.
The document discusses various Oracle performance monitoring tools including Oracle Enterprise Manager (OEM), Automatic Workload Repository (AWR), Automatic Database Diagnostic Monitor (ADDM), Active Session History (ASH), and eDB360. It provides overviews of each tool and examples of using AWR, ADDM, ASH and eDB360 for performance analysis through demos. The conclusions recommend OEM as the primary tool and how the other tools like AWR, ADDM and ASH complement it for deeper performance insights.
O documento discute os pré-requisitos de sistema operacional para instalação e administração de bancos de dados, cobrindo categorias como hardware, armazenamento, memória, sistema operacional, grupos de usuários e parâmetros do kernel. O palestrante destaca que 40% das instalações auditadas não atendem aos pré-requisitos, podendo causar indisponibilidade, intermitência e problemas de performance. Ele também discute como diagnosticar e evitar problemas relacionados a pré-requisitos.
How to become an Oracle Certified Master - GUOB Tech Day - OTN TOUR LA Brazil...Alex Zaballa
The document discusses how to become an Oracle Certified Master (OCM), including that candidates must take two advanced courses, pass the OCM exam over two days, and the exam is based on performance. It also provides tips for preparing like practicing extensively with virtual machines and Oracle documentation.
Vagas de emprego na area de TI direto do site www.oemprego.com.brwww.oemprego.com.br
O documento lista várias vagas de emprego na área de TI com cargos como analista de sistemas, técnico de informática, programador, estágio em programação e suporte técnico em diversas localidades como São Paulo, Rio de Janeiro e outras cidades. As vagas variam de estágio a gerente e foram extraídas do site www.oemprego.com.br, com salários entre R$500 a R$15.000.
Wilson Ribeiro apresenta seu currículo para vaga de Analista Programador Oracle Senior. Ele tem 42 anos e experiência com PL/SQL, Oracle Forms, Reports e Visual Basic. Ele também tem conhecimento em modelagem de dados, desenvolvimento de sistemas financeiros e logística, e experiência com Oracle, Delphi e banco de dados.
Wilson Ribeiro é um desenvolvedor Oracle sênior de 42 anos que busca uma posição como analista programador Oracle sênior. Ele tem ampla experiência em programação PL/SQL, Oracle Forms e Reports, além de conhecimentos em modelagem de dados, desenvolvimento de sistemas financeiros e BI. Sua formação inclui cursos em PL/SQL, Java e programação orientada a objetos.
André Rafael Tavante Piuci é um profissional de 34 anos com mais de 10 anos de experiência como consultor SAP e líder de projetos SAP. Ele tem experiência em implementações, upgrades e melhorias de vários módulos SAP, como R/3, ECC, BW, APO, EBP, CRM e XI. Atualmente é Gerente de Processos SAP/Basis na empresa Ci&T, onde lidera projetos SAP e gestão de equipes.
1) O documento discute carreiras e profissões relacionadas a banco de dados, com foco em Oracle.
2) Apresenta as diferenças entre Administrador de Dados (AD) e Database Administrator (DBA).
3) Fornece detalhes sobre certificações Oracle, como OCA, OCP, OCE e caminhos para se tornar um especialista Oracle.
O documento apresenta a agenda de uma palestra sobre AlwaysOn no SQL Saturday em Bogotá, Colômbia. A agenda inclui tópicos como introdução ao AlwaysOn, tipos de implementações, características-chave, sincronização e failover. O documento também fornece detalhes sobre o palestrante Luiz Henrique Garetti.
Este documento fornece informações sobre carreiras em banco de dados, com foco em administrador de banco de dados Oracle (DBA). Apresenta as principais profissões nessa área, como DBA e administrador de dados, e explica as responsabilidades de cada uma. Também discute os benefícios de ser DBA e as vantagens do banco de dados Oracle. Fornece detalhes sobre certificações, literatura e a jornada para se tornar um DBA Oracle.
O documento resume uma apresentação sobre técnicas de tuning de banco de dados Oracle, incluindo AWR, ASH, SQL Trace e eventos de espera. O palestrante Marcus Vinicius Miguel Pedro discute como esses métodos podem ser usados para coletar métricas, identificar gargalos e melhorar o desempenho. Exemplos demonstram como analisar os dados desses recursos para diagnosticar e resolver problemas de desempenho.
1) O documento discute diferentes casos de uso e modelos de dados para bancos NoSQL, comparando-os com bancos relacionais.
2) São apresentados exemplos de como modelar logs de aplicação, hierarquias de comentários, documentos com alterações históricas e integração entre aplicações usando bancos do tipo documento, coluna e grafo.
3) O documento conclui comparando os modelos de dados, complexidade de queries e trade-offs entre SQL e NoSQL.
O documento apresenta uma palestra sobre testes de software ministrada por Robson Agapito Correa. A palestra aborda o que são testes de software, a influência dos testes no desenvolvimento de aplicações, profissionais de teste de software e seus cargos e salários. Apresenta também um exemplo prático de jogo para encontrar defeitos e de automação de testes.
O documento apresenta uma palestra sobre teste de software ministrada por Robson Agapito Correa. A palestra aborda o que é teste de software, como influencia o desenvolvimento de aplicações, profissionais da área e seus cargos/salários, além de exemplos de teste de software e automação.
A empresa oferece soluções de ERP para clientes em todo o Brasil há 26 anos, com cerca de 3.000 clientes e 28.000 usuários. Ela possui unidades em diversas cidades brasileiras que fornecem suporte, treinamento e consultoria. A empresa investe em pesquisa, desenvolvimento e inovação tecnológica, como o primeiro laboratório privado de RFID na América Latina.
Michel D'Angelo Zacarioto é um profissional de RH, TI e Administração com mais de 20 anos de experiência. Ele possui formação em Gestão de Recursos Humanos e diversos cursos complementares. Seu perfil profissional destaca ética, dedicação, responsabilidade e boa comunicação.
Este documento apresenta o currículo de Elisabeth Silva Oliveira, consultora funcional SAP com experiência de 8 anos no módulo SD. Ela possui formação em Tecnologia da Informação e Gestão de Logística, além de diversos cursos e certificações relacionados ao SAP. Sua experiência profissional inclui projetos de implantação do SAP, com foco em processos de vendas, nota fiscal eletrônica e suporte a usuários.
Raphael Vides Brasca está cursando Tecnologia em Redes de Computadores e busca uma posição como Especialista em Rede de Computadores ou Segurança de Rede. Ele tem mais de 7 anos de experiência como Analista de Suporte de TI para empresas como SBT e Holding Grupo Silvio Santos. Raphael possui diversas certificações em redes, segurança da informação e pacote Office.
Eduardo é um profissional brasileiro com mais de 20 anos de experiência em sistemas Oracle, com ênfase em banco de dados, administração de dados e análise de sistemas. Ele possui um Mestrado em Engenharia de Software e várias certificações Oracle, incluindo Oracle Certified Professional. Sua experiência inclui trabalhos para grandes empresas como Petrobras, Vivo e Casas Bahia.
Sergio Della Nina está buscando uma posição como analista de sistemas, negócios ou requisitos. Ele tem mais de 30 anos de experiência trabalhando com sistemas, principalmente para o setor público. Seu currículo lista suas qualificações, experiência, idiomas e educação.
Geraldo Firmino Xavier é um profissional de TI brasileiro, solteiro, nascido em 07/03/1983. Ele tem experiência como analista de infraestrutura e suporte técnico, atualmente trabalhando para a TQI Consultoria prestando serviços para Itaú Unibanco. Ele também tem formação em Sistemas de Informação e certificações em Redes Cisco e Oracle.
Migrating Oracle Databases from AWS to OCIAlex Zaballa
The document provides information about migrating Oracle databases from AWS to OCI. It discusses various migration options including using SQL Developer tools like Data Pump export/import, copy, and SQL*Loader. It also covers transferring data to Oracle Cloud object storage from other cloud providers like Amazon S3. The document provides step-by-step instructions for performing an RDS migration using SQL Developer Data Pump or copy. It highlights options to consider like using the command line, database links, or object storage for the export/import.
Exploring All options to move your Oracle Databases to the Oracle CloudAlex Zaballa
This document discusses various options for migrating Oracle databases to the Oracle Cloud. It begins with an introduction to Alex Zaballa and his background and experience. It then discusses Accenture Enkitec Group's capabilities in Oracle Engineered Systems implementations and Oracle technologies. The remainder of the document discusses specific methods for migrating databases to the Oracle Cloud, including using Oracle Database Cloud Service, choosing appropriate migration methods based on factors like database version and downtime tolerance, and techniques like using Oracle Database Cloud Backup Module or Data Pump to perform the migration.
Moving Your Oracle Databases To The Oracle CloudAlex Zaballa
This document discusses moving Oracle databases to the Oracle Cloud. It begins with an introduction to cloud concepts and provides an overview of Oracle Cloud Infrastructure (OCI) regions, availability domains, and compartments. It then reviews the different Oracle Database Cloud services available, including Database Cloud Service, Exadata Cloud Service, and Exadata Express Cloud Service. The remainder of the document focuses on concepts related to OCI, such as networking and Database Cloud Service (DBCS) architecture.
This document provides an overview of SQL tuning and various tools that can be used for SQL tuning. It begins with an introduction to SQL tuning and the importance of understanding whether issues are occurring proactively or reactively. It then discusses tools that can be used for proactive and reactive SQL tuning, including the AWR report, SQLTXPLAIN, SQLD360, DBMS_XPLAN, SQL Monitor, and event 10053 tracing. The document also covers topics like full table scans, row-by-row processing, analyzing tables, and tracing the optimizer.
The document provides an overview of SQL tuning techniques. It discusses both proactive and reactive tools for SQL tuning including AWR reports, SQL Monitor, DBMS_XPLAN, and EVENT 10053 tracing. It also covers topics like full table scans, analyzing tables, row-by-row processing versus bulk processing, and the costs and benefits of indexes. Demo sections show how to use various tools like SQLD360, DBMS_XPLAN and SQL Monitor.
DBA Commands and Concepts That Every Developer Should Know - Part 2Alex Zaballa
This document provides a summary of several database administration (DBA) commands and concepts relevant for developers. It discusses topics such as count(1) vs count(*), gathering system statistics, setting the DB_FILE_MULTIBLOCK_READ_COUNT parameter, analyzing tables, explaining plans, monitoring SQL performance, full table scans, pending statistics, restoring statistics history, parallel DML, Flashback Query, DBMS_APPLICATION_INFO, and privileges for reading tables. The document is intended to help developers better understand and work with database configurations and operations.
DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
The document provides an overview of various DBA commands and concepts that every developer should know, including:
- Explain Plan and how it can sometimes provide inaccurate predictions of query performance
- Using DBMS_XPLAN.DISPLAY_CURSOR to view the actual execution plan for a SQL statement
- SQL Monitor and tools like SQLTXPLAIN and SQLD360 for monitoring SQL performance
- Factors that influence whether a Full Table Scan is more efficient than an index scan
- Techniques for analyzing tables, managing statistics, and using invisible indexes.
LET’S GET STARTED WITH ORACLE DATABASE CLOUDAlex Zaballa
The document provides an overview of Oracle Database Cloud services, including common use cases, software editions, and key features like scaling, backups, patching, and using the backup module to backup databases to the cloud. It discusses Oracle Database Cloud Service, Exadata Cloud Service, Exadata Cloud Machine, and other cloud offerings and how they compare.
DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
The document provides an overview of various DBA commands and concepts that developers should know, including:
- Explain Plan and how it can sometimes provide inaccurate predictions of query performance
- Using DBMS_XPLAN.DISPLAY_CURSOR to view the actual execution plan for a SQL statement
- SQL Monitor and tools like SQLT and SQLD360 for monitoring SQL performance
- Factors that influence whether a full table scan or index scan is more efficient
- The costs associated with maintaining indexes on tables
Oracle Database 12c - New Features for Developers and DBAsAlex Zaballa
Oracle Database 12c includes over 500 new features designed to support cloud computing, big data, security, and availability. Key features include support for up to 4096 pluggable databases, hot cloning without placing the source database in read-only mode, sharding capabilities, in-memory column storage, application containers, improved resource management isolation, and AWR support on Active Data Guard databases. Other notable features include enhanced JSON support, data redaction for security, row limits and offsets for queries, invisible columns, SQL text expansion, PL/SQL from SQL, session-level sequences, extended data types up to 32K, multiple indexes on the same columns, READ privileges without row locking ability, session private statistics for global temporary tables,
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
This document summarizes a presentation on DBA commands and concepts that every developer should know. The presentation covers topics such as:
- Using SQLcl and DBMS_XPLAN to analyze query performance
- Leveraging parallelism to improve query performance
- Using Flashback Query and Flashback Table to view and recover past data
- Performing table recovery with RMAN
- Managing database schemas and statistics
- Implementing security with Virtual Private Database
Moving your Oracle Databases to the Oracle CloudAlex Zaballa
This document discusses moving Oracle databases to Oracle Cloud. It begins with introductions and background on the presenter. It then provides an overview of various Oracle Database Cloud services and options for migrating Oracle databases to the cloud. Specific migration methods like Data Pump export/import, transportable tablespaces, and full transportable are described. Considerations for choosing a migration method based on database version and architecture are also covered.
Os melhores recursos novos do Oracle Database 12c para desenvolvedores e DBAs...Alex Zaballa
Esta sessão irá analisar quais dos novos recursos do Oracle Database 12c são os mais interessantes para DBAs e desenvolvedores e dará exemplos de como utilizá-los.
#oowbr
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
The document provides an overview of DBA commands and concepts that every developer should know. It includes sections on availability of Oracle Database 12c, parallel queries, row chaining and migration, explain plans, Oracle Flashback Query and Table, schema management, rollbacks, pending statistics, bulk processing vs row-by-row, Virtual Private Database, extended data types, SQL text expansion, identity columns, and virtual columns. The presentation aims to help developers better understand database administration tasks and functionality.
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
Oracle Database 12c introduces many new features for developers and DBAs. These include native support for JSON, data redaction capabilities, improved SQL query functionality using row limits and offsets, and new PL/SQL features like calling functions from SQL. The presentation provides demonstrations of these new features.
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...Alex Zaballa
This document summarizes new features in Oracle Database 12c Release 2 running on Oracle Database Exadata Express Cloud Service. Key features include longer identifier names up to 128 bytes, native support for JSON, improved functions for data conversion errors and LISTAGG, online conversion of non-partitioned tables to partitioned tables, read-only partitions, and approximate query processing. The presentation provides demonstrations of several new features.
Oracle SQL Tuning 101 provides an overview of SQL tuning concepts and tools in Oracle Database. It discusses database tuning versus SQL tuning, proactive versus reactive tuning approaches, tools for SQL tracing and monitoring like SQL Trace, ASH, Autotrace, and SQL Monitor. The document also covers topics like full table scans, adaptive optimization features, pending statistics, and restoring or exporting statistics.
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...Alex Zaballa
Oracle Database 12c includes many new tuning features for developers and DBAs. Some key features include:
- Multitenant architecture allows multiple pluggable databases to consolidate workloads on a single database instance for improved utilization and administration.
- In-memory column store enables real-time analytics on frequently accessed data held entirely in memory for faster performance.
- New SQL syntax like FETCH FIRST for row limiting and offsetting provides more readable and intuitive replacements for previous techniques.
- Adaptive query optimization allows queries to utilize different execution plans like switching between nested loops and hash joins based on runtime statistics for improved performance.
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores - GUOB - OTN TOUR LA - 2015
1. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Oracle Database 12c
Novas Características para DBAs e
Desenvolvedores
Presented by:
Alex Zaballa, Oracle DBA
2. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Alex Zaballa
http://alexzaballa.blogspot.com/
@alexzaballa
145 and counting…
3. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
4. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Worked 8 years for the Ministry of Finance
March - 2007 until March - 2015
5. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
6. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
7. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
ORACLE ACE PROGRAM
http://www.oracle.com/technetwork/community/oracle-ace/index.html
8. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
9. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
https://community.oracle.com/community/other-languages/portuguese
10. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Oracle Database 12c
Novas Características para DBAs e
Desenvolvedores
11. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Documentação Oficial - 12.1.0.2
• http://docs.oracle.com/database/121/NEWFT
/chapter12102.htm
12. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Artigos – 12c
• https://oracle-base.com/articles/12c/articles-
12c
• http://www.oraclealchemist.com/news/install
-oracle-12c-12-1/
• http://www.profissionaloracle.com.br/
13. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
“With more than 500 new features, Oracle
Database 12c is designed to give Oracle
customers exactly what they’ve told us they
need for cloud computing, big data, security,
and availability.”
14. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Multitenant
OTN - Artigo do Carlos Henrique Yakithi
Furushima
http://www.oracle.com/technetwork/pt/articles
/database-performance/database-multitenant-
oracle-12cr1-2555858-ptb.html
15. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Multitenant
16. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Fonte: Oracle Documentation
17. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Multitenant
Fonte: https://blogs.oracle.com/UPGRADE/entry/non_cdb_architecture_of_oracle
18. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Multitenant
Fonte: https://blogs.oracle.com/UPGRADE/entry/non_cdb_architecture_of_oracle
19. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Multitenant
Fonte: https://blogs.oracle.com/UPGRADE/entry/non_cdb_architecture_of_oracle
20. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Memory
OTN - Artigo do Flávio Soares
http://www.oracle.com/technetwork/pt/articles
/database-performance/oracle-database-12c-in-
memory-2595527-ptb.html
21. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Memory
Fonte: Oracle Documentation
22. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SIMD Vector Processing
Fonte: http://www.oracle.com/technetwork/database/in-memory/overview/twp-
oracle-database-in-memory-2245633.html
23. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Memory
In-Memory Area – Pool estático que faz parte
da SGA
24. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Memory
Fonte: OracleBase.com
25. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Memory
Alter table hr.EMPLOYEES inmemory;
ALTER TABLE sales MODIFY PARTITION SALES_Q1_1998
NO INMEMORY;
ALTER TABLE sales INMEMORY NO INMEMORY(prod_id);
CREATE TABLESPACE tbs_test
DATAFILE '+DG01 SIZE 100M
DEFAULT INMEMORY;
26. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Memory
Fonte: http://www.oracle.com/technetwork/database/in-memory/overview/twp-
oracle-database-in-memory-2245633.html
27. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
JSON
OTN - Artigo do Alex Zaballa
http://www.oracle.com/technetwork/pt/articles
/sql/json-oracle-database-12c-2378776-
ptb.html
28. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
JSON
• No Oracle Database 12c (12.1.0.2), foi
adicionado o suporte nativo ao JavaScript
Object Notation (JSON).
• O JSON é um formato leve para intercâmbio
de dados que é relativamente fácil para o ser
humano ler e escrever, além de ser fácil para
os softwares analisarem e gerarem.
29. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
JSON
30. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
JSON
31. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Data Redaction
OTN - Artigo do Alex Zaballa
http://www.oracle.com/technetwork/pt/articles
/idm/funcionalidade-data-redaction-12c-
2209076-ptb.html
32. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Data Redaction
• Parte do pacote Advanced Security
• Proteção em tempo real, sem a
necessidade de alterar a aplicação
• Foi portado para o Oracle Database
11.2.0.4
33. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Data Redaction
34. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Data Redaction
35. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL Query Row Limits and Offsets
36. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL Query Row Limits and Offsets
create table tabela_teste (codigo number, nome varchar2(20), salario
number);
insert into tabela_teste values (1,'Alex' ,100);
insert into tabela_teste values (2,'Joao' ,200);
insert into tabela_teste values (3,'Maria' ,300);
insert into tabela_teste values (4,'Pedro',400);
insert into tabela_teste values (5,'Paulo',500);
insert into tabela_teste values (6,'Fernando',600);
insert into tabela_teste values (7,'Rafael',700);
insert into tabela_teste values (8,'Samuel',700);
insert into tabela_teste values (9,'Daniel',800);
insert into tabela_teste values (10,'Luciano',1000);
37. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL Query Row Limits and Offsets
Top-N Queries – Pré 12c
select * from ( select codigo, nome, salario
from tabela_teste
order by salario desc)
where rownum <= 5
38. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL Query Row Limits and Offsets
select codigo, nome, salario
from tabela_teste
order by salario desc
FETCH FIRST 5 ROWS ONLY
39. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL Query Row Limits and Offsets
select codigo, nome, salario
from tabela_teste
order by salario
FETCH FIRST 30 PERCENT ROWS ONLY
40. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL Query Row Limits and Offsets
select codigo, nome, salario
from tabela_teste
order by salario desc
OFFSET 2 ROWS FETCH NEXT 2 ROWS ONLY;
41. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Invisible Columns
CREATE TABLE tabela_teste
(
coluna1 NUMBER,
coluna2 NUMBER,
coluna3 NUMBER INVISIBLE,
coluna4 NUMBER
);
SQL> desc tabela_teste
Name
-----------------------------------------
COLUNA1 NUMBER
COLUNA2 NUMBER
COLUNA4 NUMBER
42. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Invisible Columns
INSERT INTO tabela_teste
(coluna1,coluna2,coluna3,coluna4) VALUES
(1,2,3,4);
INSERT INTO tabela_teste VALUES (1,2,4);
43. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Invisible Columns
SET COLINVISIBLE ON
SQL> desc tabela_teste
Name
-----------------------------------------
COLUNA1 NUMBER
COLUNA2 NUMBER
COLUNA4 NUMBER
COLUNA3 (INVISIBLE) NUMBER
44. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Invisible Columns
ALTER TABLE tabela_teste MODIFY coluna3 VISIBLE;
45. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Approximate Count Distinct
Uma alternativa para a função COUNT (DISTINCT expr)
46. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL Text Expansion
SQL> variable retorno clob
SQL> begin
dbms_utility.expand_sql_text( input_sql_text
=> 'select * from emp', output_sql_text=>
:retorno );
end;
47. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL Text Expansion
• Views
• VPDs
48. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
PL/SQL From SQL
with
function Is_Number
(x in varchar2) return varchar2 is
Plsql_Num_Error exception;
pragma exception_init(Plsql_Num_Error, -06502);
begin
if (To_Number(x) is NOT null) then
return 'Y';
else
return '';
end if;
exception
when Plsql_Num_Error then
return 'N';
end Is_Number;
select rownum, x, is_number(x) is_num from t;
49. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Session Level Sequences
Session level sequences são utilizadas para
produzir valores únicos dentro de uma sessão.
Assim que a sessão termina, a sequence é
reinicializada.
Elas são muito utilizadas para gerar valores de
Primary Keys em Global Temporary Tables.
50. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Session Level Sequences
CREATE SEQUENCE sequence_teste
START WITH 1
INCREMENT BY 1
SESSION
/
51. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Session Level Sequences
ALTER SEQUENCE sequence_teste
SESSION;
ALTER SEQUENCE sequence_teste
GLOBAL;
52. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Extended Data Types
SQL> create table tabela_teste(campo01
varchar2(4001));
*
ERROR at line 1:
ORA-00910: specified length too long for its
datatype
53. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Extended Data Types
- VARCHAR2 : 32767 bytes
- NVARCHAR2 : 32767 bytes
- RAW : 32767 bytes
54. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Extended Data Types
SHUTDOWN IMMEDIATE;
STARTUP UPGRADE;
ALTER SYSTEM SET max_string_size=extended;
@?/rdbms/admin/utl32k.sql
SHUTDOWN IMMEDIATE;
STARTUP;
**Após aumentar o tamanho máximo dos tipos de dados, não é possível desfazer
esta alteração.
55. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Session private statistics for Global
Temporary Tables
Até o 12c, as estatísticas para tabelas
temporárias globais (GTTs) eram comuns para
todas as sessões.
56. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Session private statistics for Global
Temporary Tables
SELECT
DBMS_STATS.get_prefs('GLOBAL_TEMP_TABLE_STATS')
Stats FROM dual;
STATS
------------------------------------------------------------------------------
SESSION
57. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Session private statistics for Global
Temporary Tables
BEGIN
DBMS_STATS.set_global_prefs (
pname => 'GLOBAL_TEMP_TABLE_STATS',
pvalue => 'SHARED');
END;
/
BEGIN
DBMS_STATS.set_global_prefs (
pname => 'GLOBAL_TEMP_TABLE_STATS',
pvalue => 'SESSION');
END;
/
58. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Session private statistics for Global
Temporary Tables
BEGIN
dbms_stats.set_table_prefs('SCOTT','GTT_TESTE','GLOB
AL_TEMP_TABLE_STATS','SHARED');
END;
BEGIN
dbms_stats.set_table_prefs('SCOTT','GTT_TESTE','GLOB
AL_TEMP_TABLE_STATS','SESSION');
END;
59. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Temporary Undo
Uma Global Temporary Table armazena seus dados
em uma temporary tablespace e estes dados são
mantidos durante a transação ou durante toda a
sessão (ON COMMIT DELETE ROWS ou ON COMMIT
PRESERVE ROWS).
Instruções DML em Global Temporary Tables não
geram REDO, devido ao fato destes dados estarem
armazenados em uma temporary tablespace, mas
geram UNDO e isto sim implicará na geração de
REDO.
60. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Temporary Undo
alter session set temp_undo_enabled=true;
**pode ser alterado a nível de banco de dados
ou de sessão.
61. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Multiple Indexes on the same set of
Columns
Pré 12c:
ORA-01408: such column list already indexed
error.
62. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Multiple Indexes on the same set of
Columns
No 12c é possível ter vários índices em uma
mesma coluna ou lista de colunas.
A criação de um índice sobre uma coluna ou lista
de colunas que já foram indexadas é simples e
você tem que garantir que apenas um índice
será visível.
63. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Multiple Indexes on the same set of
Columns
• Unique versus nonunique
• B-tree versus bitmap
• Different partitioning strategies
64. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
READ Object Privilege and READ ANY
TABLE System Privilege
Qual a diferença para SELECT e SELECT ANY
TABLE?
65. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
READ Object Privilege and READ ANY
TABLE System Privilege
O privilégio de objeto SELECT e o privilégio de
sistema SELECT ANY TABLE permitem bloquear
as linhas de uma tabela através da execução das
seguintes operações:
LOCK TABLE table_name IN EXCLUSIVE MODE;
SELECT ... FROM table_name FOR UPDATE;
66. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
READ Object Privilege and READ ANY
TABLE System Privilege
SQL> grant select on scott.emp to teste;
Grant succeeded.
SQL> lock table scott.emp in exclusive mode;
Table(s) Locked.
67. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
READ Object Privilege and READ ANY
TABLE System Privilege
SQL> grant read on scott.emp to teste;
Grant succeeded.
SQL> lock table scott.emp in exclusive mode;
lock table scott.emp in exclusive mode
*
ERROR at line 1:
ORA-01031: insufficient privileges
68. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Truncate Cascade
SQL> truncate table scott.dept;
truncate table scott.dept
*
ERROR at line 1:
ORA-02266: unique/primary keys in table
referenced by enabled foreign keys
69. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Truncate Cascade
SQL> truncate table scott.dept cascade;
Table truncated.
A constraint deve ser do tipo ON DELETE
CASCADE.
70. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL*Loader Express
• No modo express, não é necessário criar o
arquivo de controle.
• O objetivo principal é salvar tempo e diminuir
o esforço.
• O express mode pode ser utilizado quando
todas as colunas são do tipo character,
number ou datetime
71. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL*Loader Express
[oracle@oracle01 tmp]$ cat EMPRESA.dat
1,Empresa 1
2,Empresa 2
3,Empresa 3
4,Empresa 4
5,Empresa 5
6,Empresa 6
7,Empresa 7
8,Empresa 8
9,Empresa 9
72. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQL*Loader Express
[oracle@oracle01 tmp]$ sqlldr teste/teste TABLE=EMPRESA
SQL*Loader: Release 12.1.0.1.0 - Production on Sat Jan 11 12:16:28 2014
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Express Mode Load, Table: EMPRESA
Path used: External Table, DEGREE_OF_PARALLELISM=AUTO
Table EMPRESA:
9 Rows successfully loaded.
Check the log files:
EMPRESA.log
EMPRESA_%p.log_xt
for more information about the load.
73. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Limit the PGA
SQL> show parameter pga
NAME TYPE VALUE
-------------------------- ------------- ----------------------
pga_aggregate_limit big integer 2G
74. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Limit the PGA
PGA_AGGREGATE_LIMIT é setado como default
para o maior valor entre:
- 2 GB (valor default)
- 200% do valor do parâmetro
PGA_AGGREGATE_TARGET
- 3 MB multiplicado pelo valor do parâmetro
PROCESSES
75. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Statistics During Loads
O banco de dados irá coletar estatísticas
automaticamente das tabelas durante os
seguintes tipos de operações bulk load:
- CREATE TABLE AS SELECT
- INSERT INTO ... SELECT into an empty table
using a direct path insert
76. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Partial Indexes for Partitioned Table
• Você pode criar os índices (globais ou locais)
para partições ou sub-partições específicas,
isto é, os índices serão criados apenas para
partições/sub-partições que você deseja.
• Este recurso não é suportado para índices
únicos, ou seja, para índices utilizados para
impor restrições exclusivas.
77. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Partial Indexes for Partitioned Table
78. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Full Database Caching
Este novo recurso permite armazenar todos os
segmentos do banco de dados em memória
(quando os segmentos forem acessados).
79. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Recuperando Tabelas com o RMAN
• Utilizado para recuperação de tabelas/partições
de um backup realizado pelo RMAN.
• Este comando, diminui o tempo e a complexidade
da restauração, permitindo a recuperação “point-
in-time” apenas da tabela/partição, ao invés de
toda tablespace como era nas versões anteriores.
• É muito útil quando não temos informações
suficientes no UNDO para utilizar o Flashback
Table.
80. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Recuperando Tabelas com o RMAN
RMAN> RECOVER TABLE HR.REGIONS
UNTIL TIME "TO_DATE('01/10/2013
09:33:39','DD/MM/RRRR HH24:MI:SS')"
AUXILIARY DESTINATION '/tmp/backups'
81. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Identity Columns
CREATE TABLE tabela_teste (
id NUMBER GENERATED ALWAYS AS IDENTITY,
coluna1 VARCHAR2(30));
82. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Identity Columns
CREATE TABLE tabela_teste (
id NUMBER GENERATED BY DEFAULT AS IDENTITY,
coluna1 VARCHAR2(30));
83. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Identity Columns
CREATE TABLE tabela_teste (
id NUMBER GENERATED BY DEFAULT ON NULL AS
IDENTITY,
coluna1 VARCHAR2(30));
84. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Database Archiving
SQL> create table tabela_teste(coluna1 number)
row archival;
insert into tabela_teste values(1);
insert into tabela_teste values(2);
insert into tabela_teste values(3);
85. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Database Archiving
86. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Database Archiving
update tabela_teste
set ora_archive_state=DBMS_ILM.ARCHIVESTATENAME(1)
where coluna1=3;
87. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
In-Database Archiving
alter session set row archival visibility=all;
88. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Heat Map, Automatic Data
Optimization and ILM
OTN - Artigo do Alex Zaballa e Daniel Da Meda
http://www.oracle.com/technetwork/pt/articles
/database-performance/ilm-e-automatic-data-
optimization-2601873-ptb.html
89. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Heat Map, Automatic Data
Optimization and ILM
• Heat Map: Oracle Database 12c feature that stores system-
generated data usage statistics at the block and segment
levels. Automatically tracks modification and query
timestamps at the row and segment levels.
• Automatic Data Optimization (ADO): automatically moves
and compresses data according to user-defined policies
based on the information collected by Heat Map
• ILM: Heat Map and Automatic Data Optimization make
Oracle Database 12c ideal for implementing ILM
90. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Heat Map, Automatic Data
Optimization and ILM
Habilitando o Heat Map
SQL> alter system set heat_map = on;
91. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Heat Map, Automatic Data
Optimization and ILM
As estatísticas de Heat Map visualizadas
graficamente através do EM Cloud Control:
92. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Heat Map, Automatic Data
Optimization and ILM
Criando políticas ADO
Comprimir a tablespace USER_DATA e todos os seus
segmentos utilizando compressão OLTP após 30 dias de
baixo acesso:
ALTER TABLESPACE USER_DATA ILM ADD POLICY
ROW STORE COMPRESS ADVANCED
SEGMENT AFTER 30 DAYS OF LOW ACCESS;
93. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Heat Map, Automatic Data
Optimization and ILM
Criando políticas ADO
Comprimir a tabela ORDER_ITEMS incluindo qualquer
SecureFile LOB utilizando compressão OLTP após 90 dias sem
modificações.
ALTER TABLE ORDER_ITEMS ILM ADD POLICY
ROW STORE COMPRESS ADVANCED
GROUP AFTER 90 DAYS OF NO MODIFICATION;
94. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
DDL LOGGING
95. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
DDL LOGGING
/u01/app/oracle/diag/rdbms/orcl/orcl/log/ddl/log.xml
96. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Direct SQL statement execution in
RMAN
Pré 12c:
RMAN> SQL ‘SELECT sysdate FROM dual’;
12c:
RMAN> SELECT sysdate FROM dual;
97. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
SQLcl
98. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
99. 08 de Agosto de 2015 no Hotel Blue Tree Morumbi, São Paulo - SP
Thank You