select * from all_directories
drop user pt cascade
select tablespace_name from user_tablespaces
drop tablespace demospace including contents and datafiles;
/建立表空間
create tablespace zhpt
datafile 'd:\workspace\oracle\zhpt' size 30720m
extent management local segment space management auto;
// 設定表空間自動增長
alter database datafile 'd:\workspace\oracle\zhpt' autoextend on;
alter database datafile 'd:\workspace\oracle\zhpt' autoextend on next 200m ;
// 建立使用者並且設定預設表空間
create user zhpt identified by 1 default tablespace zhpt;
// 賦予新使用者許可權
grant connect,resource to zhpt;
grant create any sequence to zhpt;
grant create any table to zhpt;
grant delete any table to zhpt;
grant insert any table to zhpt;
grant select any table to zhpt;
grant unlimited tablespace to zhpt;
grant execute any procedure to zhpt;
grant update any table to zhpt;
grant create any view to zhpt;
grant dba to zhpt;
// 查詢所有資料夾目錄
select * from all_directories
// 建立資料幫浦讀取目錄
create or replace directory dump_dir as 'd:\oracledata'
// 匯入資料
impdp system/admin123@orcl directory=dump_dir dumpfile=ptsys.dmp remap_tablespace=ptsys:zhpt remap_schema=syspt:zhpt table_exists_action=replace
// 版本號,如果高版本資料庫匯入到低版本資料庫中需要配置
version=10.2.0.4.0
11.1.0.6.0
// 查詢所有表空間對應大小
select tablespace_name, sum(bytes) / 1024 / 1024 from dba_free_space group by tablespace_name;
// 查詢所有表空間是否自動增長
select file_name,tablespace_name,autoextensible from dba_data_files;
// 匯出表空間
expdp rhoa/1@orcl directory=ex_dir dumpfile=rhoa_lc.dmp logfile=rhoa_lc.log schemas=rhoa
資料載入操作手冊
二 流程規範 三 手動排程 3.2.資料檔案篩選 3.3.將要載入的表的備份表清空 3.4.資料載入指令碼執行 3.5.sql還原 四 輪詢定時排程 五 日誌軌跡 簡述 將ods推送的資料檔案,載入到資料庫的臨時b表中,然後通過儲存過程將臨時b表中的資料同步到目標a表中。注 臨時b表結構和目標a表表...
Docker操作手冊
安裝 curl fssl sh sudo groupadd docker sudo gpasswd a docker登出 重新登陸 檢視映象 docker search 用互動方式建立並進入容器 docker run i t 映象id bin bash 再次進入容器docker start 容器id...
git 操作手冊
我們先來理解下git 工作區 暫存區和版本庫概念 下面這個圖展示了工作區 版本庫中的暫存區和版本庫之間的關係 圖中我們可以看出此時 head 實際是指向 master 分支的乙個 游標 所以圖示的命令中出現 head 的地方可以用 master 來替換。圖中的 objects 標識的區域為 git ...