oracle_multitenant_overview

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
oracle_multitenant_overview [2021/11/11 21:33] andonovjoracle_multitenant_overview [2021/11/13 21:51] (current) andonovj
Line 13: Line 13:
   * Application Container - Container which consist of 1 or many PDBs which host a specific application. We are able to assign versions and name to such container, furthermore we can initiate installation and upgrade modes.   * Application Container - Container which consist of 1 or many PDBs which host a specific application. We are able to assign versions and name to such container, furthermore we can initiate installation and upgrade modes.
  
-=====Creation=====+===== Using SQL =====
 Firstly, we need to create our container. From 12c, we can create a database to be either as it always has been, a normal database, OR we can create it to allow other databases as well. So it will be a container, let's see how we can do both: Firstly, we need to create our container. From 12c, we can create a database to be either as it always has been, a normal database, OR we can create it to allow other databases as well. So it will be a container, let's see how we can do both:
  
  
-==== Create Normal DB ===+==== Creation ===
 Actually, the creation of a normal database isn't that hard, you can just type: Actually, the creation of a normal database isn't that hard, you can just type:
  
Line 93: Line 93:
 Remember, 1 PDB can be in only 1 ROOT$CDB, but 1 CDB can have many PDBs. Remember, 1 PDB can be in only 1 ROOT$CDB, but 1 CDB can have many PDBs.
 Furthermore, from 12.2, we have also applicational containers, which are containers within the CDB, but we will speak about them in a second. Furthermore, from 12.2, we have also applicational containers, which are containers within the CDB, but we will speak about them in a second.
