Home
Search results “Oracle guid generate”
How to Generate GUID in Oracle
 
08:25
How To Use Oracle PL/SQL SYS_GUID Function
Views: 20 Adam Tech
How to generate UUIDs as primary keys with Hibernate
 
05:59
Most developers prefer numerical primary keys because they are efficient to use and easy to generate. But that doesn’t mean that a primary key has to be a number. UUIDs, for example, have gained some popularity over the recent years If you like this video, please give me your thumbs up and share it with your friends and co-workers. Like my channel? Subscribe! ➜ http://bit.ly/2cUsid8 Join the free Member Library: https://goo.gl/dtyIIC Read the accompanying post: https://www.thoughts-on-java.org/generate-uuids-primary-keys-hibernate/ Want to connect with me? Blog: http://www.thoughts-on-java.org/ Twitter: https://twitter.com/thjanssen123 Facebook: https://www.facebook.com/thoughtsonjava
Views: 3904 Thoughts On Java
Oracle SQL Generate Random Alphanumeric String
 
07:21
In this video, you’ll learn how to generate random alphanumeric characters in an SQL statement in Oracle SQL You can use Oracle SQL to generate random alphanumeric string values by using one of the built-in functions. This function allows you to specify the type of string to generate - upper or lowercase alpha characters only, mixed alpha characters, uppercase alphanumeric characters, or any printable characters. You can also specify the length of the string to generate, This can be a fixed number, or you can use another function to generate a random number to use for the length! You’ll see some examples of generating random alphanumeric string values in this video. For more information and tips on Oracle SQL, check out DatabaseStar.com: https://www.databasestar.com/
Views: 615 Database Star
HOW TO GENERATE UNIQUE ID(CHARACTER + NUMBER) FOR CUSTOMER IN SQL SERVER
 
08:45
HERE IN THIS SQL Tutorial WE WILL GENERATE UNIQUE ID(CHARACTER + NUMBER) FOR CUSTOMER IN SQL SERVER HERE WE REQUIRED SQL SERVER MANAGEMENT STUDIO USING CAST,RIGHT,PERSISTED FUNCTIONALITY TABLE AND DATABASE
Hibernate 5 Tutorial - UUID and Custom Id Generation
 
12:57
In this video, I will demo how to makeUUID and Custom Id Generation. ====================================================== You can see and download source code demo from my Apps at https://play.google.com/store/apps/developer?id=PMK+Lab ====================================================== You also can buy my apps in http://codecanyon.net/user/octopuscodes/portfolio ====================================================== You also can read my blog in http://learningprogramming.net/ ====================================================== You also can learn Microsoft Office in https://www.youtube.com/channel/UCFrMOR6KF4cpa92OOPRyOng ====================================================== TODAY IS A GREAT DAY TO LEARN SOMETHING NEW! ====================================================== Learning Programming videos help teach you about programming languages:Joomla, wordpress, drupal, magento, html template, free admin template, free bootstrap admin templates, SilverStripe, Cake PHP, CodeIgniter, Concrete5, Modx, ExpressionEngine, Alfresco,TYPOlight, laravel, magento, angularjs, node.js, html, css, javascript, jquery, java, .net, wamp server, xampp, php, mysql, sql server, oracle, open sources, android, hibernate, jpa, html5, jquery
Views: 1647 Learning Programming
UniqueIdentifier, Guid, Newid, NewSequentialid in SQL Server
 
09:27
Click here to Subscribe to IT PORT Channel : https://www.youtube.com/channel/UCMjmoppveJ3mwspLKXYbVlg Uniqueidentifiers are also referred to as GUIDs. (Globally Unique IDentifier). That is, the API call that returns a GUID is guaranteed to always return a unique value across space and time. Its related to MAC address based On network card and the system time. The uniqueidentifier data type in SQL Server is stored natively as a 16-byte binary value. We can get a Guid from NewID() or NewSequentialID() NEWID() - randomly generates a guaranteed unique value based on the identification number of the server's network card plus a unique number from the CPU clock. We can use this in Insert, Select Statement. NEWSEQUENTIALID() - generates these values in sequential order as opposed to randomly. We can use this in Create Statement default value and We can’t use in Insert, Select Statement The major advantage of using GUIDs is that they are unique across all space and time. This comes in handy if you're consolidating records from multiple SQL Servers into one table, as in a data warehousing situation. GUIDs are also used heavily by SQL Server replication to keep track of rows when they're spread out among multiple SQL Servers The main disadvantage to using GUIDs as key values is that they are BIG. At 16 bytes a pop, they are one of the largest datatypes in SQL Server. Indexes built on GUIDs are going to be larger and slower than indexes built on IDENTITY columns, which are usually ints (4 bytes)
Views: 1646 IT Port
DotA 2 - Oracle Explained
 
15:15
Discord ► https://discord.gg/V6JzdJ5 Come and hang out! Credits: Background Music 1: Viilo - "Summit" [Argofox] Background Music 2: Rival x Cadmium feat. Harley Bird - "Seasons" [NoCopyrightSounds] Intro & Outro Music: Jan Chmelar - "Ladies Lounge 3" [Epidemic Sound] Channel Assets: These are the places where I find my music! Argofox ► https://www.youtube.com/channel/UC56Qctnsu8wAyvzf4Yx6LIw Bensound ► www.bensound.com Epidemic Sound ► http://www.epidemicsound.com NoCopyrightSounds ► https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg TeknoAXE ► https://www.youtube.com/channel/UCtgf00GvfFQVsYBA7V7RwUw
Views: 13759 Mr_Bean DotA
Working with Orchestrated Integrations in Oracle Integration Cloud Service
 
04:38
When should you use an Orchestration integration? How do you create an Orchestration integration? This video shows you how. Learn more about Orchestration: https://docs.oracle.com/cloud/latest/intcs_gs/ICSUG/GUID-F66ABE41-0A69-4A73-BC3D-0CE36FA78C4D.htm#ICSUG-GUID-36A90FF0-F0D4-4F81-9028-41971C7D100B ================================= For more information, see http://www.oracle.com/goto/oll Copyright © 2016 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.
Oracle DV: How to build viz plugins using SDK
 
05:05
Oracle Data Visualization SDK Reference https://docs.oracle.com/middleware/bidv1221/desktop/BIDVD/GUID-6CCA6D3D-1877-4F7E-B337-73DC68D84797.htm Oracle Data Visualization SDK JavaScript Reference https://docs.oracle.com/middleware/bidv1221/desktop/DVDJS/index.html
Views: 1634 ORACLE ANALYTICS
How to Create a Increament Serial Number Row in MySQL
 
