12C -- ORA-65048 ORA-65048
2017-04-18 11:31 abce 阅读(5001) 评论(0) 编辑 收藏 举报创建common user的时候报错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | $ sqlplus '/as sysdba' SQL*Plus: Release 12.2.0.1.0 Production on Tue Apr 18 11:05:00 2017 Copyright (c) 1982, 2016, Oracle. All rights reserved. Connected to : Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production SQL> create user c##backup_admin identified by backup_admin default tablespace users; create user c##backup_admin identified by backup_admin default tablespace users * ERROR at line 1: ORA-65048: error encountered when processing the current DDL statement in pluggable database PLUG_TEST ORA-65048: tablespace 'USERS' does not exist SQL> show con_name CON_NAME ------------------------------ CDB$ROOT SQL> alter session set container=plug_test; Session altered. SQL> select tablespace_name,status,contents from user_tablespaces; TABLESPACE_NAME STATUS CONTENTS ------------------------------ --------- --------------------- SYSTEM ONLINE PERMANENT SYSAUX ONLINE PERMANENT UNDOTBS1 ONLINE UNDO TEMP ONLINE TEMPORARY UNDO_2 ONLINE UNDO SQL> |
原因:
1 2 3 4 5 6 | While creating a common user , any default tablespace, temporary tablespace, or profile specified using the following clauses must exist in all the containers belonging to the CDB: DEFAULT TABLESPACE TEMPORARY TABLESPACE QUOTA PROFILE |
解决方法:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | SQL> alter session set container=plug_test; Session altered. SQL> create tablespace users datefile '+da' size 133m autoextend on next 640k maxsize unlimited; SQL> alter session set container=cdb$root; Session altered. SQL> create user c##backup_admin identified by backup_admin default tablespace users; User created. SQL> |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
2016-04-18 DG - 将physical standby置于read-only模式
2016-04-18 set ver on/off