oracle 基本操作

来源:互联网 发布:51软件测试业余班 编辑:程序博客网 时间:2024/06/11 23:40

在命令行提示符(cmd)中输入 sqlplus /nolog
出现SQL> 提示输入

# 使用system用户连接,Admin123为密码,数据库为orclconn system/Admin123@orcl# 创建user1用户并设置密码123create user user1 identified by 123;# 授权user1为数据库管理员grant dba to user1;   # 删除用户  drop user user1;# 退出链接exit;# 导入数据file为数据的路径imp db/user1@orcl file=d:/expdata1.dmp full=y# 导出自己的方案exp db/user1@orcl owner=user1 file=d:\tdt.dmp# 查看表空间select tablespace_name,status from dba_tablespaces;# 创建表空间 create tablespace ittbank datafile 'd:/oracle/oradata/ORCL/ittbank.dbf' size 300m autoextend on;
0 0