数据库不在本地在服务器上,我在本地装了精简客户端和PLSQL,用PLSQL可以连接到服务器的oracle数据库,但是在程序里面用
OracleConnection con=new OracleConnection ("Data Source=orcl;User ID=powerloss;Password=powerloss;");con.open();
报错了,while trying to retrieve text for error ORA-12538 求各位高手help

解决方案 »

  1.   

    ORA-12538: TNS:no such protocol adapterCause: The protocol adapter requested (by way of the "(PROTOCOL=..)" keyword-value pair in a TNS address) is unknown. If the supplied address is typographically correct then the protocol adapter is not installed.Action: Install the protocol adapter or correct typographically error, as appropriate. Note: if the supplied address was derived from resolving the service name, check the address in the appropriate file (TNSNAMES.ORA, LISTENER.ORA or SQLNET.ORA).