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?

Autonomous Database: 踏み台経由でプライベートのAPEXにアクセスする

Last updated at Posted at 2025-04-09

はじめに

プライベートのAutonomous Database(ADB)を利用しているAPEXに、Linuxサーバーを踏み台にしてSSHポートフォワードで接続します。

構成イメージ

image.png

前提

セキュリティリストで以下を許可しておきます。

パブリック(踏み台)サブネット

  • イングレス
    • 接続元からから22/tcp
  • エグレス
    • すべて

プライベート(ADB)サブネット

  • イングレス
    • VCNから443/tcp
  • エグレス
    • すべて

手順

  1. ローカル端末(Powershell等)から、ADBに踏み台サーバーを経由するSSHポートフォワーディングします

    ssh -i "<踏み台の鍵の場所>" -N -L <localポート番号>:<ADBのプライベートエンドポイントIP>:<宛先=ADBのポート番号:443> <user名>@<踏み台のPublicIP>
    

    例:ssh -i "C:\Users\XXX\XXX.key" -N -L 443:10.0.1.6:443 opc@168.XX.XX.XX

  2. ローカル端末のWebブラウザから https://localhost へアクセスします

  3. ORDS(Oracle Rest Data Services)のページからAPEXの管理画面にアクセスすることができます。

    image.png

  4. APEXの実行(もしくはSQL Developer WebからDatabase Actions)をクリックして作成されているDBユーザー(admin等)でログインします。

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?