oracle学习之路
这篇博文只适合初学者阅览,有什么错误的地方,希望大佬可以提点下。
在plsql中操作,首先需要登陆数据库
若要打开保存在本地的后缀名为.sql的数据库文件,操作路径为:Flie->open->SQL Script
点击红色圈圈图标 【执行sql语句】
编辑sql语句,操作路径为:Fiel->new->SQL Window
每新建一个SQL Window都能在左下方的window list中看到
在dos中,首先打开cmd 输入"sqlplus / as sysdba" !!注意空格
连接到oracle之后,创建表空间、用户
表空间:
create tablespace websites --->表空间名,自己取
logging
datafile 'D:\oracle\ websites.dbf'
size 50 M
autoextend on ;
--用户
create user websites --->用户名,自己取
identified by " websites "
default tablespace websites
temporary tablespace temp;
--授予用户连接数据库的权限
grant connect ,resource, dba to websites;
--切换创建用户连接
conn websites/[email protected]