02:02
how to generate sequence number in mysql how to add serial number in sql query how to update serial number in sql query mysql sequence function generate serial number in sql query oracle how to generate serial number in oracle report mysql insert sequential numbers how to generate auto increment serial number in sql server Website : http://intactabode.com/ linkedin https://www.linkedin.com/in/suryam-jy-ab471815b/ Google Plus https://plus.google.com/u/0/106052339846662160710 Twitter https://twitter.com/jysuryam Facebook https://www.facebook.com/intactabode/
Views: 1007 Intact Abode
How to generate primary keys with JPA and Hibernate
 
09:08
Today, I will show you how to generate unique primary key values with JPA and Hibernate. But before we start, I want to know how you get the primary key values in your application? Do you use natural keys or UUIDs or do you generate technical IDs? Please post a comment below and tell me about it. I prefer to generate simple, numerical, technical IDs like you can see in the following code snippet instead of using natural keys which often require the combination of multiple attributes. Technical IDs are easier to manage and all involved systems, mainly the database and Hibernate, can index them very efficiently. This allows you to focus on the business logic of your application and avoids performance issues. If you like this video, please give me your thumbs up and share it with your friends and co-workers. Like my channel? Subscribe! ➜ http://bit.ly/2cUsid8 Join the free Member Library: https://goo.gl/dtyIIC Read the accompanying post: https://www.thoughts-on-java.org/jpa-generate-primary-keys/ Want to connect with me? Blog: http://www.thoughts-on-java.org/ Twitter: https://twitter.com/thjanssen123 Facebook: https://www.facebook.com/thoughtsonjava
Views: 4483 Thoughts On Java
Oracle Enterprise Manager: Integration with 3rd Party Systems
 
18:26
Enterprise Manager has a number of management connectors to integrate with popular 3rd party management systems. The management connectors leverage EM’s connector framework in order to forward event and incident details to 3rd party systems. Besides the management connectors, Enterprise Manager also has a number of Advanced Notification Methods when the use case is more complicated or when there is no management connector available. Enterprise Manager is highly extensible and provides a Connector Framework API which leverages web service calls to create and update events or tickets in 3rd party systems. We provide a Connectors Integration Guide with instructions and examples to build your own connector. See Enterprise manager online documentation for more information: http://docs.oracle.com/cd/E73210_01/nav/connectors.htm http://docs.oracle.com/cd/E73210_01/EMADM/GUID-B48F6A84-EE89-498D-94E0-5DE1E7A0CFBC.htm#EMADM9066 http://docs.oracle.com/cd/E73210_01/EMCIG/GUID-FBA700A1-B2F0-4A7B-980C-E4816A21FAD4.htm#EMCIG169 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.
Oracle Enterprise Manager: Advanced Threshold Management
 
16:34
Advanced Thresholds allow you to define and manage alert thresholds that are either adaptive (self-adjusting) or time-based (static). There are monitoring situations in which different workloads for a target occur at regular (expected) intervals. Under these conditions, a static alert threshold would prove to be inaccurate. For example, the accurate alert thresholds for a database performing Online Transaction Process (OLTP) during the day and batch processing at night would be different. Similarly, database workloads can change based purely on different time periods, such as weekday versus weekend. In both these situations, fixed, static values for thresholds might result in false alert reporting. See Enterprise manager online documentation for more information: http://docs.oracle.com/cd/E73210_01/EMADM/GUID-02356AB5-4B03-46AE-8354-2E9517A8F439.htm#EMADM15123 ================================= To improve the video quality, click the gear icon and set the Quality to 1080p/720p HD. For more information, see http://www.oracle.com/goto/oll Copyright © 2016 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.
Hierarchical Queries: Databases for Developers #16
 
09:38
Often data contains a parent-child relationship between rows in the same table. For example, company org charts and family trees. You can use the power of SQL to traverse these hierarchical relationships. There are two ways to do this in Oracle Database: - Connect By - Recursive With Watch this video to learn about data trees and find out how these work! Further reading: Hierarchical queries in the docs: https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/Hierarchical-Queries.html#GUID-0118DF1D-B9A9-41EB-8556-C6E7D6A5A84E Recursive subquery factoring in 11.2: https://oracle-base.com/articles/11g/recursive-subquery-factoring-11gr2 Take the course! https://devgym.oracle.com/pls/apex/dg/class/databases-for-developers-next-level.html Need help with SQL? Ask us over on AskTOM: https://asktom.oracle.com Twitter: https://twitter.com/ChrisRSaxon Daily SQL Twitter tips: https://twitter.com/SQLDaily All Things SQL blog: https://blogs.oracle.com/sql/ ============================ The Magic of SQL with Chris Saxon 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.
Views: 5210 The Magic of SQL
Oracle Database Security Assessment Tool #DBSAT
 
19:53
Oracle DBSATVideo covers, Why Security Assessment? What's Security Assessment? How to implement it i.e. End to end Live demo! Oracle DBSAT latest release is 2.1, documentation can be downloaded at, https://docs.oracle.com/en/database/oracle/security-assessment-tool/2.1/satug/#SATUG-GUID-C7E917BB-EDAC-4123-900A-D4F2E561BFE9 Do share your comments with your experience about the product.
Views: 3267 Chetan Vithlani
How to Use VirtualBox (Beginners Guide)
 
13:52
In a recent video in the “Free Software” series, I showed you VirtualBox, which is a free and open source solution to be able to run other operating systems virtually on your PC. In this beginner’s guide, I will show you how to set-up and use VirtualBox. In addition, I’ll also show you how to install and run Ubuntu, which is one of the most popular of the Linux distributions. If you're new, Subscribe! ▶ https://www.youtube.com/techgumbo Share This Video ▶ https://youtu.be/sB_5fqiysi4 0:30 What is VirtualBox. 1:16 Download. 1:46 Install. 2:29 Launch VirtualBox. 2:42 Download ISO for Ubuntu. 3:35 Create Guest OS. 6:41 Settings to complete the Guest OS process. 8:54 Install Ubuntu. 11:07 Tips for using Ubuntu. 13:15 Shut down Ubuntu. “Free Software” Playlist https://www.youtube.com/watch?v=gM8plsUfkTA&list=PLunpbmfrhFAWJA4lSDmRYJdcsEpjAuRdz VirtualBox https://www.virtualbox.org/wiki/Downloads Ubuntu https://www.ubuntu.com/desktop TechGumbo is a leading source for the technology that we use each day. Whether it’s discussing computer operating system tricks, the latest tips for your mobile phone, finding out about the newest gadgets, or beginners guides that show you how to use popular software, TechGumbo has boundless topics on technology for the astute YouTube viewer.
Views: 539629 TechGumbo
Storage parameters for tables
 
09:02
There's a lot of settings you can modify when you create a table. But which ones do you need to worry about? blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A Music: Night Owl (Broke For Free) #oracle #storage #extents
Views: 180 Connor McDonald
Hibernate GenerationType.SEQUENCE primary key generation strategy
 
