Guide de référence des commandes NetBackup™

Last Published:
Product(s): NetBackup (11.0.0.1)
  1. Introduction
    1.  
      A propos des commandes de NetBackup
    2.  
      Navigation dans les niveaux de menu
    3.  
      Conventions des commandes NetBackup
    4.  
      Remarques sur les commandes de NetBackup Media Manager
    5.  
      Mises à jour IPv6
  2. Annexe A. Commandes NetBackup
    1.  
      acsd
    2.  
      backupdbtrace
    3.  
      backuptrace
    4.  
      bmrc
    5.  
      bmrconfig
    6.  
      bmrepadm
    7.  
      bmrprep
    8.  
      bmrs
    9.  
      bmrsrtadm
    10.  
      bp
    11.  
      bparchive
    12.  
      bpbackup
    13.  
      bpbackupdb
    14.  
      bpcatarc
    15.  
      bpcatlist
    16.  
      bpcatres
    17.  
      bpcatrm
    18.  
      bpcd
    19.  
      bpchangeprimary
    20.  
      bpcleanrestore
    21.  
      bpclient
    22.  
      bpclimagelist
    23.  
      bpclntcmd
    24.  
      bpclusterutil
    25.  
      bpcompatd
    26.  
      bpconfig
    27.  
      bpdbjobs
    28.  
      bpdbm
    29.  
      bpdgclone
    30.  
      bpdown
    31.  
      bpduplicate
    32.  
      bperror
    33.  
      bpexpdate
    34.  
      bpfis
    35.  
      bpflist
    36.  
      bpgetconfig
    37.  
      bpgetdebuglog
    38.  
      bpimage
    39.  
      bpimagelist
    40.  
      bpimmedia
    41.  
      bpimport
    42.  
      bpinst
    43.  
      bpkeyfile
    44.  
      bpkeyutil
    45.  
      bplabel
    46.  
      bplist
    47.  
      bpmedia
    48.  
      bpmedialist
    49.  
      bpminlicense
    50.  
      bpnbat
    51.  
      bpnbaz
    52.  
      bppficorr
    53.  
      bpplcatdrinfo
    54.  
      bpplclients
    55.  
      bppldelete
    56.  
      bpplinclude
    57.  
      bpplinfo
    58.  
      bppllist
    59.  
      bpplsched
    60.  
      bpplschedrep
    61.  
      bpplschedwin
    62.  
      bppolicynew
    63.  
      bpps
    64.  
      bprd
    65.  
      bprecover
    66.  
      bprestore
    67.  
      bpretlevel
    68.  
      bpschedule
    69.  
      bpschedulerep
    70.  
      bpsetconfig
    71.  
      bpstsinfo
    72.  
      bpstuadd
    73.  
      bpstudel
    74.  
      bpstulist
    75.  
      bpsturep
    76.  
      bptestbpcd
    77.  
      bptestnetconn
    78.  
      bpup
    79.  
      bpverify
    80.  
      cat_convert
    81.  
      cat_export
    82.  
      cat_import
    83.  
      configureCerts
    84.  
      configureMQ
    85.  
      configureWebServerCerts
    86.  
      create_nbdb
    87.  
      csconfig cldinstance
    88.  
      csconfig cldprovider
    89.  
      csconfig meter
    90.  
      csconfig reinitialize
    91.  
      csconfig throttle
    92.  
      duplicatetrace
    93.  
      importtrace
    94.  
      jbpSA
    95.  
      jnbSA
    96.  
      ltid
    97.  
      mklogdir
    98.  
      msdpcldutil
    99.  
      msdpimgutil
    100.  
      nbauditreport
    101.  
      nbcallhomeproxyconfig
    102.  
      nbcatsync
    103.  
      NBCC
    104.  
      NBCCR
    105.  
      nbcertcmd
    106.  
      nbcertupdater
    107.  
      nbcldutil
    108.  
      nbcmdrun
    109.  
      nbcomponentupdate
    110.  
      nbcplogs
    111.  
      nbcredkeyutil
    112.  
      nbdb_admin
    113.  
      nbdb_backup
    114.  
      nbdb_move
    115.  
      nbdb_ping
    116.  
      nbdb_backup
    117.  
      nbdb_move
    118.  
      nbdb2adutl
    119.  
      nbdb_restore
    120.  
      nbdbms_start_stop
    121.  
      nbdc
    122.  
      nbdecommission
    123.  
      nbdelete
    124.  
      nbdeployutil
    125.  
      nbdevconfig
    126.  
      nbdevquery
    127.  
      nbdiscover
    128.  
      nbdna
    129.  
      nbemm
    130.  
      nbemmcmd
    131.  
      nbepicfile
    132.  
      nbfindfile
    133.  
      nbfirescan
    134.  
      nbfp
    135.  
      nbftadm
    136.  
      nbftconfig
    137.  
      nbgetconfig
    138.  
      nbhba
    139.  
      nbholdutil
    140.  
      nbhostidentity
    141.  
      nbhostmgmt
    142.  
      nbhsmcmd
    143.  
      nbhypervtool
    144.  
      nbidpcmd
    145.  
      nbimageshare
    146.  
      nbinstallcmd
    147.  
      nbjm
    148.  
      nbkmiputil
    149.  
      nbkmscmd
    150.  
      nbkmsutil
    151.  
      nblogparser
    152.  
      nbmariadb
    153.  
      nbmysql
    154.  
      nbmlb
    155.  
      nborair
    156.  
      nboracmd
    157.  
      nbpem
    158.  
      nbpemreq
    159.  
      nbmariadb
    160.  
      nbmlb
    161.  
      nbperfchk
    162.  
      nbpgsql
    163.  
      nbplupgrade
    164.  
      nbrb
    165.  
      nbrbutil
    166.  
      nbreplicate
    167.  
      nbrepo
    168.  
      nbrestorevm
    169.  
      nbseccmd
    170.  
      nbserviceusercmd
    171.  
      nbsetconfig
    172.  
      nbshvault
    173.  
      nbsmartdiag
    174.  
      nbsnapimport
    175.  
      nbsnapreplicate
    176.  
      nbsqlcmd
    177.  
      nbsqlite
    178.  
      nbstl
    179.  
      nbstlutil
    180.  
      nbstop
    181.  
      nbsu
    182.  
      nbsvrgrp
    183.  
      netbackup_deployment_insights
    184.  
      resilient_clients
    185.  
      restoretrace
    186.  
      stopltid
    187.  
      tiermover
    188.  
      tldd
    189.  
      tldcd
    190.  
      tpautoconf
    191.  
      tpclean
    192.  
      tpconfig
    193.  
      tpext
    194.  
      tpreq
    195.  
      tpunmount
    196.  
      verifytrace
    197.  
      vltadm
    198.  
      vltcontainers
    199.  
      vlteject
    200.  
      vltinject
    201.  
      vltoffsitemedia
    202.  
      vltopmenu
    203.  
      vltrun
    204.  
      vmadd
    205.  
      vmchange
    206.  
      vmcheckxxx
    207.  
      vmd
    208.  
      vmdelete
    209.  
      vmoprcmd
    210.  
      vmphyinv
    211.  
      vmpool
    212.  
      vmquery
    213.  
      vmrule
    214.  
      vmupdate
    215.  
      vnetd
    216.  
      vssat
    217.  
      vwcp_manage
    218.  
      vxlogcfg
    219.  
      vxlogmgr
    220.  
      vxlogview
    221.  
      W2KOption

