Anda di halaman 1dari 4

c  

          c  


    
      
 

  

 


 
 
  !

   
   
   " #    
 $%&'  

! & 
    
    

   
 
      !

STEP 1: 
   (
 )*+( 

 ,c 
 - .
 # 
    /!         
0
   
  !   #     
    


  
  
 
 
   
     
  
 1 1    

!   ! &    #  
 #  -

STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 240
MAXINSTANCES 1
MAXLOGHISTORY 113
LOGFILE
GROUP 1 ('/u03/oradata/oldlsq/log1a.dbf',
'/u03/oradata/olslsq/log1b.dbf') SIZE 30M,
GROUP 2 ('/u04/oradata/oldlsq/log2a.dbf',
'/u04/oradata/oldlsq/log2b.dbf') SIZE 30M
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'
;
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or
immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;

STEP 2:  
  

STEP 3: 2     


 
    

 ! ,   
 
 
     
(        
     
   
 


 !

rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq


rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u03/oradata/oldlsq/* newhost:/u03/oradata/newlsq
rcp /u04/oradata/oldlsq/* newhost:/u04/oradata/newlsq
STEP 4: 2  
    2
    3 $
   
0   4(   

   
   

   
-

-

CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS

%-

CREATE CONTROLFILE SET DATABASE "NEWLSQ" RESETLOGS

STEP 5:    .  / 


 .  
/ 
0

# Recovery is required if any of the datafiles are restored


# backups, or if the last shutdown was not normal or
immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;

STEP 6- 
      
    
!

   
 

-

DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'

%-

DATAFILE
'/u01/oradata/newlsq/system01.dbf',
'/u01/oradata/newlsq/mydatabase.dbf'

STEP 7: 2   (  


     

cd $DBA/admin
mkdirnewlsq
cd newlsq
mkdirbdump
mkdirudump
mkdircdump
mkdirpfile

STEP 8: 2    


!   
rcp
$DBA/admin/olslsq/pfile/*.oranewhost:/u01/oracle/admin/newlsq/
pfile

STEP 9:  


 

'db_create_controlfile.sql

STEP 10:  


 
  

Question: 5      
  
  c2   
   

  
 



    6 ! 57 
  
    

       


  

 
    #    

     c2  ! 8     
     
c2 9

Answer: : ;  2
    <c% $*&2c 
    c2


!   <c%     #        

 !
 #  
 
  

  
 
 
!

$
 
( 
         c2 
   <c%    
   

! ,  

 $*&2c  

  

<c%(
   
c2 ;  2
 ! 5
    ( =      c$'&*&c,


      &>!       (          #


! ,  

    
 <c% 
  ?

  


 #@ !

,         c$'&*&c, 


c2 ;  2
   ( 
&:      

! & 
:   ;  2
     #    
(
     
     

 


:    

 
    

 !

5     c2  (    


  
    


<c%  
    
       

A
   
 ! &    
%c  <2      (    
  
       
# 
  
  
    " #!

&   

   
   
 ( 
     c2 

 

     :    
    !      

<c%  #                #
  

    
 # ? #  $*&2c  
  @! 
  : 
  
 c2  
(   
   :  #     
 
   
  !


        #     (     
 
c %*,     
!!! 

   
  4BBC   

 !
‘