{"id":24403,"date":"2024-02-15T14:53:34","date_gmt":"2024-02-15T22:53:34","guid":{"rendered":"https:\/\/docs.extraview.com\/v25\/book\/oracle-database-configuration-1\/"},"modified":"2025-03-04T17:37:15","modified_gmt":"2025-03-05T01:37:15","slug":"oracle-database-configuration-1","status":"publish","type":"page","link":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/","title":{"rendered":"Oracle Database Configuration"},"content":{"rendered":"<h3>Creating the Database User and Tablespaces<\/h3>\n<p>It is important that the database is created using the AL32UTF16\/UTF8 character set. This step assumes that Oracle is already operational. It is recommended that an Oracle DBA carry out this step. To run the required scripts and database import, you must be signed in to the target computer as the oracle user. You must also have access to the Oracle system user.<\/p>\n<p>The first script will create four tablespaces required by ExtraView. When you run the script, you will be prompted for location of the data files. You can spread these out if you wish or keep them in one directory (for example \/oracle\/oradata\/ev). The script supplied allocates four tablespaces. If the size of your installation suggests you need differently sized tablespaces, this script can be modified. Please consult with ExtraView if you require help for this stage.<\/p>\n<p>The second script will create the ExtraView user account within Oracle. Note that you must supply a password. Please ensure you keep a record of the password for future access. You will also need this in the installation process when you configure the Apache Tomcat application server.<\/p>\n<p class=\"textGreyBg\">Note: The time taken for the system to create and format the tablespaces is dependent on the size you select.<\/p>\n<h3>Oracle 11g Configuration Requirement<\/h3>\n<p>There is a default setting in Oracle 11g, that must be changed before you import the ExtraView database.<\/p>\n<p><code>ALTER system SET deferred_segment_creation=false; <\/code><\/p>\n<p>For information on this setting, please refer to <a href=\"\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/19\/refrn\/DEFERRED_SEGMENT_CREATION.html\" target=\"_blank\" rel=\"noopener\">DEFERRED_SEGMENT_CREATION<\/a><\/p>\n<h3>Required Scripts<\/h3>\n<h4>create_tablespace.sql<\/h4>\n<p><span class=\"fixedWidthFont\">CREATE TABLESPACE &#8220;EXTRAVIEW&#8221;<br \/>\nLOGGING<br \/>\nDATAFILE &#8216;&amp;extraviewTsLocation\/extraview01.dbf&#8217; SIZE 1000M<br \/>\nEXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K;<\/span><br \/>\n<span class=\"fixedWidthFont\">CREATE TABLESPACE &#8220;EXTRAVIEW_IDX&#8221;<br \/>\nLOGGING<br \/>\nDATAFILE &#8216;&amp;extraviewTsLocation\/extraview_idx01.dbf&#8217; SIZE 1000M<br \/>\nEXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K;<\/span><br \/>\n<span class=\"fixedWidthFont\">CREATE TABLESPACE &#8220;EXTRAVIEW_SESSION&#8221;<br \/>\nLOGGING<br \/>\nDATAFILE &#8216;&amp;extraviewTsLocation\/extraview_session01.dbf&#8217; SIZE 300M<br \/>\nEXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K;<\/span><br \/>\n<span class=\"fixedWidthFont\">CREATE TABLESPACE &#8220;EXTRAVIEW_LOB&#8221;<br \/>\nLOGGING<br \/>\nDATAFILE &#8216;&amp;extraviewTsLocation\/extraview_lob01.dbf&#8217; SIZE 1000M<br \/>\nEXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K;<\/span><\/p>\n<h4>create_user.sql<\/h4>\n<p><span class=\"fixedWidthFont\">CREATE USER extraview PROFILE &#8220;DEFAULT&#8221;<br \/>\nIDENTIFIED BY &amp;&amp;PASSWORD<br \/>\nDEFAULT TABLESPACE &#8220;EXTRAVIEW&#8221; TEMPORARY TABLESPACE &#8220;TEMP&#8221; ACCOUNT UNLOCK;<br \/>\nGRANT &#8220;CONNECT&#8221; TO extraview;<br \/>\nGRANT &#8220;RESOURCE&#8221; TO extraview;<br \/>\nGRANT CREATE TABLE to extraview;<br \/>\nGRANT CREATE VIEW to extraview;<br \/>\nGRANT ALTER SESSION to extraview;<br \/>\nexit<\/span><\/p>\n<h3>For Linux Installations<\/h3>\n<p><span class=\"fixedWidthFont\">cd $INSTALL<br \/>\nsqlplus system\/password @create_tablespace.sql<br \/>\nsqlplus system\/password @create_user.sql<\/span><\/p>\n<h3>For Windows Installations<\/h3>\n<p>Open a command prompt Navigate to the database directory<\/p>\n<p><span class=\"fixedWidthFont\">sqlplus system\/password @create_tablespace.sql<br \/>\nsqlplus system\/password @create_user.sql<\/span><\/p>\n<h3>Import the ExtraView Database into Oracle<\/h3>\n<p>Your contact at ExtraView will have provided you with a database export file, either containing a system that is designed for your company\u2019s business processes, or a standard ExtraView system. Place that file in the same directory as the two files above.<\/p>\n<p>Without signing off from the computer, perform this next step. This will import the ExtraView schema and initial data into Oracle from the installation directory.<\/p>\n<p class=\"textGreyBg\">Note: if the fromuser was not specified in an email from ExtraView, it will generally be the same as the filename of the provided dmp file. For example, a file named &#8220;evt701.dmp&#8221; would have a fromuser of &#8220;evt701&#8221;<\/p>\n<p><span class=\"fixedWidthFont\">imp system\/password file=&lt;your company&gt;.dmp fromuser= touser=extraview commit=y<\/span><\/p>\n<h3>Oracle Database Maintenance<\/h3>\n<p>The Oracle database requires minimal maintenance, and most routine maintenance can be scheduled on your server, using cron or the equivalent with a Windows-based operating system.<\/p>\n<p>Oracle internally manages recovery of space from deleted records within your database. For efficiency, however, Oracle indexes may need to be rebuilt if there is a very intense use of updates and deletes. With most usage of ExtraView, this is not the case and there is no need to rebuild indexes on a routine basis.<\/p>\n<p>If you are using nightly exports for your backup, there should be no transaction logs to worry about. If you are using hot backups, then you should have a cron job that deletes the old archive log files after they are backed up.<\/p>\n<p>For the best performance, one task that should be done on a regular basis is to analyze the objects in the database. These are statistics used by the Oracle query optimizer when it builds query plans. It is recommended that you do this once per week, via a cron job, and whenever large amounts of data have been loaded using evimport, or the web-based import tool, etc. Following is an example script that can be adapted and used for this purpose. Note that you have to edit the file <code>oracle.env<\/code> and <code>analyzeExtraView.sh<\/code> and substitute the appropriate directory paths and passwords.<\/p>\n<p>File analyzeExtraView.sh<\/p>\n<p><code>#!\/bin\/bsh<br \/>\n# source in the env file<br \/>\nENV=\/u01\/oracle\/admin\/prod01\/dba\/oracle.env<br \/>\nif [ -f \"$ENV\" ]; then<br \/>\n. $ENV<br \/>\nelse<br \/>\nexit 1<br \/>\nfi<br \/>\nSCRIPT=$DBA\/analyzeExtraView.sql<br \/>\nLOG=$DBA\/analyzeExtraView.txt<br \/>\ncd $DBA<br \/>\nif [ -f \"$SCRIPT\" ]; then<br \/>\nsqlplus $EXTRAVIEW_AUTH\u00a0 @$SCRIPT<br \/>\nelse<br \/>\nexit 1<br \/>\nfi<br \/>\nmail -s \"Analyze schemas for $ORACLE_SID\" $NOTIFY &lt; $LOG<br \/>\nrm -f $LOG<\/code><\/p>\n<p>File analyzeExtraView.sql<\/p>\n<p><code>SET SERVEROUTPUT ON SIZE 5000<br \/>\nset echo off<br \/>\nset linesize 400<br \/>\nset term on<br \/>\nset feedback off<br \/>\nset head off<br \/>\nset pages 0<br \/>\nset verify off<br \/>\nspool analyzeExtraView.txt<br \/>\nexec DBMS_OUTPUT.PUT_LINE('Analyzing objects ' || to_char(sysdate, 'dd-MON-yyyy hh24:mi:ss'));<br \/>\nexec dbms_utility.analyze_schema(USER, 'COMPUTE');<br \/>\nexec DBMS_OUTPUT.PUT_LINE('Done analyzing objects ' || to_char(sysdate, 'dd-MON-yyyy hh24:mi:ss')); spool off<br \/>\nexit<\/code><\/p>\n<p>Entry for the crontab table<\/p>\n<p><code>#MI HH DOM MOY DOW<br \/>\n13 01 * * * \/u01\/oracle\/admin\/prod01\/dba\/analyzeExtraView.sh<\/code><\/p>\n<p>Entries in the oracle.env file<\/p>\n<p><code>#!\/bin\/bsh<br \/>\n# Oracle Environment<br \/>\nexport ORACLE_BASE=\/u01\/oracle<br \/>\nexport ORACLE_HOME=\/u01\/oracle\/product\/9.2<br \/>\nexport ORACLE_SID=ev<br \/>\nexport ORACLE_TERM=xterm<br \/>\nexport NLS_LANG=American_America.UTF8;<br \/>\nexport ORA_NLS33=$ORACLE_HOME\/ocommon\/nls\/admin\/data<br \/>\nexport LD_LIBRARY_PATH=$ORACLE_HOME\/lib:\/lib:\/usr\/lib:\/usr\/local\/lib<br \/>\n# Set shell search paths<br \/>\nexport PATH=$PATH:$ORACLE_HOME\/bin:$PATH:\/bin<br \/>\n# admin directories<br \/>\nexport UDUMP=$ORACLE_BASE\/admin\/$ORACLE_SID\/udump<br \/>\nexport BDUMP=$ORACLE_BASE\/admin\/$ORACLE_SID\/bdump<br \/>\nexport ARCH=\/u02\/oracle\/arch\/$ORACLE_SID<br \/>\nexport BIN=$ORACLE_BASE\/admin\/$ORACLE_SID\/bin<br \/>\nexport DBA=$ORACLE_BASE\/admin\/$ORACLE_SID\/dba<br \/>\n# misc<br \/>\nexport SYSTEM_AUTH=system\/XXX<br \/>\nexport EXTRAVIEW_AUTH=extraview\/XXX<br \/>\nexport TODAY=$(date +%d-%b-%y)<br \/>\nexport NOTIFY=\"valid email address\"<br \/>\nexport BACKUP_DIR=\/u03\/oracle\/backup<br \/>\nexport LOG=\/tmp\/log.txt<br \/>\n<\/code><\/p>\n<p>Finally, make sure you have Oracle\u2019s cursors configured to an adequate number. In a typical database installation, please configure at least 1,000, but if you are likely to support hundreds of concurrent users, consider a higher number. This is an inexpensive resource and there is little downside to configuring a large number of cursors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating the Database User and Tablespaces It is important that the database is created using the AL32UTF16\/UTF8 character set. This step assumes that Oracle is already operational. It is recommended that an Oracle DBA carry out this step. To run the required scripts and database import, you must be signed in to the target computer&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":24373,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_lmt_disableupdate":"no","_lmt_disable":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"class_list":["post-24403","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Oracle Database Configuration - Product Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle Database Configuration - Product Documentation\" \/>\n<meta property=\"og:description\" content=\"Creating the Database User and Tablespaces It is important that the database is created using the AL32UTF16\/UTF8 character set. This step assumes that Oracle is already operational. It is recommended that an Oracle DBA carry out this step. To run the required scripts and database import, you must be signed in to the target computer...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Product Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-05T01:37:15+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/\",\"url\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/\",\"name\":\"Oracle Database Configuration - Product Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/docs.extraview.com\/v25\/#website\"},\"datePublished\":\"2024-02-15T22:53:34+00:00\",\"dateModified\":\"2025-03-05T01:37:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.extraview.com\/v25\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ExtraView 25\",\"item\":\"https:\/\/docs.extraview.com\/v25\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Installation &#038; Upgrade Guide\",\"item\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Software Installation &#038; Upgrades\",\"item\":\"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Oracle Database Configuration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/#website\",\"url\":\"https:\/\/docs.extraview.com\/v25\/\",\"name\":\"ExtraView Product Documentation\",\"description\":\"ExtraView Documentation\",\"publisher\":{\"@id\":\"https:\/\/docs.extraview.com\/v25\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.extraview.com\/v25\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/#organization\",\"name\":\"ExtraView Corporation\",\"url\":\"https:\/\/docs.extraview.com\/v25\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.extraview.com\/v25\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png\",\"contentUrl\":\"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png\",\"width\":512,\"height\":512,\"caption\":\"ExtraView Corporation\"},\"image\":{\"@id\":\"https:\/\/docs.extraview.com\/v25\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oracle Database Configuration - Product Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/","og_locale":"en_US","og_type":"article","og_title":"Oracle Database Configuration - Product Documentation","og_description":"Creating the Database User and Tablespaces It is important that the database is created using the AL32UTF16\/UTF8 character set. This step assumes that Oracle is already operational. It is recommended that an Oracle DBA carry out this step. To run the required scripts and database import, you must be signed in to the target computer...","og_url":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/","og_site_name":"Product Documentation","article_modified_time":"2025-03-05T01:37:15+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/","url":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/","name":"Oracle Database Configuration - Product Documentation","isPartOf":{"@id":"https:\/\/docs.extraview.com\/v25\/#website"},"datePublished":"2024-02-15T22:53:34+00:00","dateModified":"2025-03-05T01:37:15+00:00","breadcrumb":{"@id":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/oracle-database-configuration-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.extraview.com\/v25\/"},{"@type":"ListItem","position":2,"name":"ExtraView 25","item":"https:\/\/docs.extraview.com\/v25\/"},{"@type":"ListItem","position":3,"name":"Installation &#038; Upgrade Guide","item":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/"},{"@type":"ListItem","position":4,"name":"Software Installation &#038; Upgrades","item":"https:\/\/docs.extraview.com\/v25\/extraview-25\/installation-upgrade-guide-1\/software-installation-upgrades-1\/"},{"@type":"ListItem","position":5,"name":"Oracle Database Configuration"}]},{"@type":"WebSite","@id":"https:\/\/docs.extraview.com\/v25\/#website","url":"https:\/\/docs.extraview.com\/v25\/","name":"ExtraView Product Documentation","description":"ExtraView Documentation","publisher":{"@id":"https:\/\/docs.extraview.com\/v25\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.extraview.com\/v25\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/docs.extraview.com\/v25\/#organization","name":"ExtraView Corporation","url":"https:\/\/docs.extraview.com\/v25\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.extraview.com\/v25\/#\/schema\/logo\/image\/","url":"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png","contentUrl":"https:\/\/docs-stg.extraview.com\/wp-content\/uploads\/2024\/03\/favicon.png","width":512,"height":512,"caption":"ExtraView Corporation"},"image":{"@id":"https:\/\/docs.extraview.com\/v25\/#\/schema\/logo\/image\/"}}]}},"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"carl.koppel","author_link":"https:\/\/docs.extraview.com\/v25\/author\/carl-koppel\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/pages\/24403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/comments?post=24403"}],"version-history":[{"count":0,"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/pages\/24403\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/pages\/24373"}],"wp:attachment":[{"href":"https:\/\/docs.extraview.com\/v25\/wp-json\/wp\/v2\/media?parent=24403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}