2023年11月1號資料庫遷移記錄(1)

2022-02-16 00:56:19 字數 981 閱讀 2397

--一、sqlplus登入sys或者system 建立oracle directory目錄

create directory dp_qianyi as 'd:\qianyi'; --同時應該在相應位置建立實際目錄

--授權 grant read,write on directory dp_qianyi to system ;

--二、一 匯出 creditfw使用者下的模式

--1、sqlplus登入sys或者system給sgshare授directory目錄許可權

grant read,write on directory dp_qianyi to creditfw;

--2、退出sqlplus登入,在cmd模式下,執行expdp匯出語句

expdp creditfw/xyshare@xyshare directory=dp_qianyi schemas=creditfw dumpfile=qy_sgshare20181211.dmp logfile=qy_sgshare20181211.log

--3、匯出結束後,將匯出的檔案壓縮傳送到要匯入的資料庫伺服器上

--刪除使用者

drop user 使用者名稱 cascade;

--刪除表空間

drop tablespace 表空間名稱 including contents and datafiles cascade constraint;

size 50m autoextend on next 10m maxsize 100m; --建立臨時表空間

----- 授權:

grant read,write on directory dp_qianyi to system

--6、匯入zwserver使用者下的模式

impdp system/xyshare@xyshare directory=dp_qianyi dumpfile=qy_sgshare20181107.dmp logfile=qy_sgshare20181107.log

資料庫核心月報 2023年1月

01 mysql 引擎特性 group replication核心解析之二 02 mysql 引擎特性 mysql核心對讀寫分離的支援 03 pgsql 核心解析 同步流複製實現分析 04 mysql 捉蟲動態 uk 包含 null 值備庫延遲分析 05 mysql 捉蟲動態 error in mu...

阿里資料庫核心月報 2023年11月

01 mysql 資料恢復 undrop for innodb 02 mysql 引擎特性 drop table之binlog解析 03 mssql 最佳實踐 sql server三種常見備份 04 mysql 最佳實踐 什麼時候該公升級記憶體規格 05 mysql 原始碼分析 innodb lru...

2023年10月10號 資料型別之間的轉換

其他型別的都能轉化為object,但object 不能轉化為其他的。object相當於乙個箱子,能裝下其他任何字元。int i 1 object q sasasa121 例如 int i 1 object k i 如來佛,廣通萬物 string s hellowolrd k s 可以儲存int 型的...