Category Archives: Database

Fix the disk informations on both Oracle Rac 11G nodes for ASM

We need to install Oracle 11G and ASM point of view both node need to see same disk, generally multipath point of view when nodes come up its possible to see different LUN with different mapth name and its cause an issue for install oracle

There is an file under  /etc/multipath which name is bindings , you can see that world wide name of disks and multipath names there.

What i did , take the one of node config file information as a baseline and copy it to other, then everything become okay, we do not have any issue of Oracle ASM configuration  time about disk.

Related configuration is like below, hope its help for all

[root@kahin02-11g ~]# cat /etc/multipath/bindings
# Multipath bindings, Version : 1.0
# NOTE: this file is automatically maintained by the multipath program.
# You should not need to edit this file in normal circumstances.
#
# Format:
# alias wwid
#
mpatha 3600605b0023eb920ff0000bd0b6785e7
mpathb 360050768028288b5a000000000000037
mpathc 360050768028288b5a000000000000033
mpathd 360050768028288b5a000000000000034
mpathe 360050768028288b5a000000000000035
mpathf 360050768028288b5a000000000000038
mpathg 360050768028288b5a000000000000036
mpathh 360050768028288b5a00000000000003a
mpathi 360050768028288b5a000000000000039
mpathj 360050768028288b5a00000000000003b
mpathk 360050768028288b5a00000000000003c
mpathl 360050768028288b5a00000000000003d
mpathm 360050768028288b5a00000000000003e
mpathn 360050768028288b5a00000000000003f
mpatho 360050768028184d86000000000000039
mpathp 36006016005e02a0062bd18bb1ceee111
mpathq 36006016005e02a00222472a325c2e211
mpathr 36006016005e02a00e061de44f8bde211

Extend or add datafile to tablespace for no oracle admins like me

Connected server i couldn’t find enterprise manager and PL/SQL Developer already open and after some search ;

First need to get tablespace name 🙂

select * from dba_data_files

If you know the name of your tablespace type like below

select * from dba_data_files t where t.TABLESPACE_NAME = ‘xxxxxx’

Need to be resize then continue like below , this process will increase the size 50G not additional 50G 🙂

ALTER DATABASE DATAFILE ‘D:\ORACLE\PRODUCT\10.2.0\ORADATA\XXYPURFOLDER\YOUR_DATA_FILE.ORA’ RESIZE 50G;

Here you should be careful because you can touch the block limit of related datafile and need to be create additional one like below

To add additional datafile to tablespace then use such command below

ALTER TABLESPACE USERS_EK ADD DATAFILE ‘D:\ORACLE\PRODUCT\10.2.0\ORADATA\XXYPURFOLDER\YOUR_DATA_FILE2.ORA’ SIZE 20G;

And you have to wait , i guess its writing 0 to all file and go !

VM