C:\>expExport: Release 8.1.7.0.0 - Production on 星期四 11月 13 18:17:21 2003(c) Copyright 2000 Oracle Corporation.  All rights reserved.
用户名:  eduman
口令:    *******EXP-00056: ORACLE 错误 12560 出现
ORA-12560: TNS: 协议适配器错误
EXP-00000: 导出终止失败C:\>
________________________________________
整个过程如上。

解决方案 »

  1.   

    ORA-12560: TNS:protocol adapter errorAction: The listener was unable to start a process connecting the user to the database server.Cause: Perform these steps:Turn on tracing and repeat the operation. 
    Evaluate the contents of the trace file to diagnose the problem. See Also: 
    "Oracle Net Services Tracing Error Information"
     
      

  2.   

    只输入了exp,没有指定连接到哪个数据库。
      

  3.   

    正确用法:exp username/password@servicename
      

  4.   

    默认是本地数据库!EXP USERNAME/PASSWORD@DBNAME
      

  5.   

    在JAVA程序里try
    {
    ....
    }catch(SQLException e)
    {
     System.out.println(e.getMessage());
    }查看错误具体说明!
      

  6.   

    对,exp的时候要将用户名和连接串写上,不然会在本地找。
      

  7.   

    EXP USERNAME/PASSWORD@DBNAME用这种方式可以导出,可是程序还是连接不上,下面我把原程序放出来,各位大虾帮我看看。import java.sql.*;public class Stu
    {
     public static void main(String argv[]) throws SQLException
     { /* 声明并初始化变量 */
     String query = new String("SELECT id,name,score FROM student");
     String name;
     int id,score;
     Connection conn=null; try{
       
       Class.forName("oracle.jdbc.driver.OracleDriver"); }catch(Exception e){
      System.out.println("Could not load drive:"+e);
      System.exit(-1);
    }   
    /*利用Thin驱动程序获取Oracle连接*/
       conn=DriverManager.getConnection("jdbc:oracle:thin:@192.1.68.0.60:1521:orcl","eduman","123");
        try {
          Statement pstmt=conn.createStatement();
          /* 执行SQL语句 */
          ResultSet rset= pstmt.executeQuery(query);
          /* 循环处理JDBC结果集的数据 */
          while(rset.next()) {
            id=rset.getInt(1);
            name = rset.getString(2);
            score=rset.getInt(3);
            System.out.println("ID=" + id);
            System.out.println("NAME=" + name);
            System.out.println("SCORE=" + score);
            System.out.println("---------------");
          }
          /* 关闭JDBC结果集 */
          rset.close();
          /* 关闭动态SQL语句 */
          pstmt.close();
        }
        catch(SQLException e) {
          System.out.println("出现SQL例外:" + e.getMessage());
        }
        conn.close();
      }
    }
      

  8.   

    检查了数据库的监听程序,一切正常,在win2k上启动DBA  Studio和Sqlplus也能连接到server,网络也无异常啊!
      

  9.   

    ("jdbc:oracle:thin:@192.1.68.0.60:1521:orcl","eduman","123");192.1.68.0.60
    ip地址写错了