Oracle基础--体系
1. 连接到Oralce
At the operating system prompt, enter the following command to start the SQL
Command Line and connect to the database:
CONN / AS SYSDBA
The slash (/) indicates that the database should authenticate you with operating
system authentication.
也可以用 conn username/passwd as sysdba
system/manager
2. 启动Oracle和关闭Oracle
At the SQL Command Line prompt, enter the following command:
SQL> STARTUP
SQL> SHUTDOWN IMMEDIATE // 如果shutdown失败,可以输入这个命令:SHUTDOWN ABORT. 之后可以重新启动和关闭oracle。
3. 数据库连接
connect username/password@[//]host[:port][/service_name]
4. Oracle体系结构
DATABASE:
The Oracle Database XE instance (which consists of the Oracle Database XE
background processes and allocated memory) works with a single database only.
Rather than enabling you to create multiple databases to accommodate different
applications, Oracle Database XE uses a single database, and accommodates multiple
applications by enabling you to separate data into different schemas.
TABLESPACE:
There are various tablespaces, including the following:
1. Permanent tablespace 2. Temporary tablespace 3. Undo tablespace
undo tablespace的目的:1) to undo any uncommitted changes. 2) to provide read consistency. 3) to support the flashback query feature.
tablespaces: SYSTEM SYSAUX TEMP UNDO USERS
5. 用户和权限。
默认用户:
sys 密码是 change_on_install // must connect to the database "AS SYSDBA."
system 密码是 manager
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端