3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[OCI]Autonomous DatabaseのExcel Add-inを使用してExcelからAutonomous Databaseにアクセスしてみた(Windows編)

Posted at

はじめに

Autonomous Databaseには、クライアントPC上のExcel(エクセル)から直接Autonomous Databaseにアクセスするためのアドイン(Oracle Autonomous Database Add-in for Excel)が用意されています。

今回はWindows版のExcelにこのアドインをインストールして、Excelから直接Autonomous Databaseにアクセスしてみました。

Mac版の手順はこちら。

1. Autonomous DatabaseのExcel Add-inのダウンロード

OCIコンソールでAutonomous Databaseの詳細画面に移動し、「データベース・アクション」にアクセスします。
スクリーンショット 2022-10-24 14.39.10.png
データベース・アクションの起動パッドが表示されます。
スクリーンショット 2022-10-24 17.43.18.png
画面右側の「スタート・ガイド」内の「Excel用アドインのダウンロード」をクリックします。
スクリーンショット 2022-10-24 14.40.42.png
「oracleplugin.zip」というファイルがダウンロードされます。
スクリーンショット 2022-10-24 14.41.32.png

2. Excel Add-inのインストール

ダウンロードした「oracleplugin.zip」を選択し、右クリックで「すべて展開」を選択して解凍します。
スクリーンショット 2022-10-24 23.03.16.png

「install(.cmd)」を選択し、右クリックで「管理者として実行」を選択して実行します。
スクリーンショット 2022-10-24 23.04.59.png
「WindowsによってPCが保護されました」と表示されたら、「詳細情報」をクリックします。
スクリーンショット 2022-10-24 23.05.50.png
「実行」をクリックします。
スクリーンショット 2022-10-24 23.06.01.png
コマンドプロンプトが起動し、アドインのインストールが始まります。
インストールが完了すると、「続行するには何かキーを押してください」と表示されるので、キーを押して終了します。
スクリーンショット 2022-10-24 23.07.35.png

3. Excel Add-inの有効化

Excelを起動します。

上部メニューの「挿入」をクリックします。
スクリーンショット 2022-10-24 23.08.55.png
「個人用アドイン」をクリックし、「すべて表示」を選択します。
スクリーンショット 2022-10-24 23.13.02.png
「共有フォルダー」をクリックします。
スクリーンショット 2022-10-24 23.13.30.png
「Oracle Autonomous Database」を選択して、「追加」をクリックします。
スクリーンショット 2022-10-24 23.14.05.png
メニューに「Autonomous Database」が追加されます。
スクリーンショット 2022-10-24 23.14.33.png

4. Excel Add-inの利用

上部メニューの「Autonomous Database」をクリックします。
スクリーンショット 2022-10-24 23.14.33.png
「サインイン」をクリックします。
スクリーンショット 2022-10-24 23.15.06のコピー2.png
サインインのウインドウが表示されるので、Autonomous Databaseのユーザ名、パスワードを入力して「サインイン」をクリックします。
スクリーンショット 2022-10-24 23.18.58.png
サインインに成功すると、以下のよう「正常にサインインしました」と表示されます。
スクリーンショット 2022-10-24 18.06.01.png
「ネイティブSQL」をクリックします。
スクリーンショット 2022-10-24 23.15.06のコピー.png
ウインドウの右側にネイティブSQLのペインが表示されます。
スクリーンショット 2022-10-24 23.20.14.png
「問合せの記述」をクリックします。
スクリーンショット 2022-10-24 23.20.14のコピー.png
「問合せの記述」の入力欄が表示されるので、入力欄にSQLを入力し、右下の「実行」をクリックします。
スクリーンショット 2022-10-24 23.21.06.png

Autonomous Databaaseに対して問合せが実行され、その実行結果がワークシートに表示されました。
スクリーンショット 2022-10-24 23.22.20.png

まとめ

Autonomous DatabaseのExcel Add-inを使用して、ExcelからAutonomous Databaseに直接アクセスしてデータを参照できることが確認できました。

なお、MacのExcelにアドインをインストールする方法は、こちらのマニュアルに記載があります。
Install the Oracle Autonomous Database add-in on Mac

参考資料

Oracle Autonomous Database Add-in for Excel
Install the Oracle Autonomous Database add-in on Windows
Using the Excel Add-in to Query Autonomous Database

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?