oracle 基本操作

xiaoxiao2021-02-28  123

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

# 使用system用户连接,Admin123为密码,数据库为orcl conn system/Admin123@orcl # 创建user1用户并设置密码123 create 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;
转载请注明原文地址: https://www.6miu.com/read-59083.html

最新回复(0)