现在服务器上装上了oracle9i,创建了数据库:appdb,sid:pp。现在要建一个学生信息表,该怎么做啊? 刚接触,不知道从何下手,请大家给个详细的操作步骤,比如先创建用户,再创建其他的,最后创建表之类的像这样的步骤。

解决方案 »

  1.   

    下个pl/sql developer,找个中文的
    菜单新建-〉表,还能查看实际的建表语法。
      

  2.   


    dos窗口下依次执行:
    sqlplus /nolog
    conn / as sysdba
    create user xx identified by xx default tablespace users temporary  tablespace temp;
    grant connect,resource to xx;conn xx/xx 
    create table student(id int,name varchar2(100));
    insert into student values(1,'tony');
    insert into student values(2,'john');
    commit;
    select * from student;
      

  3.   

    create user user_name identified by user_pass default tablespace users temporary  tablespace temp;  -----创建用户
    grant connect,dba to user_name;  -----给用户授权
    conn user_name/user_pass; -----以创建的用户登陆
    create table tab_name(id,...,...); -----建立表
    insert into tab_name(id,...,...); -----插入数据
    commit;----提交数据
    select * from tab_name;----查询数据
    ----------等等---------
      

  4.   

    建表空间,是以sys用户登录sql*plus ,然后创建表空间?还是以其他的用户登录sql*plus ?是在客户端通过sql*plus访问服务器oracle
      

  5.   

    只要有 create tablespace权限就能创建  不一定是哪个用户还是用工具吧  方便  不容易出错 
      

  6.   

    普通用户都可以,给他个create tablespace权限就OK!
      

  7.   


    1.create tablespace
    2.create user uid
      identified by 密码
     default tablespace 表空间名....
    3.给用户权限:grant connect,resource to 用户
    4.用新建用户登录 connect 用户名/密码@SID号
    5.建表create table 表名....
    具体的你查一下相关的命令吧
      

  8.   

    1建表空间 create tablespace
    2建用户 create user XXX indentified by XXXX default tablespace XXXXXX
    3付权限 grant connect,dba to XXX
    4用新用户登录 connect XXX/XXXX@SID
    5create table