Oracle資料庫庫的遷移
阿新 • • 發佈:2019-01-04
在oracle資料庫中一個人擁有一個庫,mysql中不是
檢視源資料庫版本
select * from v$version;
安裝相應版本的資料庫
檢視源使用者表空間
select default_tablespace from dba_users where username=‘BDS_LFHC’
檢視源所有表空間資訊
select * from dba_tablespaces;
建立目標庫表空間
create tablespace BDS
datafile ‘D:\OracleDB\tableSpace\BDS.dbf’
size 1024m
autoextend on
next 512m maxsize 30960m
extent management local;
建立目標庫使用者
create user BDS_LFHC identified by BDS default tablespace BDS quota 512m on users;
修改密碼
alter user 使用者名稱 identified by 新密碼;
以system 為例,密碼修改為 123456. 可輸入
alter user system identified by 123456;
基於所有許可權
grant all privileges to BDS_LFHC
遷移
https://blog.csdn.net/linfanhehe/article/details/78769651
我的navicat premium中的資料遷移在 工具 選項中