Showing posts with label DBFS. Show all posts
Showing posts with label DBFS. Show all posts

DBFS on Oracle Exadata

Follow below steps to create DBFS

Create the mount point for DBFS

[root@db01 ]# mkdir /dbfs_dir

Login with Oracle user

[root@db1 ]# su - oracle

Set the Oracle Database environment variable to connect the your database.

Connect Database as sysdba

[oracle@db01 ~]$ sqlplus  / as sysdba

Create tablespace on ASM disk group

SQL> create tablespace dbfsts datafile '+DATA' size 1G;

SQL> create user dbfs_usr identified by Dbfs_pwd1 default tablespace dbfsts quota unlimited on dbfsts;

SQL> grant create session, create table, create procedure, dbfs_role to dbfs_usr;

You can use below syntax to create bigfile tablespace.

create bigfile tablespace dbfsts datafile '+DATA' size 2048g autoextend off nologging extent management local;

Go to admin directory of oracle binaryand run the below procedure

$cd $ORACLE_HOME/rdbms/admin

$sqlplus dbfs_usr/Dbfs_pwd1

SQL> start dbfs_create_filesystem_advanced dbfsts FS nocompress nodeduplicate noencrypt non-partition

Above procedure should run without errors.

TEST DBFS SETUP

[oracle@db01 ~]$ echo Dbfs_pwd1 > pwd.txt

[oracle@db01 ~]$ nohup $ORACLE_HOME/bin/dbfs_client dbfs_usr@test /dbfs_dir < pwd.txt &

- 'test' is database name
- '&' to run the process in background
- '/dbfs_dir' is a directory on which DBFS will be mounted

LOGIN to Oracle USER account from another terminal and check the DBFS file system

[oracle@db01 ~]$ cd /dbfs_dir/FS
[oracle@db01 ~]$ touch test.txt
[oracle@db01 ~]$ ls -ltr test.txt

LOGIN to root USER account from another terminal and check whether you can get acces of the DBFS file system

[root@db01 ]# cd /dbfs_dir/FS
Permission Denied

To unmount the file system issue the following command from the "root" OS user.

[root@db01 ]# fusermount -u /dbfs_dir

To allow other users ( example root to access the filesystem )

[oracle@dbs1 ]$ su - root
Password :

[root@db01 ]# echo user_allow_other > /etc/fuse.conf

change permission of /etc/fuse.conf to 644


[root@db01 ]#chmod 644 /etc/fuse.conf

[root@db01 ]# su - oracle

[oracle@db01 ~]$ nohup $ORACLE_HOME/bin/dbfs_client dbfs_usr@test -o direct_io,allow_root /dbfs_dir < pwd.txt &

You can check nohup file for any error logs.

Login to root user account from another terminal and check the accessibility of DBFS

[root@db01 ]# cd /dbfs_dir/FS
[root@db01 ]# ls -lt test.txt

To unmount the file system issue the following command from the "root" OS user.

# fusermount -u /dbfs_dir

Exadata Best Practices Meta link Notes

Documentation availability: 
For Exadata Customers:

Online Documentation

The following documentation can be found in the /opt/oracle/cell/doc
directory on the Oracle Exadata Storage Server (Exadata Cell):
¦ Oracle Exadata Storage Server Software User’s Guide
¦ Oracle Exadata Storage Server Software Release Notes

MAA Best Practice Papers for Exadata:

http://www.oracle.com/technetwork/database/features/availability/exadata-maa-best-practices-155385.html

Useful URL's and links

Latest Backup & Recovery Whitepaper:
Oracle Exadata Database Machine - Backup & Recovery Sizing: Tape Backups

http://www.oracle.com/technetwork/database/focus-areas/availability/maa-exadata-backup-methodology-495297.pdf

Exadata Whitepaper:

http://www.oracle.com/technetwork/database/exadata/exadata-technical-whitepaper-134575.pdf

Exadata and Database Machine Version 2 Demo Series

https://apex.oracle.com/pls/apex/f?p=44785:24:1352200682703903::::P24_CONTENT_ID,P24_PREV_PAGE:5118,24

Some important My Oracle Support Notes(Metalink):

Master Note for Oracle Database Machine and Exadata Storage Server
1187674.1

Patches & Updates, InfiniBand Firmware Updates
888828.1

Exadata Patching Overview
1262380.1

Oracle Sun Database Machine Application Best Practices for Data Warehousing
1094934.1

Best Practices for OLTP on the Sun Oracle Database Machine
1269706.1

DBFS:

11911441.1          Configuring Database for DBFS on Oracle Database Machine
1054431.1            Configuring DBFS on Oracle Database Machine

Monitoring Best Practices
1110675.1

ASM Diskgroup Imbalance Check
367445.1

Data Guard Related
1085687.1            Heterogeneous Data Guard Support

Infiniband RDS Support
745616.1

You can follow our Exadata Certification Question Bank to achieve maximum success in your Exadata certification exam.