摘要: 1、查看数据文件信息通过report schema方式查看RMAN> report schema;Report of database schema for database with db_unique_name POLIList of Permanent Datafiles===========================File Size(MB) Tablespace RB segs Datafile Name---- -------- -------------------- ------- ------------------------1 690 ... 阅读全文
posted @ 2013-03-23 16:42 ArcerZhang 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 1、列举出已经备份过的备份集RMAN> list backup;List of Backup Sets===================BS Key Type LV Size Device Type Elapsed Time Completion Time------- ---- -- ---------- ----------- ------------ ---------------1 Full 1.05G DISK 00:00:43 19-MAR-13 BP Key: 1 Status: AVAILA... 阅读全文
posted @ 2013-03-23 15:58 ArcerZhang 阅读(867) 评论(0) 推荐(0) 编辑
摘要: SBT System Backup To Tape 备份到磁带SPF System Parameter File 系统参数文件OCI Oracle call interface 数据库调用接口 FTS Full Table Scan 全表扫描ASMM Automatic Shared Memoroy Management 自动共享内存管理ASSM Automatic Segment space management 自动段空间管理MMON Memory Monitor内存监控进程MMAN Memory Man... 阅读全文
posted @ 2013-03-23 15:45 ArcerZhang 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1、RMAN远程登录数据库C:\Users\MaryHu>rman target sys/oracle@DB200 nocatalogRecovery Manager: Release 11.2.0.1.0 - Production on Sat Mar 23 15:15:02 2013Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.connected to target database: POLI (DBID=3718810889)using target database con 阅读全文
posted @ 2013-03-23 15:40 ArcerZhang 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 1、只有在RMAN下可以实现增量备份2、Backup File TypesTablespacesDatafiles(current or copy)Control file(current or copy)SpfilesArchived logsBackup Sets3、要执行RMAN数据库备份,必须要求Oracle Database Server必须处于archive mode下;RMAN进行备份的时候,会将Online redo log files 进行一次alter system switch log file,然后再进行备份操作;把online redo log file的内容,写到a 阅读全文
posted @ 2013-03-23 09:18 ArcerZhang 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1、以dba身份登录oracle,授权a2用户imp_full_database权限SQL> grant imp_full_database to a2;Grant succeeded.2、执行导入操作命令imp a2/a3@DB200 file=a1.dmp log=a2.log full=yE:\expimp>imp a2/a3@DB200 file=a1.dmp log=a2.log full=yImport: Release 11.2.0.1.0 - Production on Fri Mar 22 17:13:27 2013Copyright (c) 1982, 2009 阅读全文
posted @ 2013-03-22 17:36 ArcerZhang 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 1、查看数据库字符集信息QL> select * from nls_database_parameters;PARAMETER VALUE------------------------------ ------------------------------NLS_LANGUAGE AMERICANNLS_TERRITORY AMERICANLS_CURRENCY $NLS_ISO_CURRENCY AMERICANL... 阅读全文
posted @ 2013-03-22 00:13 ArcerZhang 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1、export和import操作的.dmp文件,是一种二进制文件;面对一些小型的数据库,可以应付;但是对于那些大型的数据库,就有些吃力了;Import和export将逐渐的被淘汰;exp.exe->exedp.exeimp.exe->impdp.exe*.dmp文件时平台无关性的;2、Before Your Use Of Exp/ImpRun the catexp.sql or catalog.sql script(如果DBA是用DBCA工具创建的数据库,Oracle server 会自动执行上述两个脚本;如果是手工创建的数据库,则需要手工执行上述两个脚本)3、Methods t 阅读全文
posted @ 2013-03-21 18:54 ArcerZhang 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1、安装apache2apt-get install apache22、配置 Apache2 默认站点vi /etc/apache2/sites-enabled/000-default加入一行RedirectMatch ^/$ /apache2-default/<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOve... 阅读全文
posted @ 2013-03-21 12:38 ArcerZhang 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 1、创建目录mkdir /tmp/hb2、SQL>conn / as sysdba;SQL> alter tablespace example begin backup;SQL> !cp /u01/oradata/poli/example01.dbf /tmp/hbSQL> alter tablespace example end backup;3、问题在执行alter tablespace example begin backup与alter tablespace example end backup命令之间,如果有用户访问此表空间,会是什么情况?首先需要了解到,在执 阅读全文
posted @ 2013-03-20 18:20 ArcerZhang 阅读(248) 评论(0) 推荐(0) 编辑