Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need to run an alter system statement at startup

Posted on 2011-03-24
7
Medium Priority
?
581 Views
Last Modified: 2012-05-11
I need to run an alter system statement every time the Oracle Database (11G R2 Windows) starts, to open an encryption wallet.  Is there a way to do this within Oracle?  I looked in the scheduler and I don't see an option.  Will I have to a Windows script to accomplish this?

Thanks
Brian
0
Comment
Question by:bmcdowell540
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 74

Expert Comment

by:sdstuber
ID: 35209718
have you tried an AFTER STARTUP trigger?

0
 
LVL 74

Accepted Solution

by:
sdstuber earned 2000 total points
ID: 35209743
the trigger will need to be owned by a privileged user (with direct grants, not just through a role)

it might look something like this...

CREATE OR REPLACE TRIGGER trg_open_wallet_on_startup
AFTER STARTUP
ON DATABASE
BEGIN
   execute immediate 'alter system set encryption wallet open .....';
END trg_open_wallet_on_startup;
0
 
LVL 1

Author Closing Comment

by:bmcdowell540
ID: 35209754
Exactly what I was looking for, thanks.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 1

Author Comment

by:bmcdowell540
ID: 35209810
Would it be a security issue if I ran this as sys?  Currently that is how it is being done as a Windows script.
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 35209849
it is neither more nor less secure

it does need to be done by a privileged user  but doesn't need to be SYS.

you might want to create a new dedicated user that has no privileges except CREATE TRIGGER and ALTER SYSTEM,  that way you're not creating objects in Oracle's schemas
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 35209859
actually, the trigger should be slightly "more" secure, since there is no OS file involved that could be manipulated to do other things
0
 
LVL 1

Author Comment

by:bmcdowell540
ID: 35210921
Thanks for your help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Via a live example, show how to take different types of Oracle backups using RMAN.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question