Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

Click to add to Favorites Master Note - Oracle GoldenGate (Doc ID

1298817.1)

1- CREATE TABLESPACE dbfs_ts DATAFILE


'/u01/app/oracle/oradata/repgg1/dbfs01.dbf' SIZE 1500M AUTOEXTEND ON NEXT 1M;

2- CREATE USER c##dbfs_user IDENTIFIED BY dbfs_user DEFAULT TABLESPACE dbfs_ts


QUOTA UNLIMITED ON dbfs_ts;

3- GRANT CREATE SESSION, RESOURCE, CREATE TABLE, CREATE VIEW, CREATE PROCEDURE,
DBFS_ROLE TO c##dbfs_user;

(if you create common user and grant it default tablespace at the time of
creation then also create that tablespace in all pdbs
or else you will face error while opeing a PDB because default for common
user creation is CONTAINER=ALL
so PDB will face Sync Failure Error)

4- cd $ORACLE_HOME/rdbms/admin

5- conn c##dbfs_user/dbfs_user

6- @$ORACLE_HOME/rdbms/admin/dbfs_create_filesystem.sql dbfs_ts oracle ---(to


drop file system ) @$ORACLE_HOME/rdbms/admin/dbfs_drop_filesystem.sql oracle

OR

7- @dbfs_create_filesystem_advanced.sql dbfs_ts oracle


nocompress
nodeduplicate
noencrypt
non-partition

8- The FUSE software can be installed manually, from the OEL media or via
Oracle's public yum server
rpm -qa|grep fuse
rpm -qa|grep fuse-libs
9- First, check to see if the "kernel-devel" package is installed.

rpm -q kernel-devel
10- connect with root user
create a mount point with the necessary privileges as the "root" user.
mkdir /u02/oracle
chown oracle:dba /u02/oracle

11- Add a new library path and create symbolic links to the necessary libraries
in the directory pointed to by the new library path. Depending on your
installation the "libfuse.so.2" library may be in an alternative
location.

# 11gR2

conn with root user

# echo "/usr/local/lib" >> /etc/ld.so.conf.d/usr_local_lib.conf


# export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
# ln -s $ORACLE_HOME/lib/libclntsh.so.11.1 /usr/local/lib/libclntsh.so.11.1
# ln -s $ORACLE_HOME/lib/libnnz11.so /usr/local/lib/libnnz11.so
# ln -s /lib64/libfuse.so.2 /usr/local/lib/libfuse.so.2
# ln -s /lib64/libfuse.so.2 /usr/local/lib/libfuse.so
# ldconfig

# 12cR2

# echo "/usr/local/lib" >> /etc/ld.so.conf.d/usr_local_lib.conf


# export ORACLE_HOME=/u01/app/oracle/product/12.2.0.1/db_1
# ln -s $ORACLE_HOME/lib/libclntsh.so.12.1 /usr/local/lib/libclntsh.so.12.1
# ln -s $ORACLE_HOME/lib/libnnz12.so /usr/local/lib/libnnz12.so
# ln -s /lib64/libfuse.so.2 /usr/local/lib/libfuse.so.2
# ln -s /lib64/libfuse.so.2 /usr/local/lib/libfuse.so
# ldconfig

# 19c

# echo "/usr/local/lib" >> /etc/ld.so.conf.d/usr_local_lib.conf


# export ORACLE_HOME=/u02/oracle/product/19.3.0/dbhome_1
# ln -s $ORACLE_HOME/lib/libclntsh.so.19.1 /usr/local/lib/libclntsh.so.19.1
# ln -s $ORACLE_HOME/lib/libnnz19.so /usr/local/lib/libnnz19.so
# ln -s /lib64/libfuse.so.2 /usr/local/lib/libfuse.so.2
# ln -s /lib64/libfuse.so.2 /usr/local/lib/libfuse.so
# ldconfig

12- reboot

13- Start Lsnrctl and database

13- chmod +x /usr/bin/fusermount

14- export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib

15- Edit or create the "/etc/fuse.conf" file, un-commenting the


"user_allow_other" option. The contents should look like this.

# mount_max = 1000
user_allow_other
alter
16- Edit the file "/etc/abrt/abrt-action-save-package-data.conf" setting the
following parameter.

ProcessUnpackaged = yes

17- connect with oracle user

## If you mount DBFS with all below options you wont't be able to to install
OGG software and run ./ggsci. SO user below 18# option to mount

dbfs_client c##dbfs_user@repgg2 -o
allow_other,direct_io,trace_level=1,trace_file=/tmp/dbfs_client_trace.log /u04/app

(mounting "oracle" file system in /u04/app as we can not directly mount oracle file
system on u04 as it already has ext4 file system)
after mounting you will see oracle file system as "oracle folder" under
/u04/app
===================================================================================
=====
DBFS files are stored in SecureFile. The space usage of SecureFile is divided into
actively used space, unexpired free space, and expired free space based
on retention setting. By default, the RETENTION of the underlying SecureFile that
stores DBFS is set to AUTO, which honors the auto undo retention setting.
This implies when a file is recently deleted, the space occupied by that file is
not going to be available right away.

We have expired bytes which are stored under secured file. When delete the file,
can't use expired immediately.
select table_name,retention_type,retention_value,retention,securefile from dba_lobs
where table_name = 'T_OGG';

alter table DBFS_USER.T_OGG modify lob (FILEDATA) (retention none);


===============================================================================
18- connect with oracle user
load /u01/racdb.env
dbfs_client c##dbfs_user@rac1 /u04/app (service name is must i.e @rac1)

You might also like