Home
Search results “Sys constraint oracle”
SQL Tutorial - CHECK Constraints
 
13:05
Another fantastic SQL Tutorial brought you by BeardedDev. Tutorials on SQL Querying, SQL Development, Database Administration, Data Analysis and Business Intelligence. Subscribe to the channel for more fantastic tutorials. This video contains everything you need to know about CHECK Constraints in SQL Server with working examples. CHECK Constraints allow us to enforce limits on the data that can be entered in to our tables, in this tutorial we look at preventing entering Sales Values that are less than or equal to 0, after all we don't sell anything for nothing. CHECK Constraints only prevent values that evaluate to false from being added and we work through another example of how CHECK Constraints do not prevent NULLs from being added if the Data Definition allows. All Constraints are associated with Tables so if a Table is removed the Constraint is removed too. There is another example of how we can only add CHECK Constraints to existing columns if the data within that column meets the requirements of the Constraint. We also discuss how we can query the System Table, sys.check_constraints to retrieve information about CHECK Constraints within the Database. CHECK Constraint Syntax: CREATE TABLE dbo.Sales ( Sales_Id INT IDENTITY(1, 1) , Sales_Date DATE , Sales_Value DECIMAL(16, 2) [constraint name] CHECK (Sales_Value [greater than] 0) ) ALTER TABLE [table name] ADD CONSTRAINT [constraint name] CHECK (column [less than or greater than or equal to] value) Associated Videos: Create Table with Constraints - https://youtu.be/bfBnZKf2EGg Recently Uploaded Videos: SSIS Tutorial - How to Create Connection Managers - https://youtu.be/5SNHNlBmbi8 Different Roles working with Data - https://youtu.be/lBU1XQ87cLg SQL Tutorial - Window Functions - https://youtu.be/H6OTMoXjNiM
Views: 241 BeardedDev
SQL tutorial 22: How to Add / Delete column from an existing table using alter table
 
03:56
How to add column to an existing table using Alter table How to delete a column from a table using alter table Links Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=j7eYO7 Blog Link: http://bit.ly/add-column SQL tutorial 21 rename table using alter table http://bit.ly/rename-table Tool used in this tutorial is SQL Developer. This tutorial series is part of SQL expert exam certification training. if you are preparing for SQL certification you can use my tutorials. This SQL Tutorial is a part of free training. Contacts E-Mail [email protected] Twitter https://twitter.com/rebellionrider Instagram http://instagram.com/rebellionrider Facebook. https://www.facebook.com/imthebhardwaj Linkedin. http://in.linkedin.com/in/mannbhardwaj/ Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com
Views: 39254 Manish Sharma
Curso Oracle Sql - Video 28 - Constraints
 
10:28
Constraints: Clave Primaria. Clave Única. Clave Foránea. Check.
PL/SQL: Sysrefcoursor
 
08:07
In this tutorial, you'll learn how to make us of sys_refcursor PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's procedural extension for SQL and the Oracle relational database. PL/SQL is available in Oracle Database (since version 7), TimesTen in-memory database (since version 11.2.1), and IBM DB2 (since version 9.7).[1] Oracle Corporation usually extends PL/SQL functionality with each successive release of the Oracle Database. PL/SQL includes procedural language elements such as conditions and loops. It allows declaration of constants and variables, procedures and functions, types and variables of those types, and triggers. It can handle exceptions (runtime errors). Arrays are supported involving the use of PL/SQL collections. Implementations from version 8 of Oracle Database onwards have included features associated with object-orientation. One can create PL/SQL units such as procedures, functions, packages, types, and triggers, which are stored in the database for reuse by applications that use any of the Oracle Database programmatic interfaces. PL/SQL works analogously to the embedded procedural languages associated with other relational databases. For example, Sybase ASE and Microsoft SQL Server have Transact-SQL, PostgreSQL has PL/pgSQL (which emulates PL/SQL to an extent), and IBM DB2 includes SQL Procedural Language,[2] which conforms to the ISO SQL’s SQL/PSM standard. The designers of PL/SQL modeled its syntax on that of Ada. Both Ada and PL/SQL have Pascal as a common ancestor, and so PL/SQL also resembles Pascal in several aspects. However, the structure of a PL/SQL package does not resemble the basic Object Pascal program structure as implemented by a Borland Delphi or Free Pascal unit. Programmers can define public and private global data-types, constants and static variables in a PL/SQL package.[3] PL/SQL also allows for the definition of classes and instantiating these as objects in PL/SQL code. This resembles usage in object-oriented programming languages like Object Pascal, C++ and Java. PL/SQL refers to a class as an "Abstract Data Type" (ADT) or "User Defined Type" (UDT), and defines it as an Oracle SQL data-type as opposed to a PL/SQL user-defined type, allowing its use in both the Oracle SQL Engine and the Oracle PL/SQL engine. The constructor and methods of an Abstract Data Type are written in PL/SQL. The resulting Abstract Data Type can operate as an object class in PL/SQL. Such objects can also persist as column values in Oracle database tables. PL/SQL is fundamentally distinct from Transact-SQL, despite superficial similarities. Porting code from one to the other usually involves non-trivial work, not only due to the differences in the feature sets of the two languages,[4] but also due to the very significant differences in the way Oracle and SQL Server deal with concurrency and locking. There are software tools available that claim to facilitate porting including Oracle Translation Scratch Editor,[5] CEITON MSSQL/Oracle Compiler [6] and SwisSQL.[7] The StepSqlite product is a PL/SQL compiler for the popular small database SQLite. PL/SQL Program Unit A PL/SQL program unit is one of the following: PL/SQL anonymous block, procedure, function, package specification, package body, trigger, type specification, type body, library. Program units are the PL/SQL source code that is compiled, developed and ultimately executed on the database. The basic unit of a PL/SQL source program is the block, which groups together related declarations and statements. A PL/SQL block is defined by the keywords DECLARE, BEGIN, EXCEPTION, and END. These keywords divide the block into a declarative part, an executable part, and an exception-handling part. The declaration section is optional and may be used to define and initialize constants and variables. If a variable is not initialized then it defaults to NULL value. The optional exception-handling part is used to handle run time errors. Only the executable part is required. A block can have a label. Package Packages are groups of conceptually linked functions, procedures, variables, PL/SQL table and record TYPE statements, constants, cursors etc. The use of packages promotes re-use of code. Packages are composed of the package specification and an optional package body. The specification is the interface to the application; it declares the types, variables, constants, exceptions, cursors, and subprograms available. The body fully defines cursors and subprograms, and so implements the specification. Two advantages of packages are: Modular approach, encapsulation/hiding of business logic, security, performance improvement, re-usability. They support object-oriented programming features like function overloading and encapsulation. Using package variables one can declare session level (scoped) variables, since variables declared in the package specification have a session scope.
Views: 6185 radhikaravikumar
054-Oracle SQL 12c: Schema and create table syntax
 
