----------
7566 JONES MANAGER 7839 02-4月 -81 2976 20
7654 MARTIN SALESMAN 7698 28-9月 -81 1251 1400 30
7698 BLAKE MANAGER 7839 01-5月 -81 2851 30
EMPNO ENAME JOB MGR HIREDATE ---------- ---------- --------- ---------- -------------- ---------- ---------- DEPTNO ----------
7782 CLARK MANAGER 7839 09-6月 -81 10
7788 SCOTT ANALYST 7566 19-4月 -87 20
7839 KING PRESIDENT 17-11月-81 10
EMPNO ENAME JOB MGR HIREDATE ---------- ---------- --------- ---------- -------------- ---------- ---------- DEPTNO ----------
7844 TURNER SALESMAN 7698 08-9月 -81 30
7876 ADAMS CLERK 7788 23-5月 -87 20
7900 JAMES CLERK 7698 03-12月-81 30
EMPNO ENAME JOB MGR HIREDATE ---------- ---------- --------- ---------- -------------- ---------- ---------- DEPTNO ----------
7902 FORD ANALYST 7566 03-12月-81 SAL 2451 3001 5001 SAL 1501 1101 951 SAL 3001
COMM COMM 0 COMM 20
7934 MILLER CLERK 7782 23-1月 -82 1301 10
已选择14行。 SQL>
日志文件
C:\\Documents and Settings\\Administrator>sqlplus/nolog
SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 11月 2 10:02:17 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> starup mount
SP2-0734: 未知的命令开头 \忽略了剩余的行。 SQL> statup mount
SP2-0734: 未知的命令开头 \忽略了剩余的行。 SQL> startup mount
ORA-01031: insufficient privileges SQL> conn /as sysdba 已连接。
SQL> shut immediate ORA-01109: 数据库未打开
已经卸载数据库。 ORACLE 例程已经关闭。 SQL> startup mount ORACLE 例程已经启动。
Total System Global Area 289406976 bytes Fixed Size 1248576 bytes Variable Size 100664000 bytes Database Buffers 180355072 bytes Redo Buffers 7139328 bytes 数据库装载完毕。
SQL> select * from v$logfile;
GROUP# STATUS TYPE
---------- ------- ------- MEMBER
-------------------------------------------------------------------------------- IS_ ---
3 ONLINE
D:\\ORACLE\\PRODUCT\\10.2.0\\ORADATA\\ORCL\\REDO03.LOG NO
2 STALE ONLINE
D:\\ORACLE\\PRODUCT\\10.2.0\\ORADATA\\ORCL\\REDO02.LOG NO
GROUP# STATUS TYPE ---------- ------- ------- MEMBER
-------------------------------------------------------------------------------- IS_ ---
1 ONLINE
D:\\ORACLE\\PRODUCT\\10.2.0\\ORADATA\\ORCL\\REDO01.LOG NO
SQL> alter system switch logfile; alter system switch logfile *
第 1 行出现错误: ORA-01109: 数据库未打开
SQL> alter database open 2 ;
数据库已更改。
SQL> alter system switch logfile;
系统已更改。
SQL> alter system switch logfile;
系统已更改。
SQL> shut immediate 数据库已经关闭。 已经卸载数据库。 ORACLE 例程已经关闭。 SQL> startup mount ORACLE 例程已经启动。
Total System Global Area 289406976 bytes Fixed Size 1248576 bytes Variable Size 104858304 bytes Database Buffers 176160768 bytes Redo Buffers 7139328 bytes 数据库装载完毕。
SQL> alter system switch logfile; alter system switch logfile *
第 1 行出现错误: ORA-01109: 数据库未打开
SQL> alter database archivelog;
数据库已更改。
SQL> archive log list;
数据库日志模式 存档模式 自动存档 启用
存档终点 USE_DB_RECOVERY_FILE_DEST 最早的联机日志序列 4 下一个存档日志序列 6 当前日志序列 6 SQL> alter database open;
数据库已更改。
SQL> alter system switch logfile;
系统已更改。
SQL> show parameter log_archive_dest;
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ log_archive_dest string log_archive_dest_1 string log_archive_dest_10 string log_archive_dest_2 string log_archive_dest_3 string log_archive_dest_4 string log_archive_dest_5 string log_archive_dest_6 string log_archive_dest_7 string log_archive_dest_8 string log_archive_dest_9 string
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ log_archive_dest_state_1 string enable log_archive_dest_state_10 string enable log_archive_dest_state_2 string enable log_archive_dest_state_3 string enable log_archive_dest_state_4 string enable log_archive_dest_state_5 string enable log_archive_dest_state_6 string enable log_archive_dest_state_7 string enable log_archive_dest_state_8 string enable log_archive_dest_state_9 string enable SQL> alter system set log_archive_dest_1'location=E:/oracle'; alter system set log_archive_dest_1'location=E:/oracle' * 第 1 行出现错误: ORA-00927: 缺失等号
SQL> alter system set log_archive_dest_1='location=E:/oracle';
系统已更改。
SQL> alter system switch logfile;
系统已更改。
SQL> select name from V$archive_log; select name from V$archive_log *
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库Oracle数据库实验笔记(3)在线全文阅读。
相关推荐: