剑三皇宫画画:oracle 表结构操作

来源:百度文库 编辑:偶看新闻 时间:2024/04/28 03:36:21
 CREATE TABLESPACE SHMZ
    LOGGING
    DATAFILE 'D:\ORACLEHOME\ORA92\ORADATA\SAASHIS\SHMZ.dbf' SIZE
    20M AUTOEXTEND
    ON NEXT  10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT  AUTO


CREATE TABLESPACE csdn
    LOGGING
    DATAFILE 'D:\datebase\csdn.dbf' SIZE
    200M AUTOEXTEND
    ON NEXT  10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT  AUTO


imp  导入


exp  导出

exp 用户名/密码@sid号 file=路径文件名 nolog

imp 用户名/密码@sid号 file=路径文件名 full=y

exp arcms/arcms@orcl file=F:\arcms.dmp log=F:\arcms.log

C:\Documents and Settings\Administrator>exp arcms/arcms@orcl file=F:\arcms.dmp l
og=F:\arcms.log rows=n


exp arcms/arcms@orcl tables=uc_user file=E:\uc_user.dmp

imp arcms/arcms@orcl file=E:\uc_user.dmp full=y

C:\Documents and Settings\Administrator>imp text/text@orcl fromuser=arcms touser
=text file=d:\arcms.dmp


create sequence tt
     minvalue 1  
   maxvalue 999999  
    nocycle --不循环      start with 201       increment by 1      cache 100--缓存 100个       order;