1. Oracle Database 11g Release 2 introduced deferred segment creation, which allows segments like tables and indexes to delay allocating their initial extent until the first row is inserted. This avoids unnecessary upfront space usage for segments that may see little actual data.
2. Traditionally, segments would allocate space for the initial extent immediately upon creation. But many applications create thousands of tables where only a small subset see real use.
3. With deferred segment creation, space is only used when needed, improving space efficiency for applications that create many rarely used segments.
PRIV: Get the Most Out of Your New BlackBerry SmartphoneBlackBerry
Simple steps on how to get acquainted with your new BlackBerry PRIV's key features. This quick how-to guide will help you make the most of PRIV with information on details including:
* Access to over 1 million applications on Google Play™
* Both touch and slide out physical keyboards
* 5.4" Quad HD dual-curved screen
* Long lasting 3410 mAh battery
* Schneider-Kreuznach® certified 18 MP dual flash camera
* BlackBerry Hub and Calendar
* DTEK™ by BlackBerry® warning system app to provide
you with the power of privacy
Resolucion cd. 390 Reglamento del Seguro General de Riesgos del TrabajoOmar Suárez Oquendo
El Reglamento del Seguro General de Riesgos del Trabajo protege al afiliado y al empleador, mediante programas de prevención de los riesgos derivados del trabajo, acciones de reparación de los daños derivados de accidentes del trabajo y enfermedades profesionales u ocupacionales, incluida la rehabilitación física y mental y la reinserción laboral.
Top 10 function interview questions with answersbrownmichael917
In this file, you can ref interview materials for function such as, function situational interview, function behavioral interview, function phone interview, function interview thank you letter, function interview tips …
These slides are from OpenWorld 2018. We covered
- conventional CONNECT BY syntax in Oracle
- extensions that were introduced in more recent versions
- the recursive WITH clause
Slides from the APEXConnect 2018 conference in Dusseldorf.
APEX is amazing and most SQL is taken care of automatically. But by delving a little deeper into more advanced SQL facilities, we can get performance benefits and write a lot less middle-tier code. This session highlights some SQL techniques to solve problems that would otherwise require a lot of complex coding. Learn how to become a more productive developer by expanding your knowledge of the SQL language.
Do you want to get up to speed with the most current release of Oracle Database? If so, this session is for you. You will learn about the most exciting and useful new features of Oracle Database 12c that can make your work as a database developer a lot easier. There is more to Oracle Database 12c than just pluggable databases.
Do you want to get up to speed with the most current release of Oracle Database? If so, this session is for you. You will learn about the most exciting and useful new features of Oracle Database 12c that can make your work as a database developer a lot easier. There is more to Oracle Database 12c than just pluggable databases.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
3. Incrementally modify a table in parallel
• Used to do this manually all of the time
– Search for ‘diy parallel’ on asktom…
– Spent part of a chapter on ‘how to’ in Expert Oracle Database
Architecture
• I split by rowid ranges
– Split table into N equi-sized, non-overlapping chunks
– Create a job passing in the low and high rowids for each
range
– Job would process “where rowid between :lo and :hi”
• Or by primary key ranges using NTILE()
• DBMS_PARALLEL_EXECUTE automates both
approaches and makes it easy (and more functional)
Diyp.sql
4. Do It Yourself Parallelism
ops$tkyte%ORA11GR2> create table t
2 as
3 select *
4 from stage
5 /
Table created.
ops$tkyte%ORA11GR2> exec dbms_stats.gather_table_stats( user, 'T' );
PL/SQL procedure successfully completed.
ops$tkyte%ORA11GR2> select blocks, blocks/10
from user_tables where table_name = 'T';
BLOCKS BLOCKS/10
---------- ----------
1054 105.4
6. Do It Yourself Parallelism
ops$tkyte%ORA11GR2> select chunk_id, status, start_rowid, end_rowid
2 from dba_parallel_execute_chunks
3 where task_name = 'update t'
4 and rownum <= 5
5 /
CHUNK_ID STATUS START_ROWID END_ROWID
---------- -------------------- ------------------ ------------------
302 UNASSIGNED AAAVplAAEAAAASIAAA AAAVplAAEAAAASPCcP
301 UNASSIGNED AAAVplAAEAAAASAAAA AAAVplAAEAAAASHCcP
332 UNASSIGNED AAAVplAAEAAATR4AAA AAAVplAAEAAATR/CcP
331 UNASSIGNED AAAVplAAEAAATRwAAA AAAVplAAEAAATR3CcP
330 UNASSIGNED AAAVplAAEAAATRoAAA AAAVplAAEAAATRvCcP
7. Do It Yourself Parallelism
ops$tkyte%ORA11GR2> begin
2 dbms_parallel_execute.run_task
3 ( task_name => 'update t',
4 sql_stmt => 'update t
5 set object_name = lower(object_name)
6 where rowid between :start_id
7 and :end_id',
8 language_flag => DBMS_SQL.NATIVE,
9 parallel_level => 2 );
10 end;
11 /
PL/SQL procedure successfully completed.
8. Do It Yourself Parallelism
ops$tkyte%ORA11GR2> select chunk_id, status, start_rowid, end_rowid
2 from dba_parallel_execute_chunks
3 where task_name = 'update t'
4 and rownum <= 5
5 /
CHUNK_ID STATUS START_ROWID END_ROWID
---------- -------------------- ------------------ ------------------
303 PROCESSED AAAVplAAEAAAASQAAA AAAVplAAEAAAASXCcP
304 PROCESSED AAAVplAAEAAAASYAAA AAAVplAAEAAAASfCcP
305 PROCESSED AAAVplAAEAAAASgAAA AAAVplAAEAAAASnCcP
306 PROCESSED AAAVplAAEAAAASoAAA AAAVplAAEAAAASvCcP
307 PROCESSED AAAVplAAEAAAASwAAA AAAVplAAEAAAAS3CcP
9. 2 Analytics are the coolest thing to happen
to SQL since the keyword SELECT
10. More Analytics!
• Long awaited LISTAGG
– First did STRAGG in 9iR2 with user defined aggregates
– Oracle Database 10g gave us a sys_connect_by_path ‘trick’
– Oracle Database 11g Release 2 makes it ‘easy’
11. Analytics Rock and Roll
SQL> select deptno,
2 listagg( ename, '; ' )
3 within group
4 (order by ename) enames
5 from emp
6 group by deptno
7 order by deptno
8 /
DEPTNO ENAMES
---------- --------------------
10 CLARK; KING; MILLER
20 ADAMS; FORD; JONES;
SCOTT; SMITH
30 ALLEN; BLAKE;
JAMES; MARTIN;
TURNER; WARD
12. Analytics Rock and Roll
SQL> select deptno,
2 ename,
3 row_number()
4 over (partition by deptno
5 order by ename) rn,
6 first_value(ename)
7 over (partition by deptno
8 order by ename) "1st ename",
9 nth_value(ename,3)
10 over (partition by deptno
11 order by ename
12 rows between unbounded preceding
13 and unbounded following) "3rd ename",
14 last_value(ename)
15 over (partition by deptno
16 order by ename
17 rows between current row
18 and unbounded following) "last ename"
19 from emp
20 order by deptno, ename
21 /
13. Analytics Rock and Roll
DEPTNO ENAME RN 1st e 3rd en last e
------ ------ -- ----- ------ ------
10 CLARK 1 CLARK MILLER MILLER
SQL> select deptno, 10 KING 2 CLARK MILLER MILLER
2 ename,
3 row_number() 10 MILLER 3 CLARK MILLER MILLER
4 over (partition by deptno
5 order by ename) rn,
20 ADAMS 1 ADAMS JONES SMITH
6 first_value(ename) 20 FORD 2 ADAMS JONES SMITH
7 over (partition by deptno
8 order by ename) "1st ename", 20 JONES 3 ADAMS JONES SMITH
9 nth_value(ename,3)
10 over (partition by deptno 20 SCOTT 4 ADAMS JONES SMITH
11 order by ename
12 rows between unbounded preceding
20 SMITH 5 ADAMS JONES SMITH
13 and unbounded following) "3rd ename",
30 ALLEN 1 ALLEN JAMES WARD
14 last_value(ename)
15 over (partition by deptno 30 BLAKE 2 ALLEN JAMES WARD
16 order by ename
17 rows between current row 30 JAMES 3 ALLEN JAMES WARD
18 and unbounded following) "last ename"
19 from emp 30 MARTIN 4 ALLEN JAMES WARD
20 order by deptno, ename
21 /
30 TURNER 5 ALLEN JAMES WARD
30 WARD 6 ALLEN JAMES WARD
14 rows selected.
15. External Tables can run code now
• External tables allow for a preprocessor
– Program is run when you SELECT from external table
– The ‘location’ is passed to the script/executable
– The executable does whatever it wants and writes to stdout
– Stdout is treated as the input file
• We need a way to control who can do what
• GRANT EXECUTE ON DIRECTORY handles that
16. EXECUTE and PREPROCESSOR
ops$tkyte%ORA11GR2> CREATE or replace DIRECTORY load_dir
2 AS '/mnt/hgfs/docs/Presentations/Seminar/11gr2'
3 /
Directory created.
ops$tkyte%ORA11GR2> CREATE or replace DIRECTORY exec_dir
2 AS '/mnt/hgfs/docs/Presentations/Seminar/programs'
3 /
Directory created.
18. EXECUTE and PREPROCESSOR
ops$tkyte%ORA11GR2> !file emp.dat.gz
emp.dat.gz: gzip compressed data, was "emp.dat", from Unix, last
modified: Wed Oct 7 12:48:53 2009
ops$tkyte%ORA11GR2> !cat run_gunzip.sh
#!/bin/bash
/usr/bin/gunzip -c $*
ops$tkyte%ORA11GR2> select empno, ename from emp_et where rownum <= 5;
EMPNO ENAME
---------- ----------
7369 SMITH
7499 ALLEN
7521 WARD
7566 JONES
7654 MARTIN
19. EXECUTE and PREPROCESSOR, interesting idea…
ops$tkyte%ORA11GR2> CREATE TABLE ls
2 (
3 line varchar2(255)
4 )
5 ORGANIZATION external
6 ( TYPE oracle_loader
7 DEFAULT DIRECTORY load_dir
8 ACCESS PARAMETERS
9 ( RECORDS DELIMITED BY NEWLINE
10 preprocessor exec_dir:'run_ls.sh'
11 FIELDS TERMINATED BY "|" LDRTRIM
12 )
13 location ( 'run_ls.sh')
14 )
15 /
Table created.
20. EXECUTE and PREPROCESSOR, interesting idea…
ops$tkyte%ORA11GR2> select * from ls;
LINE
---------------------------------------------------------------
11 things about 11gr2.ppt
diyp.sql
ebr.old.sql
ebr.sql
emp.ctl
emp.dat.gz
EMP_ET_26122.log
emp_et.sql
LS_26122.log
run_gunzip.sh
run_ls.sh
11 rows selected.
22. Recursive Subquery Factoring
• ANSI SQL replacement for connect by
• Can be
– Easier to understand than connect by
– Unless of course, you have been using connect by for 22
years – in which case it looks confusing
23. Recursive Subquery Factoring
ops$tkyte%ORA11GR2> with emp_data(ename,empno,mgr,l)
2 as
3 (select ename, empno, mgr, 1 lvl from emp where mgr is null
4 union all
5 select emp.ename, emp.empno, emp.mgr, ed.l+1
6 from emp, emp_data ed
7 where emp.mgr = ed.empno
8 )
9 SEARCH DEPTH FIRST BY ename SET order_by
10 select l,
11 lpad('*',2*l,'*')||ename nm
12 from emp_data
13 order by order_by
14 /
25. Recursive Subquery Factoring
• ANSI SQL replacement for connect by
• Can be
– Easier to understand than connect by
– Unless of course, you have been using connect by for 22
years – in which case it looks confusing
– Used to solve Sudoku puzzles!
27. How Does Flashback Data Archive Work?
• Primary source for history is the undo
data
• History is stored in automatically created
history tables inside the archive
• Transactions and its undo records on
tracked tables marked for archival
– Undo records not recycled until history is
archived
• History is captured asynchronously by
new background process (fbda)
– Default capture interval is 5 minutes
– Capture interval is self-tuned based on system
activities
– Process tries to maximize undo data reads from
buffer cache for better performance
– INSERTs do not generate history records
28. Oracle Database 11g Release
Total Recall Schema Evolution Support
Flashback Version Query
• Alter base table – history table automatically adjusts
– Drop, Rename, Modify Column
– Drop, Truncate Partition
– Rename, Truncate Table
• Flashback query supported across DDL changes
Column
Add
• Complex DDL changes (e.g. table split) accommodated
Column
Add
– Associate/Diassociate history table via DBMS_FLASHBACK_ARCHIVE
time
time
package
Column
Drop
32. Deferred Segment Creation
• Segments (tables, indexes, etc) normally allocate an
initial extent
• They might be small, but they exist
• If you do something “small” (or fast) over and over a
lot – it gets “big” (or slow)
• Many third party applications create thousands of
tables
– And then use 100 of them
• Deferred segment creation allows us to put off initial
extent allocation until the first row is put into a
segment.
33. Deferred Segment Creation
SQL> alter session set
2 deferred_segment_creation=false;
Session altered.
SQL> create table t1 SQL> select segment_name,
2 ( x int 2 extent_id,
3 constraint t1_pk 3 bytes
4 primary key, 4 from user_extents
5 y int 5 order by segment_name;
6 constraint t1_y
7 unique, SEGMENT_NAM EXTENT_ID BYTES
8 z clob ----------- ---------- ----------
9 ) T1 0 65536
10 lob( z ) T1_PK 0 65536
11 store as t1_z_lob T1_Y 0 65536
12 (index t1_z_lobidx); T1_Z_LOB 0 65536
Table created. T1_Z_LOBIDX 0 65536
34. Deferred Segment Creation
SQL> alter session set
2 deferred_segment_creation=true; No Change!
Session altered.
SQL> create table t2 SQL> select segment_name,
2 ( x int 2 extent_id,
3 constraint t2_pk 3 bytes
4 primary key, 4 from user_extents
5 y int 5 order by segment_name;
6 constraint t2_y
7 unique, SEGMENT_NAM EXTENT_ID BYTES
8 z clob ----------- ---------- ----------
9 ) T1 0 65536
10 lob( z ) T1_PK 0 65536
11 store as t2_z_lob T1_Y 0 65536
12 (index t2_z_lobidx); T1_Z_LOB 0 65536
Table created. T1_Z_LOBIDX 0 65536
37. Oracle Database 11g Release 2
Reduce I/O bandwidth requirement with Flash Cache
• A transparent extension of the database buffer cache
using solid-state disk (SSD) technology
– SSD acts as a Level 2 cache (SGA is Level 1)
• Faster than disk (100x faster for reads)
• Cheaper than memory ($50 per gigabyte)
• Large capacity (hundreds of gigabytes per flash disk)
• Fewer drives and better performance
– For I/O throughput, users often use hundreds of drives today
– Flash enables I/O throughput without all the drives
– Large jobs complete faster
39. Automated Degree of Parallelism
How it works
SQL Statement is hard parsed
And optimizer determines If estimated time Optimizer determines
statement greater than threshold ideal DOP
the execution plan
Actual DOP = MIN(default DOP, ideal DOP)
If estimated time
less than threshold
PARALLEL_MIN_TIME_THRESHOLD
Statement
executes in parallel
Statement
executes serially
40. Parallel Statement Queuing
How it works
SQL Statement is parsed If not enough parallel
statements and Oracle automatically servers available queue
determines DOP
64 64
32 32
16 128
16
FIFO Queue
When the required
number of parallel servers
If enough parallel become available the first
servers available stmt on the queue is
execute immediately dequeued and executed
8
128
41. In-Memory Parallel Execution
How it works
SQL Determine the size of the Table is a good candidate Fragments of Table are
statement table being looked at for In-Memory Parallel read into each node’s
Execution buffer cache
Table is
Table is extremely small extremely Large
Read into the buffer
cache on any node
Only parallel server on
the same RAC node
will access each
Always use direct read fragment
from disk
43. Yes, this is here twice
But only because
It is the killer feature
Of Oracle Database 11g Release 2
It is worth 2 features
10+Edition-based
Redefinition!
48. Online Application Upgrade
Edition-based redefinition
demo%ORA11GR2> connect /
Connected.
ops$tkyte%ORA11GR2> alter user demo enable editions
2 /
User altered.
ops$tkyte%ORA11GR2> grant use on edition version2 to demo
2 /
Grant succeeded.
When a SQL statement is executed it will be hard parsed and a serial plan will be developed The expected elapse time of that plan will be examined. If the expected Elapse time is Less than PARALLEL_MIN_TIME_THRESHOLD then the query will execute serially. If the expected Elapse time is greater than PARALLEL_MIN_TIME_THRESHOLD then the plan Will be re-evaluated to run in parallel and the optimizer will determine the ideal DOP. The Optimizer automatically determines the DOP based on the resource required for all scan operations (full table scan, index fast full scan and so on) However, the optimizer will cap the actual DOP for a statement with the default DOP (parallel_threads_per_cpu X CPU_COUNT X INSTANCE_COUNT), to ensure parallel Processes do not flood the system.
Step 1: SQL Statement is issued and Oracle automatically determines if It will run in parallel and if so what DOP it will get. Step 2: Oracle checks to see if there are enough PQ servers to execute The query. If there are it will execute immediately if there are not then The query will be queued in a FIFO Step 3: Everyone waits in the queue for the statement at the top of the Queue to get all of his requested PQ servers even if there are enough PQ servers available for one of the other statements to run ?????? Step 4: When enough PQ servers are available the statement is De-queued and allowed to execute.