在 Ubunut 机器上,我使用以下命令通过 11g 即时客户端连接到 Oracle 11g 数据库:
sqlplus username/password@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = the.address.com)(PORT = theport)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = service.address.com)))
效果很好……在 Mac OS X Mountain Lion 上,我只能运行即时客户端 10g(32 位版本),当我尝试使用同一行进行连接时,这给了我这个错误:
-bash: syntax error near unexpected token `('
语法是否从 10g 更改为 11g?