07:18
تعلم اوراكل حتى الاحتراف تعلم اوراكل من الصفر Learn Oracle
Views: 1431 khaled alkhudari
REF CURSOR AND SYS_REFCURSOR IN ORACLE PL/SQL WITH EXAMPLE
 
25:07
This video explains about ref cursor in oracle pl/sql, what are ref cursors, how are ref cursor different from simple cursors, what are the advantages of using a ref cursor etc. The video demonstrates proper and easy to understand examples on ref cursor.
Views: 8378 Kishan Mashru
Oracle 12c PL/SQL Security New Features - Session 5 of 8 - The New Inherit Privileges Privilege
 
06:47
Learn the Oracle Database 12c Inherit Privileges Privilege. Demonstration and Examples. There's a whole new privilege. The inherit privileges privilege. We indeed inherit any privileges privileged. That's just in privileged of course. Any privileges - system privileges, any privileges is an object privilege or new type objects. We can now assign privileges, grant privileges on users. It limits the owner's inheritance of privileges from the invoker. Oracle Corporation is presumably reasonably happy with the way definer's rights code works and definer's rights code as I demonstrated can be highly dangerous. That hasn't really changed in the current release except is will see with the ability to grant roles to code because in invoker's rights we've got huge differences and that's the inheriting of privileges privilege. If you don't have the inheritance enabled, any attempt to execute invoker's rights code will fail because the definer will not be in able to inherit the rights of the invoker. So I'm going to go straight in to do it and then go through the rest of the slides so we can see the sort of issue. Let me lose 11g and go to 12c. What I shall do is create my low privileged user or drop user dev. I don't think he exists. He doesn't. So I'll create my low privileged user. Grant create session, create procedure, select any table to dev identified by dev. It's the same mechanism I use. The same command I use in 11g. I'm creating a developer with a bare minimum that he needs to do his job, which is writing code that lets people query the database. Then log on as him, comm dev/dev and create my procedure. I'll create a version of the code, create or replace procedure list_emp, author ID current user. Invoker's rights code. Remember, this gives my low privilege user dev the ability to insert something horrible in his code which shall then be executed with the invoker's rights. We create the procedure. Now connect / as sysdba - I'll be the highest possible person there is - set server output on and run the code. Execute dev.list_emp looking for the CLARKS. I can't do it. Even as user sys, I can't run that because of the lack of this new privilege. I can correct the situation. I can grant inherit privileges on user sys - which of course one would never normally do - to dev. So I'm now giving my low privilege user the ability to inherit the privileges of user sys when we are running invoker's rights code. And having done that, the code now succeeds. That's the general principle. Without this inherit any privileges code all that doesn't have any privileges privilege, all your invoker's rights code is now blocked. It simply won't run until you grant that privilege to your trusted user. So without inheritance the invoker's rights code will fail. This privilege is in fact granted by default in 12.1 when a user is created. I believe this is purely for backward compatibility. So you don't have to worry about all your codes ceasing to function the moment you have to upgrade but there's no guarantee that this situation will remain as we go through 12.2, 12.3. Also in upgrade I haven't had the time to test comprehensively every possible method of upgrade but certainly this simple test I've done so far, the privilege does appear to be being granted and we can see it. If we look at who's been granted this privilege so far Select grantee, table_name, privilege from dba_tab_privs where privilege like inherit and we see that straight out of the box inherit privileges on a number of users have been granted to public. They have been granted to public. So if I create a brand new user, I grant connect to jw identified by jw, we will see that in the current release - there he is - inherit has beeen granted to public. In the current release by default, your code will continue to function and Oracle often does this with their [05:46 inaudible] with powerful new features. By default, it's configured so there's no change and in the next release it all changes. That's happened to a quite a few releases, quite a few new features, and it wouldn't surprise me if by the time we get to say 12.2 and certainly by the time we get to 13 this behavior changes. So plan for it and look at that privilege and see who it's been granted to and secure your systems. What you need to do is revoke all the inherit privileges grants that's there by default and then grant inherit any privileges very, very sparingly only to a very few trusted users and that should tighten up the danger of definer's inheriting invoker's rights. So a few trusted schemas, create the code in those schemas only and control this very tightly indeed.
Views: 1544 SkillBuilders
Oracle Database11g tutorials 9 || What is archive log mode and how to enable archive log mode
 
