Create non-cdb (traditional) oracle database 12c on windows

3,318 views
2,787 views

Published on

Create a non-CDB Oracle database 12c on Windows using DBCA.

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,318
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
43
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Create non-cdb (traditional) oracle database 12c on windows

  1. 1. 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.
  2. 2. Click Next. Click Help button in any screen to get context sensitive help. Few of the help screens are shown here.
  3. 3. 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.
  4. 4. 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
  5. 5. 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)
  6. 6. <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.
  7. 7. Click show details to see what products are installed in the pre-configured database…
  8. 8. Check the “Sample Schemas” checkbox. This will install the HR and other sample schemas and tables with data to practice SQL.
  9. 9. 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
  10. 10. 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_siz e 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
  11. 11. 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
  12. 12. 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.
  13. 13. 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.
  14. 14. Now you are ready to connect to the database as HR user and start playing with the tables.
  15. 15. Verify Enterprise Manager access using the URL provided by DBCA in the summary screen after database creation.
  16. 16. 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.
  17. 17. Click on the green “+” to add database connection information.
  18. 18. Enjoy the Oracle12c Database learning!

×