473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

PL/SQL triggers-how to disable all triggers of a user

17
I wish to disable all triggers for a particular user.I am using a cursor to select all triggers from user_triggers table whose table_owner is the user. Now inside a cursor DDL statements can't be used to alter the trigger . one solution i have found is to use Execute Immediate stmt for executing DDL stmts in a pl/sql code. but that is also not working when i get the name of the trigger inside a cursor loop and try to use Execute Immediate by making dynamic query.can anybody help?
thx n regards
Sep 28 '07 #1
1 4789
debasisdas
8,127 Expert 4TB
to disable all triggers on a particular table use this
Expand|Select|Wrap|Line Numbers
  1. ALTER TABLE <table_name> ENABLE | [DISABLE] ALL TRIGGERS;
to do the same for the user u need to write PL/SQL block.
Sep 28 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Alex Ang | last post by:
Could you show me the VB code (VB6 or VB Script) that do the following? When a user (local administrator) run the VB program, the program will: 1. disable the user from surfing Internet via IE...
8
by: Matt | last post by:
Hi everyone I was wondering if there was a way to disable a single database with having to shutdown mysql or rename tables? Thanks, Matt
3
by: Ericson Smith | last post by:
Hi, Is there any way to prevent a trigger from firing during a COPY operation? We have a case where we dump the records from a table, truncate it, and copy the records back in. However, there...
1
by: Mad Scientist Jr | last post by:
i have a dropdown control with autopostback=on that when selected, posts back and populates a second dropdown. the 2nd dropdown takes a while to load, giving the user time to start typing in other...
6
by: Brad Markisohn | last post by:
Is there a way to log a non-administrative user off a PC or prevent them from accessing the PC based on some external test? We can assume that the OS is either Win 2k or Win XP. TIA Brad
1
by: Josué Maldonado | last post by:
Hello list, Is there a way to disable temporary all the triggers of a table or database and then enable them back? Thanks in advance -- Josué Maldonado
0
by: Vear | last post by:
Hi, I looking for the method to disable and enable user accounts. I want the user to have to validate their account via email. I have all of the email stuff working but I can't figure out how in...
6
by: ron | last post by:
1. Can I disable a user control in a web page? 2. Can I disable the 'close' function on the top-right corner of a popup window, so I can use code-behind function to close the browser?
6
by: =?Utf-8?B?TWljaGFlbCAwMw==?= | last post by:
I need to disable the clipboard function in Windows XP. We are having a problem with users using CTRL+C in one program, then using CTRL+V in another. Specifically, they type their password into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.