Third, cloning software and install the database manually building a database

Cloning install the database software

Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
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
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
. 3, delete the original file
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
4, extract package
[Oracle @ localhost Product] $ xvf 12c.tar the tar
. 5, deleted after completion of the extracting compressed, decompressed data using the connection
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
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

Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
7, after the installation is complete following cloning software installation files in the root user:
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
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"
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
2, create an instance
db_name = orcl
the CONTROL_FILES = / u01 / App /oracle/oradata/orcl/control01.ctl
SGA_TARGET = 500M
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
. 3, from the database, and creates files that are not
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
4, create a parameter file
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics: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
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
see the generated control files
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
check instance status:
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
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
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
view an instance
SQL> desc dba_data_files
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
SQL> show the Parameter instance_name;
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:
SQL> the SELECT instance_name, Status from v $ instance;
Hypertext Transfer Protocol http + ssl certification --- https - between the application layer and the transport layer plus Ssl built on tcp, three characteristics:

Published 31 original articles · won praise 19 · views 1445

Guess you like

Origin blog.csdn.net/Alkaid__3/article/details/104410146