重建controlfile的语法
在控制文件丢失的情况下,有时我们只能重建控制文件,具体语法例如:点击(此处)折叠或打开CREATE CONTROLFILE REUSE DATABASE \"SQUAN\" NORESETLOGS ARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3&nb...
单实例移动ORACLE_HOME和数据文件
一.移动ORACLE_HOMEshutdown any instance..!!$ORACLE_HOME/oui/bin/detachHome.shmv your ORACLE_HOME[oracle@maclean ~]$ cp $ORACLE_HOME $NEW_ORACLE_HOMEexport ORACLE_HOME=$NEW_ORACLE_HOME and cleanup some env variable like LD_LIBRARY_PATH$ORACLE_HOME/bin/relink all$ORACLE_HOME/oui/bin/attachHome.shedit your profile with new ORACLE_HOME and LIBRARYbring up your instance[@more@]二.移动数据文件(例如将/u01/oracle/oradata移动到/u02/oracle/oradata)1.使用脚本先生成数据文件的移动SQL语句set echo off heading
transport tablespace测试
先来看一些官方文档对transport tablespace的介绍:什么场景可以用到TTS:Starting with Oracle Database Release 10g, you can transport tablespaces across platforms. This functionality can be used to:■ Allow a database to be migrated from one platform to another■ Provide an easier and more efficient means for content providers to publish structured data and distribute it to customers running Oracle Database on different platforms■ Simplify the distribution of data from a data warehouse environment t
Linux下手工创建oracle database
首先需要安装oracle软件。[oracle@ora01 admin]$ uname -aLinux ora01 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux1.设置环境变量:[oracle@ora01 admin]export ORACLE_SID=mydb[oracle@ora01 admin]export ORACLE_BASE=/u02[oracle@ora01 admin]export ORACLE_HOME=/u02/oracle2.创建oracle相关目录:1)创建dump目录:[oracle@ora01 admin]mkdir -p $ORACLE_BASE/admin/mydb/adump[oracle@ora01 admin]mkdir -p $ORACLE_BASE/admin/mydb/bdump[oracle@ora01 admin]mkdir -p $ORACLE_BASE/admin/mydb/cd