摘要: (****使用闪回技术、首先要设置闪回恢复区)设置快速恢复区的地址SQL> alter system set db_recovery_file_dest='/u01/app/oracle/'scope=both;System altered.SQL> 设置快速恢复区的大小SQL> alter sys 阅读全文
posted @ 2016-10-25 20:48 沫小辉 阅读(2655) 评论(0) 推荐(0) 编辑
摘要: 关于数据库归档 --查看数据库是否归档模式 SQL> select name,log_mode from v$database;NAME LOG_MODE ENMO NOARCHIVELOGSQL> archive log list;Database log mode No Archive Mode 阅读全文
posted @ 2016-10-13 00:12 沫小辉 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 一:使用闪回技术操作数据时,首先应建立闪回恢复区 SQL> SQL> Show parameter recoverNAME TYPE VALUE db_recovery_file_dest string /home/oracle/shdb_recovery_file_dest_size big in 阅读全文
posted @ 2016-10-10 22:19 沫小辉 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1语法: create table 表名 as select .......... 2用处: 是复制表结构和表数据 3例子:(1*) SQL> create table tt as select * from dept;Table created.SQL> select * from dept; D 阅读全文
posted @ 2016-09-29 23:20 沫小辉 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 一:典型安装的情况下包括Scott用户 ,默认情况下是锁定的状态,可以通过命令行来进行解锁; -:SQL> alter user scott account unlock identefied bu tiger;alter user scott account unlock identefied b 阅读全文
posted @ 2016-09-25 20:34 沫小辉 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 关于数据库的启动 : Oracle 的启动分为三个步骤;分别是启动实例,加载数据库 、打开数据库。(用户可以根据自己的实际需要来开启数据库) 语法是startup 1:nomount 模式 SQL> SQL> startup nomountORACLE instance started.Total 阅读全文
posted @ 2016-09-24 01:03 沫小辉 阅读(4900) 评论(0) 推荐(0) 编辑
摘要: 1:select distinct department_id from employees; 2:select distinct department_id from employees where department_id is not null; 3:select distinct depa 阅读全文
posted @ 2016-09-12 17:02 沫小辉 阅读(214) 评论(0) 推荐(0) 编辑
摘要: sql> startup ORA-01081:cannot start already-running ORACLE-shut it down first 数据库已经启动了,首先你要关掉它,才可以启动数据库。 sql> shutdown immediate 阅读全文
posted @ 2016-09-08 00:42 沫小辉 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 1 show user2 conn / as sysdba 3:alter user hr account unlock baocuo ORA-01017 1:conn / as sysdba 2: alter user hr identified by hr ; conn hr/hr 以上是关于h 阅读全文
posted @ 2016-09-07 00:31 沫小辉 阅读(532) 评论(0) 推荐(0) 编辑