Cloning install the database software
1, the above file is packaged
[the Oracle Product @ localhost] $ tar cvf 12c.tar 12.2.0 /
2, clean up the environment, new machine simulation, delete the contents of the box
[oracle @ localhost product] $ vim / u01 / app / oraInventory / ContentsXML / Inventory.xml
. 3, delete the original file
4, extract package
[Oracle @ localhost Product] $ xvf 12c.tar the tar
. 5, deleted after completion of the extracting compressed, decompressed data using the connection
6, ligated and cloned dynamic
[oracle@localhost product]$ cd $ORACLE_HOME/clone/bin
[oracle@localhost bin]$ perl clone.pl ORACLE_BASE=$ORACLE_BASE ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=OraDb12c_home1
7, after the installation is complete following cloning software installation files in the root user:
At this point, database software installation is complete cloning
Manually create the database:
z 1, first close the database, the database was created before deleting:
"1" into the vim mode to remove orcl registration line
the Oracle @ localhost ~] $ vim / etc / the oratab
"2"
2, create an instance
db_name = orcl
the CONTROL_FILES = / u01 / App /oracle/oradata/orcl/control01.ctl
SGA_TARGET = 500M
. 3, from the database, and creates files that are not
4, create a parameter file
5 generates a control file
[oracle @ localhost ~] $ vim cont.sql
add the following, the present embodiment for example to orcl
CREATE DATABASE testdb
USER SYS IDENTIFIED BY oracle
USER SYSTEM IDENTIFIED BY oracle
LOGFILE GROUP 1 ('/u01/app/oracle/oradata/testdb/redo01a.log','/u01/app/oracle/oradata/testdb/redo01b.log') SIZE 100M BLOCKSIZE 512,
GROUP 2 ('/u01/app/oracle/oradata/testdb/redo02a.log','/u01/app/oracle/oradata/testdb/redo02b.log') SIZE 100M BLOCKSIZE 512,
GROUP 3 ('/u01/app/oracle/oradata/testdb/redo03a.log','/u01/app/oracle/oradata/testdb/redo03b.log') SIZE 100M BLOCKSIZE 512
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 1024
CHARACTER SET AL32UTF8
NATIONAL CHARACTER SET AL16UTF16
EXTENT MANAGEMENT LOCAL
DATAFILE '/u01/app/oracle/oradata/testdb/system01.dbf'
SIZE 700M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
SYSAUX DATAFILE '/u01/app/oracle/oradata/testdb/sysaux01.dbf'
SIZE 550M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
DEFAULT TABLESPACE users
DATAFILE '/u01/app/oracle/oradata/testdb/users01.dbf'
SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
DEFAULT TEMPORARY TABLESPACE tempts1
TEMPFILE '/u01/app/oracle/oradata/testdb/temp01.dbf'
SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
UNDO TABLESPACE undotbs1
DATAFILE '/u01/app/oracle/oradata/testdb/undotbs01.dbf'
SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED;
Give effect to
see the generated control files
check instance status:
6, initialize the data dictionary
[the Oracle @ localhost ~] $ vim chushihua.sql
? @ / The RDBMS / ADMIN / catalog.sql
@ / the RDBMS / ADMIN / catproc.sql?
Log in after running the script
SQL> @ chushihua.sql
long wait will display the following installed to
view an instance
SQL> desc dba_data_files
SQL> show the Parameter instance_name;
SQL> the SELECT instance_name, Status from v $ instance;