i have my controlfiles all in a single directory but was just thinking that won't be ideal enough,as shown below.
Code:
SQL> show parameters control_files;
NAME TYPE VALUE
-------- ----------- ------------------------------
control_files string C:\ORACLE\PRODUCT\10.1.\ORADATA\ORCL_1\CONTROL01.CTL,
C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL_1\CONTROL02.CTL,
C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL_1\CONTROL03.CTL
i need to make a multiplex to a new directory like
''C:\oracle\product\10.1.0\oradata\orcl_1\mulplx\CONTROL04.CTL''
If I do
alter system set control_file=''C:\oracle\product\10.1.0\oradata\orcl_1\CONTROL01.CTL'',''C:\oracle\product\10.1.0\or adata\orcl_1\mulplx\CONTROL04.CTL '' scope = spfile;
Will oracle synchronise the new controlfile withe the old ones even if they are in different directory.
thanks
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
That depends on how you are setting. If you make location change in spfile before shutdown, then you need not change in pfile, also you cannot use pfile for startup.
Or the other way, change in pfile and then do a pfile startup and then create spfile and bounce the db. Its your choice.
I connected as sysdba did the following
1)shutdown immediate
2)copy the controlfile successfully to new directory using the
os command
3)startup nomount
Then i i tried setting the control file to the new one but got the error below.
Code:
SQL> alter system set control_files = ''C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL_1\CONTROL01.CTL'',''C:
\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL_1\MLPLX_CTL\CONTROL01'' scope=spfile;
alter system set control_files = ''C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL_1\CONTROL01.CTL'',''C:\ORAC
*
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified
I queried the v$parameter to confirm that i am using spfile as below
Code:
SQL> select name,value from v$parameter where name = 'spfile';
NAME VALUE
-----------------------------------------------------------------
spfile C:\ORACLE\PRODUCT\10.1.0\DB_1\DATABASE\SPFILEORCL1.ORA
SQL> select name,value from v$parameter where name = 'pfile';
no rows selected
pls can you help
[Updated on: Wed, 27 June 2007 19:01]
Bookmarks