6.2.7.1 lsdataset
List datasets.
Purpose
The lsdataset
command displays information about Exascale datasets. It can also list the files
contained in a specific dataset.
Syntax
lsdataset [ dataset-ID ] [ -l ] [ --detail ]
[ --attributes attribute[,attribute]... ]
[ --filter filter[,filter]... ]
[ --sort [-]attribute[,[-]attribute]... ]
[ --count value ] [ --files [ --recursive ]]
Command Options
The options for the lsdataset
command
are:
-
dataset-ID: The identifier for a dataset that you want to display information about.
Each system-defined dataset has a unique composite identifier, which contains unique identifiers for the associated entities. The dataset identifier has one of the following formats:
-
@Vault-name
: Identifies the vault-level dataset for a specific named vault. -
@Vault-name:GI-cluster-ID
: Identifies the dataset for a specific Oracle Grid Infrastructure (GI) cluster, which consumes storage space in the specified vault. -
@Vault-name:GI-cluster-ID:CDB-ID
: Identifies the dataset for a specific Oracle multitenant container database (CDB) that belongs to the specified GI cluster. -
@Vault-name:GI-cluster-ID:CDB-ID:PDB-ID
: Identifies the dataset for an Oracle pluggable database (PDB) that is associated with the specified CDB, GI cluster, and vault.
The asterisk (
*
) can be used for wildcard searches. For example,@Vault-name:GI-cluster-ID:*
displays information about all CDB datasets associated with the specified GI cluster and vault.If dataset-ID is not specified, the command displays information about all datasets in all vaults.
-
-
-l
: Displays output in a long, tabular format. -
--detail
: Displays detailed output with additional attributes. -
--attributes
: Identifies specific attributes to display in the output.To see a list of all available attributes and their descriptions, use the
describe datasets
command. See also Describing Resources and Attributes. -
--filter
: Specifies conditions for including items in the output. -
--sort
: Sorts the output using the specified attributes. -
--count
: Specifies the maximum number of items to display in the output. -
--files
: Lists files that are in the specified dataset. -
--recursive
: Also lists files that are in descendant datasets.
Usage Notes
Note the following information when using this command:
-
Filter conditions are specified as:
<attribute><operator><value>
.The allowed operators are =, !=, >=, <=, >, and <.
Multiple comma-separated filter conditions are combined using AND logic.
Dates can be specified using the following formats:
yyyy-MM-dd''T''HH:mm:ss
yyyy-MM-dd
(Time is assumed to be 00:00 AM)HH:mm:ss
(Date is assumed to be today)
A date can also be followed by a timezone specification.
Sizes can be specified using suffixes
K
,KB
,M
,MB
,G
,GB
,T
,TB
. The suffix is not case-sensitive.For example, the following filter only includes objects created after 9 AM today:
--filter createTime>9:00:00
-
Sorting attributes are specified as:
[-]attribute
. Multiple sort attributes are comma-delimited. The default sort order is ascending. For descending sort order, prefix the attribute name with-
.For example, use the following to primarily sort by name in descending order, and use creation time in ascending order to further sort entries with the same name:
--sort -name,createTime
-
You must specify a dataset-ID in conjunction with the
--files
option.
Examples
Example 6-70 Display All Datasets
You can use the lsdataset
command with no other options to
display a list of all datasets across all vaults.
@> lsdataset
id name
@my-data @my-data
@my-data:a5b4997a027d6f91ffd9729702ff6ec5 @my-data/cluster1
@my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301 @my-data/cluster1:mydb
@my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301:1402749181 @my-data/cluster1:mydb.PDB$SEED
@my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301:2132037342 @my-data/cluster1:mydb.CDB$ROOT
@my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301:2164757665 @my-data/cluster1:mydb.MYDB_PDB1
@vault2 @vault2
...
Example 6-71 Display Additional Dataset Attributes
@> lsdataset --attributes id,name,fileUsageHC,datasetUsageHC
id name fileUsageHC datasetUsageHC
@my-data @my-data 0.0000 3.4961G
@my-data:a5b4997a027d6f91ffd9729702ff6ec5 @my-data/cluster1 294.5339M 3.4961G
@my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301 @my-data/cluster1:mydb 25.2656M 3.2085G
@my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301:1402749181 @my-data/cluster1:mydb.PDB$SEED 650.6719M 650.6719M
@my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301:2132037342 @my-data/cluster1:mydb.CDB$ROOT 1.9056G 1.9056G
@my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301:2164757665 @my-data/cluster1:mydb.MYDB_PDB1 658.1719M 658.1719M
@vault2 @vault2 0.0000 110.8750M
...
Example 6-72 Display Files in a Dataset
@> lsdataset --files @my-data:a5b4997a027d6f91ffd9729702ff6ec5:1427076301:2164757665
DATAFILE/mydb_pdb1_db.f
DATAFILE/mydb_pdb1_tmp.f
DATAFILE/mydb_pdb1_xdb.f
DATAFILE/mydb_pdb1_ax.f
Example 6-73 Using the Recursive Display Option
The following examples illustrate using the --recursive
option.
Without the --recursive
option, the following example shows
the files belonging directly to the specified GI cluster dataset.
@> lsdataset --files @my-data:a5b4997a027d6f91ffd9729702ff6ec5
cluster1.ocr
cluster1/vfile1
With the --recursive
option, the following example shows the
files belonging to the specified GI cluster and all of the associated CDB and PDB
datasets.
@> lsdataset --files --recursive @my-data:a5b4997a027d6f91ffd9729702ff6ec5
DATAFILE/mydb_pdb0_ax.f
dbs/xspfile.ora
DATAFILE/mydb_pdb0.xml
DATAFILE/mydb_pdb1_db.f
DATAFILE/t_ax1.f
DATAFILE/t_db1.f
CLUSTER1-A5B4997A027D6F91FFD9729702FF6EC5/MYDB/TEMPFILE/TEMP.OMF.2012709C
DATAFILE/t_xdb1.f
DATAFILE/mydb_pdb1_tmp.f
dbs/t_cf1.f
DATAFILE/mydb_pdb0_xdb.f
DATAFILE/mydb_pdb0_tmp.f
DATAFILE/t_undo1.f
cluster1.ocr
DATAFILE/mydb_pdb1_xdb.f
CLUSTER1-A5B4997A027D6F91FFD9729702FF6EC5/MYDB/PASSWORD/pwdMYDB.4ABC8604
cluster1/vfile1
DATAFILE/mydb_pdb0_db.f
DATAFILE/mydb_pdb1_ax.f
...
Parent topic: Dataset Management