06:23
In this video you will learn how GenerationType.SEQUENCE primary key generation strategy works. Below is the GitHub link to download source: https://github.com/kishanjavatrainer/HibernatePrimaryKeyGenExample3.git
Views: 2857 KK JavaTutorials
Omnichannel Services - Use UUID Keys to Your Data
 
03:46
Today I'm going to talk to you about why it's important to use universally unique identifiers (UUID) as keys to your data, and I will show you some of the problems that they can solve. In the distributed computing world of mobile devices and an internet of things it becomes almost impossible to have one source for key generation, so each device need to be able to create their own keys, while still making sure that those keys are unique. The answer is to use UUIDs, which is a standard by the Open Software Foundation, and there's an industry wide support for them (http://en.wikipedia.org/wiki/Universally_unique_identifier). For example, PHP, Java, .NET, Oracle, and MySQL all have ways to generate them, and SQL Server and ProgresSQL even has native UUID data types. Let talk about the benefits of using UUIDs, and I will start by pointing out some of the problems they can solve. When doing our data models, we have been taught to normalize our databases so that we find primary keys as one of the columns or a combination of columns. If not found, we usually add a generated id, such as an automatically incremented integer. One problem with using a multi-column key is that the queries become more complex as each column needs to be included in each join, and more complex means a lower performance and also larger indices. Another problem is that it's harder for the consumer of the data to know which columns are included in the key. With auto-generated keys, we get a simpler join, but a problem is that each consumer need to ask the generator for a valid key, and another problem is that there will be "holes" in the sequence when rows are deleted. Yet another problem is that any data type used has a fixed limit (even if huge), so it will eventually run out. Also, it becomes tricky for a client to find out which id was generated during an insert. With UUIDs, we get the same benefit of the simpler join as we got with the auto-generated keys, but now each user of the data can generate new keys and rows, without access to any central key generator -- it can even happen while disconnected. So any device or thing can generate a key and the maximum 3.4 x 10^38 combinations both ensure that each key is unique and that there's no practical limit of keys. But even UUIDs have drawbacks, and the most obvious is that they are hard to remember. Therefore, it's a good practice to provide ways of accessing data using attributes that are easier to remember. For example, provide a service that can get an order by providing an order number in addition to getting it using the primary key, the UUID. So make sure that you use UUIDs as keys to your data to allow distributed key generation, simplified joins, and get better performance. Follow me on Twitter https://twitter.com/chrisforsberg Visit my site http://cforsberg.com
Views: 5464 Chris Forsberg
Virtual Box - How to set a new UUID to a Virtual Machine
 
02:47
How to set a new UUID on a VM in Oracle VM Virtual Box, this error can happen if circumstances surrounding the VDI file change such as name, location etc. This is done using the vboxmanage command line tool Steps: 1 - Right click "Command Prompt" and then click "Run as Administrator" 2 - Then use CD and DIR to browse to: C:\Program files\Oracle\Virtual Box 3 - Then type: vboxmanage internalcommands sethduuid "VDI filepath and filename" For example: vboxmanage internalcommands sethduuid "D:\vm\Windows7virtualmachine.vdi" Song name: DM Galaxy - Etiquette - Free Background Music Link to song: https://youtu.be/ZD_Urg9fOs0 Song created by: DM Galaxy: YouTube - http://goo.gl/5Tezt7 Facebook - https://www.facebook.com/DmGalaxy SoundCloud - https://soundcloud.com/dmgalaxy
Views: 5411 WitherTech
How to upgrade SQL Developer to 19.1
 
02:02
blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A Music: Night Owl (Broke For Free) Kevin McLeod (incomptech) #oracle #sqldeveloper #upgrade
Views: 417 Connor McDonald
Faster Inserts!
 
05:06
Lots of tools generate insert scripts from existing data. But here's a trick to make those inserts run MUCH faster. blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A Subscribe for new tech videos every week Music: Night Owl (Broke For Free) #oracle #insert #performance
Views: 416 Connor McDonald
Java Hibernate Tutorial Part 10 - Auto Generate Primary key
 
10:53
Easy to follow step by step tutorial on Java Hibernate Framework using JPA annotations. How to auto generate the primary key.
Views: 80522 Patrick WashingtonDC
smtp_out_server and sending mail from the database
 
08:47
blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A #smtp #utl_mail #oracle Music: Night Owl (Broke For Free) #oracle #sql #performance
Views: 329 Connor McDonald
PCTFREE / PCTUSED / FREELISTS for the novice
 
10:00
There's a lot of settings you can modify when you create a table. But which ones do you need to worry about? blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A Music: Night Owl (Broke For Free) #oracle #pctfree #pctused
Views: 427 Connor McDonald
Oracle Enterprise Manager: Always-On Monitoring
 
25:23
The Enterprise Manager Always-On Monitoring application provides the ability to monitor critical target status and metric alerts when the Oracle Management Service is unavailable. The service continuously monitors critical targets through the Enterprise Manager Agent and can be easily configured to send email notifications for these events to administrators. See Enterprise manager online documentation for more information: http://docs.oracle.com/cd/E73210_01/EMADM/GUID-3152AD33-8118-4478-B888-A332CFAB3453.htm#EMADM15489 ================================= To improve the video quality, click the gear icon and set the Quality to 1080p/720p HD. For more information, see http://www.oracle.com/goto/oll Copyright © 2016 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.
Connecting to the Autonomous Transaction Processing database
 
04:30
My New Year's resolution is to take advantage of the simplicity of connecting, building and using the Autonomous database. My inner geek wants to play with the Autonomous database for the plethora of cool features, but putting all of that aside for a moment, one of the great things is that you can get all of the connection details you will need for the database just with a few clicks! Download, Connect, Done! blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A
Views: 299 Connor McDonald
Set Up and Log In to Your First Oracle Container Cloud Service Instance
 
02:52
Find out how to get from your Oracle Cloud welcome mail to a working instance of Oracle Container Cloud Service, where you can manage your Docker environment. For more information, see the documentation at http://www.oracle.com/pls/topic/lookup?ctx=cloud&id=CONTU-GUID-CA18910C-AFC9-432E-AB1D-ADE87EAB5E63 ================================= To improve the video quality, click the gear icon and set the Quality to 1080p/720p HD. For more information, see http://www.oracle.com/goto/oll 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.
Sequence object in SQL Server 2012
 
