yu 用户下
select id from table;
非yu 用户下
select id from yu.table;

解决方案 »

  1.   

    建议使用select id from table1,不需要加上yu.
      

  2.   

    wfeng7907(无风)说得没错,我试过了。
    怎么在SQLPLUS中进入YU用户下?
    sys,system和internal这三个用户有什么区别?
      

  3.   

    oracle 中每个用户有不同的schema,就象不同的城市,每个城市可能都有人民路,8号一样,
    所有正规的ORACLE对一个object的名字引用为,schema.object所以要加schema的名字. 但如果你已经在上海市了,就不用问警察上诲市,人民路怎么走了,直接问人民路怎么走就行了.所以当你用yu , login后,可省略schema的名字.如果想省事,可用同意词来实现.
      

  4.   

    sys, 是内建的DBA账号
    system,也是内建的账号,比sys权限小一些
    internal, 是sys的别名
      

  5.   

    INTERNAL 
    ORACLE is automatically
    the password if you
    installed your Oracle8
    database using the Oracle8
    option. If you installed your
    Oracle8 database using the
    Custom option, the
    password is whatever you
    entered when prompted
    during installation.
    DBA user name with which to perform
    database administration tasks, including
    starting up and shutting down a
    database.
    Note: INTERNAL is not a true user
    name; it is an alias for the SYS user name
    and SYSDBA privilege.
    Note: INTERNAL uses the SYS schema,
    listed below, with additional SYSDBA
    privileges. See the chapter "The Oracle
    Database Administrator" in Oracle8
    Administrator’s Guide for more
    information.
    SYS/CHANGE_ON_INSTALL DBA user name with the following
    database roles:
    n AQ_ADMINISTRATOR_ROLE
    n AQ_USER_ROLE
    n CONNECT
    n DBA
    n DELETE_CATALOG_ROLE
    n EXECUTE_CATALOG_ROLE
    n EXP_FULL_DATABASE
    n HS_ADMIN_ROLE
    n IMP_FULL_DATABASE
    n RECOVERY_CATALOG_OWNER
    n RESOURCE
    n SELECT_CATALOG_ROLE
    n SNMPAGENTSYSTEM/MANAGER DBA user name with DBA database role.