ORACLE常用语句

创建表空间:

CREATE TABLESPACE "TS_PUBLICDATA" 

    LOGGING 

    DATAFILE 'C:\app\Administrator\product\11.2.0\TS_PUBLICDATA.ora' SIZE 200M 

    AUTOEXTEND 

    ON NEXT  100M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL 

    SEGMENT SPACE MANAGEMENT AUTO ;

 

创建用户

CREATE USER publicdata  PROFILE "DEFAULT" 

    IDENTIFIED BY publicdata DEFAULT TABLESPACE "TS_PUBLICDATA" 

    ACCOUNT UNLOCK;

GRANT "CONNECT" TO publicdata;

GRANT "RESOURCE" TO publicdata;

grant create view to publicdata;

 

删除用户:

drop user test cascade

 

 

导入dmp

imp 'test/test@orcl' rows=y indexes=n buffer=65536 feedback=100000 full=y file=C:\SQL\test.dmp

 

如果出现版本不统一,需要使用dba权限

grant dba to test;

 

 

 

你可能感兴趣的:(oracle)