導航:首頁 > 程序命令 > oracle11數據命令

oracle11數據命令

發布時間:2023-01-17 11:09:09

❶ oracle 11g 安裝和使用

oracle 11g可以使用內置sysdba用戶來登錄,然後為sys和system用戶設置密碼,步驟如下:

1、打開運行窗口。

❷ oracle資料庫的常見命令

1、su – oracle 不是必需,適合於沒有DBA密碼時使用,可以不用密碼來進入sqlplus界面

2、sqlplus /nolog 或sqlplus system/manager 或./sqlplus system/manager@ora9i

3、SQL>connect / as sysdba ;(as sysoper)或connect internal/oracle AS SYSDBA (scott/tiger)conn sys/change_on_install as sysdba

4、SQL>startup; 啟動資料庫實例

5、 查看當前的所有資料庫: select * from v$database

(2)oracle11數據命令擴展閱讀:

ORACLE資料庫系統是美國ORACLE公司(甲骨文)提供的以分布式資料庫為核心的一組軟體產品,是目前最流行的客戶/伺服器(CLIENT/SERVER)或B/S體系結構的資料庫之一。

oracle資料庫邏輯結構

它由至少一個表空間和資料庫模式對象組成。這里,模式是對象的集合,而模式對象是直接引用資料庫數據的邏輯結構。

模式對象包括這樣一些結構:表、視圖、序列、存儲過程、同義詞、索引、簇和資料庫鏈等。邏輯存儲結構包括表空間、段和范圍,用於描述怎樣使用資料庫的物理空間。

文件結構

資料庫的物理存儲結構是由一些多種物理文件組成,主要有數據文件、控制文件、重做日誌文件、歸檔日誌文件、參數文件、口令文件、警告文件等。

❸ oracle資料庫 常見的數據定義命令有哪些,數據操作命令有哪些

我還有個文本文檔,如果你想要,請留下您的QQ,我發給您。
SQLPLUS常用的命令:

edit;(打開緩存中的命令記事本)
/(執行緩存中的命令)
conn連接

sys/system/sysdba
scott/hr

創建用戶:
必須以管理員或超級用戶的身份登錄,才可以創建

以sys用戶登錄
sys/as sysdba
以system登錄
system@str
password

創建用戶:
create user myuser identified by myuser;
授予連接的許可權
grant connect to myuser;
grant resource to myuser;

刪除用戶
drop user myuser;
物理結構
資料庫:日誌文件,數據文件,控制文件
表空間-----數據文件

myuser:table
create user user01
identified by user01
default tablespace users
temporary tablespace temp;
--創建表空間
create tablespace myts datafile 'd:/stu/a.data' size 50M;
--許可權
--系統許可權 create any table
--對象許可權 select on scott.emp
--角色 (一組許可權的集合 )
--connect(連接),resource
create role myrole;
grant connect,resource to myrole;
grant myrole to user01;
--修改口令
alter user user01 identified by aaa111;
--修改用戶的鎖定狀態
alter user scott account unlock;
--修改表空間
alter user user01 default/temporary tablespace myts;
--解除許可權
revoke myrole from user01;
--刪除用戶
drop user user01;

❹ oracle登錄資料庫的命令


1、啟動oracle資料庫:從root切換到oracle用戶進入:su-oracle進入sqlplus環境,nolog參數表示不登錄:sqlplus/nolog以管理員模式登錄:sqlplus。
2、資料庫監聽:啟動監聽服務:lsnrctlstart停止監聽服務:lsnrctlstop查看監聽狀態。
3、用戶許可權管理:註:以下命令都需要DBA許可權。
閱讀全文

與oracle11數據命令相關的資料

熱點內容
mayapython中文 瀏覽:357
只狼加存檔應該是哪個文件夾 瀏覽:110
程序員禿頭圖片 瀏覽:922
思科路由器命令手冊 瀏覽:26
android獲得當前activity 瀏覽:833
python入門迷宮 瀏覽:71
Python打折代碼不含商品 瀏覽:221
把多個Word合成一個pdf 瀏覽:356
aes演算法描述 瀏覽:899
新手機壓縮包在哪 瀏覽:781
java抽獎程序源碼 瀏覽:700
汽車壓縮機又叫 瀏覽:95
android讀取data文件 瀏覽:874
紅旗智聯app怎麼跟h5車子連接 瀏覽:139
材料化學pdf 瀏覽:114
伺服器機房都有什麼東西 瀏覽:370
最近長陰短柱量能副圖指標源碼 瀏覽:647
python字元串去除後四位 瀏覽:167
捷速pdf編輯器破解版 瀏覽:726
大帶寬伺服器怎麼租 瀏覽:299