版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_37796017/article/details/81631101
一、创建数据库
安装完oracle11g后,在开始菜单栏里找到Database Configuration Assistant,创建数据库,其中只需要注意SID和统一的口令(即:连接系统用户时的密码)即可,其他的直接下一步。
假设我们设的SID是:haglc
统一的口令或数据库名是:ocean
二、创建用户
假设我们要创建的用户名是:username
密码是:password
1.连接数据库
在命令行cmd中输入:
sqlplus/nolog
2.连接用户
conn system/ocean@haglc;
3.创建用户
create user username identified by password;
4.给用户分权限
grant DBA to username;
5.退出
exit;
6.导入数据库
imp username/password@haglc file=拖入路径 full=y ignore=y (不要分号)