qio_convertdbfiles(1M)

NAME

qio_convertdbfiles - convert VxFS files to Quick I/O files

SYNOPSIS

qio_convertdbfiles [ -T database_type ] [ -a | -f | -h | -i | -u ]

AVAILABILITY

Storage Foundation. To determine whether this product is installed on the system, enter:

lslpp -L VRTSdbed

DESCRIPTION

You can use the qio_convertdbfiles command to convert database files to use Quick I/O. These command is for use with VxFS file systems only. The qio_convertdbfiles command will only convert regular files or links that point to regular files on VxFS file systems. The qio_convertdbfiles commands calls the database-specific version of the conversion utility.

The qio_convertdbfiles command is available in the /opt/VRTSdbed/bin directory.

To use this command for Oracle, the ORACLE_SID environment variable must be set.

While the database instance is up and running, run the qio_getdbfiles command to get a list of files used by the database. This command stores the file names and sizes in bytes in a file called mkqio.dat. The files listed in mkqio.dat are converted to Quick I/O by the qio_convertdbfiles command. If the database you want to gather this information about is not up and running, you can manually create the mkqio.dat file. The format of this file is a list of paired file paths and file sizes. For example:

/database/dbfile.001 1024000 /database/dbfile.002 2048000

After running the qio_getdbfiles command, shut down the database and run the qio_convertdbfiles command to convert the list of file names in the mkqio.dat file to Quick I/O files.

The qio_convertdbfiles command exits and prints an error message if any of the database files are not on a VxFS file system. You must remove any non-VxFS files from the mkqio.dat file before running the qio_convertdbfiles command. After the qio_convertdbfiles command has run, you can re-start the database to access these database files using the Quick I/O interface.

OPTIONS

The following option is supported by qio_convertdbfiles:
-T database_type
  This option forces behavior for a specific database vendor. The database option that is currently supported is ora only. Use this option in environments where the database to perform operations on is ambiguous. qio_getdbfiles and qio_convertdbfiles resolve ambiguity by examining the environment and searching for variable settings that are a prerequisite for using one or more database vendors’ products.
-a Changes regular files to Quick I/O files using absolute pathnames. Use this option when symbolic links need to point to absolute pathnames. By default, qio_convertdbfiles uses relative pathnames, which are more portable when moving database directories or recovering from backup.
-f Reports on the current fragmentation levels for files listed in the mkqio.dat file. Fragmentation is reported at four levels: not fragmented, slightly fragmented, fragmented, and highly fragmented.
-h Shows command usage.
-i Creates extra links for all database files and log files in the /dev directory to support the SAP brbackup command.
-u Changes Quick I/O files back to regular files. Use this option to undo changes made by a previous run of the qio_convertdbfiles command.
Converting existing database files to Quick I/O files may not be the optimal thing to do if these files are fragmented. In this case, creating new files with the qiomkfile command (which are guaranteed not to be fragmented) and converting the data from the old files (using a command such as dd) is recommended.

USAGE

You must be logged in as the Database Administrator to run qio_convertdbfiles. The qio_getdbfiles command queries the database to gather a list of datafiles to be converted, which requires direct access to the database. The qio_convertdbfiles command expects all files to be owned by the Database Administrator.

Running the qio_convertdbfiles command with any option except -f while the database is up and running can cause severe problems for your database, including data loss and corruption. Make sure the database is shut down before running this command.

EXAMPLES

This example shows the procedure for converting the files in a database to Quick I/O.

Get information about the file:

$ /opt/VRTSdbed/bin/qio_getdbfiles $ cat mkqio.dat dbfile 104800000

Shut down the database and convert the file to Quick I/O:

$ /opt/VRTSdbed/bin/qio_convertdbfiles

$ ls -alL d* .d* -rw-r--r-- 1 admin dbgrp 104857600 May 2 13:42 .dbfile crw-r--r-- 1 admin dbgrp 45, 1 May 3 12:18 dbfile

$ ls -al d* .d* -rw-r--r-- 1 admin dbgrp 104857600 May 2 13:42 .dbfile lrwxrwxrwx 1 admin dbgrp 17 May 3 12:18 dbfile -> .dbfile::cdev:vxfs:

The qio_convertdbfiles command renames the file dbfile to .dbfile and creates a symbolic link to .dbfile with the Quick I/O extension. By default, the symbolic link uses a relative path name.

Start up the database.

To undo a previous run of qio_convertdbfiles and change Quick I/O files back to regular VxFS files:

$ /opt/VRTSdbed/bin/qio_convertdbfiles -u .dbfile::cdev:vxfs: --> dbfile

Note: If the server is up and running, you will receive an error message stating that you need to shut it down before you can run the qio_convertdbfiles command.

The qio_convertdbfiles command with the undo (-u) option specified renames the files from .filename to filename and undoes the symbolic link to .filename that was created along with the Quick I/O files.

SEE ALSO

qio_getdbfiles(1M), qio_recreate(1M), oracle_edition(7)

Storage Foundation: Storage and Availability Management for Oracle Databases Guide


Storage Foundation qio_convertdbfiles(1M)