問題
以下のようなエラーが発生し、emcli が使えない
C:\app\Middleware\bin>emcli get_supported_platforms
Error: Session expired. Run emcli login to establish a session.
ERROR: Could not retrieve the platform list.
ログイン
Enterprise Managerにログインし、OMSでセッションを立ち上げる必要がある
emcli login -username=<ユーザー名>
実行例
C:\app\Middleware\bin>emcli login -username=sysman
Enter password :
Login successful
C:\app\Middleware\bin>emcli get_supported_platforms
-----------------------------------------------
Version = 13.4.0.0.0
Platform = Microsoft Windows x64 (64-bit)
-----------------------------------------------
Platforms list displayed successfully.
-
login
docs.oracle.com