Search results “Oracle shrink all tables”
How to Shrink table in Oracle..
this video will help how to reclaim space from the table.
Views: 1626 oracdb
Table Shrinking in Oracle Database
1.Shrink the Table: Shrinking is started from 10g. In this method I’m using user u1 and table name sm1. Now I’m deleting some rows in sm1 COUNT ---------- 1048576 Table sm1 has 1048576 rows. [email protected]: delete from sm1 where deptno=10; 262144 rows deleted. I deleted above number of rows. Rows COUNT ---------- 786432 And I’m giving commit [email protected]: commit; Commit complete. So now we have 786432 rows in sm1 table. Now see the following command [email protected]: select OWNER,TABLESPACE_NAME,SEGMENT_NAME,SEGMENT_TYPE,BYTES/1024/1024||' mb'"space",BLOCKS,EXTENTS from dba_segments where tablespace_name like 'U%TS'; OWNER TABLESPACE_NAME SEGMENT_NAME SEGMENT_TYPE space BLOCKS EXTENTS ----- --------------- ------------- ------------- ------ ---------- ---------- U1 U1TS SM1 TABLE 29 mb 3712 44 After I deleted some rows in sm1 table still above result showing same values, so now our duty is shrink this table. This is done by following 2 ways, i By using COMPACT key word: In this method shrinking is done in two phases. In the first phase all fragmented space are just defragmented, but still the High Water Mark is persist with last used block only. That mean used free blocks are not de allocated and HWM is not updated here. Issue the following command before use shrink command. [email protected] alter table sm1 enable row movement; Table altered. There is particular use with above command, when we shrink the table all rows are moves to contiguous blocks, so here row movement should be done. By default the row movement is disabled for any table, so above command enabled the row movement. Then execute shrink command now. [email protected]: alter table sm1 shrink space compact; Table altered. Now see the space of table by using below command. [email protected]: select OWNER,TABLESPACE_NAME,SEGMENT_NAME,SEGMENT_TYPE,BYTES/1024/1024||' mb'"space",BLOCKS,EXTENTS from dba_segments where tablespace_name like 'U%TS'; OWNER TABLESPACE_NAME SEGMENT_NAME SEGMENT_TYPE space BLOCKS EXTENTS ----- --------------- ------------- ------------- ------ ---------- ---------- U1 U1TS SM1 TABLE 29 mb 3712 44 So here seems nothing happened with above shrink command, but internally the fragmented space is defragmented. But the high water mark is not updated, used free blocks are also not de allocated. For de allocating the used blocks we have to execute below command. This is the second phase. [email protected]: alter table sm1 shrink space; Table altered. Now see the space by using below command. [email protected]: select OWNER,TABLESPACE_NAME,SEGMENT_NAME,SEGMENT_TYPE,BYTES/1024/1024||' mb'"space",BLOCKS,EXTENTS from dba_segments where tablespace_name like 'U%TS'; OWNER TABLESPACE_NAME SEGMENT_NAME SEGMENT_TYPE space BLOCKS EXTENTS ----- --------------- ------------- ------------- ---------- ---------- ---------- U1 U1TS SM1 TABLE 20.8125 mb 2664 36 So now the space of sm1 table is reduced. Note: Actually the alter table sm1 shrink space command will complete these two phases of the shrinking of table at a time. But here we done shrink process in two phases because when we use alter table sm1 shrink space command the table locked temporarily some time period, during this period users unable to access the table. So if we use alter table sm1 shrink space compact command the table is not locked but space is defragmented. When we not in business hours issue the second phase shrink command then users are won’t get any problem. ii Because of above method the table dependent objects are goes to invalid state, to overcome this problem we have to use below command. [email protected]: alter table sm1 shrink space cascade; Table altered. The above command also shrinks the space of all dependent objects. We also do this in two phases like above two phases. See the below command. [email protected]: alter table sm1 shrink space compact cascade; Table altered. And then [email protected]: alter table sm1 shrink space cascade; Table altered. Transporting tablespace to different platform by Using RMAN : https://www.youtube.com/watch?v=CN401PUKK4A Oracle EBS apps Upgrade from 12 2 to 12 2 5 (start CD 51) : https://www.youtube.com/watch?v=zeO4goqR70Y Transport tablespace by using RMAN.: https://www.youtube.com/watch?v=YG6kWX7Par8
Views: 6512 BhagyaRaj Katta
How to work with Tablespaces in Real-Time? Tablespace Administration
https://dbagenesis.com/p/oracle-11g-advanced-dba Oracle tablespace administration - Learn how to work on tablespaces in real-time. - Tablespace management tasks - Tablespace utilization - Add space to tablespace - Add new tablespace - Tablespace best practices - Drop tablespace A tablespace is constructed by Oracle from one or more operating system files through the use of the CREATE TABLESPACE command. Every Oracle database consists of at least one tablespace, called SYSTEM.
Views: 14013 DBA Genesis
Creating  Managing  Droping Oracle Database Tablespaces
Creating Managing Droping Oracle Database Tablespaces select tablespace_name,block_size,status,contents,logging from dba_tablespaces; create tablespace mytbs datafile 'd:\oradata\dbrdbms\mytbs01.dbf' size 10m; alter tablespace mytbs add datafile 'd:\oradata\dbrdbms\mytbs02.dbf' size 10m; alter tablespace mytbs drop datafile 'd:\oradata\dbrdbms\mytbs02.dbf'; desc v$datafile; desc ts#,name from v$datafile; select ts#,name from v$tablespace; select v$datafile.ts#,v$datafile.name,v$tablespace.name from v$datafile,v$tablespace where v$datafile.ts#=v$tablespace.ts# and v$tablespace.name='MYTBS'; alter database datafile 'd:\oradata\dbrdbms\mytbs01.dbf' resize 20m; ALTER DATABASE DEFAULT TABLESPACE mytbs; select ts#,name from v$tablespace; select ts#,name from v$datafile; select ts#,name from v$tablespace; drop tablespace mytbs; drop tablespace mytbs ialtncluding contents and datafiles; drop tablespace mytbs including contents and datafiles cascade; alter tablespace mytbs read only; alter tablespace mytbs read write; alter tablespace mytbs force logging; alter tablespace mytbs nologging; alter tablespace mytbs flashback on; alter tablespace mytbs flashback off; purge tablespace mytbs user myuser;
Views: 20615 Abbasi Asif
How to Delete Huge Data from a SQL Server Table in Small Chunks - SQL Server / TSQL Tutorial
In this video you will learn how to delete large number of records from a SQL Server Table. By watch this video you will learn following topics 1--How to Delete large number of records from SQL Server Table in small chunks 2--What is the difference between Full Recovery Mode and Simple Recovery Mode 3--Does Transactional Log file grow if we set the database to Simple Recovery and Delete huge number or records? 4--How to get the record count while Transactions is deleting the records by using NoLock Option 5--How to Shrink Log file and release unused space to Operating System 6- How to write script to delete records in small chunks from SQL Server Table Blog post link for scripts used in the video: http://sqlage.blogspot.com/2015/03/how-to-delete-huge-data-from-sql-server.html
Views: 8551 TechBrothersIT
Table size ,Number of records,Disk usage in SQL Database,clear logs,cache
This clip will show you how to check each Table size, Number of records, Disk usage in SQL Database. You can see how to write the query to get details of all tables in terms of size, records, space utilization and free space on disk for tables. http://daynamicsaxaptatutorials.blogspot.com This is axapta ERP blog for Technical and functional fields and includes Microsoft Dynamics Axapta tutorials and Dynamics Axapta Coverage. This blog also contains x++ code help for Ax developer and solution of technical and functional daily issues. This blog is specific for Microsoft dynamics programming. Enterprise portal, SharePoint services, business connectors and Enterprise Resource Planning applications and sql database.It will help to get Microsoft Business Solutions.
Views: 701 Santosh kumar Singh
Database Management System 13 How to Convert ER Diagram into Relation or Table
In This video you will learn how you can convert ER diagram into relations on into a table. Follow me on Facebook facebook.com/himanshu.kaushik.2590 Subscribe to our channel on youtube to get latest updates on Video lectures Our video lectures are helpful for examinations like GATE UGC NET ISRO DRDO BARCH OCES DCES DSSSB NIELIT Placement preparations in Computer Science and IES ESE for mechanical and Electronics. Get access to the most comprehensive video lectures call us on 9821876104/02 Or email us at [email protected] Visit Our websites www.gatelectures.com and www.ugcnetlectures.com For classroom coaching of UGC NET Computer Science or GATE Computer Science please call us on 9821876104 Get complete Access to all our video lectures call us on 982186102/03/04/06 or email us at [email protected] Link to official websites GATE : www.gatelectures.com UGCNET : www.UGCNETLectures.com IITJEE : www.IITJEETutorials.com our social media links Facebook Page : https://www.facebook.com/OnlineGATECoachingClasses/ Facebook Group : https://www.facebook.com/groups/Gatelectures/ Watch the complete Playlist :https://www.youtube.com/playlist?list=PLS8ACsmFCpmRpPKf6gvd2QqdEZ26EdUjU Links of Our Demo lectures playlists Our Courses - https://goo.gl/pCZztL Data Structures - https://goo.gl/HrZE6J Algorithm Design and Analysis - https://goo.gl/hT2JDg Discrete Mathematics - https://goo.gl/QQ8A8D Engineering Mathematics - https://goo.gl/QGzMFv Operating System - https://goo.gl/pzMEb6 Theory of Computation - https://goo.gl/CPBzJZ Compiler Design - https://goo.gl/GhcLJg Quantitative Aptitude - https://goo.gl/dfZ9oD C Programming - https://goo.gl/QRNx54 Computer Networks - https://goo.gl/jYtsCQ Digital Logic - https://goo.gl/3iosMc Database Management System - https://goo.gl/84pCFD Computer Architecture and Organization - https://goo.gl/n9H69F Microprocessor 8085 - https://goo.gl/hz5bvv Artificial Intelligence - https://goo.gl/Y91rk2 Java to Crack OCJP and SCJP Examination - https://goo.gl/QHLKi7 C plus plus Tutorials - https://goo.gl/ex1dLC Linear Programming Problems - https://goo.gl/RnRHXH Computer Graphics - https://goo.gl/KaGsXs UNIX - https://goo.gl/9Le7sX UGC NET November examination video solutions - https://goo.gl/Wos193 NIELIT 2017 Question paper Solutions - https://goo.gl/w9QkaE NIELIT Exam Preparation Videos - https://goo.gl/cXMSyA DSSSB Video Lectures - https://goo.gl/f421JF ISRO 2017 Scientist SC paper Solution - https://goo.gl/bZNssE Computer Graphics - https://goo.gl/uWwtgw Number System Digital logic - https://goo.gl/7Q1vG1 Live Classroom Recordings - https://goo.gl/pB1Hvi Verbal Aptitude - https://goo.gl/oJKwfP Thermodynamics - https://goo.gl/BN5Gd6 Heat and Mass Transfer - https://goo.gl/Lg6DzN Pre and Post GATE Guidance - https://goo.gl/k5Ybnz GATE Preparation Tips by Kishlaya Das GATE AIR 37 - https://goo.gl/jfFWQp For more details of course of DBMS(Database Management System), feel free to call us on our support number 9821876102/04/06 OR Visit our website by clicking the link below :- https://digiimento.com #UGCNET #ComputerScience #DBMS
Views: 82217 DigiiMento Education
TSQL: Rebuild All Indexes For All Tables (Faster)
Will rebuild all indexes for all tables in a database and is much faster than the former video with the WHILE loop.
Views: 1704 SQLInSix Minutes
Fast Load from Hadoop to Oracle Database
Unstructured data (weblogs, social media feeds, sensor data, etc.) is increasingly acquired and processed in Hadoop. Applications need to combine the processed data with structured data in the database for analysis. This session will cover Oracle Loader for Hadoop for high speed load from Hadoop to Oracle Database, from source formats such as Hive tables and weblogs.
Oracle NoSQL Cloud Service
Oracle NoSQL Database, scale your data with the Cloud. A scale-out, low latency key-value database service including support for JSON and Table data types. Built-in high availability, transactions, parallel query, and more. https://cloud.oracle.com/nosqldatabase ================================= For more information, see http://www.oracle.com/goto/oll Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Can you flashback table into SYSTEM tablespace?
Flashback feature in Oracle database is well known to roll back the table to a specific timestamp (depends on undo retention) or to restore dropped table and many more. We must have used this flashback feature so far on application schema objects and found working without any issues. As an Oracle DBA did you configure any tools (might be monitoring, RMAN catalog or any) with objects created in SYSTEM tablespace? If so, you probably would see some problems later when you need to use Flashback on these objects though they are not Oracle supplied objects. Let us go through a case study which will clearly explain you the functionality of Flashback table. Did you like the video? Subscribe now, Like it and share it. Looking for Oracle DBA training or services? redirect to www.orskl.com WhatsApp to +919951696808
Views: 1554 OrSkl Academy
Tables Space en Oracle
Views: 20 Luis Manuel GS
8.How to expdp/impdp Data_only in oracle
Hi guys today i explain how to take exported backup of data_only and how to import into other schema. #Data_only #expdp/impdp Oracle database Unbeatable,Unbreakable Platform..
Views: 1661 Oracle World
Normal Forms ( 1NF, 2NF, 3NF, BCNF)
Normalization, is the process of restructuring a relational database in accordance with a series of so-called normal forms in order to reduce data redundancy and improve data integrity. It was first proposed by Edgar F. Codd as an integral part of his relational model.
Views: 198580 StudyKorner
ORACLE SQL- 3.insert row into table
we will insert a row into the table and how to modify it and all will be shown here
Views: 146 Ban3 GaiN
Compression Options for Oracle Database
Held on August 9 2018 This session by Gregg Christman focuses on general questions and insights regarding Oracle Basic Compression, Oracle OLTP Table Compression and Oracle Advanced Row Compression. Here is a quick guide to the highlights: 2:25 Basic vs. Advanced Row Compression comparison 4:55 Should you expect the same compression ratio with Basic and Advanced Row Compression? 8:29 Should you compress all tables and partitions? 15:50 What is the overhead associated with Advanced Row Compression? 17:06 Do I need to change my application to use compression? 17:31 Who uses Advanced Row Compression? 18:35 Is there any ongoing administration with Advanced Row Compression 20:43 When does updated data get compressed? 26:30 What role does PCTFREE play in updates and compression? 28:44 Does Advanced Row Compression work with Oracle Encryption? 29:34 Does enabling compression online or offline make a difference? 31:38 What are the typical compression ratios with Basic and Advanced Row Compression? 32:56 Are there any suggested MOS notes related to compression? 34:12 Feedback about ACO from customers AskTOM Office Hours offers free, monthly training and tips on how to make the most of Oracle Database, from Oracle product managers, developers and evangelists. https://asktom.oracle.com/ Oracle Developers portal: https://developer.oracle.com/ Sign up for an Oracle Cloud trial: https://cloud.oracle.com/en_US/tryit music: bensound.com
Views: 221 Oracle Developers
SCPT 46:Oracle Storage Termininology:  High Water Mark and Free Lists
Oracle DBA Tutorials For Full Course Experience Please Go To http://mentorsnet.org/course_preview?course_id=6 Full Course Experience Includes 1. Access to course videos and exercises 2. View & manage your progress/pace 3. In-class projects and code reviews 4. Personal guidance from your Mentors
Views: 17794 Oresoft LWC
4.ORACLE WORLD - How to Recover drop table from Recyclebin using Flashback in oracle database
Hello guys in this demo I'm just showing to you that we can easily recover the dropped table from recyclebin in oracle using flashback technology very fast without shutdown the database... #performingflashback #recoveryofdroptablefromrecyclebin #oracledatabase By lalit saini
Views: 4803 Oracle World
Getting Started with PL/SQL Table Functions: Pipelined Table Functions
Pipelined table functions are table functions in which rows are returned or "piped" back to the calling query before the function has completed, avoiding the blocking behavior of normal PL/SQL functions and reduce PGA consumption. This video is part of the Oracle Dev Gym class "Getting Started with Table Functions". You can watch it independent of the class, but then you miss out on the tutorials and quizzes! So visit https://devgym.oracle.com/pls/apex/dg/class/getting-started-with-pl-sql-table-functions.html and register for the class! ======================================== Practically Perfect PL/SQL with Steven Feuerstein Copyright © 2018 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
SQL Table Size: How to Get Database tables size in sql server
Here showing how we can get database all tables size in SQL Server. We can check our growing table size under this video demonstration so that we can optimise our database tables to speed up our application performance.
Views: 1249 Technology Crowds
Oracle 12c Release 2 - How to move a heap table online
Need to reorganize a table ? Want to do it whenever you want without impacting any users ? Easy in 12.2 ========================================­­­­============== Copyright © 2017 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Views: 410 Connor McDonald
What is High Water Mark(HVM) in oracle and how it effects the performance of queries?
This video tutorial is to understand the concept of a High Water Mark or HVM of a oracle table, also it states the various changes in the HVM when we perform a insert, delete and Truncate operation on the table, and the video also informs why is the truncate operation more advisable and optimized then the delete operation.
Views: 3134 Kishan Mashru
Reduce Cost, Innovate Faster with Oracle Autonomous Database
When machine learning makes data management smarter and more secure in the cloud, the result is a game changer for businesses. Oracle VP Monica Kumar highlights how the Oracle Autonomous Database can help companies get more value from their data.
Views: 327 Oracle
Cannot truncate table because it is being referenced by a FOREIGN KEY constraint - SQL Tutorial P70
SQL Server / TSQL Tutorial Scenario: You need to truncate a table but when you try to execute truncate table tableName. You get below error. Msg 4712, Level 16, State 1, Line 43 Cannot truncate table 'SchemaName.TableName' because it is being referenced by a FOREIGN KEY constraint. How would you truncate this table? Link to scripts used in SQL Server / TSQL Tutorial Video http://www.techbrothersit.com/2016/04/cannot-truncate-table-because-it-is.html Check out our website for Different SQL Server, MSBI tutorials and interview questions such as SQL Server Reporting Services(SSRS) Tutorial SQL Server Integration Services(SSIS) Tutorial SQL Server DBA Tutorial SQL Server / TSQL Tutorial ( Beginner to Advance) http://www.techbrothersit.com/
Views: 2712 TechBrothersIT
What is the HASH PARTITION in Oracle ?
Hi guys in my today scenario I'm going to explain with you What is the HASH PARTITION in Oracle, Oracle database Unbeatable,Unbreakable Platform.. #WhatisHASHPARTITION
Views: 7205 Oracle World
Tablespace Management
Tablespace management Tasks
Views: 35191 DbaRocksOracle
Oracle MySQL Cloud Service
Oracle MySQL Cloud Service delivers a secure, cost-effective and enterprise-grade MySQL database service. Built on MySQL Enterprise Edition and powered by the Oracle Cloud, it provides a simple, automated, integrated and enterprise ready MySQL cloud service, enabling organizations to increase business agility and reduce costs. Watch this video to learn more!
Views: 10556 MySQL
Oracle Database Files -  DBArch Video 5
In this video you learn about the storage components in an Oracle Database. You learn about the different files , Data files, Control Files and Redo log files and their purpose in an Oracle Database Architecture. learn Oracle, learn Oracle database. Our Upcoming Online Course Schedule is available in the url below https://docs.google.com/spreadsheets/d/1qKpKf32Zn_SSvbeDblv2UCjvtHIS1ad2_VXHh2m08yY/edit#gid=0 Reach us at [email protected]
Views: 12934 Ramkumar Swaminathan
Reclaim space after StoragePoint externalization using SQL database shrink
Reclaim space after StoragePoint externalization using SQL database shrink
Views: 232 DellEMCSolutions
Database Design 17 - Parent Tables and Child Tables
Donate!: http://bit.ly/DonateCTVM2. Child tables reference a primary key using a foreign key. This helps us design our relationships properly. Later in this series we will learn how the child table inherits values from the parent table and (in some instances) cannot exist without the parent (FK constraints). Learn more about parent-child tables here: https://www.calebcurry.com/blogs/database-design/parent-child-tables More content: http://CalebCurry.com Courses for Download: http://www.udemy.com/u/calebcurry/ Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://Twitter.com/calebCurry Subscribe (it's free!): http://bit.ly/PqPyvH Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 26539 Caleb Curry
Index Rebuild vs. Reorganize
Some of my thoughts about performing either, or any at all. In some cases, I won't use indexes.
Views: 3928 SQLInSix Minutes
SQL Server Tutorial 23: Partitioning Tables and Indexes
How to partition a table and an index using SSMS, or T-SQL. For more info, or a copy of the scripts used in this tutorial, please email me at [email protected]
Views: 19220 Johnny Deluca
Understanding Locking in SQL Server - SQL Server Tutorial
In this video you will understand what is locking in SQL Server? video gives brief overview Following: What is Resource types in locking of SQL Server? What is Lock Modes in SQL Server? It gives live view of looking at different type of lock modes as well as the resources types where the locks are placed. It describes in greater detail about RID, Key, Page, Extent, Table and DB Resource types in SQL Server Locking concept. It also explains Shared Locks, Update Lock, Exclusive Locks, Intent Lock, Schema Lock and Bulk Update locks in SQL Server. Blog post link for the video with script http://sqlage.blogspot.com/2015/04/understanding-locking-in-sql-server-sql.html Complete Step by Step List for DBA Tutorial Videos: http://sqlage.blogspot.com/search/label/SQL%20Sever%202014%20DBA%20Video%20Tutorial
Views: 54021 TechBrothersIT
Benefits of Common Table Expressions
On this episode of Joes 2 Pros SQL server unlocked series we present a topic for anyone who has ever been exposed to SQL Server, Common Table Expressions. A CTE is memory resident table. You are pulling from that query and giving it a name. This table adds enhancements to the old tables. It allows you to open up to new people without having an increased security risk. This is extremely beneficial for anyone who is exposed to SQL Server as keeping your content safe is a top concern for most organizations. In this video, he will take you through a very real example from a department store quarterly reporting. He wants to do a seasonal reporting from all the departments of a store excluding snow sports and cooking. He shows you how to make the code more simple and reduce human error. Having CTE knowledge will be greatly beneficial to you in your everyday career. Please be sure to follow along our blog series. Stay tuned next week to learn more about Dynamic SQL. To learn more about he benefits of common table expressions view our course Developer 2012 Volume 2 Video 10.1. See more at: http://www.joes2pros.com/joes2pros/courses Full Blog: http://joes2prosblog.social27.com/
shrinking a database
shrinking a database in sql 2005
Views: 258 James Cagle
What is the RANGE-HASH SUBPARTITIONS in Oracle ?
Hi guys in my today scenario I'm going to explain with you What is the RANGE-HASH SUB-PARTITIONS in Oracle,Oracle database #RANGE-HASHSUBPARTITIONS Unbeatable,Unbreakable Platform..
Views: 1384 Oracle World
ACID properties in DBMS | transaction management in Dbms | DBMS
This video contains the basic concepts of Transaction and will help students in various competitive exams like GATE , NET, PSU'S etc Following are the important topics of dbms ER‐model - entity–relationship model, strong entity set, weak entity set, single valued attribute, multivalued attribute, stored attribute, derived attribute, simple attribute composite attribute, weak relationship, strong relationship, mapping, cardinality ratios, discriminator attribute, fan trap, chasm trap Relational model – relational table, column, domain, row, tuple, relational algebra – selection, projection, union, intersection, set difference, Cartesian product, natural join, left outer join, right outer join, complete outer join, theta join, division operator, nested query, safe query tuple calculus – tuple relational calculus, domain relational calculus, SQL – select, from, where, order by, group by, max, min, avg, count, sum, having, Integrity constraints – super key, candidate key, primary key, foreign key, alternate key, secondary key, surrogate key normal forms – first normal form, second normal form, third normal form, bcnf, 4nf, 5nf, functional dependency, minimal cover, canonical collection, multivalued functional dependency, dependency preserving, lossy and lossless decomposition. File organization – indexing, B, B+ trees, key attribute, anchor attribute, primary indexing, secondary indexing, clustered indexing, multilevel indexing, block pointer, tree pointer, record pointer, top down search, sequential search, range query, index file, ordering, non-ordering Transactions and concurrency control- transaction, acid properties, atomicity, consistency, isolation, durability, life cycle of a transaction, active state, partially committed state, committed state, abort, rollback, terminated, phantom read, dirty read, unrepeatable read, lost update problem, conflict serializability, view serializability, irrecoverable schedule, cascading rollback, recoverable schedule, cascadless schedule. Lock based protocol, two phase locking, exclusive lock, shared lock, growing phase, shrinking phase, conservative two-phase locking, rigorous two phase locking, strict two phase locking, time stamping, time stamp, read, write, deadlock, granularity, tree based protocol, transaction in dbms,acid properties,acid properties in dbms,acid properties in dbms with examples,acid properties in rdbms,transaction management in dbms,transaction and concurrency control in dbms,transaction management and concurrency control,atomicity problem in dbms,atomicity consistency isolation durability,acid properties in database,transaction processing system,atomicity,consistency,isolation,durability,transaction and concurrency control in dbms for gate transaction in dbms,acid properties,acid properties in dbms,acid properties in dbms with examples,acid properties in rdbms,transaction management in dbms,transaction and concurrency control in dbms,transaction management and concurrency control,atomicity problem in dbms,atomicity consistency isolation durability,acid properties in database,transaction processing system,atomicity,consistency,isolation,durability,transaction and concurrency control in dbms for gate transaction in dbms,acid properties,acid properties in dbms,acid properties in dbms with examples,acid properties in rdbms,transaction management in dbms,transaction and concurrency control in dbms,transaction management and concurrency control,atomicity problem in dbms,atomicity consistency isolation durability,acid properties in database,transaction processing system,atomicity,consistency,isolation,durability,transaction and concurrency control in dbms for gate
Views: 173881 KNOWLEDGE GATE
Difference Between Delete and Truncate
Below is link for Useful Pl/SQL Books http://goo.gl/XMy0tt ---------------------------------------------------------- Difference Between Delete and Truncate in Detail On bigger picture they serve the same purpose but there are many Differences listed with examples Point Delete Truncate 1. Data Recovery Delete: Come under the DML Category, we need to commit or Rollback explicitly to make the changes permanent, so we can recover the data by Rollback command fully with in a session or up to a point if Save Points are used Fall In DDL Category (DDL Command issue the Auto commit implicitly) so no chances of Recovery even not using the Flashback table method. But Truncate operations are also logged , they didn’t generate redo SQL but they are logged , view for truncated data info V$LOGMNR_CONTENTS 2. Data Removal Delete Can remove all or selected data using the Where Clause predicates. Or we can say delete any subset of rows We can Truncate complete table or a partition or sub partition of a table. 3. Speed Delete is Slower because oracle maintain the redo logs for Read Consistency (so that every session connected can see a consistent data at a given point of time ) Delete is very time consuming activity especially when table have numerous indexes and Triggers associated with table Faster as no data logs are maintained no associated trigger firing. 4. DML Triggers Firing DML (Delete) triggers associated with table will fire. DML Trigger will not fire in case of truncate method. 5. Flashback Technology Data can be recovered even after commit operation using Flashback Table options Flashback_transaction_query table will give what to recover and up to which point. Data cannot be recovered in truncate method by Flashback table option. 6. Referential Integrity Constraint Behavior if we don’t have related data in child table then we can delete the data from the parent table or we have variants like On Delete Cascade & on Delete set Null. We can’t truncate a table with enable Referential Integrity Constraint, even there is no data in the child table, we have to disable or drop the constraint if we want to truncate the table. Exception: Truncate is possible if the FK is self-referential means primary key and foreign key are on the same table. 7. Space De allocation or Space Utilization No extent reset with delete when deleting rows from a table, extents are not de allocated, So if there were 50 extents in the table before the deletion, there will still be 50 after the deletion. Truncate: When a table is truncated it will free the space allocated except in case of reuse storage clause. This space can subsequently be used only by new data in the table or cluster resulting from insert or update operations .All extents are de allocated leaving only the extents specified when the table was originally created .Example So if the table was originally created with min extents 3, there will be 3 extents remaining when the tables is truncated. When you truncate a table, NEXT is automatically reset to the last extent deleted. 8. High Water Mark Delete will not reset the high water mark Truncate will reset the High Water mark which is very important for performance point of view as in case of full table scan and full index scan oracle will read all the block under high water mark this makes a lot of difference in terms of performance. 9. Cluster No as such restriction with delete. You cannot individually truncate a table that is part of a cluster. You must truncate the cluster, Delete all rows from the table, or drop and re-create the table. 10. Information Capturing Delete : we can capture the row information what we have deleted using Delete Method, f you are deleting multiple records then use composite data types (collections & records) Truncate Don’t have this feature of capturing the deleted records. 11. Function Based Index Impact DELETE You cannot delete rows from a table if a function-based index on the table has become invalid. You must first validate the function-based index. Truncate: No as such restriction 12. UNUSABLE Indexes Delete no as such feature. Truncate if table is not empty then truncate make all unusable indexes to useable. 13. Complex views You cannot delete data from a Complex view except through INSTEAD OF triggers. But we can delete data from simple Views and MV. We cannot truncate a view simple or complex but you can truncate MV with special Features like Preserve MV Logs and Purge MV Logs. 14. Privileges Delete You need to provide delete table privilege on object. Truncate you must have drop table privilege there is no truncate table privilege exists. 15. Domain Index No as such restriction You cannot truncate the object having domain index in invalid or In progress state
Views: 12695 Ram Gupta
How to Truncate Table in SQL
Follow this easy step by step tutorial to learn how to use Truncate Table query in SQL and see how data can be removed from the table. Don't forget to check out our site http://howtech.tv/ for more free how-to videos! http://youtube.com/ithowtovids - our feed http://www.facebook.com/howtechtv - join us on facebook https://plus.google.com/103440382717658277879 - our group in Google+ Truncate Table command allows us to delete all the data in the table without deleting the table itself. This command does not delete the entire table, but it only deletes the records inside the table. In this tutorial we will learn to truncate a table in SQL. Step 1- Viewing Table Data First of all let us view the records from any table, let it be dummy in our case. For that write: Select * from dummy and execute it by pressing F5. Step 2- Executing Command Now write the Truncate Table command along with the required table name. The query would be: Truncate table dummy and execute it . Step 3- Data Removed Now view the records of dummy table again, you will observe that the table would be empty with no records present. That is what the Truncate Table query does. And that is how we can truncate a table in SQL.
05 How to configure Sub partition using rang & list in oracle
You can create subpartitions in a composite partitioned table using a subpartition template. A subpartition template simplifies the specification of subpartitions by not requiring that a subpartition descriptor be specified for every partition in the table. Instead, you describe subpartitions only once in a template, then apply that subpartition template to every partition in the table. For interval-* composite partitioned tables, the subpartition template is the only way to define subpartitions for interval partitions. The subpartition template is used whenever a subpartition descriptor is not specified for a partition. If a subpartition descriptor is specified, then it is used instead of the subpartition template for that partition. If no subpartition template is specified, and no subpartition descriptor is supplied for a partition, then a single default subpartition is created. Specifying a Subpartition Template for a *-Hash Partitioned Table In the case of [range | interval | list]-hash partitioned tables, the subpartition template can describe the subpartitions in detail, or it can specify just the number of hash subpartitions. The following example creates a range-hash partitioned table using a subpartition template: CREATE TABLE emp_sub_template (deptno NUMBER, empname VARCHAR(32), grade NUMBER) PARTITION BY RANGE(deptno) SUBPARTITION BY HASH(empname) SUBPARTITION TEMPLATE (SUBPARTITION a TABLESPACE ts1, SUBPARTITION b TABLESPACE ts2, SUBPARTITION c TABLESPACE ts3, SUBPARTITION d TABLESPACE ts4 ) (PARTITION p1 VALUES LESS THAN (1000), PARTITION p2 VALUES LESS THAN (2000), PARTITION p3 VALUES LESS THAN (MAXVALUE) ); This example produces the following table description: Every partition has four subpartitions as described in the subpartition template. Each subpartition has a tablespace specified. It is required that if a tablespace is specified for one subpartition in a subpartition template, then one must be specified for all. The names of the subpartitions, unless you use interval-* subpartitioning, are generated by concatenating the partition name with the subpartition name in the form:
Views: 539 OnLinE ReSoUrCe
How do I find the Overall Database size ?
Hi friend in my today scenario you learn how to find the total database size ? Oracle database Unbeatable,Unbreakable Platform.. #Databasesize
Views: 2833 Oracle World
Table Partitioning in Oracle Sql|Hash Partitioning|Range Partitioning|List Partitioning|Partitioning
Table Partitioning in Oracle Sql | Hash Partitioning | Range Partitioning | List Partitioning | Partitioning --------------------------------------------------------------------------------------------------------- hash partitioning,range partitioning,oracle hash partitioned index example,partition by range interval,when to use range partitioning,what is table partitioning,list partitioning,how to query partition table in oracle,partition, sql server, sql, partitioning in oracle, hash, performance, oracle, partitioning, list, range, interval partition, reference partition, composite partition, index partition, partition pruning, table partitioning, sql server table partition, table partition, hash partitioning, composite partitioning, sql server partitioning, sql server table partitioning, partition table, types of partitions, what is partition, advantages of partition, partition index, sql tutorials for beginners, sql expert, sql expert tutorials, database, oracle, table, online training,insert into oracle,oracle insert into multiple rows,create table oracle,oracle 12c alter table add identity column,oracle create table default value sysdate,collections in oracle pl sql with examples,Oracle 12c, database, oracle database (software), sql, sql developer, sql tutorials, how to create database using dbca, how to create database in oracle,oracle cloud, database 12c, dba genesis,database services, database, create, 11g, dba, db, beginner, Please Subscribe My Channel
How to Install Oracle! !! Database Training
For Complete Database Training Details Visit: http://www.qaonlinetraining.com http://infotek-solutions.com/ Delivery Method: Instructor led classroom and Online Training supported by world class Learning management system which automate all flow of lectures, videos, assignments, forums, quizzes and interview process. Class Schedule: Week-ends and Weekdays Contact Us: 571-437-0652, Mail Us: [email protected] Training Locations at : Ashburn / Fairfax / Maryland Office Address: 12801 Worldgate Dr #500, Herndon, VA 20170 Overview of Oracle DBA Training Oracle as a flexible, complex & robust RDBMS The evolution of hardware and the relation to Oracle Different DBA job roles (VP of DBA, developer DBA, production DBA, database babysitter) The changing job role of the Oracle DBA Environment management (network, CPU, disk and RAM) Instance management (managing SGA regions) Oracle table and index management Instance Architecture Instance vs. database Components of an instance Creating the OFA file structure ($DBA, bdump, udump, pfile) Oracle Instance Internals SGA vs. PGA Background processes Interfaces with server and disk I/O subsystem Using SQL*Plus for DBA management Connecting and executing SQL Using the “as sysdba” syntax Overview of SQL*Plus DBA commands (startup, etc.) Control file, UNDO and REDO management Explaining the use of control files Listing the Contents of the control File File locations for control Files Obtaining Control File Information Listing control file contents Displaying and Creating Undo segments Altering Undo Segments Determining the Number and Size of Undo segments Understanding flashback technology Troubleshooting Undo – snapshot too old Redo log concepts for recovery Online redo log (log_buffer) online redo logs and archived redo logs Oracle ARCH and LGWR background processes Redo log dictionary queries Redo log switch frequency and performance Multiplexing the Online Redo Log Files Archiving the Oracle Redo Logs Recovery using the redo log files User and privilege management The three security methods (VPD, Grant security/role-based security, grant execute) Creating New Database Users Using pre-spawned Oracle connections Auditing User activity Identifying System and Object Privileges Granting and Revoking Privileges Creating and Modifying Roles Displaying user security Information from the Data Dictionary Overview of instance management Parameter files (init.ora, listener.ora, tnsnames.ora) Rules for sizing SGA components Automated Oracle memory management (AMM) Initialization file management Creating the init.ora file Using spfile Displaying init.ora values with v$parameter Oracle*Net configuration Creating the listener.ora file Creating the tnsnames.ora file Data buffer configuration & sizing Inside the Oracle data buffers Using the KEEP pool Monitoring buffer effectiveness Using multiple blocksizes (multiple buffer pools) Shared pool and PGA configuration & Sizing Shared pool concepts and components Understanding the library cache Relieving shared pool contention Overview of PGA for sorting and hash joins Using sort_area_size, hash_area_size and pga_aggregate_target Troubleshooting network connectivity Verifying network connectivity with ping and tnsping Testing database links Oracle tables, views and materialized views Types of Oracle tables (regular, IOT, sorted hash clusters, nested tables) Oracle Views Oracle materialized views Oracle indexes Types of Oracle indexes (b-tree, bitmap, bitmap join index) Creating B*-Tree, bitmap and function-based Indexes Function-based indexes Finding indexing opportunities Index maintenance Oracle constraints Costs & benefits of constraints Types of Oracle indexes constraints (check, not null, unique, PK, FK) Cascading constraints Schema, File & tablespace management Describing the relationship between data files, tablespaces and table Understanding Oracle segments Creating Tablespaces – using the autoextend option Changing the Size of Tablespaces – alter database datafile command Defining a TEMP tablespace Changing the default storage Settings for a tablespace Review of the storage parameters in DBA views (ASM, ASSM, pctfree, pctused and freelists). Monitoring Chained rows (fetch continued rows) Monitoring Insert and Update performance (pctused, APPEND) Database Maintenance Reason for reorgs – chained rows, imbalanced freelists Reorganizing Tables using Export and Import Using CTAS to reorganize data Index rebuilding Backup & Recovery overview (hot & cold Backups, RMAN, block change tracking) Oracle DBA Utilities Data pump (Imp and exp utilities) SQL*Loader LogMiner Flashback DataGuard Oracle DBA utilities – Oracle dbms packages (dbms_redefinition)
DBA | Oracle DBA | Tablespace | Temp Basics
DBA concepts
Views: 38 iTubers
Tomato Pickle in Telugu (టమాటా నిల్వ పచ్చడి)
How to make Tomato Pickle in Telugu Vantalu. http://www.recipetable.net/pickles/tomato-pickle-tamatar-achar/ Ingredients : Tomatoes : 1 KG Salt : To Taste Tamarind : Small Ball (lemon sized) Mustured Seeds Powder : 1/2 Table Spoon Fenugreek Seeds Powder : 1/4 Table Spoon Red Chilli Powder : 5 - 7 Table Spoons Oil : 1/4 Kg Ingredients for Tadka : Mustured Seeds : 1/2 Table Spoon Fenugreek Seeds : 1/2 Table Spoon Curry leaves : 15 (fresh) Dry red chillis : 4 -5 Cloves garlic, slightly crushed : 15 Oil : 2 tb spns Preparation Method : Step 1 : Heat oil in a heavy bottomed vessel, add the sliced tomatoes and cook on high heat for 5 mts. Reduce heat to medium high and continue to cook till the oil separates and the tomatoes turn mushy. Step 2 : Towards the end of the cooking process as the oil seperates, reduce heat and keep stirring till the oil separates completely (the tomatoes could take a good 45 mts to an hour to cook). Step 3 : Turn off heat, add the tamarind and place lid. The tamarind will soften with the heat of the cooked tomatoes. Cool completely. Step 4 : Once cool, add salt and grind the cooked tomatoes along with tamarind to a paste. Remove onto a vessel. Add chilli pwd and methi pwd. Combine. Step 5 : In a pan, add 2 tbsps oil, add mustards seeds, methi seeds and fry till the mustard splutters and the methi turns red. Add the dry red chillis, curry leaves and saute for a few seconds and turn off heat. Step 6 : Add the crushed garlic and leave aside the tempering for 4-5 mts. Step 7 : Once cool, add this tempering along with oil to the tomato paste. Combine well. Cool and store in an airtight bottle. Refrigerate. For Text Recipes : http://www.recipetable.net Facebook : http://www.facebook.com/recipetable Google+ : https://plus.google.com/114019438962881620533 Twitter : https://twitter.com/recipetable
Views: 3185360 Recipe Table
TSQL: Rebuild All Indexes In A Database
TSQL – Rebuild All Indexes https://www.fintekdev.com/tsql-rebuild-all-indexes/ (sponsored post) (Using Microsoft SQL Server 2008R2)
Views: 7999 SQLInSix Minutes
Managing Resumable Space Allocation in Oracle database
By Vivek Saxena Insa Shabad Coachings Shamli Resumable Space Allocation is given by extending the data file size with a open database Alter session enable resumable; Create tablespace spr datafile 'c:\db3\data\spr1a.dbf' size 100k; Create table spr(rn number(10) tablespace spr; Insert into spr(select salary from hr.employees); Insert into spr (select * from spr); Set oracle_sid= orcl Sqlplus/nolog Conn/as syadba Alter database datafile 'c:\db3\data\spr1a.dbf' resize 300k;
How to Delete Table in sql using oracle 10g or sql
This video gives information about How to Delete Table in sql using oracleXE 10g
Views: 2817 AvilTwo Beginer
(Ep. 21) - Db2 REDUCE MAX Command
You have run a REORG on a few of your tables and your data is in a nice contiguous order. What do you do with all the empty data extents? Release them to the operating system so your capacity needs drop of course. Everyone loves seeing your data filesystem drop ftom 70% full to 45% full. Today we will discuss tablespace watermarks, how Db2 views what space is needed where, and the REDUCE command. Timestamps: 01:25 - What is a High Watermark 04:31 - Viewing Tablespace Details 05:51 - db2dart (Detail High Water Mark) 08:15 - db2dart (Lower High Watermark) 09:20 - Releasing PENDING free pages 10:34 - REDUCE MAX Command 12:32 - Monitoring Extent Movement 14:22 - REORG vs Export/Import Download (EXT_STATUS.sql): https://github.com/MKrafick/DiscoverDB2 Useful Links: (KC) Reclaiming unused storage in AST - https://tinyurl.com/y92wkdta (KC) Reclaimable Storage (*Good article on Watermarks) - https://tinyurl.com/ycndehoc (Blog w/ SQL) Monitoring Extent Movement Progress - https://tinyurl.com/ybwcpa2n
Views: 169 DISCOVER.DB2

Writing a letter of complaint about service
Essay writing service best
Writing service testimonials
Pipefitter cover letter
Electricians cv cover letter