Nom

nboracmd — utility for configuring NetBackup Oracle assets

Synopsis

nboracmd add database [-S primary_server] -name database_name -unique_name db_unique_name -id database_id -type RAC | RAC_ONE_NODE -scan_name scan_name -service_name service_name -port port [-load_balanced_node_count number] [-wallet_path path]

nboracmd add database [-S primary_server] -name database_name -unique_name db_unique_name -id database_id -type SINGLE_INSTANCE [-tns_name tns_name] [-wallet_path path]

nboracmd add instance [-S primary_server] -name instance_name -client_name client_name -oracle_home oracle_home -database_asset_id db_asset_id [-base_config base_config] [-base_home base_home] [-override_tns_admin tns_admin] [-backup_client_name backup_client_name]

nboracmd add rman_catalog [-S primary_server] -name name [-tns_name tns_name]

nboracmd add data_guard [-S primary_server] -name data_guard_name -database_name database_name -id database_id -database_asset_id id1 [-database_asset_id id2 ...]

nboracmd delete database [-S primary_server] ASSET_ID

nboracmd delete pdb [-S primary_server] ASSET_ID

nboracmd delete instance [-S primary_server] ASSET_ID

nboracmd delete rman_catalog [-S primary_server] ASSET_ID

nboracmd delete data_guard [-S primary_server] ASSET_ID

