PDA Assignment4 IT16059214

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Sri Lanka Institute of Information Technology

Proactive Database Administration

Assignment 04

K.D.Samarasinghe
IT16059214
Contents
1 Create Database in non-archivelog mode ..................................................... 1
1.a Create a new database listener name LISTENER_TST and port 5122 ... 2
1.b Register the database created in assignment 3 with LISTENER_TST .... 4
1.c Add another control file to the database ................................................. 6
1.d Multiplex the redo log files in each redo log group ................................ 8
2 Convert the database into archived log mode ............................................... 11

2
1 Create Database in non-archivelog mode
In assignment 3, we created a database on non-archivelog mode

1
1.a Create a new database listener name LISTENER_TST and port 5122

After login as oracle type

netca

Then we need to select what we need to do with Listener. Since we haven’t created a listener , we
have to add a listener

2
Then we have to name the listner

Then we have to specify the LISTNER port

Then the Listener configuration is complete !

3
1.b Register the database created in assignment 3 with LISTENER_TST

Check for current local_listener

To register database with listener ,

alter system set local_listener=LISTENER_TST scope=spfile

4
Then check if database is registered to the listener properly.

To do so, we need to shut down the database and start it up

5
1.c Add another control file to the database

View database existing control files

Add control file name control01.ctl and control02.ctl

6
Copy one of existing control files to same location with name

We can see the newly created control file

7
1.d Multiplex the redo log files in each redo log group

Check log attributes of database

Check current redo logs groups and the member count

Check logfile attributes of the database

8
Check for logfile members.

Adding another 3 members to each group

alter database add logfile member

'/u01/app/oracle/oradata/KD_SAMARASINGHE/redo01a.log' to group 1,

'/u01/app/oracle/oradata/KD_SAMARASINGHE/redo02a.log' to group 2,

'/u01/app/oracle/oradata/KD_SAMARASINGHE/redo03a.log' to group 3

Now we can see that there are 2 members

9
10
2 Convert the database into archived log mode

First check whether database is in non archivelog mode

First we have to shutdown the database and mount it with startup mount

startup mount will also mount the database

alter database archivelog will change the database archivelog mode and now the database is in
archivelog mode.

11

You might also like