12:22
create sequence in sql server In this video we will discuss sequence object in SQL Server. Sequence object Introduced in SQL Server 2012 Generates sequence of numeric values in an ascending or descending order Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/sequence-object-in-sql-server-2012.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/sequence-object-in-sql-server-2012_26.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists Creating the Incrementing Sequence : The following code create a Sequence object that starts with 1 and increments by 1 CREATE SEQUENCE [dbo].[SequenceObject] AS INT START WITH 1 INCREMENT BY 1 Generating the Next Sequence Value : Now we have a sequence object created. To generate the sequence value use NEXT VALUE FOR clause SELECT NEXT VALUE FOR [dbo].[SequenceObject] Output : 1 Every time you execute the above query the sequence value will be incremented by 1. I executed the above query 5 times, so the current sequence value is 5. Retrieving the current sequence value : If you want to see what the current Sequence value before generating the next, use sys.sequences SELECT * FROM sys.sequences WHERE name = 'SequenceObject' Alter the Sequence object to reset the sequence value : ALTER SEQUENCE [SequenceObject] RESTART WITH 1 Select the next sequence value to make sure the value starts from 1 SELECT NEXT VALUE FOR [dbo].[SequenceObject] Using sequence value in an INSERT query : CREATE TABLE Employees ( Id INT PRIMARY KEY, Name NVARCHAR(50), Gender NVARCHAR(10) ) -- Generate and insert Sequence values INSERT INTO Employees VALUES (NEXT VALUE for [dbo].[SequenceObject], 'Ben', 'Male') INSERT INTO Employees VALUES (NEXT VALUE for [dbo].[SequenceObject], 'Sara', 'Female') -- Select the data from the table SELECT * FROM Employees Creating the decrementing Sequence : The following code create a Sequence object that starts with 100 and decrements by 1 CREATE SEQUENCE [dbo].[SequenceObject] AS INT START WITH 100 INCREMENT BY -1 Specifying MIN and MAX values for the sequence : Use the MINVALUE and MAXVALUE arguments to specify the MIN and MAX values respectively. Step 1 : Create the Sequence object CREATE SEQUENCE [dbo].[SequenceObject] START WITH 100 INCREMENT BY 10 MINVALUE 100 MAXVALUE 150 Step 2 : Retrieve the next sequence value. The sequence value starts at 100. Every time we call NEXT VALUE, the value will be incremented by 10. SELECT NEXT VALUE FOR [dbo].[SequenceObject] If you call NEXT VALUE, when the value reaches 150 (MAXVALUE), you will get the following error The sequence object 'SequenceObject' has reached its minimum or maximum value. Restart the sequence object to allow new values to be generated. Recycling Sequence values : When the sequence object has reached it's maximum value, and if you want to restart from the minimum value, set CYCLE option ALTER SEQUENCE [dbo].[SequenceObject] INCREMENT BY 10 MINVALUE 100 MAXVALUE 150 CYCLE At this point, whe the sequence object has reached it's maximum value, and if you ask for the NEXT VALUE, sequence object starts from the minimum value again which in this case is 100. To improve performance, the Sequence object values can be cached using the CACHE option. When the values are cached they are read from the memory instead of from the disk, which improves the performance. When the cache option is specified you can also specify the size of th cache , that is the number of values to cache. The following example, creates the sequence object with 10 values cached. When the 11th value is requested, the next 10 values will be cached again. CREATE SEQUENCE [dbo].[SequenceObject] START WITH 1 INCREMENT BY 1 CACHE 10 Using SQL Server Graphical User Interface (GUI) to create the sequence object : 1. Expand the database folder 2. Expand Programmability folder 3. Right click on Sequences folder 4. Select New Sequence Next video : Difference between SEQUENCE and IDENTITY in SQL Server
Views: 37961 kudvenkat
Primary key generation in JPA : javavids
 
04:17
How to generate a primary key in JPA (Hibernate, Eclipselink, Toplink). IDENTITY, SEQUENCE and other strategies (AUTO, TABLE) explained. Part of Java online video tutorials: http://www.javavids.com
Views: 5660 Jiri Pinkas
INITRANS / MAXTRANS - transaction slots for the novice
 
06:05
There's a lot of settings you can modify when you create a table. But which ones do you need to worry about? blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A Music: Night Owl (Broke For Free) #oracle #initrans #maxtrans
Views: 255 Connor McDonald
Virtualbox error - Failed to create the hard disk storage, with UUID already exists
 
01:44
When trying to create a virtualbox (ubuntu), i get an error : -- Failed to create the hard disk storage /home/user/VirtualBox VMs/Ubuntu64bit.vdi Cannot register the hard disk '/home/duaz/VirtualBox VMs/Ubuntu64bit/Ubuntu64bit.vdi' {fb7edfb4-d1c7-41de-9e1d-e483f4663fed} because a hard disk '/home/duaz/VirtualBox VMs/Ubuntu64bit/Ubuntu64bit.vdi' with UUID {1ac61938-0ee5-428b-a29e-1c252dcdcbd4} already exists. -- See this video how to fix that.
Views: 7664 A. Hasbiyatmoko
Dynamic SQL in Stored Procedure
 
