溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

學(xué)習(xí)oracle

發(fā)布時(shí)間:2020-07-23 19:59:14 來(lái)源:網(wǎng)絡(luò) 閱讀:547 作者:cdc222 欄目:關(guān)系型數(shù)據(jù)庫(kù)

下載oracle

網(wǎng)址http://www.oracle.com/technetwork/index.html

學(xué)習(xí)oracle

學(xué)習(xí)oracle

根據(jù)你的機(jī)型選擇下載安裝不同版本,首先你得注冊(cè)一個(gè)oracle賬戶才能下載。

官網(wǎng)EX Edition是學(xué)習(xí)免費(fèi)用的。

我的電腦是64位所以選擇了一下版本。

學(xué)習(xí)oracle

解壓安裝

 

1

學(xué)習(xí)oracle

2

學(xué)習(xí)oracle

3

學(xué)習(xí)oracle


4

學(xué)習(xí)oracle


我安裝的在D盤(pán)空間足夠大

5輸入口令隨意取自己,但要自己記住哦,我輸入的是1234


學(xué)習(xí)oracle


6)安裝

學(xué)習(xí)oracle


7

學(xué)習(xí)oracle


配置oracle

1)啟動(dòng)

學(xué)習(xí)oracle


2sqlplus 連接數(shù)據(jù)庫(kù)用戶system 密碼1234(前邊設(shè)置的)

1.  建立表空間和用戶的步驟:  

2.  用戶  

3.  建立:create user 用戶名 identified by "密碼";  

4.  授權(quán):grant create session to 用戶名;  

5.              grant create table to  用戶名;  

6.              grant create tablespace to  用戶名;  

7.              grant create view to  用戶名;  

例如:

建立:create user myuseridentified by "password"; 

授權(quán):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;  

學(xué)習(xí)oracle

學(xué)習(xí)oracle


 

1.  表空間  

2.  建立表空間(一般建N個(gè)存數(shù)據(jù)的表空間和一個(gè)索引空間)  

3.  create tablespace 表空間名  

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

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

6.  autoextend on  --自動(dòng)增長(zhǎng)  

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

8.   default storage(  

9.   initial 100K,  

10. next 100k,  

11.); 

 

例子:創(chuàng)建表空間 

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  

學(xué)習(xí)oracle

 

  1. 1.  備份數(shù)據(jù)庫(kù)

  2. 2.  --導(dǎo)入導(dǎo)出命令     

  3. 3.  ip導(dǎo)出方式: 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  

重新登錄

使用創(chuàng)建的用戶登錄

學(xué)習(xí)oracle



使用plsql

配置tns

學(xué)習(xí)oracle

LISTENER_ORCL =

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


安裝plsql 配置oci

學(xué)習(xí)oracle

登錄

學(xué)習(xí)oracle


向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI