網站首頁 編程語言 正文
1.Plsql —工具 — 導出用戶對象
2.輸出文件路徑查看導出的xx.sql文件
3.數據庫A導表進數據庫B,先在B庫建立相同的表空間 臨時表空間可不需要
創建表空間
create tablespace USER_DEF_DATA logging datafile '/data/oracle/app/oracle/oradata/lcfa/test_lcfa6.dbf' size 1024M autoextend on next 100m maxsize 20480M extent management local;
刪除表空間,及對應的表空間文件也刪除掉
drop tablespace USER_DEF_DATA including contents and datafiles cascade constraint;
表空間太小可以刪除表空間再重新創建表空間,但里面數據全沒了
表空間太小又不想刪除表空間可選擇增加表空間大小
ALTER TABLESPACE DAYWORK ADD DATAFILE '/data/oracle/app/oracle/oradata/lcfa/test_lcfa01.dbf'
4.查看表空間位置、名稱、大小
select name from v$datafile
SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size FROM dba_tablespaces t, dba_data_files d WHERE t.tablespace_name = d.tablespace_name GROUP BY t.tablespace_name;
5.將xx.sql文件上傳到跳轉機,再從數據庫服務器sftp登錄跳轉機下載該xx.sql文件
6.登錄數據庫服務器的oracle用戶,登錄方法:sqlplus 用戶名/密碼@實例名 導入表進數據庫:@+路徑+xx.sql
9.導入完成plsql查看結果
查看用戶所有表數量
select count(1) from user_tables
總結
原文鏈接:https://blog.csdn.net/weixin_44369870/article/details/122577544
相關推薦
- 2022-07-02 一個Python優雅的數據分塊方法詳解_python
- 2022-12-23 C++?Boost?System超詳細講解_C 語言
- 2022-09-14 python與xml數據的交互詳解_python
- 2022-01-18 微信小程序以post方式提交
- 2022-06-25 python實現人機對戰的井字棋游戲_python
- 2022-10-29 SQL Server常用的函數與查詢方法
- 2022-11-28 pytorch?dataset實戰案例之讀取數據集的代碼_python
- 2024-04-07 linux系統中防火墻(firewall)的操作(開啟端口,查看端口)
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支