Exclude components from write protection

Prev Next

You can exclude specific components from a write-protected directory or drive.

  1. Run this command at the command prompt.

    sadmin write-protect -e pathname1 ... pathnameN

    When you specify a file path to be excluded from a write-protected component, write protection is removed from only that specific file.

    Specify the complete path for the components to be excluded from write protection. For example:

    • sadmin write-protect –e Listener.ora

  2. Exclude registry keys from write protection.

    sadmin write-protect-reg -e registrykeyname1 ... registrykeynameN

    Specify the registry key names as parameters with this command and the exclude argument to exclude registry keys from being write-protected.

    For example:

    • sadmin write-protect-reg –e HKEY_LOCAL_MACHINE\SOFTWARE