41
Create Non-CDB Oracle Database 12c on Windows Oracle documentation to create a database… http://docs.oracle.com/cd/E16655_01/server.121/e17643/install.htm#CHDGJGHB Invoke DBCA: Click Start, select All Programs, then Oracle – OraDB12Home1, then Configuration and Migration Tools, and then Database Configuration Assistant. Click Yes.

Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Create Non-CDB Oracle Database 12c on Windows

Oracle documentation to create a database…

http://docs.oracle.com/cd/E16655_01/server.121/e17643/install.htm#CHDGJGHB

Invoke DBCA: Click Start, select All Programs, then Oracle – OraDB12Home1, then Configuration and

Migration Tools, and then Database Configuration Assistant.

Click Yes.

Page 2: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Click Next.

Click Help button in any screen to get context sensitive help. Few of the help screens are shown here.

Page 3: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 4: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Choosing the “Default Configuration” is easy and quick way to create a database. To install Container

Database, the “Create as Container Database” checkbox must be checked.

Page 5: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 6: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Create Database - Summary

Database Configuration Summary

Global Database Name: o12c01

Database Configuration Type: Single Instance

SID: o12c01

Create As Container Database No

Storage Type: File System

Memory Configuration Type: Automatic Shared Memory Management

Template Name: General Purpose or Transaction Processing

Database Configuration Details

Database Components

Component Selected

Oracle JVM true

Page 7: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Oracle Text true

Oracle Multimedia true

Oracle OLAP true

Oracle Spatial true

Oracle Label Security true

Sample Schemas false

Oracle Application Express true

Oracle Database Vault true

Oracle Database Extensions for .NET true

Initialization Parameters

Name Value

audit_file_dest {ORACLE_BASE}\admin\{DB_UNIQUE_NAME}\adump

audit_trail db

compatible 12.1.0.0.0

db_block_size 8KB

db_create_file_dest {ORACLE_BASE}\oradata

db_domain

db_name o12c01

db_recovery_file_dest {ORACLE_BASE}\fast_recovery_area

db_recovery_file_dest_size 6930MB

diagnostic_dest {ORACLE_BASE}

dispatchers (PROTOCOL=TCP) (SERVICE={SID}XDB)

open_cursors 300

pga_aggregate_target 806MB

processes 300

remote_login_passwordfile EXCLUSIVE

sga_target 2419MB

undo_tablespace UNDOTBS1

Character Sets

Name Value

Database Character Set AL32UTF8

National Character Set AL16UTF16

Data Files

Name Tablespace Size(M)

Page 8: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

<OMF_SYSTEM _DATAFILE> SYSTEM 770

<OMF_SYSAUX _DATAFILE> SYSAUX 660

<OMF_UNDOTBS1 _DATAFILE> UNDOTBS1 725

<OMF_USERS _DATAFILE> USERS 5

<OMF_TEMP _TEMPFILE> TEMP 64

Redo Log Groups

Group Size(K)

1 51200

2 51200

3 51200

Let’s change to “Advanced Mode” and see the difference in DB Creation screens… In this demo, I am not

changing any defaults, but screens are to show you the options available.

Page 9: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Click show details to see what products are installed in the pre-configured database…

Page 10: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 11: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 12: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 13: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 14: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 15: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 16: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 17: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 18: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 19: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 20: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Check the “Sample Schemas” checkbox. This will install the HR and other sample schemas and tables

with data to practice SQL.

Page 21: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 22: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 23: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 24: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 25: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 26: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 27: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 28: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Create Database - Summary

Database Configuration Summary

Global Database Name: o12c01

Database Configuration Type: Single Instance

SID: o12c01

Create As Container Database No

Storage Type: File System

Memory Configuration Type: Automatic Shared Memory Management

Template Name: General Purpose or Transaction Processing

Database Configuration Details

Database Components

Component Selected

Oracle JVM true

Page 29: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Oracle Text true

Oracle Multimedia true

Oracle OLAP true

Oracle Spatial true

Oracle Label Security true

Sample Schemas true

Oracle Application Express true

Oracle Database Vault true

Oracle Database Extensions for .NET true

Initialization Parameters

Name Value

audit_file_dest {ORACLE_BASE}\admin\{DB_UNIQUE_NAME}\adump

audit_trail db

compatible 12.1.0.0.0

control_files ("{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\control01.ctl",

"{ORACLE_BASE}\fast_recovery_area\{DB_UNIQUE_NAME}\control02.ctl")

db_block_size 8KB

db_domain

db_name o12c01

db_recovery_file_dest {ORACLE_BASE}\fast_recovery_area

db_recovery_file_dest_size

6930MB

diagnostic_dest {ORACLE_BASE}

dispatchers (PROTOCOL=TCP) (SERVICE={SID}XDB)

open_cursors 300

pga_aggregate_target 728MB

processes 300

remote_login_passwordfile EXCLUSIVE

sga_target 2048MB

undo_tablespace UNDOTBS1

Character Sets

Name Value

Database Character Set AL32UTF8

National Character Set AL16UTF16

Data Files

Page 30: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Name Tablespace Size(M)

{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\SYSTEM01.DBF SYSTEM 770

{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\SYSAUX01.DBF SYSAUX 660

{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\UNDOTBS01.DBF UNDOTBS1 725

{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\USERS01.DBF USERS 5

{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\TEMP01.DBF TEMP 64

Control Files

Name

{ORACLE_BASE}\oradata\{DB_UNIQUE_NAME}\control01.ctl

{ORACLE_BASE}\fast_recovery_area\{DB_UNIQUE_NAME}\control02.ctl

Redo Log Groups

Group Size(K)

1 51200

2 51200

3 51200

Page 31: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 32: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 33: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

The EM Database Express URL is https://computername:5500/em

Click on Password Management if you would like to unlock any of the system accounts. Usually not

needed to do, you may unlock and set password for the sample schemas such as HR, OE, etc.

Page 34: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 35: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Connect to the database using sqlplus to verify the database. Unlock the Sample Schemas to start using

them for demo purposes.

Click Start, select All Programs, then Oracle – OraDB12Home1, then Application Development, and

then SQL Plus.

Page 36: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Now you are ready to connect to the database as HR user and start playing with the tables.

Page 37: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Verify Enterprise Manager access using the URL provided by DBCA in the summary screen after database

creation.

Page 38: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author
Page 39: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Another tool to login to the database is SQL Developer, which is also installed by default along with 12c

Database Software Install.

Click Start, select All Programs, then Oracle – OraDB12Home1, then Application Development, and

then SQL Developer.

First time, a configuration screen appears asking the java location. I used the location installed by the

Oracle DB 12c software.

Page 40: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Click on the green “+” to add database connection information.

Page 41: Create Non CDB Oracle Database 12c on WindowsOracle DB 12c software. lick on the green “+” to add database connection information. Enjoy the Oracle12c Database learning! Author

Enjoy the Oracle12c Database learning!