当前位置:网站首页>Oracle advanced (V) schema solution
Oracle advanced (V) schema solution
2022-07-07 13:34:00 【InfoQ】
One 、 Definition
schemaschemaschematables, views, sequences, stored procedures, synonyms, indexes, clusters, and database linksschemaschemaschemaschemaOracleschemaschemacreate schemaschemaschemshcemaschemaschemauserschemaschemaschemashemanselect * from emp;select * from scott.empschema.objectschemaschemaTwo 、 give an example
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; -- Change the user default schema name
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边栏推荐
- Pcap learning notes II: pcap4j source code Notes
- MongoDB的导入导出、备份恢复总结
- Digital IC Design SPI
- LED light of single chip microcomputer learning notes
- 我那“不好惹”的00后下属:不差钱,怼领导,抵制加班
- LeetCode_ Binary search_ Medium_ 153. Find the minimum value in the rotation sort array
- 工具箱之 IKVM.NET 项目新进展
- Simple and easy-to-use code specification
- MongoDB复制(副本集)总结
- OSI 七层模型
猜你喜欢

聊聊伪共享

How to make join run faster?

我那“不好惹”的00后下属:不差钱,怼领导,抵制加班

Ways to improve the performance of raspberry pie

JS缓动动画原理教学(超细节)

Navicat run SQL file import data incomplete or import failed

Fast development board pinctrl and GPIO subsystem experiment for itop-imx6ull - modify the device tree file

Xshell connection server changes key login to password login

Esp32 ① compilation environment

Japanese government and enterprise employees got drunk and lost 460000 information USB flash drives. They publicly apologized and disclosed password rules
随机推荐
JS determines whether an object is empty
QQ的药,腾讯的票
Scripy tutorial classic practice [New Concept English]
数据库系统概论-第一章绪论【概念模型、层次模型和三级模式(外模式、模式、内模式)】
2022-7-6 使用SIGURG来接受外带数据,不知道为什么打印不出来
交付效率提升52倍,运营效率提升10倍,看《金融云原生技术实践案例汇编》(附下载)
MongoDB命令汇总
JS function returns multiple values
[etc.] what are the security objectives and implementation methods that cloud computing security expansion requires to focus on?
Getting started with MySQL
OSI seven layer model
Ogre introduction
MySQL error 28 and solution
Final review notes of single chip microcomputer principle
Write it down once Net a new energy system thread surge analysis
Pay close attention to the work of safety production and make every effort to ensure the safety of people's lives and property
Esp32 construction engineering add components
Custom thread pool rejection policy
记一次 .NET 某新能源系统 线程疯涨 分析
PAcP learning note 3: pcap method description