OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Command-Line Client

V2.2.13
  • Introduction
    • Overview of OBClient
  • Quick start
    • Quick start with OBClient
  • Command-line options
    • Common OBClient command-line options
    • Reference for OBClient command-line options
    • SQL context when a script fails
  • Configuration and environment
    • Configure OBClient and set environment variables
  • User guide
    • Reference for OBClient internal commands
  • Advanced features
    • Support for Oracle-compatible mode in OBClient
    • Log in to OBClient through a socket5 proxy
    • Multi-IP connection support for OBClient
    • Client IP passthrough and tenant allowlist (F5 scenario)
    • Log in as a proxy user of OBClient
    • LOAD DATA LOCAL INFILE
    • SET variables
    • Supported login_path options for OBClient
  • Tips and troubleshooting
    • OBClient Usage Tips and Troubleshooting

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Command-Line Client
  3. V2.2.13

Log in to OBClient through a socket5 proxy

Last Updated:2026-09-02 09:17:42

Procedure
Method 1: Normal connection
Method 2: Connect through a socket5 proxy
References

OBClient supports connections through a socket5 proxy, which is suitable for scenarios where you need to access the database via a proxy server.

Procedure

Method 1: Normal connection

obclient -h100.88.109.130 -P38884 -utest@oracle -Dtest -ptest

Method 2: Connect through a socket5 proxy

  1. Enable the proxy channel via SSH:
ssh -NCfg -D 1080 root@127.0.0.1
  1. Connect using the socket5 proxy:
obclient -h100.88.109.130 -P38884 -utest@oracle -Dtest -ptest --socket5_proxy=127.0.0.1,1080

The --socket5_proxy parameter is in the host,port format, specifying the address and port of the socket5 proxy server.

References

  • Multi-IP connection support
  • Command-line options reference

Previous topic

Support for Oracle-compatible mode in OBClient
Last

Next topic

Multi-IP connection support for OBClient
Next
on this page
Procedure
Method 1: Normal connection
Method 2: Connect through a socket5 proxy
References