07:24
weblink: www.rebellionrider.com What is archive log mode What is noarchive log mode How to enable archivelog mode in oracle 11g How to enable archivelog mode in oracle 10g This SQL tutorial and Oracle database 11g tutorial for beginners will show what are ARCHIVELOG mode and noarchive log mode and how to enable archivelog mode in oracle database 11g or 10g Tool used in this tutorial is command prompt. This tutorial series is part of SQL expert exam certification training. if you are preparing for SQL certification you can use my tutorials. This SQL Tutorial is a part of free training. Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=j7eYO7 Contacts E-Mail [email protected] Twitter https://twitter.com/rebellionrider Instagram http://instagram.com/rebellionrider Facebook. https://www.facebook.com/imthebhardwaj Linkedin. in.linkedin.com/in/mannbhardwaj/ Thanks for linking, commenting, sharing and watching more of our videos This is Manish from The Code makers
Views: 92626 Manish Sharma
Hierarchical Queries in Oracle (CONNECT BY)
 
03:05
This video demonstrates one of the ways to query hierarchical data from Oracle. For more information see: https://oracle-base.com/articles/misc/hierarchical-queries Website: https://oracle-base.com Blog: https://oracle-base.com/blog Twitter: https://twitter.com/oraclebase Cameo by Arjen Visser Blog: http://blog.dbvisit.com/ Twitter: https://twitter.com/dbvisit Website: http://www.dbvisit.com/ Cameo appearances are for fun, not an endorsement of the content of this video.
Views: 25349 ORACLE-BASE.com
Fine Grained Access Control in oracle (FGAC) -عربي
 
11:57
you can go my website maxvlearn.com
Views: 356 khaled alkhudari
SQL: Using Information Schema to query table metadata
 
06:54
this screencast demonstrates how to use the INFORMATION_SCHEMA special objects in your SQL database to query metadata, such as tables, columns, keys and constraints.
Views: 10073 Michael Fudge
89. Oracle Database in the Browser APEX
 
14:40
In this video you will learn about Oracle Database in the Browser APEX. For Support =========== Email: [email protected] Contact Form: http://www.learninhindi.com/home/contact Our Social Media ================ Facebook: https://www.facebook.com/LearnInHindi Twitter: https://twitter.com/LearnInHindi For Training & Videos ===================== For more videos and articles visit: http://www.learninhindi.com Free Java Programming In Hindi Course ===================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAwwhMyoLISrxkXTADGp7PH Free Oracle PL/SQL Programming In Hindi Course ============================================== https://www.youtube.com/playlist?list=PLB5DA82419C2D99B6 Free C Programming In Hindi Course ================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAxKpBLMWogxSdy6BZcsAJq Trips & Tricks Channel ====================== https://www.youtube.com/channel/UCGmLfkuCo-3lHHJXRJ9HUMw Programming in Hindi Channel ============================ https://www.youtube.com/channel/UCudElIDgwNrybeAvXIy1HZQ
Views: 1934 ITORIAN
SYS Browser Showing Menu as Undefined, Oracle Applications Training
 
00:47
If you have upgraded your browser to IE 9 or 10 and you menus shows a list of -undefined-, this can fix your problem.
Views: 2717 Larry Sherrod
HOW TO USE DEFAULT TYPES IN ORACLE APPS
 
24:19
DEVELOPING DEFAULTS TYPE ORACLE APPLICATIONS
Views: 145 SAINAATTH PITTLA
DYNAMIC SQL WITH EXECUTE IMMEDIATE IN ORACLE PL/SQL WITH EXAMPLE
 
21:53
The audio and video now synced. Ever tried creating a table inside a PL SQL block, or a function or a procedure? If yes, then you would know that it would raise an error, as DDL statements are not allowed inside a PL/SQL Block. So the solution to such a case, where you want to generate tables, or sequences or want to execute any DDL statement on the fly, then use synamic sql. Dynamic SQL statment will allow you to create state statements on the fly and then you can execute them using the execute immediate statement. This video tutorial demonstrates on this topic of using synamic sql with execute immediate in a PL/SQL block.
Views: 4363 Kishan Mashru
Oracle Database: How-To: Create a Table
 
01:58
The Best Site to Learn SQL Online
Views: 25066 TechnicalSkills
Oracle - SQL - DDL Statements
 
04:20
Oracle - SQL - DDL Statements Watch more Videos at https://www.tutorialspoint.com/videotutorials/index.htm Lecture By: Mr. Anadi Sharma, Tutorials Point India Private Limited.
Ask TOM Office Hours: Code Classification for SmartDB
 
54:15
Held on April 17 2018 Toon Koppelaars presents his thoughts on how best to classify the types of code that should reside inside the database. Along the way, he offers recommendations for a sound database design, and much more. 05:44 Recommendations for a sound database design 12:00 Data Integrity Constraints 16:11 Data Logic Code 17:30 Classifications: Query-only Business Logic, Transaction Business Logic, Data Logic 21:21 Avoiding a big pile of PL/SQL code: separate schemas and more 24:32 Vertically materialize APIs per page 25:43 Q&A 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/ https://developer.oracle.com/ https://cloud.oracle.com/en_US/tryit music: bensound.com
Views: 171 Oracle Developers
How to Detect Soft Corruption in Oracle 12c Database
 
