Search results “Grant oracle procedure execute”
How to grant execute permissions on a SQL Server Database?
Please subscribe to this channel to get updates.. In this video, you will learn how to grant execute permissions on a SQL Server Database. Also, while preparing this video I have experienced multiple issues and fixed them to achieve the task. Hope you like it. Check out my other videos, How to quickly register multiple SQL Server into SQL Server Management Studio? https://www.youtube.com/watch?v=ApXXS4blbVw How to create Conflicts in Replication in SQL Server? https://youtu.be/nGuUPyla1Cw
Views: 17938 Srikanth Srikanth
Stored Procedure - Execute Privilege - PL SQL Stored Procedure - Procedure in PL SQL
This video is about applicability of privileges to PL/SQL Stored Subprograms. Execute privilege is granted on the stored procedure to the other users. Stored procedure are schema objects in the databases as they are owned by a user Become patron : https://www.patreon.com/crazy4db/ #Crazy4DB #OraclePLSQL #LearnPLSQL Important reference videos : Sys Ref cursor : https://youtu.be/S-pMilEj_EE For Views : https://youtu.be/K_NaE5q9yPU System triggers : https://youtu.be/YG3E7KzPDAs Trigger WHEN clause : https://youtu.be/kszD6F0Bs5I Trigger Predicates : https://youtu.be/bG9hPV_hzNU Mutating table trigger error : https://youtu.be/hFhAaMxqAHo DML Triggers : https://youtu.be/D71vWBZMqIk Trigger basics : https://youtu.be/_XSaPlQRQBg PL/SQL Package : https://youtu.be/1_IVMS35oJM For integrity constraints : https://www.youtube.com/playlist?list=PLdNnjIwbbBtZgOBw2u-IjsaF8tVDJZcBZ My web site : http://www.oracletrainingnagpur.com My blog : https://crazy4db.blogspot.in My facebook page : https://www.facebook.com/crazy4db/
Views: 140 Crazy4 DB
Oracle 12c PL/SQL Security New Features - Session 6 of 8 - Granting Roles to Procedures
See www.skillbuilders.com/12c-plsql-security for all free modules in this tutorial. It is now in Oracle Database 12c possible to grant roles to the stored program units. Remember this didn't apply to anonymous PL/SQL. Anonymous PL/SQL as always executed with the enabled roles of the invoker. But we can now grant role to a stored procedure. There are a couple of conditions. The role granted must be directly granted to the owner. I'm not sure if this is documented or not or it could've been issues I had during my own testing but certainly the last time I tested this thoroughly I found that if I granted roles to roles to roles to roles as I go down to three, it no longer functions. So that could've been just me or it may be documented. But certainly to be sure, the role granted must be granted directly to the person who's writing the code. Also and it is documented, the owner still needs direct privileges on the object that the code references. That make perfect sense because the role might be disabled at the time that he happens to be creating the object. So you need the role, you need direct privileges on the object referenced by the code. [pause] The invoker however needs absolutely nothing. The invoker now needs nothing, no roles, no privileges. All he needs is execute on the procedure. The invoker will then take on that role during the course of the call. This will tighten up the definer's rights problem and that our user doesn't have much at all. He needs the bare minimum and then only that role will be available, only the role is available to the invoker during the call. Not everything else that the owner happens to have. You can combine this as well with invoker's rights and either way we are controlling privilege inheritance. Invoker's rights plus roles restrict the ability of definer's to inherit privileges from invokers and invokers inherits privileges from definers, both of which raise that ghastly possibility of privilege escalation associated typically to SQL injection. [pause] Grant create session, create procedure to dev, and that will give him select on scott.emp to dev. I've given dev the minimum he needs to write code that hits that table. Then create a role. [pause] Create role r1 and that'll grant select on scott.emp to r1. Finally, grant r1 to dev. It has met the requirements. The role is granted to the owner, the owner does have direct privileges. [pause] So connect as dev/dev and create my favorite procedure. [pause] The same procedure has executed definer's rights and query scott.emp. But now what we can do this new is I can grant r1 to procedure list_emp. [pause] I'll create a very low privileged user now. I need to connect as sysdba and create user low identified by low, and all I shall give him is create session. [pause] And execute on that procedure. [pause] Grant execute on dev.list_emp to low. That's all he's got. He can log on and he can run, run one procedure. What actually is going to happen to him? Let me try to log on. Connect sys low/low set server output on and see if he can run that thing. Just to check, if he tries to select star from scott.emp he is the lowest of the low is my user low. But then execute dev.list_emp, trying to retrieve the CLARKs and it works. And because my user low has virtually no privileges at all, there's no possible danger of the malicious developer being able to inherit dangerous privileges from him. [pause] The final step, that functioned because of the privilege that I mentioned earlier - the privilege that we saw on the previous slide which was inheriting privileges. If I revoke that - and this is what you should be doing in all your systems after upgrade - revoke inherit privileges on user low from public, connect there, and it fails. So the final bit of tightening up the security is to grant the privilege specifically we grant inherit privileges on user low to dev. Now we have a totally secure system and that my low privilege user dev can do that. [pause] And nothing more. My low privileged developer dev can't grab anything in his too as well. That tightens things up totally.
Views: 2921 SkillBuilders
Oracle 12c Grant Role to PL/SQL Procedures - Lesson 1 of 2
A great new security feature that can - among other things - prevent SQL injection and a multitude of other security vulnerabilities. In 12c you can make your PL/SQL code secure using a declarative technique. Simply grant a role to the PL/SQL code and add AUTHID CURRENT_USER so that Oracle runs the code with the privileges of the invoker - not the developer (invoker rights procedures). Presto! Without code reviews and / or debugging you will have hardened your PL/SQL web application! In this free tutorial from SkillBuilders Director of Oracle Database Services, Oracle Certified Master John Watson will demonstrate the development of a simple PL/SQL web application, demonstrate SQL injection and how to prevent it with this new feature.
Views: 772 SkillBuilders
Simplified DBA-018-User Privileges
A privilege is a right to execute a particular type of SQL statement or to access another user’s object. The Oracle database enables you to control what the users can and cannot do in the database. Privileges are divided into two categories: System privileges: Each system privilege allows a user to perform a particular database operation or class of database operations. For example, the privilege to create tablespaces is a system privilege. System privileges can be granted by the administrator or by someone who has been given explicit permission to administer the privilege. Object privileges: Object privileges allow a user to perform a particular action on a specific object, such as a table, view, sequence, procedure, function, or package. Without specific permission, users can access only their own objects. Object privileges can be granted by the owner of an object, by the administrator, or by someone who has been explicitly given permission to grant privileges on the object. For example, in our demo ERPUSER will own the tables and other users will require read, write object privileges on ERPUSER tables. Example Connect erpuser/welcome1 Grant insert on myable1 to user1; Grant insert on myable1 to user5 Create tablespace erp_data datafile ‘/u01/app/oradata/db11lin/erpdata01.dbf’ size 100M autoextend on; Create user erpuser identified by welcome1 default tablespace erp_data temporary tablespace temp; Grant connect, resource to erpuser; Create user user1 identified by welcome1 default tablespace erp_data temporary tablespace temp; Create table erpuser.mytable1 ( sno number(5), sname varchar2(20)); We can create a table for any user in this format if we have dba privileges. [owner.tablename] Connect user1/welcome1 Insert into erpuser.mytable1 values(100, ‘by user1’); Commit;
Oracle - grant and revoke
Oracle - grant and revoke
Views: 8453 Chris Ostrowski
How to installation  Oracle Designer 10 g  and Introduction
دي الصلاحيات المطلوبه لليوزر GRANT EXECUTE ON DBMS_LOCK TO &U; GRANT EXECUTE ON DBMS_PIPE TO &U; GRANT EXECUTE ON DBMS_RLS TO &U; GRANT SELECT ON dba_rollback_segs TO &U; GRANT SELECT ON dba_segments TO &U; GRANT SELECT ON sys.v_$nls_parameters TO &U WITH GRANT OPTION; GRANT SELECT on V_$PARAMETER TO &U; GRANT ALTER SESSION TO &U; GRANT CREATE ANY SYNONYM TO &U; GRANT CREATE SESSION TO &U; GRANT CREATE DATABASE LINK TO &U; GRANT CREATE PROCEDURE TO &U; GRANT CREATE ROLE TO &U; GRANT CREATE SEQUENCE TO &U; GRANT CREATE SESSION TO &U; GRANT CREATE TABLE TO &U; GRANT CREATE TRIGGER TO &U; GRANT CREATE TYPE TO &U; GRANT CREATE VIEW TO &U; GRANT DROP ANY SYNONYM TO &U; GRANT SELECT ANY SEQUENCE TO &U; GRANT CREATE PUBLIC SYNONYM TO &U; grant execute on dbms_lock to &U; grant execute on dbms_pipe to a&U; grant execute on dbms_rls to &U; grant select on dba_rollback_segs to &U; grant select on dba_segments to &u; grant select on v_$nls_parameters to &u; grant select on v_$parameter to &u;
Views: 3973 Ahmed Tartour
How to grant execute permissions on a SQL Server 2017 Database
Don't forget to subscribe to our channel. https://www.youtube.com/tricksthatmakesmart https://www.facebook.com/tricksthatmakeyousmart https://www.facebook.com/groups/tricksthatmakeyousmart
Easiest way to execute Plsql block in Oracle
If you want to execute Plsql block easily. You can refer this video. Here On Ubuntu 16.04 with Oracle 11g and Sqlplus we can execute Plsql or sql programs.
Webutil configuration in Oracle Forms 11g
Webutil configuration in Oracle Forms 11g install.syslib.|167936|1.18|true install.syslib.|205312|1.18|true CREATE USER Webutil IDENTIFIED BY Webutil; grant create session, create procedure, create public synonym to webutil; Grant connect, resource to Webutil; Connect Webutil/Webutil; @c:\oracle\middleware\oracle_frhome1\forms\create_webutil_db.sql; connect sys as sysdba; Create public synonym webutil_db for webutil.webutil_db; Grant execute on webutil_db to public; [scott] form=E:\TEST\TEST_INFO.fmx userid=scott/[email protected] separateFrame=False WebUtilArchive=frmwebutil.jar,jacob.jar WebUtilLogging=off WebUtilLoggingDetail=normal WebUtilErrorMode=Alert WebUtilDispatchMonitorInterval=5 WebUtilTrustInternal=true WebUtilMaxTransferSize=20000 baseHTMLjinitiator=webutiljpi.htm baseHTMLjpi=webutiljpi.htm archive_jini=frmall_jinit.jar,frmall.jar archive=frmall.jar width=100% height=100% pageTitle=Testing for Scott lookAndFeel=oracle colorScheme=teal
Views: 6328 M Tarik
Permission to User At Table level and Stored Procedure--SQL SERVER
Permission to User At Table level and Stored Procedure--SQL SERVER 2008.create login - this video shows you how to create a window user, sql server login, sql server user and how to map the login to sql server user and the permission, securables, principal.
Views: 1581 All Videos
Extending Oracle Database DevOps with Automated PL/SQL Unit Testing
Integrating utPLSQL for test automation of PL/SQL and SQL into Oracle Developer Cloud Service for complete DevOps - blog with more info - https://blogs.oracle.com/shay/extending-oracle-database-devops-with-automated-plsql-unit-testing
Views: 5742 ShayJDev
How to implement VPD in Oracle Database (Part 1)
How to implement VPD (Virtual Private Database) in Oracle Database(9i,10g,11g,12c) Enterprise Edition. PART 1 Video links: Part 1 https://youtu.be/JVvtvh3cN1I Part 2 https://youtu.be/xLcin_Wgbvs Part 3 https://youtu.be/mE1cSbmEwnQ This is Part of Oracle Advance Security. Please view my earlier videos on how to create a database , if you are not having a database. 1)First we will create the users needed for our environment a)Owner of the schema which will have the objects or tables b)security admin user c)non owner user1 & user2 which will have limited access as per data in the rows (here user1 will have access to data with HR and user2 with FINANCE) Object owner creation: -------------- CREATE USER schemaowner IDENTIFIED BY schemaowner DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp; GRANT connect, resource TO schemaowner; alter user schemaowner quota unlimited on users; security admin user creation: -------------- CREATE USER SEC_ADM IDENTIFIED BY sec_adm default tablespace users temporary tablespace TEMP; GRANT CONNECT, RESOURCE TO sec_adm; alter user sec_adm quota unlimited on users; garnts for the sec_adm user: ------------- GRANT CREATE SESSION,CREATE ANY CONTEXT,CREATE PROCEDURE,CREATE TRIGGER, ADMINISTER DATABASE TRIGGER TO SEC_ADM; GRANT EXECUTE ON DBMS_SESSION TO SEC_ADM; GRANT EXECUTE ON DBMS_RLS TO SEC_ADM; create user with restricted access on table: ----------------------- CREATE USER user1 IDENTIFIED BY user1 DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp; GRANT connect, resource TO user1; CREATE USER user2 IDENTIFIED BY user2 DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp; GRANT connect, resource TO user2; Now we will log in as schemaowner and create one tables : ------------------- CONN schemaowner/schemaowner This table is the table which contains the secure as well as un-restricted data CREATE TABLE user_data (column1 VARCHAR2(50) NOT NULL, user_id VARCHAR2(30) NOT NULL); Now to access this table from other schema we need to give the select and insert privs to: GRANT SELECT, INSERT ON user_data TO sec_adm,user1, user2;
Views: 1163 OracleDBA
How to Grant Permission on Table Columns in MairaDB - MariaDB Admin Tutorial
How to Grant Permission on Table Columns in MairaDB demo explains how you can provide permissions on column level in MariaDB. You will be able to provide Select, update and Insert permission on columns in MariaDB. Link to scripts used in the demo http://techbrotherstutorials.com/pages/tutorials/MariaDB%20Administration%20_126/How%20to%20Grant%20Permission%20on%20Table%20Columns%20in%20MairaDB_1016 Check out our website for Different SQL Server, MSBI tutorials and interview questions such as MariaDB Admin Tutorial Cassandra CSQL 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/ http://techbrotherstutorials.com/
Views: 303 TechBrothersIT
طريقة تصطيب الديزاينر وعمل مشروع مصغر عليه
دي الصلاحيات المطلوبه لليوزر GRANT EXECUTE ON DBMS_LOCK TO &U; GRANT EXECUTE ON DBMS_PIPE TO &U; GRANT EXECUTE ON DBMS_RLS TO &U; GRANT SELECT ON dba_rollback_segs TO &U; GRANT SELECT ON dba_segments TO &U; GRANT SELECT ON sys.v_$nls_parameters TO &U WITH GRANT OPTION; GRANT SELECT on V_$PARAMETER TO &U; GRANT ALTER SESSION TO &U; GRANT CREATE ANY SYNONYM TO &U; GRANT CREATE SESSION TO &U; GRANT CREATE DATABASE LINK TO &U; GRANT CREATE PROCEDURE TO &U; GRANT CREATE ROLE TO &U; GRANT CREATE SEQUENCE TO &U; GRANT CREATE SESSION TO &U; GRANT CREATE TABLE TO &U; GRANT CREATE TRIGGER TO &U; GRANT CREATE TYPE TO &U; GRANT CREATE VIEW TO &U; GRANT DROP ANY SYNONYM TO &U; GRANT SELECT ANY SEQUENCE TO &U; GRANT CREATE PUBLIC SYNONYM TO &U; grant execute on dbms_lock to &U; grant execute on dbms_pipe to a&U; grant execute on dbms_rls to &U; grant select on dba_rollback_segs to &U; grant select on dba_segments to &u; grant select on v_$nls_parameters to &u; grant select on v_$parameter to &u; تم شرح طريقه التصطيب للديزانير وعمل مشورغ مصغر وكيفيه تصدير الى الداتا بيز
Views: 1241 Ahmed Tartour
[Executing Stored Procedure] 2 - Execute user defined stored procedure
Executing Stored Procedure Given a SQL Server tabled named Customer_Details in the ABC_Bank database,you will view and practice how to execute built-in and user-defined stored procedures using Transact-SQL commands 1 - Execute built-in stored procedure 2 - Execute user-defined stored procedure Learn more and source code at : http://www.tutorialspoint.edu.vn/introducing-stored-procedures/12621-workshop-introducing-stored-procedures.html
Views: 181 little fire
Oracle DBA Justin - How to grant a system privilege to a user in an Oracle database
How to grant a system privilege to a user in an Oracle database
Views: 23299 jbleistein11
SQL tutorial 45: Introduction to user Privileges in Oracle Database By Manish Sharma RebellionRider
First SQL Tutorial in the series of user privileges in oracle database an introduction to user privileges. In this tutorial you will learn ● What is user privileges ● Different types of user Privileges ● Data Control Language (DCL) Grant and Revoke ● Who Can Grant or Revoke System Privileges? ● Oracle grant flags such as "With Admin option, With Grant option and with hierarchy option " This is a quick video on Introduction of user privileges expaining the theoretical concepts for the better understanding of the concept and up coming videos in USER PRIVILEGE series. Celebrating 1000 subscribers. Thanks a lot guys for all your love and support. ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog: http://bit.ly/introduction-to-user-privileges ------------------------------------------------------------------------- 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 first 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: 29853 Manish Sharma
How To Perform CRUD Operations in Oracle Database
In this video you will learn how to create table , insert records into table, update records and delete records access to oracle acronym crud adf components adf generator adf operations adf table adf tree adf tree table adf ui asp net mvc oracle asp net mvc oracle tutorial bind soa connect to database java connectivity in java create procedure in oracle create procedure in sql server create procedure oracle create procedure sql server create read update delete create store procedure create stored procedure create stored procedure in sql create stored procedure in sql server create stored procedure sql create stored procedure sql server create update delete crud acronym crud analysis crud analysis example crud application crud application in java crud computer science crud data crud database crud database definition crud definition crud example in java crud generator c# crud generator php crud generator sql server crud in database crud in java crud in java web applications crud in jsp crud in sql crud interface crud java crud java example crud jquery crud jsp crud meaning crud meaning database crud mysql crud operation in jsp servlet crud operation in mvc crud operations crud operations in database crud operations in hibernate and spring crud operations in java crud operations in sql crud operations in sql server crud operations java crud operations using servlets and jsp crud php crud report crud script crud servlet crud software crud spring crud sql crud sql server crud stands for crud table crud ui crud update crud web crud web application crud website crud wiki curd operations data crud database connectivity in java database crud database crud operations db crud define crud definition of crud jdbc connection code in java jdbc connection example jdbc connection in java example jdbc crud jdbc example jdbc resultset example jdbc resultset types jquery ajax java jquery crud jquery ui 1.10 3 custom js jsp crud jsp crud application jsp servlet crud example matriz crud meaning of crud ms sql create stored procedure mvc 4 crud example mysql crud mysql crud generator mysql django oracle adf ui oracle blogspot oracle create procedure oracle dml oracle grant oracle grant execute oracle grant privileges oracle grant privileges to user oracle grant select oracle grant syntax oracle nosql tutorial oracle overview oracle permissions oracle revoke oracle sdo oracle sql grant oracle unlock table perform curd operations in oracle database php crud php crud generator pl sql grant procedure in sql server procedure sql resultset example resultset in java example resultset java example revoke grant revoke grant oracle servlet crud example servlet jsp crud example simple crud web application simple jdbc program spring crud spring crud application example spring crud example spring crud tutorial spring mvc crud spring mvc crud example spring mvc hibernate crud example sql create procedure sql create stored procedure sql crud sql crud generator sql delete stored procedure sql server create procedure sql server create stored procedure sql server crud sql server crud generator stored procedure for insert stored procedure insert stored procedure insert into table stored procedure sql server struts crud example struts jdbc example struts with jdbc example struts2 crud example struts2 database connection example tree table unlock table oracle update query in java update stored procedure in sql server using jtable variable oracle web crud what does crud mean what does crud stand for what is a crud what is crud what is crud in database what is crud operations what is crud operations in java
Views: 2611 Programming Lifestyle
Oracle DBA Justin - How to execute sql and Sqlplus commands from an external script
How to execute sql and Sqlplus commands from an external script
Views: 89454 jbleistein11
Oracle tutorial : Grant Revoke In Oracle
Oracle tutorial : Grant Revoke In Oracle we can GRANT and REVOKE privileges on various database objects in Oracle. Example : on Tables ,functions ,procedures etc. Syntax : GRANT privileges ON object TO user; example : GRANT SELECT, INSERT, UPDATE, DELETE ON TEST TO MYDEV; or GRANT ALL ON TEST TO MYDEV; REVOKE PRIVILEGES ON TABLE Syntax : REVOKE privileges ON object FROM user; REVOKE DELETE ON TEST FROM MYDEV; REVOKE ALL ON TEST FROM MYDEV; For more tutorial please visit #techquerypond https://techquerypond.com https://techquerypond.wordpress.com https://twitter.com/techquerypond
Views: 1365 Tech Query Pond
Oracle username and password and Account unlocking
all education purpose videos
Views: 292851 Chandra Shekhar Reddy
This video is out of audio and video sync, please find the Synced video uploaded on https://youtu.be/8EUQyDeWSq4 Always thought we cannot have a create statement inside a pl/sql block, well here is the answer for that, and along with that learn how to generate sql statement on the go. This video demonstrates the use of Dynamic SQL with the help of Execute Immediate. The video also demonstrates the INTO and USING clause of the execute immediate statement.
Views: 3498 Kishan Mashru
How to create and execute a Procedure in sql command prompt
How to create and execute a Procedure in sql command prompt..
Views: 10841 pathi s
Oracle 12c PL/SQL Security New Features - Session 5 of 8 - The New Inherit Privileges Privilege
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: 1611 SkillBuilders
Create a simple PL/SQL unit test using Toad
https://www.quest.com/products/toad-for-oracle/ Creating unit tests for PL/SQL code is an important developer task that doesn’t often get done because it’s difficult and time consuming. As more companies try to bring database change management into DevOps, the absence of tests and a way to automate their execution becomes a major roadblock. Toad provides a really simple way to overcome that roadblock.
Views: 23413 Quest
Oracle DBA Justin - How to wrap PL/SQL code in an Oracle database
How to wrap PL/SQL code in an Oracle database
Views: 16335 jbleistein11
DDL commands | SQL queries | Oracle database 11g version 2 |
how to write sql queries i.e DDL commands in oracle
Views: 693 Education 4u
63/125 Oracle PLSQL: Supplied  Packages / UTL_FILE  2
if you face issue remember to do this grant READ, WRITE on DIRECTORY MYDIR to public; تعلم اوراكل حتى الاحتراف Learn Oracle PLSQL EXAM 1Z0-144
Views: 778 khaled alkhudari
SQL Server -  Grant and Revoke in Sql | Create New User in Sql | DCL Commands in Hindi/Urdu Part-5
In this video you can learn (DCL) Data Control Languag Commands in Microsoft SQL Server in Hindi/Urdu. How to Create New User in SQL Server Using Grant or Revoke Statements For more updates visit our website: http://www.safcode.com/ Here we explain Sql Commands Like Data Definition Language (DDl), Data Manipulation Language (DML), Data Control Language (DCL), Triggers, Store Procedure, Virtual Tables (Views), Joins, Inner Join, Left Joins, right Joins, Sql Function, Queries, Primary Key, Foreign Key and more .....! See our Related Videos Like: SQL Server Tutorials for beginner in hindi/urdu https://www.youtube.com/watch?v=khkix1I6XSc&feature=youtu.be SQL Server - Insert in sql | Data Manipulation Language (DML) in hindi/urdu https://www.youtube.com/watch?v=6sdYjIIp8uA&feature=youtu.be Windows Form c# Tutorials for Beginnners in Hindi/Urdu https://www.youtube.com/watch?v=jL8RGGCXN-I you are also like our facebook page for more updates Facebook: https://www.facebook.com/safcode3 For more details visit our website: http://safcode.com/ #DataControlLanguage #DCLinSqlServer #GrantandRevokeinSql
Views: 2600 Safcode
How to Grant Roles and Privileges in  Sql Anywhere | Sybase Central
In this video you will learn how to assign or grant roles and privileges in sql anywhere database. The users can be given various roles and privileges to perform different tasks A role-based access control model is provided for the execution of privileged operations. A role-based security model provides complete control and granularity for the privileges you want to grant to users. Each privileged operation a user can perform in the database requires one or more system or object-level privileges. A system privilege is a right to perform an authorized database task. For example, the CREATE TABLE system privilege allows a user to create self-owned tables. An object-level privilege is a right to perform an authorized task on a specified object. For example, having ALTER privileges on TableA allows a user to alter that table, but not other tables. A role is a collection of one or more system privileges, object-level privileges, or roles. You can grant roles to other roles to create a role hierarchy. Granting a role to a user is equivalent to granting the user the underlying system privileges for the role. Each new or migrated database includes a predefined set of roles you can use to get started. These system roles act as a starting point for implementing role-based security. There are three types of roles in the role-based security model: system roles, user-defined roles (which include user-extended roles), and compatibility roles. View the roles and privileges a user has in SQL Central by clicking the user and viewing the details that are displayed. You can also retrieve the details using the sp_displayroles system procedure. A privilege is a right to perform a privileged operation on the system. For example, altering a table is a privileged operation, depending on the type of alteration you are making. There are two types of privileges: system privileges and object-level privileges. System privileges give you the general right to perform a privileged operation, while object-level privileges restrict you to performing the operation on a specific object. For example, if you have the ALTER ANY TABLE system privilege, you can alter any table in the system. If you do not, you can only edit tables you create or tables on which you have the ALTER TABLE object-level privilege. System privileges are built in to the database and can be granted or revoked, but not created or dropped. With the exception of the MANAGE ROLES and UPGRADE ROLE privileges, system privileges cannot have system privileges granted to, or revoked from, them. Each system privilege, with the exception of the SET USER system privilege, is granted by default to either the SYS_AUTH_SA_ROLE or SYS_AUTH_SSO_ROLE compatibility role, but not both. The SET USER system privilege is granted to both roles (WITH ADMIN OPTION to SYS_AUTH_SSO_ROLE and WITH NO ADMIN OPTION to SYS_AUTH_SA_ROLE). You grant and revoke system and object-level privileges by using the GRANT and REVOKE statements.
Views: 61 Tech World
Oracle 12c PL/SQL Security Enhancements - Session 2 of 8- Tutorial Agenda
What's in the SkillBuilders Oracle 12c PL/SQL Security New Features tutorial. John Watson: What I want to talk about today is some security issues with 11g PL/SQL and then moving on to Oracle Database 12c. [see how they've been addressed] In general previous releases of the database have had real problems with security particularly with PL/SQL. This does cause a bit of confusion out there when you read third party assessments contrasting Oracle security with say SQL server and so on. Some people will say that Oracle security is rubbish. Other people will say it's fantastic. What causes that paradox? It's because you can secure your database, but you have to do it. Out of the box the database is stuffed full of marvelous facilities - the developer's marvelous facilities for users - but many of them are potentially highly dangerous. So make no mistake. Oracle database can and should be totally secure, but if your DBAs and your programmers don't make it secure it may be wide open to abuse, wide open to hackers. This has always been a problem. With later releases 11 and now 12, the situation is improving. There are more and more things that one can do declaratively, more techniques for tightening up those wonderfully powerful facilities that can be open to abuse. So what I'm going to go through is spend some time with 11g. We have to. We have to understand what some of the problems are that are being addressed. Also, of course, 11g will be available to be useful for several years to come. I'll spend some time in 11g environment looking at some of the major issues in the PL/SQL environment. Then we will move on to 12c and see some of the new facilities and see how they tighten up the security issues that we see with 11g. If possible - I don't know if this will come true or not - I'll maybe have quick look at network access control list I completely re-implemented in 12c and maybe talk a bit about the advanced security option as well as that has changed somewhat too. That's the agenda I intend to follow. Beginning with 11g, we'll go through what are the definer's rights, what are invoker's rights for code, the relationship between roles and PL/SQL. These issues, definer's rights, invoker's rights and roles is potentially very useful but cause a lot of confusion. I remember when I installed PL/SQL, it first came when it was first introduced in version 7 many, many years ago I found this mind bogglingly confusing. Invoker's rights came in a couple of releases later and then died. That added to the confusion because invoker's rights attempted to fix the problem caused by definer's rights. Roles have always been confusing in the PL/SQL 11g environment. We then move on to the 12c techniques. It's a whole new privilege - inherit privileges or inherit any privileges. That tightens up some of the problems with both views and with PL/SQL. They're very nice facility indeed. We can now grow up roles to procedures, so the confusion of roles in PL/SQL, that is not removed, but we can use roles in a much more [03:31 inaudible] fashion with PL/SQL in 12c. Also, closer [03:35 inaudible], that's the concept of the bequeath view. Just as PL/SQL stored procedures they execute definer's rights to invoker's rights with the privileges of the person who owns the PL/SQL or with the privileges of the person who invokes the PL/SQL. It's the same with views. Historically views are always executed with the privileges of the owner. Now, to a certain extent we can have what I might always call an invoker's rights view. Then if we have time, a couple of other things as well.
Views: 1159 SkillBuilders
How To Run .sql Program File In Oracle Command Line | SQL Tutorial | PL/SQL | Oracle SQL 10g
Please avoid or flag spams/hateful comments. And do not spam. Enjoy :) I am using the Oracle Sql server 10g express edition which is free to use. Download it from oracle website. Subscribe my Channel:- http://www.youtube.com/user/SanketRooney?sub_confirmation=1 Facebook Page:- https://www.facebook.com/UnpossibleNS Twitter Account:- https://twitter.com/UnpossiblePOG How To Run .sql File In Oracle Command Line | SQL Tutorial | PL/SQL Programming How To Run .sql File In Oracle Command Line | SQL Tutorial | PL/SQL Programming How To Run .sql File In Oracle Command Line | SQL Tutorial | PL/SQL Programming How To Run .sql File In Oracle Command Line | SQL Tutorial | PL/SQL Programming
Views: 14261 Unpossible POG
Oracle 12c PL/SQL Security Features - Lesson 4 of 8 - Roles and PLSQL
Learn how Roles really work with Oracle PL/SQL and why a privilege granted via a role can't be used in PL/SQL. Demonstrations, examples. See all lessons and many more free Oracle Database tutorials at https://www.skillbuilders.com/free-oracle-database-tutorials John Watson: We have the business of roles - roles and PL/SQL. The point here is that roles are invisible to PL/SQL. When you compile your code, only direct privileges are available. When you run your code, only direct privileges are available. This is for definer's rights, I should say. When you run the code, only direct privileges are available to grant to the definer. In effect, the definer's rights code, all roles are disabled within the stored procedure. And certainly roles are disabled when compiling the code. Functionally, it's equivalent to having issued the command SET ROLE NONE. Why is this? Why is it you can't use your privileges? It's perfectly straightforward. It's a technology limitation. Quickly to see what's going on. If I go in and say - let me connect or create a clear schema. I'll create myself, grant dba to jw identified by jw. I've created a user and given him ridiculously high privileges. Connect.... What can you do? You can do pretty much anything. If he wants to delete from scott.emp, he can do it. Let's roll back, because along with his dba role, he has the ability to pretty much anything to use the data. Now we'll create a procedure. If I create a procedure, create delemp as begin, and in there I delete from scott.emp, end, compilation errors. What are they? Show error. At line 2 table of view doesn't exist. That's line 2 delete from scott.emp. I remember way back in version 7, this cause so much confusion before we realized what was going on. It's quite simple that when we are within the code, as the definer or the invoker, because this is definer's rights code, when we are within the definer's rights code block or indeed when we are compiling a definer's rights code block, the roles are disabled and that's why we cannot see it. But why is this and why do I say it's a technology limitation? It's because roles can be enabled and disabled. They can be enabled or disabled. That makes it logically impossible to consider a role when executing a stored procedure because I might have the role enabled while I compile it, but how do I know that it's going to be enabled when I run it? If I grant execute on the code to a third party, he doesn't have the role at all and that he must not even be logged on. So it becomes a logical impossibility because of the way roles are used because roles are enabled or disabled. You can dynamically switch them on and off. It's a logical impossibility to use role within definer's rights program module. Invoker's rights code, however, is very different. That infuses some interesting issues. Invoker's rights code can use any roles that happen to be enabled for the user at the time that he invokes it in exactly the same way that an anonymous PL/SQL can use any enabled roles. In the security point of view, the definer can in effect grab any roles within his code that the invoker happens to have. Dave: [Question], John, pardon. How do you enable or disable a role? John: Right now there's several techniques. I won't spend too much time demonstrating. The easiest technique will be alter - I can set role none. And that will have disabled all my roles. Now if you look at this, I've got nothing. If I try to run my code and query - let's see. Yes. If I try to delete from scott.emp I can't see it. So I'll set role dba and now of course I can. That's the easiest way. In fact, there are much more [05:07 inaudible] ways to switch roles on and off. We can do it with operating system authentication and I can do it with proxy authentication. We have a persistent session through application server as well as a user when we pass that session out to many of the users that can switch roles on and off. That's the persistent session switch identities. Perhaps, best of all, I can create what I call secure application roles well it protect the role with a package and that can contest any number of issues - environment variables, maybe the time, maybe your IP address, perhaps the program you're using and switch roles on and off accordingly. So there are many ways for controlling roles and you should do it. Blindly granting roles and letting them be enabled all the time is not good security. The end result for this, however, you can get some pretty unexpected results within your code. I've tried to run through in our first half hour some of the issues that we see with PL/SQL in release 11g and earlier. After a short break, we'll move on to the 12c features.
Views: 310 SkillBuilders
4. Show + Grant + Revoke Access in MySql Server || command prompt and mysql tutorial
In this video we will learn how to check given permissions to the specific user and how to assign permission to the specific user.In last of the video we will learn how to revoke given permissions from the specific user.
Views: 2151 realAnilSharma
How to Grant Update Permission on Table/s to a User in MariaDB - MariaDB Admin Tutorial
How to Grant Update Permission on Tables to a User in MariaDB is step by step video demo in which you will learn how to provide Update permission on single table or multiple tables in a databases to user account. The scripts are provided in below link. http://techbrotherstutorials.com/pages/tutorials/MariaDB%20Administration%20_126/How%20to%20Grant%20Update%20Permission%20on%20Tables%20to%20a%20User%20in%20MariaDB_1013 Check out our website for Different SQL Server, MSBI tutorials and interview questions such as SQL Server Reporting Services(SSRS) Tutorial SQL Server Integration Services(SSIS) Tutorial SQL Server DBA Tutorial SQL Server / TSQL Tutorial ( Beginner to Advance) http://www.techbrothersit.com/ http://techbrotherstutorials.com/
Views: 161 TechBrothersIT
Create SQL user with select permissions
How to create an internal sql user and grant select permissions to a table using command line. SQL instructions to create a sql login, assign an user and grant select permissions to a table database.
Views: 3908 Miquel Boada
Object Privileges
#Oracle #ObjectPrivileges
Views: 185 Hemant K Chitale
Create Table, Inser Updaet Delete data in Oracle
You can GRANT and REVOKE privileges on various database objects in Oracle. We'll first look at how to grant and revoke privileges on tables and then how to grant and revoke privileges on functions and procedures in Oracle.
03 Installing Oracle 11G Express Edition and Schema Creation
In this video we are going to see how to install Oracle 11G Express Edition, Schema creation and use with IBM Sterling Order Management System Link : http://activekite.com Register : http://activekite.com/wp-login.php?action=register Welcome to ActiveKite.com Google Search String : oracle 11g express edition free download Download Link : http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html ----------------------------------- Create Schema ----------------------------------- create user sterling94 identified by sterling94; --grant privileges: grant create session, alter session, create any sequence, alter any sequence, create procedure, create synonym to sterling94; grant create table, create trigger, create type, create view, delete any table, execute any procedure, execute any type to sterling94; grant connect, insert any table, select any dictionary, select any sequence, update any table to sterling94; grant select_catalog_role to sterling94; create bigfile tablespace sterts_01 datafile 'sterts_f1.dat' size 100M autoextend on; alter user sterling94 default tablespace sterts_01 quota unlimited on sterts_01;
Views: 415 ActiveKite
SQL Server 2012 Database Roles and Privileges Grant and Deny
SQL Server 2012 Creating Roles, Granting Privileges to Roles, Assigning Roles to users, Denying inherited Privileges to a specific user. Creating SQL Server Authentication User and Testing Roles and Privileges. To Learn or Teach Linux visit www.theskillpedia.com, A Marketplace for Learners and Trainers.
Views: 23023 TheSkillPedia
Oracle Database 18c Express Edition Installation on Windows 10 | Oracle Database 18c XE
After long time, Oracle has released finally Oracle Database 18c Express Edition for Windows x64, Oracle Database Express Edition (XE) Release In this video we are going to demonstrate how to install Oracle Database 18c Express Edition on Windows 10 Oracle Database 18c Express Edition installation in Windows is very easy. This video guides step by step installation. We are going to learn 1. Database Installation 2. Enterprise Manager Overview 3. SQL Plus tool 4. Oracle Instance Manager to start and shutdown database instance. Hardware Requirements : Minimum 2 GB RAM, 2 CPU Cores and Enough Hard disk Space. Software Requirements : OracleXE184_Win64 Zip file for Windows already downloaded from Oracle website. Important Note: Adobe Flash player must be installed in order to browse Enterpise Manager Console on Internet Explorer. Installation method : Offline, Oracle Database 18c Zip file for Windows downloaded and installed. download link: https://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index-083047.html Oracle Database 18c XE Features ############################### Oracle Multitenant SQLJ Microsoft Distributed Transaction Coordinator support Native .NET Data Provider—ODP.NET .NET Stored Procedures Online index rebuild Online table organization Online table redefinition Trial recovery Fast-start fault recovery Flashback Table Flashback Database Cross-platform Backup and Recovery Sharded Queues Network Compression Client Side Query Cache Query Results Cache PL/SQL Function Result Cache Adaptive Execution Plans In-Memory Column Store In-Memory Aggregation Attribute Clustering Column-Level Encryption Tablespace Encryption Oracle Advanced Security Oracle Database Vault Oracle Label Security Centrally Managed Users Fine-grained auditing Privilege Analysis Real Application Security Redaction Transparent Sensitive Data Protection Virtual Private Database Oracle Spatial and Graph Property Graph and RDF Graph Technologies (RDF/OWL) Partitioned spatial indexes Oracle Partitioning Oracle Advanced Analytics Oracle Advanced Compression Advanced Index Compression Prefix Compression (also called Key Compression) Basic Table Compression Deferred Segment Creation Bitmapped index, bitmapped join index, and bitmap plan conversions Transportable tablespaces, including cross-platform and full transportable export and import Summary management—Materialized View Query Rewrite.
Views: 10459 java frm
PL/SQL tutorial 62: PL/SQL Collection Method LIMIT in Oracle Database
In this PL/SQL tutorial we will explore the concepts of collection method LIMIT and learn: - What is collection method Limit - How to use this collection method - What are the differences between collection method LIMIT & Collection Method COUNT - What happens when function LIMIT is used with Nested table and Associative array Go ahead and enjoy. Also do not forget to LIKE, SHARE & Subscribe. ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog: http://bit.ly/limit-function Previous Tutorial ► Associative Array: https://youtu.be/wGXeD_oWxUk ------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! ------------------------------------------------------------------------- ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ ___Facebook Official Page of Manish Sharma___ https://www.facebook.com/TheRebellionRider/ ___Facebook Official Page of RebellionRider.com___ https://www.facebook.com/RebellionRider.official/ You can also Email me at for E-mail address please check the 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: 6954 Manish Sharma
Create User and Connecting With SQLPLUS in Oracle SQL Developer Using Command Prompt
Facebook : https://www.facebook.com/ala.hassine.10 Email : [email protected] Page Facebook Système Embarqué : https://www.facebook.com/NewEmbeddedSystem ============================= ============================= The commands used in the video : sqlplus / as sysdba CREATE USER Name IDENTIFIED BY password; GRANT ALL PRIVILEGES TO Name; GRANT EXECUTE ANY PROCEDURE TO Name; GRANT UNLIMITED TABLESPACE TO Name; GRANT CREATE SESSION TO Name; CREATE ROLE role_Name; GRANT CREATE ANY TABLE, ALTER ANY TABLE, DROP ANY TABLE TO role_Name; GRANT SELECT ANY TABLE, INSERT ANY TABLE, UPDATE ANY TABLE, DELETE ANY TABLE TO role_Name; GRANT CREATE ANY TRIGGER, ALTER ANY TRIGGER, DROP ANY TRIGGER TO role_Name; GRANT CREATE ANY SEQUENCE, ALTER ANY SEQUENCE, DROP ANY SEQUENCE TO role_Name; GRANT SELECT ANY SEQUENCE TO role_Name; GRANT CREATE ANY INDEX, ALTER ANY INDEX, DROP ANY INDEX TO role_Name; GRANT CREATE ANY PROCEDURE TO role_Name; GRANT role_Name TO Name; exit sqlplus / as sysdba exit sqlplus Name/Password ============================= ============================= CREATE TABLE employee ( empno number PRIMARY KEY, empname varchar2(70) UNIQUE, address varchar2(70), salary number NOT NULL ) ============================= insert into employee values(1,'Ala','Nabeul',1500); insert into employee values(2,'Ahmed','Tunis',2000); insert into employee values(3,'Ritej','Sfax',1700); insert into employee values(4,'Majdi','Sousse',3000); insert into employee values(5,'Raed','Bizert',2500); insert into employee values(6,'Yasser','Mahdia',1900); ============================= select * from employee;
Views: 71 Ala Hassine
Oracle 11g installation and SQL commands run
How oracle 11gXE is installed and how to run queries on it by creating a workspace the complete guideline!
Views: 53 ComputerBlog
SQLPLUS: LineSize & PageSize
In this tutorial, you'll learn how to set linesize and pagesize . 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: 20554 radhikaravikumar
Comparing Temporary Tables in Oracle and SQL Server
Presented by Jonathan Lewis (Oracle ACE Director, OakTable) and Grant Fritchey (SQL Server MVP) Thurs 11th October 2012 Summary Temporary tables are often used in applications for processes that are difficult to complete in a single pass. They are widely used in SQL Server development and can be local and global. In Oracle temporary tables are created with a static global definition, but are used to hold temporary local content. But is this the only difference in temporary tables in Oracle and SQL Server? What about the performance impacts/gains for using temporary tables, and does this differ in Oracle and SQL Server? Once again Jonathan Lewis (Oracle Ace Director, OakTable Network) and Grant Fritchey (Microsoft SQL Server MVP) will host a live discussion on Oracle and SQL Server, this time in relation to temporary tables. Will they agree on some common ground? Or will it be an out and out argument? Either way, be prepared for a lively exchange that will not only entertain, but will teach you key concepts on Oracle and SQL Server. A Q+A session with Jonathan and Grant will follow the presentation. For our complete archive, and to sign up for upcoming webinars please go to http://www.red-gate.com/oracle-webinars
Views: 2744 Redgate Videos