mysql基本操作
一 查看数据库版本mysql> select version();+-----------+| version() |+-----------+| 5.0.77 | +-----------+1 row in set (0.00 sec)二 创建数据库new_joiestmysql> create database new_cc;Query OK, 1 row affected (0.00 sec)三 查看数据库mysql> show databases;+------------...
Goldengate_目录结构
Goldengate目录结构 一 dirchk 检查点文件用于存放由extract抽取进程和replicat复制进程创建的checkpoint文件,checkpoint文件保存着当前读和写的时间戳信息,通过这些信息保证了数据的准确性和数据容错功能。文件格式如下:.groupname就是我们配置...
Oracle Autotrace
AUTOTRACESQL> conn scott/tigerSQL> set autotrace onSP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabledSP2-0611: Error enabling STATISTICS reportSQL> @$ORACLE_HOME/sqlplus/admin/plustrce.sqlSQL> grant plustrace to scott;SQL> conn scott/tiger显示结果集以...
oracle 数据文件offline
===============================按表空间---移动数据文件(数据库打开,归档模式)===============================SQL> create tablespace t1 datafile '/u01/app/oracle/oradata/orcl/t1.dbf' size 1M;SQL> create table test(id number) tablespace t1;SQL> insert into test values(1);SQL> commit;SQL> sel...
rman备份与恢复
备份1级备份[oracle@localhost autorman]$ vim level1.sh #!/bin/bashsource /home/oracle/.bash_profilerman target / nocatalog log=/home/oracle/autorman/rman_1.log
oracle 10g awr报告的收集
文章来源于http://www.blogjava.net/hwpok/archive/2011/09/21/359207.html一. AWR 说明 Oracle 10g之前对数据库做性能检测使用statspack工具。 关于statspack的说明,参考我的Blog: ...