nboracmd discover databases [-S primary_server] -client_name client_name

nboracmd discover pdbs [-S primary_server] -database_asset_id db_asset_id

nboracmd list data_guards [-S primary_server] [-format {csv,json}] [-limit limit] [-filter filter] [-sort sort]

nboracmd list databases [-S primary_server] [-format {csv, json}][-limit limit] [-filter filter] [-sort sort]

nboracmd list pdbs [-S primary_server] [-format {csv, json}] [-limit limit] [-filter filter] [-sort sort]

nboracmd list instances [-S primary_server] [-format {csv, json}] [-limit limit] [-filter filter] [-sort sort] [-show_connect_descriptor]

nboracmd list credentials [-S primary_server] [-format {csv, json}] [-limit limit] [-filter filter] [-sort sort]

nboracmd list jobs [-S primary_server] [-format {csv, json}] [-limit limit] [-filter filter] [-sort sort]

nboracmd list rman_catalogs [-S primary_server] [-format {csv, json}] [-limit limit] [-filter filter] [-sort sort]

nboracmd list job_details -job_id job_id [-S primary_server] [-format {csv, json}]

nboracmd modify database [-S primary_server] [-wallet_path path] [-tns_name tns_name] [-type SINGLE_INSTANCE | RAC | RAC_ONE_NODE] [-port port] [-service_name service_name] [-scan_name scan_name] [-state ACTIVE | INACTIVE] [-load_balanced_node_count number] [-rman_catalog rman_catalog] ASSET_ID

nboracmd modify instance [-S primary_server] [-backup_client_name backup_client_name] [-oracle_home oracle_home] [-base_config base_config] [-base_home base_home] [-override_tns_admin tns_admin] [-state ACTIVE | INACTIVE] ASSET_ID

nboracmd backup -policy policy [-S primary_server] [-schedule schedule] ASSET_ID

nboracmd manage credentials -name credential_name [-S primary_server] [-force] ASSET_ID

On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/

On Windows systems, the directory path to this command is install_path\NetBackup\bin\

DESCRIPTION

The nboracmd command can list, modify, and backup Oracle assets. The nboracmd command performs the following operations:

  • add database adds a RAC database or a single instance database asset.

  • add instance adds an instance asset.

  • add rman_catalog adds an RMAN catalog asset.

  • add data_guard adds a Data Guard asset.

  • delete database deletes an Oracle database asset.

  • delete data guard deletes an Oracle Data Guard asset.

  • delete pdb deletes an Oracle pluggable database (PDB) asset.

  • delete instance deletes an Oracle instance asset.

  • delete rman catalog deletes an Oracle RMAN catalog asset.

  • discover databases discovers Oracle databases.

  • discover pdbs discovers Oracle pluggable databases (PDBs).

  • list data guards lists Oracle Data Guard assets.

  • list databases lists Oracle database assets.

  • list pdbs lists Oracle pdb assets.

  • list instances lists oracle instance assets.

  • list credentials lists NetBackup CMS Oracle credentials.

  • list jobs lists NetBackup Oracle jobs.

  • list rman_catalogs lists Oracle RMAN catalog assets.

  • list job_details lists Oracle job details.

  • modify database modifies an Oracle database asset with the given asset ID.

  • modify instance modifies an Oracle instance asset with the given asset ID.

  • backup runs an immediate backup with the provided policy and asset ID.

  • manage credentials associates the given credential with an asset.

OPTIONS

ASSET_ID

A positional argument that must be specified at the end of the command. The asset ID of the asset to be backed up, modified, or managed.

-backup_client_name name

The backup client name to be used with the given asset ID. When you use the nboracmd add instance command, this option applies only when you add a RAC or a RAC One Node instance asset.

-base_config path

The base config path to be set on the asset with the given asset ID.

