By Brian Fitzgerald
Introduction
With orapki, you can create a local, auto-open wallet. The document states:
You cannot move local auto-login wallets to another computer. They must be used on the host on which they are created.
Questions arise:
- How secure is the “local” feature?
- How is “local” determined?
- How could I open a wallet if it gets restored to a different host under unplanned circumstances?
This article sets out to answer these questions.
How to uniquely identify a host
There are multiple host attributes that one might use to uniquely identify a host, including:
- hostname
- IP address
- hostid
- MAC address
I tried two of these.
Setup
As root, create an auto-login local wallet
Check that the wallet does not require a password.
Test
As root, change the hostname. Retest the wallet. orapki prompts for a password, so the wallet is not auto-login anymore. That demonstrates that oracle checks the system hostname to determine whether the wallet is on the original host. We are done!
Before that, I tried changing hostid but found no effect on wallet locality.
Security implications
Oracle states “Local auto-login wallets are used for scenarios where additional security is required”. However, one can defeat the measure simply by issuing the “hostname” command. It is clear that local auto-login wallets offer little in the way of real security.
Conclusion
Oracle determines whether a local auto-login wallet is on the host where it was created by checking the system hostname. This feature is easy to spoof and does not substantially enhance security. In case of an unplanned restore to a different host, open the wallet by changing the new host’s hostname by issuing the hostname command as root.