18:19
Detection of Soft Corruption in 12c: To use the scripts below replace : , ",# and $ by proper bracket Lets Create a tablespace and small table. SQL: create tablespace DEMO1 datafile '/u02/tstdb1/TSTDB1/datafile/demo01.dbf' size 50M SQL: create table objects tablespace DEMO1 as select * from dba_objects; SQL: alter table objects add constraint pk_obj primary key #object_id$; SQL: create index idx_obj_name on objects#object_name$ tablespace demo1; Backup tablespace. RMAN: backup tablespace DEMO1; We need to put the DB in archivelog first Rebuild index with NOLOGGING option to simulate soft corruption later. RMAN: alter index idx_obj_name rebuild nologging; Confirm that we have datafiles that require backup because they have been affected with NOLOGGING operation. RMAN: report unrecoverable; Simulate corruption. RMAN: alter database datafile 5 offline; RMAN: restore datafile 5; RMAN: recover datafile 5; RMAN: alter database datafile 5 online; Query table with corrupted index and notice error. SQL: select count#*$ from objects where object_name like 'A%'; Let’s perform validation of datafile to check block corruption. RMAN: backup validate check logical datafile 5; Notice that we have 457 blocks marked corrupt but v$database_block_corruption view is empty. SQL: select count#*$ from v$database_block_corruption; Let’s query v$nonlogged_block view. set lines 200 set pages 999 select file#, block#, blocks,object#,reason from v$nonlogged_block; Will RMAN detect that we have corrupted blocks? RMAN: backup datafile 5; RMAN backup won’t fail due to NOLOGGING corrupt blocks and our backup will contain soft corrupted blocks. Let’s Identify corrupt segments using v$nonlogged_block view. set lines 2000 set pages 9999 col owner for a20 col partition_name for a10 col segment_name for a20 SELECT e.owner, e.segment_type, e.segment_name, e.partition_name, c.file# , greatest#e.block_id, c.block#$ corr_start_block# , least#e.block_id+e.blocks-1, c.block#+c.blocks-1$ corr_end_block# , least#e.block_id+e.blocks-1, c.block#+c.blocks-1$ - greatest#e.block_id, c.block#$ + 1 blocks_corrupted FROM dba_extents e, V$NONLOGGED_BLOCK c WHERE e.file_id = c.file# AND e.block_id "= c.block# + c.blocks - 1 AND e.block_id + e.blocks - 1 := c.block# UNION SELECT s.owner, s.segment_type, s.segment_name, s.partition_name, c.file# , header_block corr_start_block# , header_block corr_end_block# , 1 blocks_corrupted FROM dba_segments s, V$NONLOGGED_BLOCK c WHERE s.header_file = c.file# AND s.header_block between c.block# and c.block# + c.blocks - 1 UNION SELECT null owner, null segment_type, null segment_name, null partition_name, c.file# , greatest#f.block_id, c.block#$ corr_start_block# , least#f.block_id+f.blocks-1, c.block#+c.blocks-1$ corr_end_block# , least#f.block_id+f.blocks-1, c.block#+c.blocks-1$ - greatest#f.block_id, c.block#$ + 1 blocks_corrupted FROM dba_free_space f, V$NONLOGGED_BLOCK c WHERE f.file_id = c.file# AND f.block_id "= c.block# + c.blocks - 1 AND f.block_id + f.blocks - 1 := c.block# order by file#, corr_start_block# / This is the best outcome to get if you notice corruption errors. All errors are related to index corruption so we could fix this problem rebuilding index. alter index idx_obj_name rebuild; Simply issuing "alter index rebuild" command won't work. We should mark index unusable to drop segment before rebuilding it or just rebuild index with online option. It is better choice to mark index unusable because you don't need additional space then, but I will simply rebuild index with online option and see what will happen. SQL: alter index idx_obj_name rebuild online; Index altered. SQL: select count#*$ from objects where object_name like 'A%'; No errors... but, let's validate datafile for corruption. RMAN: backup validate check logical datafile 5; Notice "Marked Corrupt" column. Hm... 457 like before. Don't worry, this is not new corruption. These are FREE blocks which will be reused and Oracle will automatically re-format those blocks. Query the v$nonlogged_block view again as given above. We could force re-formatting creating dummy table and inserting data to dummy table. Check Doc ID 336133.1. create table s # n number, c varchar2#4000$ $ nologging tablespace DEMO1; SQL: BEGIN FOR i IN 1..1000000 LOOP INSERT /*+ APPEND */ INTO sys.s select i, lpad#'REFORMAT',3092, 'R'$ from dual; commit ; END LOOP; END; / SQL: drop table sys.s purge; Notice that we don't have corrupted blocks any more. RMAN: backup validate check logical datafile 5;
Views: 122 OracleDBA
SQL Tutorial - PRIMARY KEY CONSTRAINTS
 
08:57
Another fantastic SQL Tutorial brought to you by BeardedDev. In this video we look at what Primary Keys are and how to add Primary Keys within Create Table statements or Alter Table statements: https://youtu.be/DJ054rHGhRw If you are new to primary keys this tutorial will help you know how to add primary keys by using object explorer and tsql. If you want to know what a composite primary key is watch this video: https://youtu.be/DJ054rHGhRw If you are interested in learning how to add constraints to tables in SQL Server check out this link: https://youtu.be/bfBnZKf2EGg For more great instructional videos on data development or business intelligence click here to see all the videos available on my channel: https://www.youtube.com/channel/UCWczzX6DyFV2KOYP_-CEZUA/videos SQL: IF OBJECT_ID(N'dbo.Customers', N'U') IS NOT NULL DROP TABLE dbo.Customers; GO CREATE TABLE dbo.Customers ( CustomerId INT IDENTITY(1, 1) NOT NULL , FirstName NVARCHAR(50) NOT NULL , MiddleName NVARCHAR(50) NOT NULL , LastName NVARCHAR(50) NOT NULL , DOB DATE NULL , Email NVARCHAR(100) NULL , HomeTel VARCHAR(20) NULL , MobileTel VARCHAR(20) NULL , [1stLineAddress] VARCHAR(100) NULL , City INT NULL , County INT NULL , Country INT NULL ) IF OBJECT_ID(N'dbo.Customers', N'U') IS NOT NULL DROP TABLE dbo.Customers; GO CREATE TABLE dbo.Customers ( CustomerId INT IDENTITY(1, 1) NOT NULL CONSTRAINT PK_Customers_CustomerID PRIMARY KEY (CustomerId) , FirstName NVARCHAR(50) NOT NULL , MiddleName NVARCHAR(50) NOT NULL , LastName NVARCHAR(50) NOT NULL , DOB DATE NULL , Email NVARCHAR(100) NULL , HomeTel VARCHAR(20) NULL , MobileTel VARCHAR(20) NULL , [1stLineAddress] VARCHAR(100) NULL , City INT NULL , County INT NULL , Country INT NULL ) ALTER TABLE dbo.Customers ADD CONSTRAINT PK_Customers_CustomerId PRIMARY KEY (CustomerId) SELECT * FROM sys.key_constraints Don't forget to subscribe to the channel and let me know your thoughts in the comments section below.
Views: 111 BeardedDev
Oracle Pseudo columns
 
