上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 93 下一页
摘要: 本次测试目的是从生产数据库导出rman备份然后在测试数据库恢复 1,拷贝备份至相应目录 2,进入rman rman target \ 3,关闭数据库 shutdown 4,以nomount模式启动数据库 startup nomount 5,恢复控制文件 restore controlfile fro 阅读全文
posted @ 2017-11-02 09:42 minseo 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 把oracle设置为归档模式并且为归档文件新建文件夹 /home/oracle/app/oracle/arch/orcl 但是在启动或者备份时候经常性出现错误 startup报错 startup同时日志报错 日志位置 报错日志路径 /home/oracle/app/diag/rdbms/orcl/o 阅读全文
posted @ 2017-10-31 17:00 minseo 阅读(432) 评论(0) 推荐(0) 编辑
摘要: catalog恢复目录配置过程 1,创建一个表空间 2,创建rman用户并授权 3,创建恢复目录 4,配置TNS 5,注册数据库 6,检查 创建ramn表空间 首先查看一下其他表空间位置 create tablespace rman_tbs datafile '/home/oracle/app/or 阅读全文
posted @ 2017-10-30 23:35 minseo 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 本次测试服务器为172.16.25.33 使用rman连接本地数据库 rman target / 在rman中执行启动与关闭的命令与sqlplus相同 在rman中执行sql语句 sql ‘需要执行的语句’; 也可以通过输入host进入主机执行系统命令然后exit退出主机页面再进入rman 整库的备 阅读全文
posted @ 2017-10-30 06:35 minseo 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 归档模式和非归档模式 在DBA部署数据库之初,必须要做出的最重要决定之一就是选择归档模式(ARCHIVELOG)或者非 归档模式(NOARCHIVELOG )下运行数据库。我们知道,Oracle 数据库需要至少两组联机日志,每当一组 联机日志写满后会发生日志切换,继续向下一组联机日志写入。如果是归档 阅读全文
posted @ 2017-10-27 16:56 minseo 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 课外题 要求:删除某一个用户,同时保留该用户的数据?如何解决 alter user scott account lock ;改天需要使用则解锁unlock 锁定用户使用sysdba登录还是可以查看数据 select * from scott.emp; where子句 >如何显示工资高于3000的员工 阅读全文
posted @ 2017-10-26 23:34 minseo 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 先看scott下自带的emp表 empno:编号 ename:名字 Job:职位 mgr:上级编号 hiredate:入职时间 sal:薪水 comm:奖金 deptno:部门编号 部门表dept deptno:部门编号 dname:部门名称 loc:地址 工资级别表salgrade grade:工 阅读全文
posted @ 2017-10-26 07:33 minseo 阅读(2801) 评论(0) 推荐(0) 编辑
摘要: oracle中可以设置一个回滚点进行回滚 设置回滚名称 savepoint pointa ; 进行回滚 rollback to pointa; 如果期间有删除的数据就回来了 阅读全文
posted @ 2017-10-25 17:19 minseo 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: Delete语句 基本语法: delete from 表名 where 条件 注意事项: 1,如果不使用where子句,将表中所有数据全部删除 delete from test; 2,如果要删除某列的值,delete是不可以做到的 3,删除整个表 drop table 表名 4,当使用delete的 阅读全文
posted @ 2017-10-25 17:14 minseo 阅读(127206) 评论(0) 推荐(0) 编辑
摘要: Update更新 格式: update table _name(表名) set col_name(列名) =expr(表达式) where conti(条件) 案例1: update 语法可以用新值更新原有表中的各列 新建表 插入数据 create table stu(id number,name 阅读全文
posted @ 2017-10-25 15:26 minseo 阅读(3307) 评论(0) 推荐(0) 编辑
上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 93 下一页