goldwang 发表于 2013-1-27 05:32:25

oracle 常用命令 记录

oracle 常用命令 记录:
   
    sqlplus system/manager
   建立帐号:
   create user username identified by password;
   授权:
    grant dba to username;
   quit
   
   sqlplus username/password@dbname   
   建立表空间:   
   create tablespace mytablespace datafile 'c:\dbdata.dmp' size 50M;
   指定用户缺省表空间:   
   alter user username default tablespace mytablespace;

导出数据:
exp username/password@dbsid file=f:\expdat.dmp compress=Y owner=username

导入数据:
imp username/password file=f:\expdat.dmp fromuser=username
页: [1]
查看完整版本: oracle 常用命令 记录