04:01
pseudo columns in oracle
Views: 42 Siva Academy
GLOBAL TEMPORARY TABLE (GTT) IN ORACLE SQL WITH EXAMPLES
 
13:33
This video demonstrates the usage and working of GTT in oracle SQL. The video shows how internally oracle works with GTT, and also explains the working of ON COMMIT DELETE ROWS and ON COMMIT PRESERVER ROWS in oracle with easy examples.
Views: 7560 Kishan Mashru
CREAR USUARIO en SqlDeveloper con SYS o SYSTEM
 
03:22
✖Soy Estudiante de Ingeniería en Informática✖ ✖Cualquier duda o consulta dejar en los comentarios✖
Views: 1266 GroonKa
List all tables in a sql server database using a query  Part 65
 
05:38
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/06/part-65-list-all-tables-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-65-list-all-tables-in-sql-server.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 In this video we will discuss, writing a transact sql query to list all the tables in a sql server database. This is a very common sql server interview question. Object explorer with in sql server management studio can be used to get the list of tables in a specific database. However, if we have to write a query to achieve the same, there are 3 system views that we can use. 1. SYSOBJECTS - Supported in SQL Server version 2000, 2005 & 2008 2. SYS.TABLES - Supported in SQL Server version 2005 & 2008 3. INFORMATION_SCHEMA.TABLES - Supported in SQL Server version 2005 & 2008 -- Gets the list of tables only Select * from SYSOBJECTS where XTYPE='U' -- Gets the list of tables only Select * from SYS.TABLES -- Gets the list of tables and views select * from INFORMATION_SCHEMA.TABLES To get the list of different object types (XTYPE) in a database Select Distinct XTYPE from SYSOBJECTS Executing the above query on my SAMPLE database returned the following values for XTYPE column from SYSOBJECTS IT - Internal table P - Stored procedure PK - PRIMARY KEY constraint S - System table SQ - Service queue U - User table V - View Please check the following MSDN link for all possible XTYPE column values and what they represent. http://msdn.microsoft.com/en-us/library/ms177596.aspx
Views: 85263 kudvenkat
Oracle DBaaS: Creating a Database
 
04:15
The administrator password you provide is used for the SYS and SYSTEM database users, for the admin Oracle GlassFish Server user, and for the admin Oracle Application Express user.
Views: 561 Ora Tube
Oracle Database tutorial 67: How to create Tablespace using SQL Developer By RebellionRider
 
06:56
Learn (The easiest way)how to create tablespace in oracle database using Oracle SQL Developer GUI: SQL Developer trips and tricks tutorial ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/tablespace-using-sql-developer Previous Tutorial ► How to make SYS user Connection: http://bit.ly/how-to-create-new-connection-in-sql-developer ► Permanent tablespace https://youtu.be/vkwKZIssvfc ► Temporary Tablespace https://youtu.be/Hc_OXitKgWM ► Undo Tablespace https://youtu.be/HlSrHX7ffbI ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. ------------------------------------------------------------------------- ►►►Help Me In Getting A Job◄◄◄ ►Help Me In Getting A Good Job By Connecting With Me on My LinkedIn and Endorsing My Skills. All My Contact Info is Down Below. You Can Also Refer Me To Your Company Thanks ------------------------------------------------------------------------- Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=kb4rc1 -------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! -------------------------------------------------------------------------- Amazon Wishlist: http://bit.ly/wishlist-amazon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at for E-mail address please check About section Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 29151 Manish Sharma
How to Generate Oracle ER Diagrams Using PL/SQL Developer & Oracle SQL Developer?
 
05:35
This Video Will Teach you.. How to Generate Oracle ER Diagrams Using PL/SQL Developer & Oracle SQL Developer? Document Attached @ https://github.com/arulxaviers/Generate_ER_Diagram_SQL_Developer how to generate erd from sql developer how to generate er diagram using pl/sql developer how to generate er diagram using sql developer data modeler sql developer data modeler download how to generate er diagram using pl/sql developer how to generate er diagram using toad how to generate er diagram using sql server management studio oracle sql developer data modeler reporting repository required. generate er diagram from sql server how to generate er diagram using oracle sql developer
Views: 4056 Oracle PL/SQL World
AutoNumber, Identity and Using Sequences as Default Values in Oracle
 
