on 2010 Feb 25 12:06 PM
When your Database contains a EVENT
of type DatabaseStart
and you are able to crash the Database Engine during startup with your fabulous code.
How would you fix the database to come up again.
I have seen that -gf is implemented to disable triggers. Is there somthing like -xyz to disable events from the command line ?
Think of the posibilities. Implement a bogus DatabaseStart event and when you bring up your server 3 Month later it is blocked. And you did not try to start you backup database 😉
Request clarification before answering.
You should have a safety belt in place when you are working with the DatabaseStart Event.
Enclose the risky part of your event in a if clause that checks the Name of your server instance.
-- Process this Part only if my SafetyBelt is not active
IF property ( 'Name' ) <> 'SafetyBelt' then
--Execute risky Stuff
END IF;
So when your database is not starting up correctly you can start the server with a special Name to avoid execution of the event
dbengxx.exe -n SafetyBelt database.db
Then you are able to drop or fix the DatabaseStart Event
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@future Foxhound customers: It won't be called "SafetyBelt" 🙂
Although it is a good idea, it doesn't help the user with the situation they are actually in.
"Hello, 911? Yeah, I've shot myself in my foot."
"Oh, I see. Next time you should wear safety boots. Thanks for calling."
🙂
Contact tech support -- suppressing events can be done. -john.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sooooo... I'm guessing (hoping?) you regard it on the same level as recovering the DBA password; i.e., not something to be done lightly. As the creator of a commercial embedded database, the DatabaseStart event is definitely something I don't want bypassed. But... if someone has a DBA password, then IMO they should have the ability.
User | Count |
---|---|
74 | |
20 | |
9 | |
8 | |
7 | |
5 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.