- 
-===== Management ===== 
-We can perform several actions with a PDB: 
- 
-  * OPEN 
-  * Plug & Unplig 
-  * Close 
-  * Restore / Recover 
- 
-==== Open ==== 
-After we create a CDB, we need to open it, as follows: 
- 
-<Code:bash|Open PDB> 
-SQL> ALTER PLUGGABLE DATABASE pdb2 OPEN; 
-</Code> 
- 
-That command, will open us a database and it will become available to the users. 
-We can also close a pluggable database as follows: 
- 
-<Code:bash|Close PDB> 
-ALTER PLUGGABLE DATABASE pdb2 CLOSE IMMEDIATE; 
-</Code> 
- 
-==== Unplug a PDB ==== 
-In 12.1 we could unplug a PDB into .xml file and the migration of the PDB, would be the migration of that XML file AND the relevant database files.  
-From 12.2 we can also unplug the PDB into a .pdb archive file, which contains information about the PDB AND the relevant database files. That will ease our migration. 
- 
-<Code:bash|Unplug to .pdb file> 
-export ORAENV_ASK=NO 
-export ORACLE_SID=cdb3 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
-ALTER PLUGGABLE DATABASE pdb5 CLOSE; 
-ALTER PLUGGABLE DATABASE pdb5 UNPLUG INTO '/u01/pdb5.pdb'; 
-</Code> 
- 
-That assumes, you are using OMF file. The resulting file contains all the necessary data: 
- 
-<Code:bash|List .pdb file> 
-HOST ls -al /u01/pdb5.pdb 
--rw-r--r--. 1 oracle oinstall 161702502 Jan  7 21:01 /u01/pdb5.pdb 
- 
-SQL> 
-</Code> 
- 
-====Plug a PDB==== 
-To plug a database, we need the file from above and we need to verify the compatibility as follows:  
-<Code:bash|Plug a PDB> 
-SET SERVEROUTPUT ON 
-DECLARE 
-  l_result BOOLEAN; 
-BEGIN 
-  l_result := DBMS_PDB.check_plug_compatibility( 
-                pdb_descr_file => '/u01/pdb5.pdb', 
-                pdb_name       => 'pdb5'); 
- 
-  IF l_result THEN 
-    DBMS_OUTPUT.PUT_LINE('compatible'); 
-  ELSE 
-    DBMS_OUTPUT.PUT_LINE('incompatible'); 
-  END IF; 
-END; 
-/ 
-compatible 
- 
-PL/SQL procedure successfully completed. 
- 
-SQL> 
-</Code> 
- 
-=== Create a PDB using the source file === 
-Then we can create a PDB using the .pdb file as follows: 
- 
-<Code:bash|Plug-in PDB> 
-CREATE PLUGGABLE DATABASE pdb5 USING '/u01/pdb5.pdb'; 
- 
-ALTER PLUGGABLE DATABASE pdb5 OPEN READ WRITE; 
- 
-SELECT name, open_mode 
-FROM   v$pdbs 
-ORDER BY name; 
- 
-NAME        OPEN_MODE 
------------------------------- ---------- 
-PDB$SEED        READ ONLY 
-PDB5        READ WRITE 
- 
-SQL> 
-</Code> 
- 
-====Clone a PDB==== 
-We can clone a PDB as follows: 
- 
-<Code:bash|Cloning a PDB> 
--- Setting the source to read-only is not necessary for Oracle 12cR2 with local undo, if you use 12.1 or 12.2 without local undo, it is needed: 
-ALTER PLUGGABLE DATABASE pdb3 CLOSE; 
-ALTER PLUGGABLE DATABASE pdb3 OPEN READ ONLY; 
- 
- 
- 
-CREATE PLUGGABLE DATABASE pdb4 FROM pdb3 
-  FILE_NAME_CONVERT=('/u01/app/oracle/oradata/cdb1/pdb3/','/u01/app/oracle/oradata/cdb1/pdb4/'); 
- 
-ALTER PLUGGABLE DATABASE pdb4 OPEN READ WRITE; 
- 
- 
- 
--- Switch the source PDB back to read/write if you made it read-only. 
-ALTER PLUGGABLE DATABASE pdb3 CLOSE; 
-ALTER PLUGGABLE DATABASE pdb3 OPEN READ WRITE; 
-</Code> 
- 
-==== Clone a remote PDB (12.1) ==== 
-For that feature, you need to be at least: 12.1.0.2, there is a big with 12.1.0.1. 
-Furthermore, there are two varieties of that procedure. 
- 
-  * Clone from PDB within other CDB 
-  * Clone a non-CDB 
- 
-For both, there are the following pre-requisites: 
- 
-===Pre-requisites=== 
-  * The user in the local database must have the CREATE PLUGGABLE DATABASE privilege in the root container. 
-  * The remote database (PDB or non-CDB) must be open in read-only mode. 
-  * The local database must have a database link to the remote database. If the remote database is a PDB, the database link can point to the remote CDB using a common user, or the PDB using a local or common user. 
-  * The user in the remote database that the database link connects to must have the CREATE PLUGGABLE DATABASE privilege. 
-  * The local and remote databases must have the same endianness, options installed and character sets. 
-  * If the remote database uses Transparent Data Encryption (TDE) the local CDB must be configured appropriately before attempting the clone. If not you will be left with a new PDB that will only open in restricted mode. 
-  * The default tablespaces for each common user in the remote PDB *must* exist in local CDB. If this is not true, create the missing tablespaces in the root container of the local PDB. If you don't do this your new PDB will only be able to open in restricted mode (Bug 19174942). 
-  * When cloning from a non-CDB, both the the local and remote databases must using version 12.1.0.2 or higher. 
- 
-===Clone from a PDB in another CDB === 
-As explained, we need to create a user and open the remote PDB in read only, and create Link in the local one: 
- 
-==On remote== 
-<Code:bash|Create a user on remote> 
-export ORAENV_ASK=NO 
-export ORACLE_SID=cdb3 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
- 
-ALTER SESSION SET CONTAINER=pdb5; 
- 
-CREATE USER remote_clone_user IDENTIFIED BY remote_clone_user; 
-GRANT CREATE SESSION, CREATE PLUGGABLE DATABASE TO remote_clone_user; 
- 
-CONN / AS SYSDBA 
-ALTER PLUGGABLE DATABASE pdb5 CLOSE; 
-ALTER PLUGGABLE DATABASE pdb5 OPEN READ ONLY; 
-EXIT; 
-</Code> 
- 
-Then we can move to the local machine and create the link: 
- 
-==On local== 
-<Code:bash|Create link> 
-###Edit local tnsnames.ora 
-PDB5 = 
-  (DESCRIPTION = 
-    (ADDRESS_LIST = 
-      (ADDRESS = (PROTOCOL = TCP)(HOST = ol7-121.localdomain)(PORT = 1521)) 
-    ) 
-    (CONNECT_DATA = 
-      (SERVICE_NAME = pdb5) 
-    ) 
-  ) 
-   
-export ORAENV_ASK=NO 
-export ORACLE_SID=cdb1 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
- 
-CREATE DATABASE LINK clone_link 
-  CONNECT TO remote_clone_user IDENTIFIED BY remote_clone_user USING 'pdb5'; 
- 
--- Test link. 
-DESC user_tables@clone_link 
- 
-CREATE PLUGGABLE DATABASE pdb5new FROM pdb5@clone_link; 
- 
-Pluggable database created. 
- 
-SQL> 
- 
-SELECT name, open_mode FROM v$pdbs WHERE name = 'PDB5NEW'; 
- 
-NAME                           OPEN_MODE 
------------------------------- ---------- 
-PDB5NEW                        MOUNTED 
- 
-SQL> 
- 
-ALTER PLUGGABLE DATABASE pdb5new OPEN; 
- 
-SELECT name, open_mode FROM v$pdbs WHERE name = 'PDB5NEW'; 
- 
-NAME                           OPEN_MODE 
------------------------------- ---------- 
-PDB5NEW                        READ WRITE 
- 
-SQL> 
-</Code> 
- 
- 
-==== Clone a non-CDB ==== 
-Non-CDB in this case, refers to normal database, pre 12c 
-So let's see how it will be done. As before we need to create a user and bring the whole database in read only mode: 
- 
-==On remote== 
-<code:bash|Create user and enable read-only> 
-export ORAENV_ASK=NO 
-export ORACLE_SID=db12c 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
- 
-CREATE USER remote_clone_user IDENTIFIED BY remote_clone_user; 
-GRANT CREATE SESSION, CREATE PLUGGABLE DATABASE TO remote_clone_user; 
- 
-SHUTDOWN IMMEDIATE; 
-STARTUP MOUNT; 
-ALTER DATABASE OPEN READ ONLY; 
-EXIT; 
-</Code> 
- 
-Then on the local we have to do the same as before: 
- 
-==On local== 
- 
-<Code:bash|Create DB Link> 
-DB12C = 
-  (DESCRIPTION = 
-    (ADDRESS_LIST = 
-      (ADDRESS = (PROTOCOL = TCP)(HOST = ol7-121.localdomain)(PORT = 1521)) 
-    ) 
-    (CONNECT_DATA = 
-      (SERVICE_NAME = db12c) 
-    ) 
-  ) 
-   
-export ORAENV_ASK=NO 
-export ORACLE_SID=cdb1 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
- 
-CREATE DATABASE LINK clone_link 
-  CONNECT TO remote_clone_user IDENTIFIED BY remote_clone_user USING 'db12c'; 
- 
--- Test link. 
-DESC user_tables@clone_link 
- 
-</Code> 
-Then we can create the PDBs as follows: 
- 
-<Code:bash| Create the PDB> 
-CREATE PLUGGABLE DATABASE db12cpdb FROM NON$CDB@clone_link; 
- 
-Pluggable database created. 
- 
-SQL> 
- 
-SELECT name, open_mode FROM v$pdbs WHERE name = 'DB12CPDB'; 
- 
-NAME                           OPEN_MODE 
------------------------------- ---------- 
-DB12CPDB                       MOUNTED 
- 
-SQL> 
-ALTER SESSION SET CONTAINER=db12cpdb; 
- 
-@$ORACLE_HOME/rdbms/admin/noncdb_to_pdb.sql 
- 
-ALTER PLUGGABLE DATABASE db12cpdb OPEN; 
- 
-SELECT name, open_mode FROM v$pdbs WHERE name = 'DB12CPDB'; 
- 
-NAME                           OPEN_MODE 
------------------------------- ---------- 
-DB12CPDB                       READ WRITE 
- 
-SQL> 
-</Code> 
- 
-REMEMBER, as the cloned DB wasn't a PDB, we need to run the noncdb_to_pdb.sql. 
- 
-===== Hot clone ===== 
-There is however one BIG flow in that procedure. The problem is that we need the database (non-cdb) or even PDB to be in read-only mode. That pretty much kills all the desire to perform the procedure as the downtime would be too much for production. 
-Because of that from 12.2 we can do a hot clone, which eliminates that prerequisites :) 
- 
-So let's see how it is done on both: 
- 
-  * Clone another PDB 
-  * Clone not-CDB 
- 
-So let's see what we need: 
-=== Prerequisites === 
-<Code:bash|Prerequisites> 
-  * The user in the local database must have the CREATE PLUGGABLE DATABASE privilege in the root container. 
-  * The remote CDB must use local undo mode. Without this you must open the remote PDB or non-CDB in read-only mode. 
-  * The remote database should be in archivelog mode. Without this you must open the remote PDB or non-CDB in read-only mode. 
-  * The local database must have a database link to the remote database. If the remote database is a PDB, the database link can point to the remote CDB using a common user, the PDB or an application container using a local or common user. 
-  * The user in the remote database that the database link connects to must have the CREATE PLUGGABLE DATABASE privilege. 
-  * The local and remote databases must have the same endianness. 
-  * The local and remote databases must either have the same options installed, or the remote database must have a subset of those present on the local database. 
-  * If the character set of the local CDB is AL32UTF8, the remote database can be any character set. If the local CDB does not use AL32UTF8, the character sets of the remote and local databases much match. 
-  * If the remote database uses Transparent Data Encryption (TDE) the local CDB must be configured appropriately before attempting the clone. If not you will be left with a new PDB that will only open in restricted mode. 
-  * Bug 19174942 is marked as fixed in 12.2. I can't confirm this, so just in case I'll leave this here, but it should no longer be the case. The default tablespaces for each common user in the remote CDB *must* exist in local CDB. If this is not true, create the missing tablespaces in the root container of the local PDB. If you don't do this your new PDB will only be able to open in restricted mode (Bug 19174942). 
-  * When cloning from a non-CDB, both the the local and remote databases must using version 12.1.0.2 or higher. 
-  * In the examples below I have three databases running on the same virtual machine, but they could be running on separate physical or virtual servers. 
- 
-cdb1 : The local database that will eventually house the clones. 
-db12c : The remote non-CDB. 
-cdb3 : The remote CDB, used for cloning a remote PDB (pdb5). 
-</Code> 
- 
-====Cloning PDB==== 
- 
-===On remote=== 
-On the remote machine, we have to however assure couple stuff: 
- 
-<Code:bash|Create user and verify archivelog> 
-export ORAENV_ASK=NO 
-export ORACLE_SID=cdb3 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
- 
-CONN / AS SYSDBA 
- 
-COLUMN property_name FORMAT A30 
-COLUMN property_value FORMAT A30 
- 
-SELECT property_name, property_value 
-FROM   database_properties 
-WHERE  property_name = 'LOCAL_UNDO_ENABLED'; 
- 
-PROPERTY_NAME                  PROPERTY_VALUE 
------------------------------- ------------------------------ 
-LOCAL_UNDO_ENABLED             TRUE 
- 
-SQL> 
- 
- 
-SELECT log_mode 
-FROM   v$database; 
- 
-LOG_MODE 
------------- 
-ARCHIVELOG 
- 
-SQL> 
-</Code> 
- 
- 
- 
-===On local=== 
-Now, we can create a DB link on the local machine and then we can create the PDB itself :) 
- 
-<Code:bash|Create DB Link> 
-CDB3= 
-  (DESCRIPTION = 
-    (ADDRESS = (PROTOCOL = TCP)(HOST = my-server.my-domain)(PORT = 1521)) 
-    (CONNECT_DATA = 
-      (SERVER = DEDICATED) 
-      (SERVICE_NAME = cdb3) 
-    ) 
-  ) 
-   
-export ORAENV_ASK=NO 
-export ORACLE_SID=cdb1 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
- 
-CREATE DATABASE LINK clone_link 
-  CONNECT TO c##remote_clone_user IDENTIFIED BY remote_clone_user USING 'cdb3'; 
- 
--- Test link. 
-DESC user_tables@clone_link 
- 
-CREATE PLUGGABLE DATABASE pdb5new FROM pdb5@clone_link; 
- 
-Pluggable database created. 
- 
-SQL> 
- 
-COLUMN name FORMAT A30 
- 
-SELECT name, open_mode FROM v$pdbs WHERE name = 'PDB5NEW'; 
- 
-NAME                           OPEN_MODE 
------------------------------- ---------- 
-PDB5NEW                        MOUNTED 
- 
-SQL> 
- 
-ALTER PLUGGABLE DATABASE pdb5new OPEN; 
- 
-SELECT name, open_mode FROM v$pdbs WHERE name = 'PDB5NEW'; 
- 
-NAME                           OPEN_MODE 
------------------------------- ---------- 
-PDB5NEW                        READ WRITE 
- 
-SQL> 
-</Code> 
- 
-====Cloning non-CDB==== 
-Again with non-CDB, we can leave the DB open as long as it has the archivelog enabled: 
- 
-===On remote=== 
-<Code:bash|Verify archivelog & Create user> 
-export ORAENV_ASK=NO 
-export ORACLE_SID=db12c 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
- 
-CREATE USER remote_clone_user IDENTIFIED BY remote_clone_user; 
-GRANT CREATE SESSION, CREATE PLUGGABLE DATABASE TO remote_clone_user; 
-SELECT log_mode 
-FROM   v$database; 
- 
-LOG_MODE 
------------- 
-ARCHIVELOG 
- 
-SQL> 
-</Code> 
- 
-Then we can go on the local and setup the database there 
- 
-===On local=== 
-As before we need to create a link and create the database 
-<Code:bash|Create database link> 
-DB12C = 
-  (DESCRIPTION = 
-    (ADDRESS_LIST = 
-      (ADDRESS = (PROTOCOL = TCP)(HOST = my-server.my-domain)(PORT = 1521)) 
-    ) 
-    (CONNECT_DATA = 
-      (SERVICE_NAME = db12c) 
-    ) 
-  ) 
-   
-export ORAENV_ASK=NO 
-export ORACLE_SID=cdb1 
-. oraenv 
-export ORAENV_ASK=YES 
- 
-sqlplus / as sysdba 
- 
-CREATE DATABASE LINK clone_link 
-  CONNECT TO remote_clone_user IDENTIFIED BY remote_clone_user USING 'db12c'; 
- 
--- Test link. 
-DESC user_tables@clone_link 
-</Code> 
- 
-Then we can create the database: 
- 
-<Code:bash|Create database> 
-CREATE PLUGGABLE DATABASE db12cpdb FROM NON$CDB@clone_link; 
- 
-Pluggable database created. 
- 
-SQL> 
-COLUMN name FORMAT A30 
- 
-SELECT name, open_mode FROM v$pdbs WHERE name = 'DB12CPDB'; 
- 
-NAME                           OPEN_MODE 
------------------------------- ---------- 
-DB12CPDB                       MOUNTED 
- 
-SQL> 
-ALTER SESSION SET CONTAINER=db12cpdb; 
- 
-@$ORACLE_HOME/rdbms/admin/noncdb_to_pdb.sql 
- 
-ALTER PLUGGABLE DATABASE db12cpdb OPEN; 
- 
-SELECT name, open_mode FROM v$pdbs WHERE name = 'DB12CPDB'; 
- 
-NAME                           OPEN_MODE 
------------------------------- ---------- 
-DB12CPDB                       READ WRITE 
- 
-SQL> 
-</Code> 
  
 ===== Using DBCA ===== ===== Using DBCA =====