09:32
In this video we will discuss, using dynamic sql in a stored procedure and it's implications from sql injection perspective. We will discuss performance implications of using dynamic sql in a stored procedure in a later video. Text version of the video http://csharp-video-tutorials.blogspot.com/2017/04/dynamic-sql-in-stored-procedure.html Slides http://csharp-video-tutorials.blogspot.com/2017/04/dynamic-sql-in-stored-procedure_11.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All SQL Server Tutorial Videos https://www.youtube.com/playlist?list=PL08903FB7ACA1C2FB All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists Consider the following stored procedure "spSearchEmployees". We implemented this procedure in Part 139 of SQL Server tutorial. This stored procedure does not have any dynamic sql in it. It is all static sql and is immune to sql injection. Create Procedure spSearchEmployees @FirstName nvarchar(100) = NULL, @LastName nvarchar(100) = NULL, @Gender nvarchar(50) = NULL, @Salary int = NULL As Begin Select * from Employees where (FirstName = @FirstName OR @FirstName IS NULL) AND (LastName = @LastName OR @LastName IS NULL) AND (Gender = @Gender OR @Gender IS NULL) AND (Salary = @Salary OR @Salary IS NULL) End Go Whether you are creating your dynamic sql queries in a client application like ASP.NET web application or in a stored procedure, you should never ever concatenate user input values. Instead you should be using parameters. Notice in the following example, we are creating dynamic sql queries by concatenating parameter values, instead of using parameterized queries. This stored procedure is prone to SQL injection. Let's prove this by creating a "Search Page" that calls this procedure. Create Procedure spSearchEmployeesBadDynamicSQL @FirstName nvarchar(100) = NULL, @LastName nvarchar(100) = NULL, @Gender nvarchar(50) = NULL, @Salary int = NULL As Begin Declare @sql nvarchar(max) Set @sql = 'Select * from Employees where 1 = 1' if(@FirstName is not null) Set @sql = @sql + ' and FirstName=''' + @FirstName + '''' if(@LastName is not null) Set @sql = @sql + ' and LastName=''' + @LastName + '''' if(@Gender is not null) Set @sql = @sql + ' and Gender=''' + @Gender + '''' if(@Salary is not null) Set @sql = @sql + ' and Salary=''' + @Salary + '''' Execute sp_executesql @sql End Go Add a Web Page to the project that we have been working with in our previous video. Name it "DynamicSQLInStoredProcedure.aspx". Copy and paste the HTML and code available on my blog at the following link http://csharp-video-tutorials.blogspot.com/2017/04/dynamic-sql-in-stored-procedure.html At this point, run the application and type the following text in the "Firsname" text and click "Search" button. Notice "SalesDB" database is dropped. Our application is prone to SQL injection as we have implemented dynamic sql in our stored procedure by concatenating strings instead of using parameters. ' Drop database SalesDB -- In the following stored procedure we have implemented dynamic sql by using parameters, so this is not prone to sql injecttion. This is an example for good dynamic sql implementation. Create Procedure spSearchEmployeesGoodDynamicSQL @FirstName nvarchar(100) = NULL, @LastName nvarchar(100) = NULL, @Gender nvarchar(50) = NULL, @Salary int = NULL As Begin Declare @sql nvarchar(max) Declare @sqlParams nvarchar(max) Set @sql = 'Select * from Employees where 1 = 1' if(@FirstName is not null) Set @sql = @sql + ' and [email protected]' if(@LastName is not null) Set @sql = @sql + ' and [email protected]' if(@Gender is not null) Set @sql = @sql + ' and [email protected]' if(@Salary is not null) Set @sql = @sql + ' and [email protected]' Execute sp_executesql @sql, N'@FN nvarchar(50), @LN nvarchar(50), @Gen nvarchar(50), @sal int', @[email protected], @[email protected], @[email protected], @[email protected] End Go On the code-behind page, use stored procedure spSearchEmployeesGoodDynamicSQL instead of spSearchEmployeesBadDynamicSQL. We do not have to change any other code. At this point run the application one more time and type the following text in the "Firstname" textbox and click the "Search" button. ' Drop database SalesDB -- Notice "SalesDB" database is not dropped, So in this case our application is not succeptible to SQL injection attack. Summary : Whether you are creating dynamic sql in a client application (like a web application) or in a stored procedure always use parameters instead of concatnating strings. Using parameters to create dynamic sql statements prevents sql injection.
Views: 38122 kudvenkat
SQL Plus 18c rocks!
 
01:45
It's only March, but Christmas just came (very) early for SQL Plus users blog: https://connor-mcdonald.com music: Kevin McLeod, incomptech.com New features for SQL Plus 18c here: https://docs.oracle.com/en/database/oracle/oracle-database/18/sqprn/index.html#SQPRN-GUID-B336CE0F-EC31-4993-A34C-733E335046BC
Views: 862 Connor McDonald
How Many Uuids Are There?
 
00:45
Postgresql documentation 9. How to generate uuids as primary keys with hibernate. Googleusercontent search. Uuid tossed about (universally unique identifier), there are so many guids that you can use them to number everything and not run online guid generatorjava practices generating ids. Proper rfc 4122 uuids as guids in wordpress bjrn johansen. Or if every human on earth generated 600,000,000 guids there would only be a 50. When identifiers are used solely within a database, their generation should be left starting with java 5, the uuid class provides simple means for generating uuids have many applications. 20 jul 2009 in other words, only after generating 1 billion uuids every second for the next 100 years, the probability of creating just one duplicate would be about 50. Uuids and linux everything you ever need to know [update uuid (java platform se 7 ) oracle help center. Rfc 4122 a universally unique identifier (uuid) urn namespaceuniversally identifiers (uuids) itu. Another is the data type uuid stores universally unique identifiers (uuid) as defined by rfc 4122, iso iec 9834 8 2005, and related standards. Object identifier components' 13 mar 2013 and about the question, how many uuids there are big chance is that you will generate a number already own, here version field holds value describes type of this uuid. Since the time and clock sequence total 74 bits, 2 (1. Uuid uuid4() collisions issue #80 ramsey uuid githubapple developer documentation. Some systems refer to 5 oct 2016 each component can generate a uuid and there will not be any conflicts. Uuids generally do not meet security requirements. Uuid? Stack overflow. Random uuid collisions software engineering stack exchange. An attractive feature of uuids when compared to alternatives is their relative small size, 128 bits, or 16 bytes. X10 22 or 18 sextillion) version 1 uuids can be generated per node id, at a maximum average rate of 163 billion second id i. As always, you don't have to do much get the default behaviour 27 aug 2015 at this moment i think there is an issue in ramsey uuid, but still maybe that explains why he was seeing so collisions with uuids created by nsuuid conform rfc 4122 version 4 and are because a uuid expressed simply as array of bytes, no 10 jun 2017 adoption guids widespread, many computing platforms providing support for generating them, parsing their 26 nov problem highlighted here not uuids, instead use from title, would thought something about Guid how unique uuid? Stack overflowhas ever been collision? Quora. Uuid? Stack overflow guid how unique is uuid? overflow stackoverflow questions 1155008 uuid url? Q webcache. Of osi registration authorities generation and of universally unique identifiers (uuids) their use as asn. Two different records had the same uuid yes, see this account of frequent uuid4 collisions we are generating about 1m a day, and getting pretty much allows anything from xkcd random generator very fact that there multiple approach
Views: 74 Lanora Hurn Tipz
Monitoring  Oracle Java Cloud Service -  SaaS Extension
 
04:54
(This video is describes how to use JCS-SaaS Extension Control, the Java console for JCS-SaaS Extension, to monitor activity running on that application. For additional information, see "Using Oracle Java Cloud Service - SaaS Extension Control" at https://docs.oracle.com/cloud/latest/javacs_gs/CSJSU/GUID-DB8FC210-671F-470C-94A9-C472814C8E66.htm#CSJSU7074 NOTE: To improve the video quality, click the gear icon and set the Quality to 1080p/720p HD. ================================= For more information, see http://www.oracle.com/goto/oll Copyright © 2016 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.
Getting Ref Cursor output as CSV
 
00:19
A quick video in response to an AskTOM question on how to get ref cursor output as CSV. At the time this video was made, SQL Developer does not do it natively, but a simple wrapper function will let you get the output in a format that you can easily cut-paste into Excel or similar tool. blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A https://www.youtube.com/channel/UCVN7PnJnuKQ65QLmWjFvhiw?sub_confirmation=1 #oracle #sql #refcursor
Views: 425 Connor McDonald
Part 69   Merge in SQL Server
 
07:14
Text version of the video http://csharp-video-tutorials.blogspot.com/2014/09/part-69-merge-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2014/09/part-69-merge-in-sql-server_30.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists What is the use of MERGE statement in SQL Server Merge statement introduced in SQL Server 2008 allows us to perform Inserts, Updates and Deletes in one statement. This means we no longer have to use multiple statements for performing Insert, Update and Delete. With merge statement we require 2 tables 1. Source Table - Contains the changes that needs to be applied to the target table 2. Target Table - The table that require changes (Inserts, Updates and Deletes) The merge statement joins the target table to the source table by using a common column in both the tables. Based on how the rows match up as a result of the join, we can then perform insert, update, and delete on the target table. Merge statement syntax MERGE [TARGET] AS T USING [SOURCE] AS S ON [JOIN_CONDITIONS] WHEN MATCHED THEN [UPDATE STATEMENT] WHEN NOT MATCHED BY TARGET THEN [INSERT STATEMENT] WHEN NOT MATCHED BY SOURCE THEN [DELETE STATEMENT] Example 1 : In the example below, INSERT, UPDATE and DELETE are all performed in one statement 1. When matching rows are found, StudentTarget table is UPDATED (i.e WHEN MATCHED) 2. When the rows are present in StudentSource table but not in StudentTarget table those rows are INSERTED into StudentTarget table (i.e WHEN NOT MATCHED BY TARGET) 3. When the rows are present in StudentTarget table but not in StudentSource table those rows are DELETED from StudentTarget table (i.e WHEN NOT MATCHED BY SOURCE) Create table StudentSource ( ID int primary key, Name nvarchar(20) ) GO Insert into StudentSource values (1, 'Mike') Insert into StudentSource values (2, 'Sara') GO Create table StudentTarget ( ID int primary key, Name nvarchar(20) ) GO Insert into StudentTarget values (1, 'Mike M') Insert into StudentTarget values (3, 'John') GO MERGE INTO StudentTarget AS T USING StudentSource AS S ON T.ID = S.ID WHEN MATCHED THEN UPDATE SET T.NAME = S.NAME WHEN NOT MATCHED BY TARGET THEN INSERT (ID, NAME) VALUES(S.ID, S.NAME) WHEN NOT MATCHED BY SOURCE THEN DELETE; Please Note : Merge statement should end with a semicolon, otherwise you would get an error stating - A MERGE statement must be terminated by a semi-colon (;) In real time we mostly perform INSERTS and UPDATES. The rows that are present in target table but not in source table are usually not deleted from the target table. Example 2 : In the example below, only INSERT and UPDATE is performed. We are not deleting the rows that are present in the target table but not in the source table. Truncate table StudentSource Truncate table StudentTarget GO Insert into StudentSource values (1, 'Mike') Insert into StudentSource values (2, 'Sara') GO Insert into StudentTarget values (1, 'Mike M') Insert into StudentTarget values (3, 'John') GO MERGE INTO StudentTarget AS T USING StudentSource AS S ON T.ID = S.ID WHEN MATCHED THEN UPDATE SET T.NAME = S.NAME WHEN NOT MATCHED BY TARGET THEN INSERT (ID, NAME) VALUES(S.ID, S.NAME);
Views: 108475 kudvenkat
Oracle Enterprise Manager 12c Database as a Service RESTful API Overview
 
23:35
This video provides an overview of the Oracle Enterprise Manager 12c Database as a Service (Private Database Cloud) RESTful APIs.
Views: 2059 Adeesh Fulay
Weblogic Server (Java Cloud Service) Install on Oracle Cloud Infrastructure.
 
10:46
Apologies about the sound quality. Install of Weblogic Enterprise Edition on Oracle Cloud using Java Cloud Service and an Oracle Database. More information can be seen in links below. https://docs.oracle.com/en/cloud/paas/java-cloud/jscug/oracle-java-cloud-service.html#GUID-5BEB5C7A-DAEE-40C6-BDE0-819E10D62848 https://cloud.oracle.com/java Disclaimer- **All views are my own**
Views: 37 TechSec
Prevent sql injection with dynamic sql
 
10:28
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/04/prevent-sql-injection-with-dynamic-sql.html Slides http://csharp-video-tutorials.blogspot.com/2017/04/prevent-sql-injection-with-dynamic-sql_5.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All SQL Server Tutorial Videos https://www.youtube.com/playlist?list=PL08903FB7ACA1C2FB All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss, how to prevent SQL injection when using dynamic SQL. In Part 140, we have implemented "Search Page" using dynamic SQL. Since we have used parameters to build our dynamic SQL statements, it is not prone to SQL Injection attack. This is an example of good dynamic SQL implementation. I have seen lot of software developers, not just the beginners but even experienced developers, buidling their dynamic sql queries by concatenating strings instead of using parameters without realizing that they are opening the doors for SQL Injection. Please check my blog at the following link for code used in the demo. http://csharp-video-tutorials.blogspot.com/2017/04/prevent-sql-injection-with-dynamic-sql.html Since we are concatenating the user input values to build the dynamic sql statement, the end user can very easily inject sql. Imagine, what happens for example, if the user enters the following in the "Firstname" textbox. ' Drop database SalesDB -- With the above SQL injected into the "Firstname" textbox, if you click the "Search" button, the following is the query which is sent to SQL server. This will drop the SalesDB. Select * from Employees where 1 = 1 AND FirstName = '' Drop database SalesDB --' On the other hand, if you use parameters to build your dynamic SQL statements, SQL Injection is not an issue. The following input in the "Firstname" textbox, would not drop the SalesDB database. ' Drop database SalesDB -- The text the user has provided in the "Firstname" textbox is treated as the value for @Firstname parameter. The following is the query that is generated and executed. exec sp_executesql N'Select * from Employees where 1 = 1 AND [email protected]',N'@FirstName nvarchar(26)',@FirstName=N''' Drop database SalesDB --' We don't have this problem of sql injection if we are using stored procedures. "SearchPageWithoutDynamicSQL.aspx" is using the stored procedure "spSearchEmployees" instead of dynamic SQL. The same input in the "Firstname" texbox on this page, would generate the following. Notice, whatever text we typed in the "Firstname" textbox is treated as the value for @FirstName parameter. exec spSearchEmployees @FirstName=N''' Drop database SalesDB --' An important point to keep in mind here is that if you have dynamic SQL in your stored procedure, and you are concatenating strings in that stored procedure to build your dynamic sql statements instead of using parameters, it is still prone to SQL injection. If this is not clear at the moment don't worry, we will discuss an example of this in out next video. So in summary, while dynamic sql provides great flexibility when implementing complicated logic with lot of permutations and combinations, if not properly implemented it may open doors for sql injection. Always use parameters to build dynamic sql statements, instead of concatenating user input values. Another benefit of using parameters to build dynamic sql statements is that it allows cached query plans to be reused, which greatly increases the performance. We will discuss an example of this in our upcoming videos.
Views: 22673 kudvenkat
Do NOT index small tables?
 
08:20
How small does a table have to be before you should NOT create an index on it? blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A Music: Night Owl (Broke For Free) #oracle #indexes #performance
Views: 358 Connor McDonald
Validity checks on SQL
 
06:50
Can you see if a SQL statement is valid before actually running it? blog: https://connor-mcdonald.com twitter: https://twitter.com/connor_mc_d Subscribe for new tech videos every week All other social media channels here: https://linktr.ee/connor My current favorite Oracle stuff: - Favorite 12.2 feature: Almost all structural maintenance can be done online. No more outages. https://docs.oracle.com/en/database/oracle/oracle-database/12.2/newft/new-features.html#GUID-BEEEA34D-3D81-4360-887C-A92BC711816D - Favorite 18c feature: Killing a runaway SQL without killing the entire session. https://docs.oracle.com/en/database/oracle/oracle-database/18/newft/new-features.html#GUID-49F77A8D-CF54-415C-B04F-DB4CE733C513 - Favorite 19c feature: Handling JSON just got a lot easier! https://docs.oracle.com/en/database/oracle/oracle-database/19/newft/new-features.html#GUID-9587F5B4-871B-401A-8978-BDA491F07F8A Music: Night Owl (Broke For Free) #oracle #sql #performance
Views: 348 Connor McDonald
Data Generator 2 - Defining tables
 
15:47
This video shows how to implement the plan devised in the previous video. Here, you will see how to select appropriate data types for the random data as well as how to handle foreign keys. The site being used is www.freedatagenerator.com
Views: 357 Andy Wicks
VirtualBox Tutorial 11 - How to save Virtual Machine as OVA file
 
04:51
How to save Virtual Machine as OVA file. How to export a Virtual Machine as a Portable OVA file using Oracle VirtualBox Manager.. WATCH SOME MORE VIRTUALBOX VIDEOS 14. How to import a vdi image into VirtualBox https://youtu.be/fVYwt1Tluug 13. How to quickly import a Virtual Machine https://youtu.be/45OVZza9LRM 12. How to Import an OVA file https://youtu.be/93lM4OLyytE 11. How to save a Virtual Machine as an OVA file https://youtu.be/TgbXjs_3cnE 10. How to create a Shared Folder between Windows Host and Ubuntu Guest OS https://youtu.be/9-teQnZ8LEY 09. Install Guest Additions Software on Ubuntu Linux https://youtu.be/UhK-T-ZkUmc 08. How to install Ubuntu on VirtualBox https://youtu.be/UIGkuKMhI68 07. How to boot a Virtual Machine from CD or ISO file https://youtu.be/xL_ORgxmfaI 06. VM Configuration Settings Explained https://youtu.be/WEa8AHVAffE 05. How to create a Virtual Machine https://youtu.be/kfYVeX8NQqc 04. How to install the Extension Pack https://youtu.be/vFUDTC3EWQc 03. How to install Oracle VM Virtualbox https://youtu.be/bJl4y39zFsU 02. How to Download Oracle VM VirtualBox https://youtu.be/qlfGDZuZmLE WATCH SOME MORE VIDEOS 04. How to hyperlink references in LaTeX https://youtu.be/4H0ZrDHdHkY 03. How to add hyperlinks to a LaTeX document https://youtu.be/IdWlpQLGNxw 02. How to cite references in LaTeX https://youtu.be/gfVkukKd2Ug 01. Write your first LaTeX document using TeXstudio https://youtu.be/TqwgNRbd-2I Selenium IDE Demo A tutorial for beginners https://youtu.be/ZG3VFDMaAlk How to install Selenium IDE https://youtu.be/agEu89x1PkA What is Selenium IDE https://youtu.be/DDCcOp8Pl5w How to Download, Install and Use 7zip https://youtu.be/WhY-4JIukv4 Securely encrypt and decrypt files using 7zip https://youtu.be/icG__m92tRY How to Download, Install and Use 7zip https://youtu.be/WhY-4JIukv4 Is Windows OS 32 bit or 64 bit version? https://youtu.be/4zX2v6gZC_c How to create two balanced columns in a Word Document https://youtu.be/3rhKAubfLzA 11. Configure an FTP Server on FreeNAS https://youtu.be/u0TB0Yf9b_c 10. Create and Share a RAID 5 Volume in FreeNAS https://youtu.be/AL0tFLvi6qU 09. Create and Share a RAID Stripe Volume in FreeNAS https://youtu.be/r97T3YaH2-Y 08. Configure a WebDAV folder in FreeNAS https://youtu.be/LIKZT1xVldY 07. Configure a Windows shared folder in FreeNAS https://youtu.be/QeKOj7_qdPg 06. FreeNAS Web Administrative Console Explained https://youtu.be/-JnFkoqQxaU 05. Booting and configuring FreeNAS for the first time on a Virtual-Machine https://youtu.be/3dp7oLAtJH8 04. Install FreeNAS on a Virtual Machine https://youtu.be/esUU6ZzANUg 03. Configure a FreeNAS Virtual Machine before installing FreeNAS https://youtu.be/TF6agHu14I0 02. How to download the FreeNAS Operating System ISO file https://youtu.be/odEy0F6Ur9A 01. Brief Introduction to NAS Storage and FreeNAS https://youtu.be/NhwZV6PZyp0 WATCH SOME JAVA TUTORIALS Enhanced For Loop Explained and Illustrated https://youtu.be/DMCzrojoHgY How to use the Shortcut Operators https://youtu.be/zgQRCfEsHIQ How to use the Conditional Operator ( ? : ) https://youtu.be/ELBN9LNWavQ Compare Objects - Equality Operator Vs Equals Method https://youtu.be/tJQlBTnEekQ Passing by Value (Object References) https://youtu.be/BHtfb3lfc-g Command Line Arguments https://youtu.be/8lvb7sSDAuk How To Write A Method Part II https://youtu.be/dNFsljRwZhA How To Write A Method Part I https://youtu.be/qQDGYfQPpGg Passing by Value (Primitive Data Types) https://youtu.be/h9uD7ipqu3w Division and Modulo Operators Explained https://youtu.be/C_U3DgzFCpU Operator Precedence Explained https://youtu.be/iWFmd3HZ4dM What are Data Types, Variables and Constants? https://youtu.be/pw0WTlaw74c How to use Nested If Statements https://youtu.be/NrYRPr2grdc How to use simple If Statements https://youtu.be/OqrgC3IATYI What are Control Flow Statements https://youtu.be/0bWnwpZt67w How to Write, compile and run your first Java program on Windows https://youtu.be/EAFERGKdAko How to write, compile and run Java programs all within Notepad++ https://youtu.be/NaPlD6YVNnQ How to download and install the Notepad++ editor on Windows https://youtu.be/bess4G8YG8U
Views: 568 Martin O'Connor
Oracle Enterprise Manager: Intelligent Incident Compression
 
12:55
Beginning with Enterprise Manager 13c, Intelligent Incident Compression allows multiple events to be automatically grouped into a single incident. This recording consists of a product overview (8 min), followed by a demo (5 min). See Enterprise manager online documentation for more information: http://docs.oracle.com/cd/E73210_01/EMADM/GUID-D0428ED9-FCA8-44D6-AB5B-B8FF4139BF0D.htm#EMADM15277 ================================= To improve the video quality, click the gear icon and set the Quality to 1080p/720p HD. For more information, see http://www.oracle.com/goto/oll and http://docs.oracle.com 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.
How to Boot a VM From an ISO File in Oracle Virtual Box
 
03:06
Oracle's VirtualBox software is a free virtualization platform that you can use to run virtual machines (VMs) on your desktop. To install new operating sytems etc. you need to be able to boot from ISO files that are mounted to optical drives within the VM. In this video we show you how to configure these settings. https://www.onlinecomputertips.com/ Check out our new book (Computers Made Easy) that is designed to take your computer skills to the next level! https://www.amazon.com/dp/1983154830
Views: 1322 OnlineComputerTips
UNPIVOT in SQL Server
 
04:33
sql server convert columns to rows in a table sql server transpose columns to rows unpivot in sql server example sql server unpivot example In this video we will discuss UNPIVOT operator in SQL Server. PIVOT operator turns ROWS into COLUMNS, where as UNPIVOT turns COLUMNS into ROWS. We dicussed PIVOT operator in Part 54 of SQL Server tutorial. Please watch Part 54 before proceeding. http://csharp-video-tutorials.blogspot.com/2012/10/pivot-operator-in-sql-server-part-54.html Let us understand UNPIVOT with an example. We will use the following tblProductSales table in this demo. SQL Script to create tblProductSales table Create Table tblProductSales ( SalesAgent nvarchar(50), India int, US int, UK int ) Go Insert into tblProductSales values ('David', 960, 520, 360) Insert into tblProductSales values ('John', 970, 540, 800) Go Write a query to turn COLUMNS into ROWS. SELECT SalesAgent, Country, SalesAmount FROM tblProductSales UNPIVOT ( SalesAmount FOR Country IN (India, US ,UK) ) AS UnpivotExample Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/unpivot-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/unpivot-in-sql-server_10.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 49343 kudvenkat
ORDS and the New SQL/JSON  Database Functions - Part 2
 
15:54
This is the second part of the "ORDS and the New SQL/JSON Database Functions" series which covers storing JSON in columns within your relational schema and in the new Oracle Database 12c JSON Document Store using Simple Oracle Document Access or SODA.
Dynamic SQL in SQL Server
 
12:12
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/03/dynamic-sql-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2017/03/dynamic-sql-in-sql-server_27.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All SQL Server Tutorial Videos https://www.youtube.com/playlist?list=PL08903FB7ACA1C2FB All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss 1. What is Dynamic SQL 2. Simple example of using Dynamic SQL What is Dynamic SQL Dynamic SQL is a SQL built from strings at runtime. Simple example of using Dynamic SQL Here is the SQL Script to create Employees table and populate it with data Create table Employees ( ID int primary key identity, FirstName nvarchar(50), LastName nvarchar(50), Gender nvarchar(50), Salary int ) Go Insert into Employees values ('Mark', 'Hastings', 'Male', 60000) Insert into Employees values ('Steve', 'Pound', 'Male', 45000) Insert into Employees values ('Ben', 'Hoskins', 'Male', 70000) Insert into Employees values ('Philip', 'Hastings', 'Male', 45000) Insert into Employees values ('Mary', 'Lambeth', 'Female', 30000) Insert into Employees values ('Valarie', 'Vikings', 'Female', 35000) Insert into Employees values ('John', 'Stanmore', 'Male', 80000) Go One way to achieve this is by implementing a stored procedure as shown below that this page would call. Create Procedure spSearchEmployees @FirstName nvarchar(100), @LastName nvarchar(100), @Gender nvarchar(50), @Salary int As Begin Select * from Employees where (FirstName = @FirstName OR @FirstName IS NULL) AND (LastName = @LastName OR @LastName IS NULL) AND (Gender = @Gender OR @Gender IS NULL) AND (Salary = @Salary OR @Salary IS NULL) End Go The stored procedure in this case is not very complicated as we have only 4 search filters. What if there are 20 or more such filters. This stored procedure can get complex. To make things worse what if we want to specify conditions like AND, OR etc between these search filters. The stored procedure can get extremely large, complicated and difficult to maintain. One way to reduce the complexity is by using dynamic SQL as show below. Depending on for which search filters the user has provided the values on the "Search Page", we build the WHERE clause dynamically at runtime, which can reduce complexity. However, you might hear arguments that dynamic sql is bad both in-terms of security and performance. This is true if the dynamic sql is not properly implemented. From a security standpoint, it may open doors for SQL injection attack and from a performance standpoint, the cached query plans may not be reused. If properly implemented, we will not have these problems with dynamic sql. In our upcoming videos, we will discuss good and bad dynamic sql implementations. For now let's implement a simple example that makes use of dynamic sql. In the example below we are assuming the user has supplied values only for FirstName and LastName search fields. To execute the dynamicl sql we are using system stored procedure sp_executesql. sp_executesql takes two pre-defined parameters and any number of user-defined parameters. @statement - The is the first parameter which is mandatory, and contains the SQL statements to execute @params - This is the second parameter and is optional. This is used to declare parameters specified in @statement The rest of the parameters are the parameters that you declared in @params, and you pass them as you pass parameters to a stored procedure Declare @sql nvarchar(1000) Declare @params nvarchar(1000) Set @sql = 'Select * from Employees where [email protected] and [email protected]' Set @params = '@FirstName nvarchar(100), @LastName nvarchar(100)' Execute sp_executesql @sql, @params, @FirstName='Ben',@LastName='Hoskins' This is just the introduction to dynamic SQL. If a few things are unclear at the moment, don't worry. In our upcoming videos we will discuss the following 1. Implementing a real world "Search Web Page" with and without dynamic SQL 2. Performance and Security implications of dynamic sql. Along the way we will also discuss good and bad dynamic sql implementations. 3. Different options available for executing dynamic sql and their implications 4. Using dynamic sql in stored procedures and it's implications Once we discuss all the above, you will understand 1. The flexibility dynamic sql provides 2. Advantages and disadvantages of dynamic sql 3. When and when not to use dynamic sql
Views: 46979 kudvenkat