- 浏览: 1321447 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (351)
- Java General (37)
- .net General (2)
- Linux Toy (55)
- Oracle (81)
- Mysql (11)
- Programer Career (12)
- Oh, my living ! (2)
- Shell Script (8)
- Web Service (0)
- Linux Server (22)
- Php/Python/Perl (3P) (2)
- Javascript General (5)
- Saleforce Apex Dev (2)
- Web General (5)
- Xen & VM tech. (17)
- PSP (13)
- OpenSolaris (34)
- php (1)
- RAI/flex/action script (16)
- asterisk/CTI (7)
- 交互设计 (6)
- English (3)
- Lucene (1)
最新评论
-
GuolinLee:
markmark
JVM调优总结 -Xms -Xmx -Xmn -Xss -
di1984HIT:
写的太好啊。
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
javajdbc 写道
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
...
JVM调优总结 -Xms -Xmx -Xmn -Xss -
alvin198761:
非常感谢,国外的被封杀了,你这里还有一份
How to Convert An Image-Based Guest To An LVM-Based Guest
Super fast Database Copying/Cloning
Oracle Tips by Burleson Consulting
A database cloning procedure is especially useful for the DBA who wants to give his developers a full-sized TEST and DEV instance by cloning the PROD instance into the development server areas.
This Oracle clone procedure can be use to quickly migrate a system from one UNIX server to another. It clones the Oracle database and this Oracle cloning procedures is often the fastest way to copy a Oracle database.
STEP 1: On the old system, go into SQL*Plus, sign on as SYSDBA and issue: “alter database backup controlfile to trace”. This will put the create database syntax in the trace file directory. The trace keyword tells oracle to generate a script containing a create controlfile command and store it in the trace directory identified in the user_dump_dest parameter of the init.ora file. It will look something like this:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 240
MAXINSTANCES 1
MAXLOGHISTORY 113
LOGFILE
GROUP 1 ('/u03/oradata/oldlsq/log1a.dbf',
'/u03/oradata/olslsq/log1b.dbf') SIZE 30M,
GROUP 2 ('/u04/oradata/oldlsq/log2a.dbf',
'/u04/oradata/oldlsq/log2b.dbf') SIZE 30M
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'
;
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;
STEP 2: Shutdown the old database
STEP 3: Copy all data files into the new directories on the new server. You may change the file names if you want, but you must edit the controlfile to reflect the new data files names on the new server.
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u03/oradata/oldlsq/* newhost:/u03/oradata/newlsq
rcp /u04/oradata/oldlsq/* newhost:/u04/oradata/newlsq
STEP 4: Copy and Edit the Control file – Using the output syntax from STEP 1, modify the controlfile creation script by changing the following:
Old:
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
New:
CREATE CONTROLFILE SET DATABASE "NEWLSQ" NORESETLOGS
STEP 5: Remove the “recover database” and “alter database open” syntax
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;
STEP 6: Re-names of the data files names that have changed.
Save as db_create_controlfile.sql.
Old:
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'
New:
DATAFILE
'/u01/oradata/newlsq/system01.dbf',
'/u01/oradata/newlsq/mydatabase.dbf'
STEP 7: Create the bdump, udump and cdump directories
cd $DBA/admin
mkdir newlsq
cd newlsq
mkdir bdump
mkdir udump
mkdir cdump
mkdir pfile
STEP 8: Copy-over the old init.ora file
rcp $DBA/admin/olslsq/pfile/*.ora newhost:/u01/oracle/admin/newlsq/pfile
STEP 9: Start the new database
startup nomount;
@db_create_controlfile.sql
STEP 10: Place the new database in archivelog mode
Oracle Tips by Burleson Consulting
A database cloning procedure is especially useful for the DBA who wants to give his developers a full-sized TEST and DEV instance by cloning the PROD instance into the development server areas.
This Oracle clone procedure can be use to quickly migrate a system from one UNIX server to another. It clones the Oracle database and this Oracle cloning procedures is often the fastest way to copy a Oracle database.
STEP 1: On the old system, go into SQL*Plus, sign on as SYSDBA and issue: “alter database backup controlfile to trace”. This will put the create database syntax in the trace file directory. The trace keyword tells oracle to generate a script containing a create controlfile command and store it in the trace directory identified in the user_dump_dest parameter of the init.ora file. It will look something like this:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 240
MAXINSTANCES 1
MAXLOGHISTORY 113
LOGFILE
GROUP 1 ('/u03/oradata/oldlsq/log1a.dbf',
'/u03/oradata/olslsq/log1b.dbf') SIZE 30M,
GROUP 2 ('/u04/oradata/oldlsq/log2a.dbf',
'/u04/oradata/oldlsq/log2b.dbf') SIZE 30M
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'
;
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;
STEP 2: Shutdown the old database
STEP 3: Copy all data files into the new directories on the new server. You may change the file names if you want, but you must edit the controlfile to reflect the new data files names on the new server.
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u03/oradata/oldlsq/* newhost:/u03/oradata/newlsq
rcp /u04/oradata/oldlsq/* newhost:/u04/oradata/newlsq
STEP 4: Copy and Edit the Control file – Using the output syntax from STEP 1, modify the controlfile creation script by changing the following:
Old:
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
New:
CREATE CONTROLFILE SET DATABASE "NEWLSQ" NORESETLOGS
STEP 5: Remove the “recover database” and “alter database open” syntax
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;
STEP 6: Re-names of the data files names that have changed.
Save as db_create_controlfile.sql.
Old:
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'
New:
DATAFILE
'/u01/oradata/newlsq/system01.dbf',
'/u01/oradata/newlsq/mydatabase.dbf'
STEP 7: Create the bdump, udump and cdump directories
cd $DBA/admin
mkdir newlsq
cd newlsq
mkdir bdump
mkdir udump
mkdir cdump
mkdir pfile
STEP 8: Copy-over the old init.ora file
rcp $DBA/admin/olslsq/pfile/*.ora newhost:/u01/oracle/admin/newlsq/pfile
STEP 9: Start the new database
startup nomount;
@db_create_controlfile.sql
STEP 10: Place the new database in archivelog mode
---------------
example:
CREATE CONTROLFILE SET DATABASE "POADEV" RESETLOGS NOARCHIVELOG
MAXLOGFILES 5
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 454
LOGFILE
GROUP 1 '/oradata/poadev/redo01.log' SIZE 1M,
GROUP 2 '/oradata/poadev/redo02.log' SIZE 1M,
GROUP 3 '/oradata/poadev/redo03.log' SIZE 1M
DATAFILE
'/oradata/poadev/system01.dbf',
'/oradata/poadev/undotbs01.dbf',
'/oradata/poadev/poaprd_fact_01.dbf',
'/oradata/poadev/poaprd_fact_idx_01.dbf'
CHARACTER SET UTF8
;
ALTER DATABASE OPEN RESETLOGS;
ALTER TABLESPACE TEMP ADD TEMPFILE '/oradata/poadev/temp01.dbf'
SIZE 41943040 REUSE AUTOEXTEND ON NEXT 1048576 MAXSIZE 1024M;
发表评论
-
About Dedicated and Shared Server Processes
2010-11-29 15:46 1556一句话, shared server 就是为了省 SGA. ... -
oracle11GR2上建立一个新用户的过程,同时更改字符集.
2010-11-15 16:21 2922写道 SQL> create user mygmccr ... -
comment on table and column
2009-11-20 16:16 3368comment [Oracle SQL] ... -
解决ASM无法启动问题
2009-11-07 15:11 7125启动报错如下所 ... -
在Oracle中实现可扩展的多级编目结构
2009-10-23 13:49 13832009-10-16 ... -
用户帐号解锁
2009-10-21 08:06 1286SQL> alter user scott accoun ... -
按上下键调出 sqlplus 中的历史命令
2009-10-21 07:50 1997在sqlplus中不能按上下键不能显示出之前的命令, 也 ... -
简单的oracle物化视图
2009-09-28 22:29 1258物化视图是一种特殊的物理表,“物化”(Mate ... -
PL/SQL 总结(4)
2009-09-19 17:40 1072存储过程 create or replace PROCEDU ... -
PL/SQL 总结(3)
2009-09-19 17:40 1056使用游标 1)显示游标: CURSOR name_curs ... -
PL/SQL 总结(2)
2009-09-19 17:39 1096)将select 嵌入到PL/SQL中 ... -
PL/SQL 总结(1)
2009-09-19 17:38 1280我们开始学习PL/SQL PL/SQ ... -
Oracle 中的 Merge 语句
2008-07-29 15:45 1386Merge Statement Demo MERGE & ... -
SQL*Plus FAQ
2008-07-24 10:04 2183SQL*Pl ... -
Oracle Default Listener
2008-07-15 15:41 2289042 第23题 关于动态注册监听器 23.Your data ... -
自动安装 Oracle 数据库 10g 和 Red Hat Enterprise Linux
2008-07-13 09:52 2326自动安装 Oracle 数据库 10g 和 Red Hat ... -
在 Linux x86 上安装 Oracle 数据库 10g
2008-07-13 09:46 1353... -
Vmware server1.0 + Linux As4 + Oracle 10g RAC
2008-07-05 15:19 3249Vmware server1.0 + Linux A ... -
How To Set Up Oracle ASM on Ubuntu Gutsy Gibbon
2008-07-05 08:51 1968How To Set Up Oracle ASM on Ubu ... -
Installing Oracle10g R2 RAC on vmware suse
2008-07-04 10:47 4927Installing Oracle10g R2 RAC Par ...
相关推荐
一个强大的文件拷贝/坏区恢复工具,可以实现拷贝坏区文件、合并文件、测试文件拷贝速度的有效工具。 你遇到过下面的问题吗? 1....2.你的文件被截断了;3.你需要合并同一个文件...... ... 当你的磁盘坏了的时候,你...
这是2哦,还有1,记得一块下下来 运行环境Windows下python3.3
直接将busybox文件复制到system下的bin文件夹就行了,无需安装!
本篇文章将重点介绍 Dev-C++ 所需的“copying.txt”文件及其包含的重要内容——GNU 通用公共许可证(GPL)。 #### 文件“copying.txt”的重要性 “copying.txt”文件是 Dev-C++ 分发包中的一个关键文档,其内容...
There are powerful synchronization modes, including Standard Copying, Exact Mirror, and SmartTracking. Version 4 features a completely redesigned GUI with numerous improvements to make an extremely ...
* Fixed copying/pasting in Item Editor * Fixed copying element into the same diagram * Fixed application exit when the first window is closed * Fixed instability when editing the element using Element...
Super Copier 2. GliGli Author, Yogi (http://supercopier.sfxteam.org/). The source code of the program, showing an example of creating an alternative to replace the mechanism of copying in Windows has ...
Support for mobile, coverage, copy (if the duplicate copy of new public add file), copy (Fijian not covered), copy (Fijian male size of copy date different files), copy (Fijian male copying new add ...
- Unauthorized copying, reproduction, translation, broadcasting, modification, licensing, transmission, distribution, exhibition, performance, publication, or display of any part of the software is ...
Convert databases from Firebird / InterBase to MySQL or from ... Moreover, DBConvert for Firebird & MySQL is quite well for copying Firebird / InterBase database to another Firebird / InterBase database.
6. **许可文件**:开源库通常会附带一个许可证文件(如 COPYING 或 LICENSE),描述了库的使用、修改和分发的条款。 7. **测试代码**:为了确保库的功能完整性和性能,可能还包含了一些测试用例或自动化测试脚本。 ...
Synology DiskStation/RackStation 系列中包含的开源项目。 这些项目使用的许可证是不同的。 请参阅每个项目中的 LICENSE / COPYING / COPYRIGHT 文件或源代码中的任何公告。
A JCL STEOP ABOUT COPYING PDS DATASET.
Oracle Solaris 11.3 Copying and Creating Package Repositories in Oracle Solaris 11.3-104
- 完成Grid Infrastructure的安装后,可以继续安装Oracle Database 11g。 - 设置数据库安装路径,如`/u01/app/oracle`。 - 选择安装类型,通常选择“典型”安装模式。 2. **使用Database Configuration ...
super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { // 检查数据库是否已经存在 if (!isDatabaseExist(context)) { // 复制数据库文件 copy...
这只是一个非常基本的实现! 该工具可以创建档案,供新飞飞(NewFlyFF)使用,这是当前 FlyFF 的中文版本。 用法 ###uWdfArchiver UI ui.wdf 将... 这是在 WTFPL 下发布的 - 许可证: ://www.wtfpl.net/txt/copying/
例子stately copy ./test -o tmp/2021-03-14T15:41:06.334+0100DEBUGactions/copy.go:58Copying: test/foo2021-03-14T15:41:06.334+0100DEBUGactions/copy.go:58Copying: test/foo/c.txt2021-03-14T15:41:06.334+...