Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对甲骨文相当陌生。我正在尝试使用 OCCI 连接到远程 Oracle 数据库。我在这一点上找到的所有示例都是用于连接到本地数据库。有人可以指点我正确的方向,让我知道在哪里可以找到示例连接以帮助我度过这一点吗?谢谢,迈克
createConnection( "name", "passwrd", "string")
“字符串”代表使用 Oracle “tnsnames.ora”文件解析的连接名称,该文件应位于您的 ORACLE_HOME(Oracle 安装目录)\NETWORK\ADMIN 目录中,或者代表如下所示的连接字符串
Code: connection_name = (DESCRIPTION = (ADDRESS=(PROTOCOL = TCP)(HOST = ip_address)(PORT = listener_port)) (CONNECT_DATA= (SERVICE_NAME = listener_service_name) (SERVER = DEDICATED)) )