03:13
In this video we demonstrate the legacy method to implement autonumber or identity functionality in the Oracle database, as well as the new features in Oracle 12c that can be used to replace this method. For more information see: https://oracle-base.com/articles/misc/autonumber-and-identity https://oracle-base.com/articles/12c/identity-columns-in-oracle-12cr1 https://oracle-base.com/articles/12c/default-values-for-table-columns-enhancements-12cr1#sequences Website: https://oracle-base.com Blog: https://oracle-base.com/blog Twitter: https://twitter.com/oraclebase Cameo by Alex Zaballa Blog: http://alexzaballa.blogspot.co.uk/ Twitter: https://twitter.com/alexzaballa Cameo appearances are for fun, not an endorsement of the content of this video.
Views: 6605 ORACLE-BASE.com
SQL Magic Trick: Invisible Columns  with Chris Saxon
 
08:07
So many new features in Oracle Database 12c allow DBAs and Developers to work magic... Watch this SQL Magic Trick with Chris Saxon, Oracle SQL Developer advocate and member of the AskTOM team
Views: 178 Oracle Developers
Oracle - SQL - Introduction
 
13:33
Oracle - SQL - Introduction Watch more Videos at https://www.tutorialspoint.com/videotutorials/index.htm Lecture By: Mr. Anadi Sharma, Tutorials Point India Private Limited.
74. PL/SQL Table in Oracle
 
10:54
In this video you will learn about PL/SQL Table in Oracle. For Support =========== Email: [email protected] Contact Form: http://www.learninhindi.com/home/contact Our Social Media ================ Facebook: https://www.facebook.com/LearnInHindi Twitter: https://twitter.com/LearnInHindi For Training & Videos ===================== For more videos and articles visit: http://www.learninhindi.com Free Java Programming In Hindi Course ===================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAwwhMyoLISrxkXTADGp7PH Free Oracle PL/SQL Programming In Hindi Course ============================================== https://www.youtube.com/playlist?list=PLB5DA82419C2D99B6 Free C Programming In Hindi Course ================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAxKpBLMWogxSdy6BZcsAJq Trips & Tricks Channel ====================== https://www.youtube.com/channel/UCGmLfkuCo-3lHHJXRJ9HUMw Programming in Hindi Channel ============================ https://www.youtube.com/channel/UCudElIDgwNrybeAvXIy1HZQ
Views: 3338 ITORIAN
Get Table Names with Column Names and Data Types in SQL Server - SQL Server Tutorial
 
05:47
In this video ,we will generate the script that will return us all the table names with column names and data type of those columns. We often need this information. Let's say we are going to prepare mapping document for load the data from Source Database to Destination database. We can get the list of all tables with column names and data types from Source Database and Destination Database and then paste in Excel and map the required input columns to output columns for ETL Process. Blog link with scripts used in video http://sqlage.blogspot.com/2015/02/get-all-tables-with-column-names-and.html
Views: 40181 TechBrothersIT
Oracle Alter Table Statment تعليم اوراكل
 
14:34
by Mohamed El Desouki - محمد الدسوقى [email protected] Tel :00966 553450836 جامعة سلمان بن عبد العزيز - السعودية - الخرج How to modify the table structure using Alter Table statement. كيف تعدل بناء الجدول Text Book: Fundamentals of Database Systems, 5th Edition, by Elmasri/Navathe, published by Addison-W
6. How to Disable Tab and Hide a Button using Form Personalization (R12)- Oracle ERP Apps Guide
 
08:04
6. How to Disable Tab and Hide a Button using Form Personalization (R12)- Oracle ERP Apps Guide: In this tutorial, I have explained the how to disable Tab and Hiding the Buttons using Form Personalization. Thanks for watching everyone! Subscribe ► https://www.youtube.com/user/veluruga... Youtube Channel ► https://www.youtube.com/veluruga Facebook Page ► https://www.facebook.com/LearnOracleErpAppsGuide Faceook Group ► https://www.facebook.com/groups/oracleerpappsguide Google+ Communities ► https://plus.google.com/u/0/communities/111267855409088676081 Blog ► http://www.oracleerpappsguide.com Email ► [email protected] Happy Learning!.
Views: 3296 Oracle ERP Apps Guide
SQL Developer 3.1 - Database Copy
 
04:55
This demonstration will show how to copy objects and data from one database to another. This video is part of the SQL Developer Release 3.1 New Features series. --------------------------------------------------------------------- Copyright © 2012 Oracle and/or its affiliates. Oracle® is a registered trademark of Oracle and/or its affiliates. All rights reserved. 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 of merchantability, fitness for a particular purpose, and non-infringement.
SQL 12c Tutorial 9 : SQL DEFINE , UNDEFINE & SET VERIFY Commands
 
05:34
SQL 12c Tutorial 9 : SQL DEFINE , UNDEFINE & SET VERIFY Commands SQL 12c Tutorial for beginners Oracle SQL 12c Tutorial
Views: 218 TechLake
How to Create an account on oracle application express(APEX)
 
03:29
This video shows how to create an account on oracle database application express .
Views: 523 SQL TUTORIALS
ORACLE PL/SQL, Control de excepciones 1
 
12:32
En este vídeo comenzamos a estudiar las excepciones en el bloque PL/SQL. Es el primero de una serie de varios, ya que las excepciones precisan de un estudio bastante profundo debido a la complejidad cuando se aniden bloques.
Views: 202 Apréndelo gratis
How to enable idle_time parameter for user profiles on Oracle
 
03:01
Typically, malicious users target the inactive sessions to gain access into the database. By reducing the period of time an inactive session stays connected, the probability of that session being a victim of abuse is reduced. Also, setting up idle_time helps to reduce problems of having too many INACTIVE sessions.
Views: 1029 checklist20
PLS-11: Oracle PL/SQL Reference Cursor
 
08:43
Oracle For Full Course Experience Please Go To http://mentorsnet.org/course_preview?course_id=5 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: 72434 Oresoft LWC
Introduction to Oracle: PL-SQL - WHILE Statement
 
