LoginSignup
2
0

[Oracle Cloud] Oracle Database Service へ OCI コマンド・ライン・インタフェース(CLI) をインストールしてみてみた

Last updated at Posted at 2023-03-05

OracleCloud Infrastructure(OCI) の Oracle Database Service、Exadata Database Service には、コマンド・ライン・インタフェース(CLI)がデフォルトでインストールされています。
ということで確認してみてみます。

■ OCI CLI確認

Oracle Database Service作成すると OCI CLI がインストールされていることを確認できます

[opc@db19c ~]# oci -v
	3.4.4

■ CLI 構成ファイルの設定

初回の設定プロセスの手順をCLIによって示すには、setup configコマンドを使用します
次を参考に CLI 設定ダイアログを使用して構成ファイルを設定します

■ OCI CLI 実行確認

動作テストで、Object Storageへアクセスできることを確認

[opc@db19c ~]# oci os bucket get -bn test-bucket01 --output table
	/root/lib/oracle-cli/lib64/python3.6/site-packages/oci/_vendor/httpsig_cffi/sign.py:10: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
	from cryptography.hazmat.backends import default_backend  # noqa: F401
	+-----------------------------------------+---------------------------------------------------+--------------+--------------------+---------------+-----------------+------------+----------------------------------+
	| compartment-id                          | created-by                                        | defined-tags | etag               | freeform-tags | name            | namespace  | time-created                     |
	+-----------------------------------------+---------------------------------------------------+--------------+--------------------+---------------+-----------------+------------+----------------------------------+
	| ocid1.compartment.oc1..aaaaaaaa2dmjokxv | ocid1.user.oc1..aaaaaaaatkb2a32gjm4yyq6hrx4geayb7 | None         | aefebeae-1b94-4260 | None          | test-bucket01   | shirok     | 2021-11-19T11:36:04.417000+00:00 |
	+-----------------------------------------+---------------------------------------------------+--------------+--------------------+---------------+-----------------+------------+----------------------------------+

■ 参考

 ・コマンドライン・インタフェース(CLI)
 ・手動およびオフライン・インストール
 ・CLI コマンドリファレンス

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0