-base_home home

The base home path to be set on the asset with the given asset ID.

-client_name client_name

The client name that is associated with the database or the instance.

-database_asset_id db_asset_id or -database_asset_id id1 [-database_asset_id id2...]

The ID of the database asset. When the option is used with the add data_guardcommand, you can specify one or more IDs.

-filter filter

Filters the data in the list. The filter value must be in OData format. Can only be used with -format json.

-force

Used with manage credentials to associate a credential with an asset without validating the credential.

-format {csv | json}

Specifies the format to be used for the output. Defaults to csv.

-help

Prints the usage of a given action.

-id database_id

The database ID that is defined by Oracle.

-job_id ID

The ID of the job to print details of.

-limit limit

The maximum items to return as a list. The maximum is 100.

-load_balanced_node_count number

An integer that defines the maximum number of nodes NetBackup uses for backup. Backups proceed with a lower number, if the number of nodes that is specified is not available. If you specify 0 (zero) NetBackup uses all the available nodes.

-name name or -name database_name or -name instance_name

The name of the CMS credentials to associate with a given asset.

When the option is used with the manage credentials command, it is the name of the CMS credentials. When the option is used with the add database command, it is the name of the database. When the option when used with the add instance command, it is the name of the instance.

-oracle_home oracle_home

Specifies the file path of the Oracle home directory where the instance resides.

-override_tns_admin tns_admin

Used to override default TNS_ADMIN path.

-policy name

The policy name the backup request uses.

-port port

The port to be assigned to the database asset.

-rman_catalog ID

The asset ID of an RMAN catalog to be associated with a given database.

-S primary_server

Specifies the primary server that contains the asset to be listed or modified.

-scan_name name

Specifies the new SCAN name to be associated with the given database asset.

-schedule schedule

Specifies the schedule to be used when backing up an asset. If not specified, it defaults to a full schedule.

-service_name name

Specifies the new service name to be associated with the given database asset.

-show_connect_descriptor

Optional flag with list instances to include the connect descriptor for the RAC instances.

-sort sort

Sorts the data in the list. The sort value must be in OData format. Can only be used with -format json.

-state ACTIVE | INACTIVE

Specifies the new state to be assigned to the given instance or database asset.

-tns_name name

Specifies the new TNS name to be assigned to the given database asset.

-type SINGLE_INSTANCE | RAC | RAC_ONE_NODE

Specifies the new database type to be assigned to the given database asset.

-unique_name db_unique_name

The unique name of the database.

-wallet_path path

Specifies the new wallet path to be assigned to the given database asset.

EXAMPLES

Example 1: List the databases, filtering on the database name.

nboracmd list databases -format json -filter
"commonAssetAttributes/displayName eq 'orcl'"

Example 2: List the RMAN catalogs, sorting on the first discovered time.

nboracmd list rman_catalogs -format json -sort
"commonAssetAttributes.detection.firstDiscoveredTime"

Example 3: Modify the database to ACTIVE and set the load_balanced_node_count to 1.

nboracmd modify database -state ACTIVE -load_balanced_node_count 1
b8402e70e3f788a43e643142cc27854f75c8e3d357dc

Example 4: Modify an instance's backup client name and state.

nboracmd modify instance -backup_client_name backup.client.name.com
-state ACTIVE 2efa9157344448d40d001870e3ff75c8e3d357dc

Example 5: Run an immediate backup of a database.

nboracmd backup -policy oracle -schedule inc
b8402e70e3f788a43e643142cc27854f75c8e3d357dc

Example 6: Manage an asset's credentials without validating.

nboracmd manage credentials -name oracle_creds -force
b8402e70e3f788a43e643142cc27854f75c8e3d357dc

Example 7: Add a Data Guard asset with multiple database asset IDs.

nboracmd add data_guard -name dg_config -database_name orac19 -id 
1384408790 -database_asset_id 
2f47b5a143c737b2ed85de111c796c4829cd2183590f86f7809052daba7c33ad 
-database_asset_id 
cd2183590f86f7809052daba7c33ad372f47b5a143c729b2ed85de111c796c48 
-database_asset_id 
ad372f47b5a143c729b2ed85de1cd2183590f86f7809052daba7c3311c796c48