我看到很多例子上都有emp和dept这张表,这些表在哪儿啊?
需要自己建吗?

解决方案 »

  1.   

    你看的例子是从英文教程直接翻译过来的,emp和dept分别指的是employee(员工)和depot(部门车间),都是自己命名的表,系统表你可以用下面查询:
    select * from dba_tables;   
    详情请见:
    http://www.d9soft.com/article/353/Article24855_1.htm
      

  2.   

    @?/rdbms/admin/scott.sql那是因为你没有安装example
    运行上面那个脚本吧.用sys登录.
      

  3.   

    表是属于用户的,指定用户下有特定的表。
    LZ所说的emp,dept等表在默认安装的scott用户下
      

  4.   

    用scott用户登录就可以看到了 
      

  5.   

    我用scott用户登录他说this account is locked啊
      

  6.   

    select username from dba_users中有scott没?如果有,alter ... unlockconn scott/tigerselect tname from tab;
      

  7.   

    用scott用户登陆
    密码是 tiger
    你那样的话解锁一下就可以了
    alter user scott account unlock;
    如果密码不对 修改一下再登陆
     登陆成功后 select * from tab;
    就可以看到这个用户下的所有表了
    希望对你有帮助
      

  8.   

    用户名 scott
    密码 tiger
    实例名--自己定义的登录后
    select table_name from user_tables;
    就能看到那几个表了