03:55
Introduction to Oracle: PL-SQL - WHILE Statement
Views: 86 David Hays
SQL Tutorial - Sequence Objects
 
22:06
This video will teach you how to create sequence objects with working examples, within SQL Server, we also look at the benefits of sequence objects and some of the differences between a sequence object and identity. CREATE SEQUENCE 'name' AS 'data type' START WITH 'value' INCREMENT BY 'value' MINVALUE 'value' (optional – will default to data type range) MAXVALUE 'value' (optional – will default to data type range) CYCLE? (optional – will default to NO CYCLE) How to find details of sequence objects within the database: sys.sequences – will show all information regarding sequence objects including current value How to restart the value of a sequence object: ALTER SEQUENCE 'name' RESTART WITH 'value' How to drop a sequence: DROP SEQUENCE 'name' (cannot drop a sequence if it is in use!) How to generate the next value for a sequence: SELECT NEXT VALUE FOR 'name' Sequences are covered in the Microsoft Exam – Querying SQL Server (70-461) 2012 / 2014. SQL Statements used below: CREATE SEQUENCE seq_test AS TINYINT START WITH 1 INCREMENT BY 1 MINVALUE 1 MAXVALUE 100 CYCLE CREATE TABLE Food_Orders ( Id TINYINT DEFAULT NEXT VALUE FOR seq_test , [Date] DATETIME2 , Summary VARCHAR(100) ) CREATE TABLE Food_Orders_2 ( Id TINYINT DEFAULT NEXT VALUE FOR seq_test , [Date] DATETIME2 , Summary VARCHAR(100) ) -- loop to insert data to test sequence DECLARE @N TINYINT = 1 WHILE @N 'less than' 110 BEGIN INSERT INTO Food_Orders([Date], Summary) VALUES (CURRENT_TIMESTAMP, 'Burger and Chips') INSERT INTO Food_Orders_2([Date], Summary) VALUES (CURRENT_TIMESTAMP, 'Burger and Chips') SET @N = @N + 1 END SELECT NEXT VALUE FOR seq_test ALTER SEQUENCE seq_test RESTART WITH 1 DROP SEQUENCE seq_test CREATE SEQUENCE seq_new AS INT START WITH 1 INCREMENT BY -1 SELECT NEXT VALUE FOR seq_new SQL errors covered: The sequence object 'name' has reached its minimum or maximum value. Restart the sequence object to allow new values to be generated Cannot DROP SEQUENCE 'name' because it is being referenced by object 'name'
Views: 277 BeardedDev
Reducing Software Licensing Costs | Turbonomic
 
03:49
Learn how Turbonomic can help you reduce software licensing cost by assuring application performance with the most efficient infrastructure supply possible. http://turbonomic.com There’s an old IT joke about the Oracle parking lot and the $50,000 ticket you pay to park there. Why so expensive? Because with Oracle you have to license every possible space, rather than just the one you park in. Well, that joke resonates because software licensing from Oracle and other vendors can often feel like a minefield of hidden (and explosive) costs. When you add virtualization and cloud infrastructure to the mix, that gold-plated parking lot can literally transform into a no-man’s land filled with well-hidden, job-threatening surprises. To navigate this mine field, companies often end up over-provisioned not only on hardware but also in licensing – to the tune of up to 70% over provisioned, costing companies tens of thousands of dollars a month in wasted licensing costs for hardware that is seldom if ever used by the software for which it is licensed. The problem is that it’s impossible for sys admins to dynamically match application demand with infrastructure supply to ensure that such licensing costs are minimized. There are simply too many tradeoffs to consider: things as basic as CPU, storage and network utilization; correct configuration; specific hardware requirements for specific workloads; even business or regulatory constraints beyond licensing itself, as well as how all of these tradeoffs within each VM, workload or container impact every other VM, workload or container. That’s why we built VMTurbo – today’s modern virtual data center and cloud environments are complex beyond human control, but not beyond what software can control. All it takes is the right algorithm – one that can help guide a data center to a healthy equilibrium between assuring application performance in a way that’s also most cost-efficient. VMTurbo’s application performance control system solves this fundamental challenge. Its patented approach leverages market principles to provide actionable decisions of which workloads to run when and where, what configuration may be required and how to ensure business, technical or regulatory constraints are all met – by pricing each of these individually in a demand-driven commodity market. In this market, a workload, container or VM then makes decisions based on the demand they face, and the price suppliers of resources, for example a server, storage array or network switch, are offering. It can also factor in licensing along with CPU, memory and the like to decide where the workload best resides, how large it needs to be, how it should be configured. In so doing, VMTurbo effectively enables your environment to self-organize to assure performance – indeed, even improve performance by 37%, while remaining in compliance with all policies and constraints – with the helpful by-product of maximizing server density and minimizing license exposure. Often to the tune of tens of thousands of licensing dollars saved. Some VMTurbo customers are even saving over a hundred thousand dollars in licensing - every month. And when demand has reached a point where you need new hardware, VMTurbo will tell you exactly what you need with more than enough advanced notice for you to make the best decision on what hardware you should choose – enabling you to plan as accurately as possible by leveraging real-time operations data to model different “what-if” scenarios. So stop paying for Oracle or any other parking you’ll never use. If you want to run any workload on any infrastructure, anywhere, anytime – and need to improve performance while minimizing licensing risk – visit vmturbo.com/gutcheck to sign up for a licensing gut check and see how Application Performance Control can help you in your data center. It’s 60 minutes, well spent.
Views: 2125 Turbonomic
How to Grant Select Permission on Table/s  to User in MariaDB -MariaDB Admin Tutorial
 
