SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
Session ID:
Prepared by:
Granting Oracle Schema
Permissions When Objects not
Created Yet !
Jasmine B
Wednesday, April 13, 2016
12 – 12:30pm
1198
@mjgangler
Mike Gangler – Senior Database Specialist
Secure-24 - @mjgangler
Mjgangler@yahoo.com
About Mike Gangler
•  Oracle ACE with robust database credentials
•  DBA for over 28 years, working with Oracle
since version 4
•  Team Lead and Senior Database Specialist at
Secure-24
•  Currently serving on the board of the Southeast
Michigan Oracle Professionals (SEMOP) group
– www.meetup.com
•  Charter member of the Board of Directors for
the International Oracle Users Group (IOUG) –
www.ioug.org
•  Follow me on my Blog http://
mjgangler.wordpress.com and on twitter!
@mjgangler
2
About Secure-24
3
FOUNDED
HEADQUARTERS
GLOBAL
OPERATION
CENTERS

DATA CENTERS
Secure-24 was
founded in 2001 and
since then has grown
to 500+ employees and
has received
recogniPon as one of
Computerworld’s Best
Places to Work in IT, 3-
years running. 
Secure-24 is
headquartered in
Southfield, MI
Serving customers
around the globe,
Secure-24 has two (2)
OperaPon Centers in
Michigan, one (1) in
Nevada and one (1) in
Hyderabad India.
Secure-24 has three
(3) data centers in
Michigan, one (1) in
Nevada, plus several
global partnerships.
We only choose the
safest locaPons for
our data centers. 
Secure-24 has 15 years of experience delivering managed IT operaPons, applicaPon hosPng and cloud services to
enterprises worldwide. We manage SAP, Hyperion, PeopleSo], JD Edwards, Oracle E-Business Suite and other mission
criPcal applicaPons across all industries for businesses of every size.
Communi'es	 Educa'on	
Join for as low as $150
SELECT Journal Resource Center IOUG Press Webinars & Podcasts IOUG Forum 5 Minute Briefing
Plus get access to IOUG’s content library, peer-to-peer networking, and more!
Corporate options also available!
Oracle Conferences in Detroit Area
Southeast Michigan Oracle Professionals
http://www.meetup.com/SouthEast-Michigan-Oracle-
Professionals/
Meet monthly – 2nd Tuesday of the month
Michigan Oracle User Summit
November 3, 2016
http://www.mous.us
Great Lakes Oracle Conference
•  2016 Great Lakes Oracle Conference (GLOC)
•  May 18 & 19, 2016
Cleveland Public Auditorium
Cleveland, OH
https://www.neooug.org/gloc/
Todays Discussion
Learn how Secure-24 uses Roles and a simple trigger to
grant “Read Only” access to objects that are not created yet.
This process is quite common in MS SQL Server and is
needed for many database systems.
7
Pre-Steps – User Steps
•  Create a read only role in the database
–  > create role IOUG_READONLY;
8
Pre-Steps – User Steps
•  Grant Role to user requiring read only access
– > grant IOUG_READONLY to IOUG_USER ;
– > alter user IOUG_USER default role all;
** Note – need default=yes or you will have to do a:
>> alter session set role=IOUG_READONLY;
>> 12c – set role ioug_readonly;
9
DDL Trigger
CREATE or REPLACE TRIGGER AFTER_DDL AFTER DDL on
IOUG_OBJECTS.SCHEMA
declare
v_sysevent varchar2(25);
v_message varchar(255);
l_job number;
begin
select ora_sysevent into v_sysevent from dual;
if ( v_sysevent in ('CREATE') )
then
v_message := 'execute immediate "grant select on
IOUG_OBJECTS.'||ora_dict_obj_name||' to IOUG_READONLY";';
dbms_job.submit (l_job,replace(v_message,'"','''') ) ;
end if;
end;
/
10
Results
Now whenever a new object gets created the role is
granted via the pl/sql and dbms_job. The following is a
test output:
Connect IOUG_OJBECTS/pw
IOUG_OBJECTS@IOUGDEV > create table foo1 (col1 varchar2(255));
Table created.
IOUG_OBJECTS@IOUGDEV > connect IOUG/pw
Connected.
IOUG@IOUGDEV > select * from IOUG_OBJECTS.foo1;
no rows selected
IOUG@IOUGDEV > desc IOUG_OBJECTS.foo1;
Name Null? Type
—————————————– ——– —————————-
COL1 VARCHAR2(255)
11
DDL Trigger - Notes
NOTES:
• Must use dbms_job.submit in order for the role to be in place.
• Unless you have a public synonym you may need to add the
schema name prior to the object.
• The default role must be set to true or you will need to alter
session to enable that read only role.
• Please let me know if this works for you and big thanks to
“Ask Tom” who helped me resolve the PL/SQL and DDL
issue. Also, please let me know if there is a automatic way
to do this Oracle.
12
Demo – If Time
Visit Secure-24 in booth #1315!
•  Enter for a chance to win a $5,000 travel gift
card!
•  Meet with other S-24 executives and technical
resources
•  Discuss your organization’s Cloud Strategy for
2016
•  Learn more about our capabilities with Oracle’s
Virtual Compute Appliance
Questions
Server	
Pool	2	
JDE	
Mike	Gangler	
Michael.gangler@secure-24.com	
	
Blog	:	hBps://
mjgangler.wordpress.com	
	
	
mjgangler
Please complete the session evaluation
Paper – 1198
Author – Mike Gangler
We appreciate your feedback and Insight
You May complete the session evaluation via the
mobile app

Weitere ähnliche Inhalte

Was ist angesagt?

Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014Ngoc Dao
 
Play Framework and Activator
Play Framework and ActivatorPlay Framework and Activator
Play Framework and ActivatorKevin Webber
 
Better Front-end Development in Atlassian Plugins
Better Front-end Development in Atlassian PluginsBetter Front-end Development in Atlassian Plugins
Better Front-end Development in Atlassian PluginsWojciech Seliga
 
Develop realtime web with Scala and Xitrum
Develop realtime web with Scala and XitrumDevelop realtime web with Scala and Xitrum
Develop realtime web with Scala and XitrumNgoc Dao
 
XPages and Java (DanNotes 50th conference, November 2013)
XPages and Java (DanNotes 50th conference, November 2013)XPages and Java (DanNotes 50th conference, November 2013)
XPages and Java (DanNotes 50th conference, November 2013)Per Henrik Lausten
 
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...MediaMongrels Ltd
 
MVC + ORM (with project implementation)
MVC + ORM (with project implementation)MVC + ORM (with project implementation)
MVC + ORM (with project implementation)Prateek Chauhan
 
Saving Time By Testing With Jest
Saving Time By Testing With JestSaving Time By Testing With Jest
Saving Time By Testing With JestBen McCormick
 
How to write a web framework
How to write a web frameworkHow to write a web framework
How to write a web frameworkNgoc Dao
 
Silicon Valley JUG - How to generate customized java 8 code from your database
Silicon Valley JUG - How to generate customized java 8 code from your databaseSilicon Valley JUG - How to generate customized java 8 code from your database
Silicon Valley JUG - How to generate customized java 8 code from your databaseSpeedment, Inc.
 
Introduction to Play Framework
Introduction to Play FrameworkIntroduction to Play Framework
Introduction to Play FrameworkWarren Zhou
 
Play framework productivity formula
Play framework   productivity formula Play framework   productivity formula
Play framework productivity formula Sorin Chiprian
 
Using Play Framework 2 in production
Using Play Framework 2 in productionUsing Play Framework 2 in production
Using Play Framework 2 in productionChristian Papauschek
 
Java EE revisits design patterns
Java EE revisits design patternsJava EE revisits design patterns
Java EE revisits design patternsAlex Theedom
 

Was ist angesagt? (20)

Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014
 
Play Framework and Activator
Play Framework and ActivatorPlay Framework and Activator
Play Framework and Activator
 
Better Front-end Development in Atlassian Plugins
Better Front-end Development in Atlassian PluginsBetter Front-end Development in Atlassian Plugins
Better Front-end Development in Atlassian Plugins
 
Develop realtime web with Scala and Xitrum
Develop realtime web with Scala and XitrumDevelop realtime web with Scala and Xitrum
Develop realtime web with Scala and Xitrum
 
SQL PT
SQL PTSQL PT
SQL PT
 
XPages and Java (DanNotes 50th conference, November 2013)
XPages and Java (DanNotes 50th conference, November 2013)XPages and Java (DanNotes 50th conference, November 2013)
XPages and Java (DanNotes 50th conference, November 2013)
 
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...
 
MVC + ORM (with project implementation)
MVC + ORM (with project implementation)MVC + ORM (with project implementation)
MVC + ORM (with project implementation)
 
Saving Time By Testing With Jest
Saving Time By Testing With JestSaving Time By Testing With Jest
Saving Time By Testing With Jest
 
How to write a web framework
How to write a web frameworkHow to write a web framework
How to write a web framework
 
Css
CssCss
Css
 
Relate
RelateRelate
Relate
 
Silicon Valley JUG - How to generate customized java 8 code from your database
Silicon Valley JUG - How to generate customized java 8 code from your databaseSilicon Valley JUG - How to generate customized java 8 code from your database
Silicon Valley JUG - How to generate customized java 8 code from your database
 
Introduction to Play Framework
Introduction to Play FrameworkIntroduction to Play Framework
Introduction to Play Framework
 
Do you queue
Do you queueDo you queue
Do you queue
 
Play framework productivity formula
Play framework   productivity formula Play framework   productivity formula
Play framework productivity formula
 
Node and Azure
Node and AzureNode and Azure
Node and Azure
 
Using Play Framework 2 in production
Using Play Framework 2 in productionUsing Play Framework 2 in production
Using Play Framework 2 in production
 
Java EE revisits design patterns
Java EE revisits design patternsJava EE revisits design patterns
Java EE revisits design patterns
 
RESTful Services
RESTful ServicesRESTful Services
RESTful Services
 

Andere mochten auch

Justin R. Martinez - Resume 2016
Justin R. Martinez - Resume 2016Justin R. Martinez - Resume 2016
Justin R. Martinez - Resume 2016Justin Martinez
 
IAB Canada Roadshow 2015: Native Advertising Research
IAB Canada Roadshow 2015: Native Advertising Research IAB Canada Roadshow 2015: Native Advertising Research
IAB Canada Roadshow 2015: Native Advertising Research IAB Canada
 
Sarvesh Nair Presentation
Sarvesh Nair PresentationSarvesh Nair Presentation
Sarvesh Nair PresentationSarvesh Nair
 
Movemento obreiro
Movemento obreiroMovemento obreiro
Movemento obreiroXanpo
 
A Nova Revolução Industrial – Industry 4.0
A Nova Revolução Industrial – Industry 4.0A Nova Revolução Industrial – Industry 4.0
A Nova Revolução Industrial – Industry 4.0Heverton Bacca Sanches
 
Sexenio Revolucionario
Sexenio RevolucionarioSexenio Revolucionario
Sexenio RevolucionarioXanpo
 
ang unang digmaan pan daigdig (timeline)
 ang unang digmaan pan daigdig (timeline) ang unang digmaan pan daigdig (timeline)
ang unang digmaan pan daigdig (timeline)Edward Talita
 
AP 7 Lesson no. 32-E: Mga Epekto ng Digmaang Pandaigdig sa Japan
AP 7 Lesson no. 32-E: Mga Epekto ng Digmaang Pandaigdig sa JapanAP 7 Lesson no. 32-E: Mga Epekto ng Digmaang Pandaigdig sa Japan
AP 7 Lesson no. 32-E: Mga Epekto ng Digmaang Pandaigdig sa JapanJuan Miguel Palero
 
Pharm mon to perfect
Pharm mon to perfectPharm mon to perfect
Pharm mon to perfectTravis Klein
 

Andere mochten auch (17)

Justin R. Martinez - Resume 2016
Justin R. Martinez - Resume 2016Justin R. Martinez - Resume 2016
Justin R. Martinez - Resume 2016
 
TV3.0 New TV frontiers.
TV3.0 New TV frontiers.TV3.0 New TV frontiers.
TV3.0 New TV frontiers.
 
20151115Words
20151115Words20151115Words
20151115Words
 
20160207Words
20160207Words20160207Words
20160207Words
 
IAB Canada Roadshow 2015: Native Advertising Research
IAB Canada Roadshow 2015: Native Advertising Research IAB Canada Roadshow 2015: Native Advertising Research
IAB Canada Roadshow 2015: Native Advertising Research
 
RESUME
RESUMERESUME
RESUME
 
Sarvesh Nair Presentation
Sarvesh Nair PresentationSarvesh Nair Presentation
Sarvesh Nair Presentation
 
20160612Words
20160612Words20160612Words
20160612Words
 
Movemento obreiro
Movemento obreiroMovemento obreiro
Movemento obreiro
 
20160828Words
20160828Words20160828Words
20160828Words
 
20160103Words
20160103Words20160103Words
20160103Words
 
Romans
RomansRomans
Romans
 
A Nova Revolução Industrial – Industry 4.0
A Nova Revolução Industrial – Industry 4.0A Nova Revolução Industrial – Industry 4.0
A Nova Revolução Industrial – Industry 4.0
 
Sexenio Revolucionario
Sexenio RevolucionarioSexenio Revolucionario
Sexenio Revolucionario
 
ang unang digmaan pan daigdig (timeline)
 ang unang digmaan pan daigdig (timeline) ang unang digmaan pan daigdig (timeline)
ang unang digmaan pan daigdig (timeline)
 
AP 7 Lesson no. 32-E: Mga Epekto ng Digmaang Pandaigdig sa Japan
AP 7 Lesson no. 32-E: Mga Epekto ng Digmaang Pandaigdig sa JapanAP 7 Lesson no. 32-E: Mga Epekto ng Digmaang Pandaigdig sa Japan
AP 7 Lesson no. 32-E: Mga Epekto ng Digmaang Pandaigdig sa Japan
 
Pharm mon to perfect
Pharm mon to perfectPharm mon to perfect
Pharm mon to perfect
 

Ähnlich wie Granting Oracle Schema Permissions when Objects not created Yet

Monitor Engineered Systems from a Single Pane of Glass: Oracle Enterprise Man...
Monitor Engineered Systems from a Single Pane of Glass: Oracle Enterprise Man...Monitor Engineered Systems from a Single Pane of Glass: Oracle Enterprise Man...
Monitor Engineered Systems from a Single Pane of Glass: Oracle Enterprise Man...Alfredo Krieg
 
Oracle Security Presentation
Oracle Security PresentationOracle Security Presentation
Oracle Security PresentationFrancisco Alvarez
 
Less06 users
Less06 usersLess06 users
Less06 usersImran Ali
 
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...Dave Stokes
 
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...Insight Technology, Inc.
 
Less04 instance
Less04 instanceLess04 instance
Less04 instanceImran Ali
 
The Peoper Care and Feeding of a MySQL Server for Busy Linux Admin
The Peoper Care and Feeding of a MySQL Server for Busy Linux AdminThe Peoper Care and Feeding of a MySQL Server for Busy Linux Admin
The Peoper Care and Feeding of a MySQL Server for Busy Linux AdminDave Stokes
 
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfRajendra Jain
 
Less02 installation
Less02 installationLess02 installation
Less02 installationImran Ali
 
Build your web apps with yql and yui
Build your web apps with yql and yuiBuild your web apps with yql and yui
Build your web apps with yql and yuiISOCHK
 
Exploring plsql new features best practices september 2013
Exploring plsql new features best practices   september 2013Exploring plsql new features best practices   september 2013
Exploring plsql new features best practices september 2013Andrejs Vorobjovs
 
Rajnish singh(presentation on oracle )
Rajnish singh(presentation on  oracle )Rajnish singh(presentation on  oracle )
Rajnish singh(presentation on oracle )Rajput Rajnish
 
Exam View Presentation: JISC Sharing Stories September 2012
Exam View Presentation: JISC Sharing Stories September 2012Exam View Presentation: JISC Sharing Stories September 2012
Exam View Presentation: JISC Sharing Stories September 2012Alex Walker
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014Dave Stokes
 
Change Management for Oracle Database with SQLcl
Change Management for Oracle Database with SQLcl Change Management for Oracle Database with SQLcl
Change Management for Oracle Database with SQLcl Jeff Smith
 
2016_1201_gangler_ppt
2016_1201_gangler_ppt2016_1201_gangler_ppt
2016_1201_gangler_pptSecure-24
 
Using RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12CUsing RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12CSecure-24
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportAlfredo Krieg
 

Ähnlich wie Granting Oracle Schema Permissions when Objects not created Yet (20)

Oracle Database
Oracle DatabaseOracle Database
Oracle Database
 
Monitor Engineered Systems from a Single Pane of Glass: Oracle Enterprise Man...
Monitor Engineered Systems from a Single Pane of Glass: Oracle Enterprise Man...Monitor Engineered Systems from a Single Pane of Glass: Oracle Enterprise Man...
Monitor Engineered Systems from a Single Pane of Glass: Oracle Enterprise Man...
 
Oracle Security Presentation
Oracle Security PresentationOracle Security Presentation
Oracle Security Presentation
 
Less06 users
Less06 usersLess06 users
Less06 users
 
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
 
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
 
Less04 instance
Less04 instanceLess04 instance
Less04 instance
 
The Peoper Care and Feeding of a MySQL Server for Busy Linux Admin
The Peoper Care and Feeding of a MySQL Server for Busy Linux AdminThe Peoper Care and Feeding of a MySQL Server for Busy Linux Admin
The Peoper Care and Feeding of a MySQL Server for Busy Linux Admin
 
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
 
Presentation
PresentationPresentation
Presentation
 
Less02 installation
Less02 installationLess02 installation
Less02 installation
 
Build your web apps with yql and yui
Build your web apps with yql and yuiBuild your web apps with yql and yui
Build your web apps with yql and yui
 
Exploring plsql new features best practices september 2013
Exploring plsql new features best practices   september 2013Exploring plsql new features best practices   september 2013
Exploring plsql new features best practices september 2013
 
Rajnish singh(presentation on oracle )
Rajnish singh(presentation on  oracle )Rajnish singh(presentation on  oracle )
Rajnish singh(presentation on oracle )
 
Exam View Presentation: JISC Sharing Stories September 2012
Exam View Presentation: JISC Sharing Stories September 2012Exam View Presentation: JISC Sharing Stories September 2012
Exam View Presentation: JISC Sharing Stories September 2012
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014
 
Change Management for Oracle Database with SQLcl
Change Management for Oracle Database with SQLcl Change Management for Oracle Database with SQLcl
Change Management for Oracle Database with SQLcl
 
2016_1201_gangler_ppt
2016_1201_gangler_ppt2016_1201_gangler_ppt
2016_1201_gangler_ppt
 
Using RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12CUsing RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12C
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR Report
 

Mehr von Secure-24

2019 odtug webinar-20190129
2019 odtug webinar-201901292019 odtug webinar-20190129
2019 odtug webinar-20190129Secure-24
 
Gloc gangler 2018._v4
Gloc gangler 2018._v4Gloc gangler 2018._v4
Gloc gangler 2018._v4Secure-24
 
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISPOptimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISPSecure-24
 
2015 582 gangler_ppt - ms
2015 582 gangler_ppt - ms2015 582 gangler_ppt - ms
2015 582 gangler_ppt - msSecure-24
 
Using oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveUsing oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveSecure-24
 
EM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RACEM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RACSecure-24
 
2008 2086 Gangler
2008 2086 Gangler2008 2086 Gangler
2008 2086 GanglerSecure-24
 
Mgangler Virtualization
Mgangler VirtualizationMgangler Virtualization
Mgangler VirtualizationSecure-24
 

Mehr von Secure-24 (8)

2019 odtug webinar-20190129
2019 odtug webinar-201901292019 odtug webinar-20190129
2019 odtug webinar-20190129
 
Gloc gangler 2018._v4
Gloc gangler 2018._v4Gloc gangler 2018._v4
Gloc gangler 2018._v4
 
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISPOptimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
 
2015 582 gangler_ppt - ms
2015 582 gangler_ppt - ms2015 582 gangler_ppt - ms
2015 582 gangler_ppt - ms
 
Using oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveUsing oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archive
 
EM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RACEM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RAC
 
2008 2086 Gangler
2008 2086 Gangler2008 2086 Gangler
2008 2086 Gangler
 
Mgangler Virtualization
Mgangler VirtualizationMgangler Virtualization
Mgangler Virtualization
 

Kürzlich hochgeladen

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Kürzlich hochgeladen (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Granting Oracle Schema Permissions when Objects not created Yet

  • 1. Session ID: Prepared by: Granting Oracle Schema Permissions When Objects not Created Yet ! Jasmine B Wednesday, April 13, 2016 12 – 12:30pm 1198 @mjgangler Mike Gangler – Senior Database Specialist Secure-24 - @mjgangler Mjgangler@yahoo.com
  • 2. About Mike Gangler •  Oracle ACE with robust database credentials •  DBA for over 28 years, working with Oracle since version 4 •  Team Lead and Senior Database Specialist at Secure-24 •  Currently serving on the board of the Southeast Michigan Oracle Professionals (SEMOP) group – www.meetup.com •  Charter member of the Board of Directors for the International Oracle Users Group (IOUG) – www.ioug.org •  Follow me on my Blog http:// mjgangler.wordpress.com and on twitter! @mjgangler 2
  • 3. About Secure-24 3 FOUNDED HEADQUARTERS GLOBAL OPERATION CENTERS DATA CENTERS Secure-24 was founded in 2001 and since then has grown to 500+ employees and has received recogniPon as one of Computerworld’s Best Places to Work in IT, 3- years running. Secure-24 is headquartered in Southfield, MI Serving customers around the globe, Secure-24 has two (2) OperaPon Centers in Michigan, one (1) in Nevada and one (1) in Hyderabad India. Secure-24 has three (3) data centers in Michigan, one (1) in Nevada, plus several global partnerships. We only choose the safest locaPons for our data centers. Secure-24 has 15 years of experience delivering managed IT operaPons, applicaPon hosPng and cloud services to enterprises worldwide. We manage SAP, Hyperion, PeopleSo], JD Edwards, Oracle E-Business Suite and other mission criPcal applicaPons across all industries for businesses of every size.
  • 4. Communi'es Educa'on Join for as low as $150 SELECT Journal Resource Center IOUG Press Webinars & Podcasts IOUG Forum 5 Minute Briefing Plus get access to IOUG’s content library, peer-to-peer networking, and more! Corporate options also available!
  • 5. Oracle Conferences in Detroit Area Southeast Michigan Oracle Professionals http://www.meetup.com/SouthEast-Michigan-Oracle- Professionals/ Meet monthly – 2nd Tuesday of the month Michigan Oracle User Summit November 3, 2016 http://www.mous.us
  • 6. Great Lakes Oracle Conference •  2016 Great Lakes Oracle Conference (GLOC) •  May 18 & 19, 2016 Cleveland Public Auditorium Cleveland, OH https://www.neooug.org/gloc/
  • 7. Todays Discussion Learn how Secure-24 uses Roles and a simple trigger to grant “Read Only” access to objects that are not created yet. This process is quite common in MS SQL Server and is needed for many database systems. 7
  • 8. Pre-Steps – User Steps •  Create a read only role in the database –  > create role IOUG_READONLY; 8
  • 9. Pre-Steps – User Steps •  Grant Role to user requiring read only access – > grant IOUG_READONLY to IOUG_USER ; – > alter user IOUG_USER default role all; ** Note – need default=yes or you will have to do a: >> alter session set role=IOUG_READONLY; >> 12c – set role ioug_readonly; 9
  • 10. DDL Trigger CREATE or REPLACE TRIGGER AFTER_DDL AFTER DDL on IOUG_OBJECTS.SCHEMA declare v_sysevent varchar2(25); v_message varchar(255); l_job number; begin select ora_sysevent into v_sysevent from dual; if ( v_sysevent in ('CREATE') ) then v_message := 'execute immediate "grant select on IOUG_OBJECTS.'||ora_dict_obj_name||' to IOUG_READONLY";'; dbms_job.submit (l_job,replace(v_message,'"','''') ) ; end if; end; / 10
  • 11. Results Now whenever a new object gets created the role is granted via the pl/sql and dbms_job. The following is a test output: Connect IOUG_OJBECTS/pw IOUG_OBJECTS@IOUGDEV > create table foo1 (col1 varchar2(255)); Table created. IOUG_OBJECTS@IOUGDEV > connect IOUG/pw Connected. IOUG@IOUGDEV > select * from IOUG_OBJECTS.foo1; no rows selected IOUG@IOUGDEV > desc IOUG_OBJECTS.foo1; Name Null? Type —————————————– ——– —————————- COL1 VARCHAR2(255) 11
  • 12. DDL Trigger - Notes NOTES: • Must use dbms_job.submit in order for the role to be in place. • Unless you have a public synonym you may need to add the schema name prior to the object. • The default role must be set to true or you will need to alter session to enable that read only role. • Please let me know if this works for you and big thanks to “Ask Tom” who helped me resolve the PL/SQL and DDL issue. Also, please let me know if there is a automatic way to do this Oracle. 12
  • 13. Demo – If Time
  • 14. Visit Secure-24 in booth #1315! •  Enter for a chance to win a $5,000 travel gift card! •  Meet with other S-24 executives and technical resources •  Discuss your organization’s Cloud Strategy for 2016 •  Learn more about our capabilities with Oracle’s Virtual Compute Appliance
  • 16. Please complete the session evaluation Paper – 1198 Author – Mike Gangler We appreciate your feedback and Insight You May complete the session evaluation via the mobile app