温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

学习oracle

发布时间:2020-07-23 19:59:14 来源:网络 阅读:523 作者:cdc222 栏目:关系型数据库

下载oracle

网址http://www.oracle.com/technetwork/index.html

学习oracle

学习oracle

根据你的机型选择下载安装不同版本,首先你得注册一个oracle账户才能下载。

官网EX Edition是学习免费用的。

我的电脑是64位所以选择了一下版本。

学习oracle

解压安装

 

1

学习oracle

2

学习oracle

3

学习oracle


4

学习oracle


我安装的在D盘空间足够大

5输入口令随意取自己,但要自己记住哦,我输入的是1234


学习oracle


6)安装

学习oracle


7

学习oracle


配置oracle

1)启动

学习oracle


2sqlplus 连接数据库用户system 密码1234(前边设置的)

1.  建立表空间和用户的步骤:  

2.  用户  

3.  建立:create user 用户名 identified by "密码";  

4.  授权:grant create session to 用户名;  

5.              grant create table to  用户名;  

6.              grant create tablespace to  用户名;  

7.              grant create view to  用户名;  

例如:

建立:create user myuseridentified by "password"; 

授权:grant createsession to myuser; 

     grant create table to myuser; 

     grant create tablespace to myuser; 

      grant create view to  myuser; 

grant connect,resource to myuser;  

grant create any sequence to myuser;  

grant delete any table to myuser;  

grant insert any table to myuser;  

grant select any table to myuser;  

grant unlimited tablespace to myuser;  

grant execute any procedure to myuser;  

grant update any table to myuser;  

学习oracle

学习oracle


 

1.  表空间  

2.  建立表空间(一般建N个存数据的表空间和一个索引空间)  

3.  create tablespace 表空间名  

4.  datafile 路径(要先建好路径)\***.dbf  ' size *M  

5.  tempfile 路径\***.dbf ' size *M  

6.  autoextend on  --自动增长  

7.  --还有一些定义大小的命令,看需要  

8.   default storage(  

9.   initial 100K,  

10. next 100k,  

11.); 

 

例子:创建表空间 

create tablespace DEMOSPACE  

datafile'D:\soft\oracle\app\oracle\oradata\oracle_tablespaces\DEMOSPACE_TBSPACE.dbf'size 1500M

autoextend on next 5M maxsize 3000M; 

删除表空间 

drop tablespace DEMOSPACE including contentsand datafiles  

学习oracle

 

  1. 1.  备份数据库

  2. 2.  --导入导出命令     

  3. 3.  ip导出方式: exp myuser/password@127.0.0.1:1521/orcl file=f:/f.dmp full=y  

  4. 4.  exp myuser/pssword@orcl file=f:/f.dmp full=y  

  5. 5.  imp myuser/password@orcl file=f:/f.dmp full=y ignore=y  

重新登录

使用创建的用户登录

学习oracle



使用plsql

配置tns

学习oracle

LISTENER_ORCL =

 (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))


安装plsql 配置oci

学习oracle

登录

学习oracle


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI