oracle資料庫學習 (上)

2021-07-09 03:36:12 字數 1342 閱讀 7474

一、oracle 資料庫的解除安裝   oracle11g以後有乙個便利的解除安裝工具   安裝目錄下 的   \product\11.2.0\dbhome_\deinstall  資料夾下的deintall.bat  檔案 開啟即可解除安裝

二、系統使用者(常用) sys   、 system 、scott

sys 預設密碼:change_on_install  登入身份:sysdba   或 sysoper

system預設密碼:manager  登入身份:sysdba   或 normal

scott預設密碼:tiger  登入身份:normal

三、sql*plus的使用

【oracle的sql*plus是與oracle進行互動的客戶端工具,借助sql*plus可以檢視、修改資料庫記錄。在sql*plus中,可以執行sql*plus命令與sql語句。】

1、使用sys 或system登入

[username/passworld] [@serer] [as sysdba|sysoper]

例:system/密碼

connect sys/密碼 as sysdba

2、scott使用者登入(scott使用者是鎖定的需要解鎖)

先用system使用者登入       使用者名為:system  口令為:密碼

scott 解鎖   alter user scott account unlock;

切換使用者為scott            connect scott/tiger

3、檢視使用者

show user

4、表空間

建立表空間   create temporary tablespace  tablespace_name tempfile|datafile '***x.dbf' size xx;

修改表空間狀態     alter tablespace test1_tablespace

online  聯機狀態                 offline   離線狀態

修改表空間讀寫   alert tablespace teblespace_name read only|read write          (預設狀態讀寫)

修改資料檔案

增加資料檔案alert tablespace tablespace_name 

add datafile 'file_name.dbf' size 10m;

刪除資料檔案alert tablespace tablespace_name

drop datafile 'file_name.dbf' size 10m;

刪除表空間 drop tablespace tablespace_name including contents;

指標的學習 上)

include include using namespace std intmain int argc,char ar int main int argc,char ar include include using namespace std intmain int argc,char ar in...

2021 02 06機器學習(上)

人工智慧 機器學習 深度學習 機器學習領域 自然語言處理 影象識別 傳統 框架 tensorflow caffe theano 一 機器學習 1.概念 從資料中自動分析獲得規律,並利用規律對未知資料進行 2.機器學習的資料 檔案csv mysql 1.效能瓶頸 讀取速度 2.格式不太符合機器學習要求...

整合學習(上) 3

訓練均方誤差與測試均方誤差 偏差 方差的權衡 特徵提取 壓縮估計 正則化 對回歸的係數進行約束或者加罰的技巧對p個特徵的模型進行擬合,顯著降低模型方差,這樣也會提高模型的擬合效果。具體來說,就是將回歸係數往零的方向壓縮,這也就是為什麼叫壓縮估計的原因了。降維 示例 from sklearn impo...