Search This Blog

Friday, August 16, 2013

Move Rename Oracle Control File


SQL> select name from v$controlfile;

NAME
--------------------------------------------------------------------------------
/oracle_drives/cca_data/SCAORA1/controlfile/o1_mf_904ml2jz_.ctl
/oracle_drives/oracle_fra/SCAORA1/controlfile/o1_mf_904ml2lw_.ctl

SQL> show parameter control_files

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_files string /oracle_drives/cca_data/SCAORA
1/controlfile/o1_mf_904ml2jz_.
ctl, /oracle_drives/oracle_fra
/SCAORA1/controlfile/o1_mf_904
ml2lw_.ctl

SQL> ALTER SYSTEM SET control_files='/oracle_drives/oracle_sys/control01.ctl','/oracle_drives/oracle_fra/control02.ctl' SCOPE=SPFILE;

System altered.

SQL> SHUTDOWN IMMEDIATE
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> ! mv /oracle_drives/cca_data/SCAORA1/controlfile/o1_mf_904ml2jz_.ctl /oracle_drives/oracle_sys/control01.ctl

SQL> ! mv /oracle_drives/oracle_fra/SCAORA1/controlfile/o1_mf_904ml2lw_.ctl /oracle_drives/oracle_fra/control02.ctl

SQL> startup
ORACLE instance started.

Total System Global Area 4,2950E+10 bytes
Fixed Size 2175824 bytes
Variable Size 4,2346E+10 bytes
Database Buffers 587202560 bytes
Redo Buffers 14598144 bytes
Database mounted.
Database opened.
SQL> select name from v$controlfile;

NAME
--------------------------------------------------------------------------------
/oracle_drives/oracle_sys/control01.ctl
/oracle_drives/oracle_fra/control02.ctl

8 comments:

  1. Good work! Thank you for writing.

    ReplyDelete
  2. ive got alot of free time on my hands recently, so ive decided to start blogging again, . . does anybody know any good blogging sites which are free and easy to use?? (apart from tumbr and blogger/google ). . thanks (:.

    ReplyDelete
  3. Where can I find the best online creative writing courses?

    ReplyDelete
  4. How do I start a blog? I just got a new account on Yahoo but don't see where to start writing.?

    ReplyDelete
  5. Check wordpress.com
    you Can start from there.

    ReplyDelete
  6. My #1 recommand is wordpress.com

    ReplyDelete
  7. I'm studying Journalism at the University of Minnesota, and I am looking for a good website to start blogging on. I'm mostly looking for a good sports blogging website, but a music website would also be of interest. I've heard about Bleacher Report, is that one of the main sites?.

    ReplyDelete
  8. I am not a fun of sport.
    Sorry can't help you.

    ReplyDelete