06:09
How to Grant Select Permission on Table/s to User in MariaDB provide all the steps from creating a brand new user and then provide select permission on single table or all the tables in a database in MariaDB. If you would like to see the script used in the video, visit below link. http://techbrotherstutorials.com/pages/tutorials/MariaDB%20Administration%20_126/How%20to%20Grant%20Select%20Permission%20on%20Tables%20%20to%20User%20in%20MariaDB_1012 Check out our website for Different SQL Server, MSBI tutorials and interview questions such as MariaDB Admin Tutorial Cassandra CQL Tutorial 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: 345 TechBrothersIT
Crear usuarios y privilegios en oracle
 
05:23
Crear usuario y privilegios
Views: 1922 Jorge Mendez
SQL: Change User Password
 
02:38
In this tutorial, you'll learn how to change user password in sql plus PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's procedural extension for SQL and the Oracle relational database. PL/SQL is available in Oracle Database (since version 7), TimesTen in-memory database (since version 11.2.1), and IBM DB2 (since version 9.7).[1] Oracle Corporation usually extends PL/SQL functionality with each successive release of the Oracle Database. PL/SQL includes procedural language elements such as conditions and loops. It allows declaration of constants and variables, procedures and functions, types and variables of those types, and triggers. It can handle exceptions (runtime errors). Arrays are supported involving the use of PL/SQL collections. Implementations from version 8 of Oracle Database onwards have included features associated with object-orientation. One can create PL/SQL units such as procedures, functions, packages, types, and triggers, which are stored in the database for reuse by applications that use any of the Oracle Database programmatic interfaces. PL/SQL works analogously to the embedded procedural languages associated with other relational databases. For example, Sybase ASE and Microsoft SQL Server have Transact-SQL, PostgreSQL has PL/pgSQL (which emulates PL/SQL to an extent), and IBM DB2 includes SQL Procedural Language,[2] which conforms to the ISO SQL’s SQL/PSM standard. The designers of PL/SQL modeled its syntax on that of Ada. Both Ada and PL/SQL have Pascal as a common ancestor, and so PL/SQL also resembles Pascal in several aspects. However, the structure of a PL/SQL package does not resemble the basic Object Pascal program structure as implemented by a Borland Delphi or Free Pascal unit. Programmers can define public and private global data-types, constants and static variables in a PL/SQL package.[3] PL/SQL also allows for the definition of classes and instantiating these as objects in PL/SQL code. This resembles usage in object-oriented programming languages like Object Pascal, C++ and Java. PL/SQL refers to a class as an "Abstract Data Type" (ADT) or "User Defined Type" (UDT), and defines it as an Oracle SQL data-type as opposed to a PL/SQL user-defined type, allowing its use in both the Oracle SQL Engine and the Oracle PL/SQL engine. The constructor and methods of an Abstract Data Type are written in PL/SQL. The resulting Abstract Data Type can operate as an object class in PL/SQL. Such objects can also persist as column values in Oracle database tables. PL/SQL is fundamentally distinct from Transact-SQL, despite superficial similarities. Porting code from one to the other usually involves non-trivial work, not only due to the differences in the feature sets of the two languages,[4] but also due to the very significant differences in the way Oracle and SQL Server deal with concurrency and locking. There are software tools available that claim to facilitate porting including Oracle Translation Scratch Editor,[5] CEITON MSSQL/Oracle Compiler [6] and SwisSQL.[7] The StepSqlite product is a PL/SQL compiler for the popular small database SQLite. PL/SQL Program Unit A PL/SQL program unit is one of the following: PL/SQL anonymous block, procedure, function, package specification, package body, trigger, type specification, type body, library. Program units are the PL/SQL source code that is compiled, developed and ultimately executed on the database. The basic unit of a PL/SQL source program is the block, which groups together related declarations and statements. A PL/SQL block is defined by the keywords DECLARE, BEGIN, EXCEPTION, and END. These keywords divide the block into a declarative part, an executable part, and an exception-handling part. The declaration section is optional and may be used to define and initialize constants and variables. If a variable is not initialized then it defaults to NULL value. The optional exception-handling part is used to handle run time errors. Only the executable part is required. A block can have a label. Package Packages are groups of conceptually linked functions, procedures, variables, PL/SQL table and record TYPE statements, constants, cursors etc. The use of packages promotes re-use of code. Packages are composed of the package specification and an optional package body. The specification is the interface to the application; it declares the types, variables, constants, exceptions, cursors, and subprograms available. The body fully defines cursors and subprograms, and so implements the specification. Two advantages of packages are: Modular approach, encapsulation/hiding of business logic, security, performance improvement, re-usability. They support object-oriented programming features like function overloading and encapsulation. Using package variables one can declare session level (scoped) variables, since variables declared in the package specification have a session scope.
Views: 7477 radhikaravikumar
Oracle Row level trigger to check valid email id Session 6
 
04:47
Oracle SQL PLSQL and Unix Shell Scripting
Views: 622 Sridhar Raghavan
Oracle Database Tutorial 53 : Data pump expdp - How to Export tablespace in Oracle Database
 
06:26
Oracle Database tutorial/SQL Tutorial 52 On Data Pump expdp export utility here in this tutorial you'll learn how to export tablespace using expdp export (a.k.a. How To Take Logical Backup of tablespaces in oracle database). Data pump expdp Tablespace Mode ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog: http://bit.ly/export_tablespace_expdp_datapump Previous Tutorial (Tut 52 Full export) http://youtu.be/K8_PjUksT54 ------------------------------------------------------------------------- Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=kb4rc1 -------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! -------------------------------------------------------------------------- Amazon Wishlist: http://bit.ly/wishlist-amazon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at [email protected] Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 30850 Manish Sharma