当前位置: 首页 > news >正文

Oracle OCP 082+083 终极

一、实例启停(必考)

startup nomount;   startup mount;   startup;
shutdown normal; transactional; immediate; abort;
alter system checkpoint; alter system switch logfile;

二、参数文件

create pfile from spfile; create spfile from pfile;
alter system set x scope=memory/spfile/both;
alter system reset x scope=spfile;

三、用户、权限、概要文件

create user c##u identified by p default tablespace users temporary tablespace temp;
alter user c##u quota 100M/unlimited on users;
grant connect,resource,create session,table to c##u;create profile p limit failed_login_attempts 3 password_life_time 30;
alter user scott profile p;

四、表空间 / 数据文件

create tablespace ts datafile '...' size 100M autoextend on;
create temporary tablespace temp tempfile '...';
create undo tablespace undo datafile '...';alter database datafile '...' resize 200M;
alter tablespace ts read only/read write/offline/online;
drop tablespace ts including contents and datafiles;

五、日志、控制文件、归档

alter database add logfile group 4 size 50M;
alter database add logfile member '...' to group 4;
alter database clear logfile group 4;alter database archivelog/noarchivelog; -- mount
alter system set log_archive_dest_1='location=...';alter database backup controlfile to '...';
alter database backup controlfile to trace;

六、表、索引、约束

alter table t add/drop/modify/rename column;
truncate table t; drop table t; flashback table t to before drop;
alter table t enable row movement;
create index i on t(c); alter index i rebuild;

七、闪回(082+083 核心)

select * from t as of timestamp sysdate-10/1440;
flashback table t to timestamp/s cn;
alter database flashback on; -- mount
flashback database to timestamp/scn; alter database open resetlogs;

八、数据泵 expdp/impdp

create directory d as '...'; grant read,write on directory d to system;
expdp ... schemas=... tables=... full=y
impdp ... remap_schema=... remap_tablespace=... table_exists_action=append/replace/truncate

九、RMAN(083 最高频)

configure controlfile autobackup on;
configure retention policy to redundancy 2;
backup database plus archivelog delete all input;
backup as compressed backupset database;
backup incremental level 0 database;crosscheck backup; delete expired; delete obsolete;restore database; recover database; alter database open resetlogs;

十、CDB/PDB(19c 必考)

show pdbs;
alter session set container=pdb1;
alter pluggable database all open/close immediate;
alter pluggable database all save state;
create pluggable database pdb1 admin user u identified by p;
drop pluggable database pdb1 including datafiles;

十一、ASM

create diskgroup data external redundancy disk '...';
alter diskgroup data add/drop disk ...;
asmcmd: ls, lsdg, lsdsk, cp

十二、Data Guard(DG)

alter database create standby controlfile as '...';
alter database recover managed standby database disconnect;
alter database commit to switchover to primary/standby;

十三、AWR/ASH/ADDM

exec dbms_workload_repository.create_snapshot;
@?/rdbms/admin/awrrpt.sql
@?/rdbms/admin/addmrpt.sql
@?/rdbms/admin/ashrpt.sql

十四、最核心视图(背名字即可)

v$instance v$database v$datafile v$log v$logfile v$controlfile
dba_tablespaces dba_data_files dba_users v$pdbs v$asm_diskgroup

http://www.jsqmd.com/news/612137/

相关文章:

  • OpenClaw移动端控制:gemma-3-12b-it任务进度远程查看方案
  • Mapbox许可证变更:从开源到闭源,开发者如何应对?
  • 在超大数据集下 DuckDB 与 MySQL 查询速度对比俗
  • 国土报备数据转换踩过的坑:从TXT到SHP,这份Arcgis工具使用指南请收好
  • 基于拓展卡尔曼滤波的同步定位与地图构建全流程,通过自身运动模型和测距方位传感器,实时估计自身位姿并构建环境地标地图附matlab代码
  • 【OpenClaw 源码解析】你的 AI 助手每次都「失忆」?学会这一招,让它记住你所有重要决策,效率直接翻倍!瓢
  • 茉莉花插件:让Zotero中文文献管理效率提升70%的开源解决方案
  • 6款二次元游戏模组一键管理:XXMI启动器解决玩家5大痛点
  • 告别玄学调校:手把手教你用Chromatix完成手机相机ISP全流程Tuning(附Raw图拍摄清单)
  • 从帧结构到应用层:深入解析698协议在智能电表中的通信机制
  • March7thAssistant:崩坏星穹铁道自动化任务管理的智能解决方案
  • 果断弃坑Claude Code,腾讯悄悄上线Code Buddy Code,王炸!
  • 机械臂动力学模型
  • 3CTEST | ISO 11452-8低频磁场抗扰度测试方法
  • 【完整源码+数据集+部署教程】红绿灯倒计时读秒数字识别检测系统源码 [一条龙教学YOLOV8标注好的数据集一键训练_70+全套改进创新点发刊_Web前端展示]
  • 从编码器计数值到电机PWM脉冲:闭环控制中的核心换算
  • 【机器视觉】labelme标准软件常用快捷键
  • 2026雅思写作备考指南:避开误区,精准提分的高效路径 - 品牌2025
  • 5个步骤掌握DamaiHelper开源工具:从抢票小白到高手的蜕变指南
  • 通向黑灯工厂的关键拼图:TVA在智能工厂中的战略地位(1)
  • 解决centos10中使用yum 安装提示在“/etc/yum.repos.d“, “/etc/yum/repos.d“, “/etc/distro.repos.d“中没有被启用的仓库的问题
  • 喔去,litellm 竟然被投毒了,赶紧检查你的机器中招了没有詹
  • 通俗易懂深入浅出OSPF-LSA类型讲解尤
  • 城通网盘直链提取终极教程:3步获取高速下载链接的完整方案
  • DownKyi:高效获取B站视频资源的4个核心方法
  • Abaqus随机材料分区插件:Random Material Partition
  • Cosmos-Reason1-7B部署案例:NVIDIA开源VLM在机器人场景落地实操
  • 3步解决学术审稿追踪难题:面向科研人员的Elsevier自动化工具
  • 终极快速指南:5分钟掌握Steam成就管理神器SAM
  • 再次革新 .NET 的构建和发布方式(三)诼