on 11-11-2013 11:17 AM
Hi All,
We wanted to change and delete certain parameter in Oracle DB parameter using SQL stmt.
SQL is :
ALTER SYSTEM set parameter = value SCOPE = spfile|both|memory;
And not sure if we have to use below command to delete few parameters:
SQL:
alter system reset parameter SCOPE = spfile|both|memory;
Correct me if I am wrong.
Also, we wanted to take system restart immediately after changing or reseting parameter, so shall we take scope as "spfile"?
Thanks in Advance,
Sharib
Hi Tasneem,
The Best way to do it is like told by ashish.
- shut down db
- Take profile pfile backup
- create pfile from spfile;
- go to pfile and make changes.. Delete or update or change as required.
- create spfile from pfile
- startup db and check. it should be default values.
some parameters may still be in pfile even though its default.
To check the parameter whether it is default or not, execute below sql query.
select name, isdefault from v$parameter where name = <parameter name>;
if it isdefault is true, that means its default value.
Hope it helps.
Regards,
Kishore Soma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
The subject line says "Using BrTools" and in the content "Using SQL"
There is no delete option for alter system.
You may use SET and RESET options to set and remove parameters.
Check these links to understand how it works
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_2014.htm#SQLRF00902
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_2014.htm#SQLRF53152
If you want to use BRTools then follow this:
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0d01b42a4aa84fbe2be415d23bf023/content.htm
Regards
RB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharib,
for changing parameter you can use
ALTER SYSTEM set parameter = value SCOPE = spfile|both|memory;
memory - only active for you session (only if the parameter is dynamic)
both - for you session and restart (only if the parameter is dynamic)
spfile - restart is required
if you want to set the parameter to defualt value you can use the reset option
ALTER SYSTEM RESET ... SCOPE=SPFILE
statement to remove a parameter from a server parameter file, causing the default value to take effect the next time you start an instance of the database.source : http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams004.htm
you have to use it with the "scope=spfile" option, once this is done you have to restart the database
Hope this answer your question
Best Regards
Marius
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ALTER SYSTEM set parameter = value SCOPE = spfile|both|memory; is correct.
You can use the ALTER
SYSTEM
RESET
command to clear (remove) the setting of any initialization parameter in the SPFILE that was used to start the instance. Neither SCOPE
=
MEMORY
nor SCOPE
=
BOTH
are allowed. The SCOPE
=
SPFILE
clause is not required, but can be included.
you can read :
http://docs.oracle.com/cd/E18283_01/server.112/e17120/create006.htm#i101004
Also, we wanted to take system restart immediately after changing or reseting parameter, so shall we take scope as "spfile"?
>> you can. no problem.
best regards
ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.