Rewind tape devices before opening and on closing

With ontape, you must use rewindable tape devices. Before reading from or writing to a tape, the database server performs a series of checks that require the rewind.