当前位置:网站首页>ORACLE进阶(五)SCHEMA解惑
ORACLE进阶(五)SCHEMA解惑
2022-07-07 10:55:00 【InfoQ】
一、定义
schemaschemaschematables, views, sequences, stored procedures, synonyms, indexes, clusters, and database linksschemaschemaschemaschemaOracleschemaschemacreate schemaschemaschemshcemaschemaschemauserschemaschemaschemashemanselect * from emp;select * from scott.empschema.objectschemaschema二、举例
SQL> Gruant dba to scott
SQL> create table test(name char(10));
Table created.
SQL> create table system.test(name char(10));
Table created.
SQL> insert into test values('scott');
1 row created.
SQL> insert into system.test values('system');
1 row created.
SQL> commit;
Commit complete.
SQL> conn system/manager
Connected.
SQL> select * from test;
NAME
----------
system
SQL> ALTER SESSION SET CURRENT_SCHEMA = scott; --改变用户缺省schema名
Session altered.
SQL> select * from test;
NAME
----------
scott
SQL> select owner ,table_name from dba_tables where table_name=upper('test');
OWNER TABLE_NAME
------------------------------ ------------------------------
SCOTT TESTSYSTEM TEST
schema边栏推荐
- AUTOCAD——大于180度的角度标注、CAD直径符号怎么输入?
- 2022 polymerization process test question simulation test question bank and online simulation test
- Image pixel read / write operation
- [pytorch practice] write poetry with RNN
- 【无标题】
- Conversion from non partitioned table to partitioned table and precautions
- 《开源圆桌派》第十一期“冰与火之歌”——如何平衡开源与安全间的天然矛盾?
- 认养一头牛冲刺A股:拟募资18.5亿 徐晓波持股近40%
- [learn microservice from 0] [01] what is microservice
- Master公式。(用于计算递归的时间复杂度。)
猜你喜欢
![[爬虫]使用selenium时,躲避脚本检测](/img/3a/85ea729be2aa76c3de4a822ca6939b.png)
[爬虫]使用selenium时,躲避脚本检测

智云健康上市:市值150亿港元 SIG经纬与京新基金是股东

Polymorphism, final, etc

HZOJ #240. Graphic printing IV

Leetcode skimming: binary tree 23 (mode in binary search tree)

Charles: four ways to modify the input parameters or return results of the interface

Leetcode skimming: binary tree 21 (verifying binary search tree)

图形对象的创建与赋值

飞桨EasyDL实操范例:工业零件划痕自动识别

红杉中国完成新一期90亿美元基金募集
随机推荐
通过Keil如何查看MCU的RAM与ROM使用情况
HZOJ #240. 图形打印四
API query interface for free mobile phone number ownership
test
[疑难杂症]pip运行突然出现ModuleNotFoundError: No module named ‘pip‘
用mysql查询某字段是否有索引
[statistical learning method] learning notes - support vector machine (I)
【无标题】
聊聊Redis缓存4种集群方案、及优缺点对比
[Q&A]AttributeError: module ‘signal‘ has no attribute ‘SIGALRM‘
环境配置篇
About IPSec
[learn microservices from 0] [03] explore the microservice architecture
PHP调用纯真IP数据库返回具体地址
.Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
ip2long之后有什么好处?
[difficult and miscellaneous]pip running suddenly appears modulenotfounderror: no module named 'pip‘
HZOJ #236. 递归实现组合型枚举
Leetcode skimming: binary tree 25 (the nearest common ancestor of binary search tree)
图像像素读写操作