Line 685: Line 183:
 EXIT; EXIT;
 EOF EOF
 +</Code>
 +
 +===== Automation =====
 +Using the awesome power, vested to me by Vagrant and Bash, I summon the automation of:
 +
 +  * Virtual Machine
 +  * Oracle 19c database
 +  * 1 CDB
 +  * 1 PDB
 +
 +All that, twice:
 +
 +
 +<Code:bash|Automation>
 +$allow_shell = <<SCRIPT
 +sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config    
 +systemctl restart sshd.service
 +SCRIPT
  
 +$edit_hosts_file = <<SCRIPT
 +cat > /etc/hosts <<EOF
 +127.0.0.1 localhost
 +192.168.0.l03 lpar1.example.com 
 +192.168.0.l04 lpar2.example.com 
 +EOF
 +SCRIPT
 +
 +$install_oracle_preinstall = <<SCRIPT
 +curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
 +yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
 +SCRIPT
 +
 +$install_oracle_19c = <<SCRIPT
 +cd /vagrant
 +yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm
 +
 +SCRIPT
 +
 +$install_19c_db = <<SCRIPT
 +runuser -l oracle -c '/opt/oracle/product/19c/dbhome_1/bin/dbca -silent -createDatabase -responseFile  /vagrant/simple_db_cdb.rsp'
 +SCRIPT
 +
 +$install_vnc_server = <<SCRIPT
 +yum -y install vnc-server
 +yum -y install tigervnc-server
 +yum -y install xterm
 +yum -y install net-tools
 +yum -y install unzip
 +yum -y install curl
 +SCRIPT
 +
 +
 +Vagrant.configure("2") do |config|
 + (1..2).each do |i|
 +  config.vm.provision :shell, inline: "setenforce 0", run: "always"
 +  config.vm.define "lpar#{i}" do |lpar|
 +    lpar.vm.box = "centos/7"
 +    lpar.vm.hostname = "lpar#{i}.example.com"
 +    lpar.vm.synced_folder "./lpar_binaries", "/vagrant", type: "virtualbox"
 + lpar.vm.network "public_network", ip: "192.168.0.10#{2+i}"
 + lpar.vm.network "private_network", ip: "10.100.0.10#{2+i}"
 + lpar.vm.provision "shell", inline: $install_vnc_server, privileged: true
 + lpar.vm.provision "shell", inline: $allow_shell, privileged: true
 + lpar.vm.provision "shell", inline: $edit_hosts_file, privileged: true
 + lpar.vm.provision "shell", inline: $install_oracle_preinstall, privileged: true
 + lpar.vm.provision "shell", inline: $install_oracle_19c, privileged: true
 + lpar.vm.provision "shell", inline: $install_19c_db, privileged: true
 +    lpar.vm.provider :virtualbox do |v|
 +      v.customize ["modifyvm", :id, "--memory", 2560]
 +      v.customize ["modifyvm", :id, "--name", "lpar#{2+i}"]
 +   v.customize ["storageattach", :id, 
 +                "--storagectl", "IDE", 
 +                "--port", "0", "--device", "1", 
 +                "--type", "dvddrive", 
 +                "--medium", "emptydrive"   
 +     end
 +    end
 +  end
 +end
 </Code> </Code>
  
  
 +Just make sure, you have the Oracle 19c RPM in folder called: "lpar_binaries" in your Vagrant main folder and the response file below:
 +
 +<Code:bash|Response file>
 +responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v12.2.0
 +gdbName=orcl.example.com
 +sid=orcl
 +databaseConfigType=SI
 +policyManaged=false
 +createServerPool=false
 +force=false
 +createAsContainerDatabase=true
 +numberOfPDBs=1
 +pdbName=pdb1
 +useLocalUndoForPDBs=true
 +pdbAdminPassword=Oracle123
 +templateName=/opt/oracle/product/19c/dbhome_1/assistants/dbca/templates/General_Purpose.dbc
 +sysPassword=Oracle123
 +systemPassword= Oracle123
 +emExpressPort=0
 +runCVUChecks=FALSE
 +dvConfiguration=false
 +olsConfiguration=false
 +datafileJarLocation={ORACLE_HOME}/assistants/dbca/templates/
 +datafileDestination={ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/
 +recoveryAreaDestination={ORACLE_BASE}/fast_recovery_area/{DB_UNIQUE_NAME}
 +storageType=FS
 +characterSet=AL32UTF8
 +registerWithDirService=false
 +variables=ORACLE_BASE_HOME=/opt/oracle/product/19c/dbhome_1,DB_UNIQUE_NAME=orcl,ORACLE_BASE=/opt/oracle,PDB_NAME=,DB_NAME=orcl,ORACLE_HOME=/opt/oracle/product/19c/dbhome_1,SID=orcl
 +initParams=undo_tablespace=UNDOTBS1,db_block_size=8KB,dispatchers=(PROTOCOL=TCP) (SERVICE={SID}XDB),diagnostic_dest={ORACLE_BASE},remote_login_passwordfile=EXCLUSIVE,db_create_file_dest={ORACLE_BASE}/oradata/{DB_UNIQUE_NAME}/,audit_file_dest={ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/adump,processes=300,memory_target=936MB,db_recovery_file_dest_size=12732MB,open_cursors=300,db_domain=example.com,compatible=19.0.0,db_name=orcl,db_recovery_file_dest={ORACLE_BASE}/fast_recovery_area/{DB_UNIQUE_NAME},audit_trail=db
 +sampleSchema=false
 +memoryPercentage=40
 +databaseType=MULTIPURPOSE
 +automaticMemoryManagement=true
 +totalMemory=0
 +</Code>
 +
 +Of course feel free to add / remove or modify any parameter which you wish. Just bare in mind that some are mandatory :)
  • oracle_multitenant_overview.1636666417.txt.gz
  • Last modified: 2021/11/11 21:33
  • by andonovj