81
Oracle 11g Installation Manual QUANTA Link™

Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

  • Upload
    dohanh

  • View
    222

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual QUANTA Link™

Page 2: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 2 of 81

Index

1. ORACLE 11G INSTALLATION ................................................................................................. 3

1.1. PREREQUISITES ........................................................................................................................... 3 1.1.1. Oracle administrator user Rights ......................................................................................... 3 1.1.2. Install Microsoft Loopback adapter ..................................................................................... 5

1.2. JAVA JDK 1.6 INSTALLATION ......................................................................................................... 21

2. ORACLE 11G SOFTWARE INSTALLATION ........................................................................... 32

2.1. LISTENER INSTALLATION ............................................................................................................... 40 2.2. DATABASE CREATION ................................................................................................................... 51 2.3. ORACLE SETUP .......................................................................................................................... 65

2.3.1. Script to configure QL database ........................................................................................ 65 2.4. DATAMG, IDXMG AND LOGMG TABLESPACE CREATION ...................................................................... 67 2.5. CREATE USER QL ....................................................................................................................... 72 2.6. DATABASE FOR DMS............................................................................................................... 75

2.6.1. Setup Directory Objects ................................................................................................... 75 2.6.2. Importing a database ...................................................................................................... 77 2.6.3. Export a schema database ............................................................................................... 78 2.6.4. Export file naming convention .......................................................................................... 78

ANEX I. DATABASE BACKUP ................................................................................................... 79

Page 3: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 3 of 81

1. Oracle 11g installation

1.1. Prerequisites

1.1.1. Oracle administrator user Rights

To be able to start an Oracle database from the Enterprise Manager console, the Oracle administrator user must have Rights to:

Act as part of the operating system Adjust memory quotas for a process Log on as batch job Replace process level token

To set up these rights, go Start Control Panel Administrative Tools Local Security Policy.

Alternative method: go Start Run secpol.msc

At the Local Policies branch User Rights Assignment, locate and add the local administrator user to the

rights quoted above:

Double click on top of each of the rights to be granted to the user, and then click ‘Add User or Group’:

Page 4: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 4 of 81

Write the user name to be granted the selected right:

Repeat the process for all required rights.

Page 5: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 5 of 81

1.1.2. Install Microsoft Loopback adapter

Hardware installation is different in Windows XP/2003 Server/Vista and Windows 7/2008 Server. If the operating system is Windows 7 or Windows 2008 Server, please skip this section and go directly to the next section: 1.1.2.2. Windows 7 or Windows 2008 Server

1.1.2.1. WINDOWS XP or VISTA

For Oracle to work fine whether a network is physically connected or not, a loopback adapter must be installed.

To install this adapter, go to Start Control Panel Add Hardware:

Page 6: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 6 of 81

After a quick check of new hardware, the system will ask if the device is already connected. Answer ‘Yes’:

Go to the bottom of the following list and select: ‘Add a new hardware device’:

Page 7: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 7 of 81

In the next dialog, select ‘Install the hardware that I manually select from a list (Advanced)’:

Page 8: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 8 of 81

The look up ‘Network adapters’ in the following list:

From the Manufacturer side, select ‘Microsoft’, and select ‘Microsoft Loopback Adapter’ from the list:

The next step will start installing the hardware:

Page 9: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 9 of 81

Once the process has finished, click ‘Finish’:

Page 10: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 10 of 81

The new network connection must be configured. To do so, go the control panel, and select ‘Network Connections’:

Double click the networks icon and from the list of available network connections, select the one related to the ‘Microsoft Loopback Adapter’:

Page 11: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 11 of 81

Double click on the selected network connection to see and modify its properties:

Click on ‘Properties’. From the list of available items select ‘Internet Protocol (TCP/IP)’ and then click on ‘Properties’:

Page 12: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 12 of 81

Write the following IP address and Subnet mask to assign a fixed IP to this computer:

IP address: 192.168.100.1

Subnet mask: 255.255.255.0

NOTICE: make sure that this IP address does not conflict your current network set up. Ask your IT support in case you are unsure!

Once written, click ‘OK’ and the configuration will be saved and applied.

Page 13: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 13 of 81

1.1.2.2. Windows 7 or Windows 2008 Server

For Oracle to work fine whether a network is physically connected or not, a loopback adapter must be installed.

To install this adapter, go to Start, type hdwwiz and press ‘Enter’:

This will open the Add Hardware Wizard. Click ‘Next’ to continue.

Page 14: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 14 of 81

Select ‘Install the hardware that I manually select from a list (Advanced)’ and click ‘Next’.

Select ‘Network adapters’ from the list and click ‘Next’.

Page 15: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 15 of 81

Select ‘Microsoft’ from the Manufacturers’ list and ‘Microsoft Loopback Adapter’ from the Network Adapter list.

Click ‘Finish’ to close the wizard.

Page 16: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 16 of 81

Click ‘Next’ to begin installing the selected driver.

The new network connection must be configured. To do so, go the control panel, and select ‘Network and Internet’:

Page 17: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 17 of 81

Now select ‘Network and Sharing Center’:

Page 18: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 18 of 81

Click ‘Change adapter settings’.

Page 19: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 19 of 81

Double click the network icon related to the ‘Microsoft Loopback Adapter’.

Page 20: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 20 of 81

Click on ‘Properties’ to edit the connection configuration.

Double click on ‘Internet Protocol Version 4 (TCP/IPv4)’.

Write the following IP address and Subnet mask to assign a fixed IP to this computer:

IP address: 192.168.100.1

Subnet mask: 255.255.255.0

Page 21: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 21 of 81

NOTICE: make sure that this IP address does not conflict your current network set up. Ask your IT support in case you are unsure!

Once written, click ‘OK’ and the configuration will be saved and applied.

1.2. Java JDK 1.6 installation

To make Oracle database and Quanta Link™ application server work properly, Java JDK 1.6 must be installed in the computer (or computers) where these are running.

Any Java JDK 1.6 version can be used, but it is recommended to use the latest one.

In this document, we will show the installation of Java JDK 1.6 Update 21.

Start the installation process by double clicking the installation file jdk-6u21-windows-i586.exe:

After some preparation, the software will let the user select the ‘Next’ button to start the installation:

Page 22: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 22 of 81

To avoid any problems due to the path name containing blank spaces, change the installation directory to one without any spaces in the full path name, like:

C:\Java\jdk.1.6.0_21

To do so, click on ‘Change’ and modify the installation path:

Just remove the ‘Program Files\’ part of the path and leave the installation path shown below, and then, press ‘OK’:

Page 23: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 23 of 81

Once the installation path has been modified, click ‘Next’ to start the installation process:

The Java JDK installation process will then begin:

Page 24: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 24 of 81

When the JDK installation process finishes, the application will ask for the destination folder of Java JRE. This can be installed in the default path as it will not interfere with any configuration file. To go on with the installation process, just click ‘Next’:

After the Java JRE installation has finished, the Java installation process is done. Click ‘Finish’ to close the installation window.

This will cause your web explorer to open with a registration site for Java: it is not necessary to register the software, so you can close it if you want.

Now that Java JDK is installed in the system is very important to create or modify two environment variables:

JAVA_HOME and Path

Page 25: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 25 of 81

1.2.1.1. Create or modify environment variables in Windows XP

To do so, go to the ‘Start’ menu, right click on ‘My Computer’ and select ‘Properties’:

Select the ‘Advanced’ tab, and then click ‘Environment Variables’

Page 26: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 26 of 81

Click ‘New’ at the bottom of the dialog to add a new System Variable:

Enter the following information in the pop up dialog:

Variable name: JAVA_HOME Variable value: C:\Java\jdk1.6.0_21

NOTICE: The path might be different if a newer Java JDK version is used!

Once fulfilled the information, the dialog should look like the one below:

Click ‘OK’ and the new variable will be saved.

Page 27: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 27 of 81

To modify the system variable ‘Path’, go back to the ‘Environment Variables’ dialog:

Double click on the ‘Path’ variable to modify it, and add the following text to the Variable value, exactly as it is written here:

;C:\Java\jdk1.6.0_21\bin

NOTICE: don’t forget to include the semicolon at the beginning of the string!

Once modified, click ‘OK’ to save the new value.

Page 28: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 28 of 81

1.2.1.2. Create or modify environment variables in Windows 7 or Vista

To do so, go to the ‘Start’ menu, right click on ‘Computer’ and select ‘Properties’:

This will open the ‘System summary’ window. Click ‘Advanced system settings’:

Page 29: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 29 of 81

Click ‘Environment Variables’ at the bottom of the screen that will appear:

Click ‘New’ at the bottom of the dialog to add a new System Variable:

Enter the following information in the pop up dialog:

Variable name: JAVA_HOME Variable value: C:\Java\jdk1.6.0_21

NOTICE: The path might be different if a newer Java JDK version is used!

Page 30: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 30 of 81

Once the information has been typed in, the dialog should look like the one below:

Click ‘OK’ and the new variable will be saved.

To modify the system variable ‘Path’, go back to the ‘Environment Variables’ dialog:

Double click on the ‘Path’ variable to modify it, and add the following text to the Variable value, exactly as it is written here:

;C:\Java\jdk1.6.0_21\bin

Page 31: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 31 of 81

NOTICE: don’t forget to include the semicolon at the beginning of the string!

Once modified, click ‘OK’ to save the new value.

Page 32: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 32 of 81

2. Oracle 11g software installation

NOTICE!!! If you are installing Oracle 11g in Windows XP you need to do following steps before installing it in your system:

Create the environment variable ‘ORACLE_UNQNAME’ with the value equal to the database unique name. In most instances the name will be QL.

Modify the file ‘C:\WINDOWS\system32\drivers\etc\hosts’ to include the ip and name of your machine, like shown in the image below:

Double click on ‘Setup’ found in the Quanta Link drive, in 1_Oracle_Installation database:

Page 33: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 33 of 81

Oracle Universal Installer starts preparing the installation wizard:

The welcome screen of the wizard has the option to enter an email to receive technical assistance. Fill it in only in case there is an email server available from this machine. If you are not sure whether this service is available or not, leave it blank, as shown below:

Page 34: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 34 of 81

A warning message appears if no email address is provided. Click ‘Yes’ to continue with the installation:

Select ‘Install database software only’. The database creation will be done later, once the software has been properly installed:

Page 35: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 35 of 81

In the next step, select ‘Single instance database installation’:

Next dialog shows all available language for the software. Default language is English. It is advised to keep it and add your own language, to help the technical service revising your installation.

Page 36: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 36 of 81

The Oracle license granted with Quanta Link is for ‘Standard Edition One’ unless otherwise noted:

Fill in the Oracle Base folder in the next screen. Use the information shown below:

Base folder: c:\oracle

Page 37: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 37 of 81

The software location is automatically filled when the base folder is filled in:

A summary of the installation information is presented in the next step:

Page 38: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 38 of 81

Clicking ‘Finish’ will start the installation process:

Page 39: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 39 of 81

Depending on your firewall configuration, a warning message can appear. To allow the installation to continue, please check both network types and click ‘Allow access’:

Once the installation process is complete, a final screen is shown. Click ‘Close’ to finish the installation process:

Page 40: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 40 of 81

2.1. Listener Installation

Once the database software is installed, it is required to install the Listener, to avoid problems when creating a new database with enterprise manager activated. Go to Start Programs Oracle – <ORACLE_HOME> Configuration and Migration Tools Net Configuration Assistant:

Select ‘Listener Configuration’ and click ‘Next’:

Select ‘Add’ and click ‘Next’:

Accept the default name for the listener: ‘LISTENER’, and click Next:

Page 41: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 41 of 81

Select ‘TCP’ as communications protocol, and click ‘Next’:

Page 42: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 42 of 81

Select the default port number for TCP/IP Protocol, 1521, and click ‘Next’:

Depending on the configuration of your firewall, a warning message may appear at this time. Check all network types and click ‘Allow access’ to continue the listener creation process:

Page 43: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 43 of 81

Select ‘No’ and click ‘Next’:

Click ‘Next’ to finish the Listener creation process:

Page 44: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 44 of 81

This action will bring back the initial screen. Select ‘Naming Methods configuration’ and click ‘Next’:

Select the following Naming Methods, and click ‘Next’:

Local Naming Easy Connect Naming

Page 45: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 45 of 81

Click ‘Next’ to complete the Naming Methods configuration:

Back in the main screen, select ‘Local Net Service Name configuration’ and click ‘Next’:

Page 46: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 46 of 81

Select ‘Add’ and click ‘Next’:

Enter the database instance name as the Service Name: QL, and click ‘Next’:

Page 47: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 47 of 81

Select TCP as the communications protocol for the selected service:

Enter the name of the computer where Oracle is installed or ‘localhost’ if it is located in the current machine. Select 1521 as the communications port and click ‘Next’:

In the next dialog select ‘No, do not test’ and click ‘Next’:

Page 48: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 48 of 81

Enter the name of the Oracle service name ‘QL’ and click ‘Next’:

In the next dialog select ‘No’, and click ‘Next’:

Page 49: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 49 of 81

Click ‘Next’ in the following window to go back to the main screen:

Now the configuration of the listener is ready. Click ‘Finish’ to exit the configuration assistant:

Page 50: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 50 of 81

Page 51: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 51 of 81

2.2. Database creation

The next step is configure the database to be used within the application. To do it, go to ‘Start’ ‘Oracle – OraDB11g_home1’ ‘Configuration and migration tools’ ‘Database Configuration Assistant’:

This will launch a wizard to help creating the database instance.

Page 52: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 52 of 81

Click ‘Next’ to start the database creation process.

Select ‘Create a Database’ and click ‘Next’.

Page 53: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 53 of 81

Select ‘Custom Database’ if any other option appears and click ‘Next’.

Enter the Global Database name. ‘QL’ is the advised name to be used. The assistant will automatically use the first 8 characters of this name as SID. Click ‘Next’ to go ahead.

Page 54: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 54 of 81

In the next dialog, check the following: ‘Configure Enterprise Manager’ and ‘Configure Database Control for local management’. Click ‘Next’ to continue

Select ‘Use the Same Administrative Password for All Accounts’, and then enter the Oracle administrative accounts password. Typically this password is ‘werfen’. Click ‘Next’ to continue.

If the password complexity does not match Oracle’s recommendation, you may want to change it or ignore the alert message clicking ‘No’:

werfen

Page 55: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 55 of 81

Select now ‘Use Oracle-Managed Files’ and click ‘Next’:

Leave the next option dialog as the assistant proposes, and click ‘Next’.

Page 56: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 56 of 81

Uncheck all database components but ‘Enterprise Manager Repository’. Click ‘Standard Database Components’.

Uncheck all options in this screen, then click ‘Ok’ to go back to the previous screen.

Page 57: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 57 of 81

Click ‘Next’ to continue.

The memory configuration may vary depending on the installation size. This parameter can be modified later. Usually, for medium sized laboratories, assign the following values to the Oracle memory options:

Page 58: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 58 of 81

SGA: 1024Mb PGA: 256Mb

Go now to the ‘Sizing’ tab by clicking on it:

Again, the number of processes may vary upon the installation size. Recommendation for a medium size laboratory is using 300 processes. Select ‘Character Sets’ tab once you entered the processes number:

Page 59: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 59 of 81

To avoid character issues with the information in the database is highly advised to select AL32UTF8, Unicode UTF-8 Universal character set from the list of custom character sets:

This is how this dialog should look like after selecting the appropriate character set. Go to the ‘Connection Mode’ tab:

Page 60: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 60 of 81

Make sure that the ‘Dedicated Server Mode’ is selected. Click ‘All Initialization Parameters’.

Click ‘Show Advanced Parameters’.

This will expand the list with all available configuration parameters in the database:

Page 61: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 61 of 81

Modify the following values:

Open_cursors: 1000 Optimizer_features: 9.2.0 Optimizer_mode: CHOOSE

Page 62: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 62 of 81

When all required parameters have been modified, click ‘Close’.

Click ‘Next’ to continue configuring.

Page 63: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 63 of 81

Next screen can be ignored, click ‘Next’ to carry on.

In the final step, select only ‘Create Database’ and then click ‘Finish’.

Page 64: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 64 of 81

A summary with all options is presented. If everything is fine, click ‘OK’ to start the installation process.

Files start being copied. A progress bar is shown. Do not switch off your computer while this process takes place.

Page 65: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 65 of 81

When the database creation finishes, the information of the database is shown. Click ‘Exit’ to close the database creation assistant.

2.3. Oracle setup

2.3.1. Script to configure QL database

From now on, we can follow this guide or run a script which will create tablespaces, the application user, will set up all parameters not affecting memory and will back up the startup files before and after the changes. In case you run this script to configure the database in your installation, you can follow this manual in section 2.9.2. Importing a database.

Create a file named cfgql.bat as shown below:

The content of the file cfgql.sql below is valid for computers with Oracle 11g installed, and four hard drive units named c (for system), d (for data), e (for indexes and log) and f (for backup).

Page 66: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 66 of 81

Copy all this text into a file named cfgql.sql:

-- Create tablespaces datamg, idxmg y logmg

host mkdir D:\oracle\oradata\QL\DATAFILE

create tablespace datamg datafile

'D:\oracle\oradata\QL\DATAFILE\datamg01.dbf' size 1G autoextend on next 512M maxsize 5G,

'D:\oracle\oradata\QL\DATAFILE\datamg02.dbf' size 1G autoextend on next 512M maxsize 5G,

'D:\oracle\oradata\QL\DATAFILE\datamg03.dbf' size 1G autoextend on next 512M maxsize 5G,

'D:\oracle\oradata\QL\DATAFILE\datamg04.dbf' size 1G autoextend on next 512M maxsize 5G

extent management local;

host mkdir E:\oracle\oradata\QL\DATAFILE

create tablespace idxmg datafile

'E:\oracle\oradata\QL\DATAFILE\idxmg01.dbf' size 1G autoextend on next 512M maxsize 5G,

'E:\oracle\oradata\QL\DATAFILE\idxmg02.dbf' size 1G autoextend on next 512M maxsize 5G,

'E:\oracle\oradata\QL\DATAFILE\idxmg03.dbf' size 1G autoextend on next 512M maxsize 5G,

'E:\oracle\oradata\QL\DATAFILE\idxmg04.dbf' size 1G autoextend on next 512M maxsize 5G

extent management local;

host mkdir E:\oracle\oradata\QL\DATAFILE

create tablespace logmg datafile

'E:\oracle\oradata\QL\DATAFILE\logmg01.dbf' size 1G autoextend on next 512M maxsize 5G

extent management local;

-- Modify password validity login auditory

alter profile default limit failed_login_attempts unlimited password_life_time unlimited;

noaudit all;

delete from sys.aud$;

-- Create user QL with all permissions required

create user ql identified by ql default tablespace DATAMG temporary tablespace TEMP account unlock;

grant unlimited tablespace to ql;

grant connect to ql;

grant resource to ql;

grant query rewrite to ql;

-- Backup initial pfile

host mkdir f:\backup\startup

create pfile='f:\backup\startup\init_base.ora' from spfile;

host copy C:\oracle\admin\QL\pfile\init.ora.* f:\backup\startup\init_old.ora.*

host copy C:\oracle\product\11.2.0\dbhome_1\database\spfileINOVA.ora

f:\backup\startup\spfileINOVA_old.ora

-- Modify startup parameters

alter system set

optimizer_features_enable = "9.2.0" scope = both

optimizer_mode = "CHOOSE" scope = both

open_cursors=1000 scope = both;

nls_length_semantics='CHAR';

-- Backup modified pfile

create pfile='f:\backup\startup\init_new.ora' from spfile;

host copy C:\oracle\admin\QL\pfile\init.ora.* f:\backup\startup\init_custom.ora.*

host copy C:\oracle\product\11.2.0\dbhome_1\database\spfileINOVA.ora

f:\backup\startup\spfileINOVA_custom.ora

-- Create directory object for exports and imports

host mkdir f:\QL_DMP

create directory QL_EXP as 'f:\QL_DMP';

grant read,write on directory QL_EXP to system, sys, ql;

--Set database in Archive Log mode

Shutdown immediate;

Startup mount;

Alter database archivelog;

Alter database open;

set serveroutput on;

begin

dbms_output.put_line('*************************************************************');

dbms_output.put_line('*************************************************************');

dbms_output.put_line('*************** Oracle configuration finished ***************');

dbms_output.put_line('*************************************************************');

dbms_output.put_line('*************************************************************');

end;

/

exit;

Page 67: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 67 of 81

2.4. DATAMG, IDXMG and LOGMG tablespace creation

The purpose of the following sections is showing how to manually manage Oracle configuration.

THESE SECTIONS CAN BE SKIPPED IF THE SCRIPT ABOVE HAS BEEN RUN.

GO DIRECTLY TO SECTION 2.6.2. Importing a database.

This section explains how to create the required tablespaces using the database control website (Enterprise Manager).

A tablespace is a logical storage structure containing all application segments (tables, views, sequences, indexes…). Each tablespace has some datafiles linked, which are physical files in the disk. Tablespace definition varies on each project, but we should at least create following:

Data Tablespace Index Tablespace Logs Tablespace

Some time ago, to improve performance, data files related with these tablespaces where allocated in different disk units. Nowadays in RAC configurations with ASM, ASM itself manages and optimizes disk loads, so, if we do not have enough volumes in a rack, we can have files from different tablespaces in a single ASM disk.

We are now about to create the tablespaces required for our application: DATAMG (configure as default), IDXMG and LOGMG

Launch the Database Control Tool from the Start Menu Oracle – OraDb11g_home1:

Log in Oracle Enterprise Manager tool:

Page 68: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 68 of 81

This will open the EM main screen:

Page 69: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 69 of 81

From SERVER tab, choose Tablespaces in the Storage section.

This will open the Tablespace management screen:

Page 70: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 70 of 81

Click ‘Create’ and fill in the following information:

Tablespace name: type in the name of the tablespace to be created.

Extent Management: Locally managed

Type: Permanent. Only DATAMG is set as default permanent tablespace.

Status: Read/Write

Page 71: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 71 of 81

Now click ‘Add’ to add a new datafile:

Usually, and following Oracle recommendations for a standard installation, we will create four 1 GB Datafiles, increment 512Mb and with 5 GB maximum file size. We should study initial file size, its growing rate and let someone manage and supervise these files.

Click ‘Continue’ to create the data file with the selected parameters.

File name: DATAMG01.DBF

File Directory: C:\ORACLE\ORADATA\QL\DATAFILE

File Size: 1 GB

Automatically extend datafile when full (AUTOEXTEND): Select

Increment: 512 MB

Maximum File Size: Check ‘Value’ and select 5 GB

Repeat this operation for all datafiles: DATAMG01.DBF, DATAMG02.DBF, DATAMG03.DBF and DATAMG04.DBF.

We have to do the same for Tablespaces IDXMG, used for indexes (4 datafiles IDXMG01.DBF, IDXMG02.DBF, IDXMG03.DBF, and IDXMG04.DBF) and apply the same size policy.

We do also create Tablespace LOGMG, used for LOG storage (one datafile LOGMG01.DBF) and apply the same size policy.

Page 72: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 72 of 81

2.5. Create user QL

From tab SERVER, under SECURITY section, click ‘Users’.

Click button ‘Create’, and fill in the required information:

User name: ql Profile: Default Authentication: Password Password: ql Default Tablespace: DATAMG Temporary Tablespace: TEMP Status: Unlocked

Page 73: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 73 of 81

User ql/ql needs some special rights.

Go to ‘Roles’ tab.

Click ‘Edit List’ and add RESOURCE Role

Click ‘Ok’ when the role has been added.

To modify user privileges, go to ‘SYSTEM PRIVILEGES’ and click ‘Edit List’ to add UNLIMITED TABLESPACE privilege:

Page 74: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 74 of 81

Add the required privilege, and click ‘Ok’ when it has been correctly added:

Page 75: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 75 of 81

2.6. DATABASE FOR DMS

2.6.1. Setup Directory Objects

NOTICE: This step can be skipped if the database configuration script was run. Go directly to section 2.6.2. Importing a database.

The tools used in previous Oracle versions to import/export databases are now considered obsolete: they are available in the installation package, but they are no longer the recommended way to create exports and imports of database schemas. They are supposed to disappear from Oracle in some time.

To do these tasks, there are two new tools, named impdp and expdp (Import Data Pump / Export Data Pump). Benefits of these new tools are:

Recommended by Oracle

More reliability and better support than the older ones.

Exported files use up less space: files need 20% to 30% less disk space

Export / Import processes are faster

There are more configuration options, that, sometimes, might be useful

First of all, we need to prepare our Oracle installation to use them (to import as well as export). This consists of configuring a folder to create the exports/imports in Oracle.

Go to Enterprise Manager ‘Schema’ ‘Directory Objects’

Once there, a new directory must be created. Click ‘Create’:

Page 76: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 76 of 81

Assign a name to the directory and a path in the file system. If the selected path does not exist in the hard drive, it has to be created there too. The values proposed are:

Name: QL_EXP F:\QL_dmp\ in systems with several hard drive units or C:\QL_dmp\ for systems with one hard drive

only.

Clicking on ‘Test File System’ will check the availability of the selected path for the new directory. Oracle will ask the user name and password of the operating system (host computer) to access the path. A summary screen is shown after the test process:

Click ‘Return’ to go back to the directory creation screen, and click ‘Ok’ to confirm the directory creation:

Page 77: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 77 of 81

Now the directory required for export/import tasks has been successfully created:

2.6.2. Importing a database

Once Oracle 11g has been successfully installed and configured, a new database instance has to be created. To do this, a clean database will be imported, which will be used as a base to configure the application software.

It is important to know the following details of the exported database:

Application version of the exported database. Name of the exported database User who created the export

The required file must have been created using the ‘Expdp’ method. To import it into our database, the following script must be entered in a command prompt window:

impdp system/werfen DIRECTORY=QL_EXP DUMPFILE=inova_ql_2105.expdp

REMAP_SCHEMA=inova:ql

This will import the file ‘inova_ql_2105.expdp’ (data owned by user ql in the database where the data was exported), located in directory ‘c:\QL_dmp’ into user ‘ql’.

Page 78: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 78 of 81

2.6.3. Export a schema database

To export a database we already have configured or to back it up, we will make an export.

Is advisable that no users are connected to the database when we are about to create the export.

The following script must be typed in a command prompt window:

expdp system/werfen DIRECTORY=QL_EXP DUMPFILE=inova_ql_2105.expdp SCHEMAS=ql

This will export the schema of user ‘ql’ into the file ‘inova_ql_2105.expdp’ located in directory ‘c:\QL_dmp’.

2.6.4. Export file naming convention

To be able to identify correctly exportation files, it’s advised to use following naming for export files:

InstallName_user _Application_version.expdp

Where InstallName is a short name identifying the Hospital this database belongs to.

Application_version is the database and/or application version of the system where the export was made from.

User is the database user who makes the exports.

For example, if we export a database installed in Hospital St. Paul, Application software version 2.1.04, exported by user QL, the proponed name following this guideline would be: StPaul_ql _2104.expdp

Page 79: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 79 of 81

ANEX I. Database backup

Backup files are made using a backup command, rman, an Oracle tool, which we shall copy to F:\Backup (in case we have only one disk unit, copy it in c:\oracle\backup). Inside we will find the necessary scripts to make a backup (from the command line or batch file configured in the oracle database schedule)

Use of Rman command to backup:

Create a new scheduled task in Windows. To do so:

If you use a specific program on a regular basis, you can use the Task Scheduler wizard to create a task that opens the program for you automatically according to the schedule you choose. For example, if you use a financial program on a certain day each month, you can schedule a task that opens the program automatically to avoid the risk of forgetting to open it yourself.

1. Open Task Scheduler by clicking the Start button , clicking Control Panel, clicking System and Security, clicking Administrative Tools, and then double-clicking Task

Scheduler. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

2. Click the Action menu, and then click Create Basic Task.

3. Type a name for the task and an optional description, and then click Next.

4. Do one of the following:

To select a schedule based on the calendar, click Daily, Weekly, Monthly, or One time, click Next; specify the schedule you want to use, and then click Next.

To select a schedule based on common recurring events, click When the computer starts or When I log on, and then click Next.

To select a schedule based on specific events, click When a specific event is logged, click Next; specify the event log and other information using the drop-down lists, and then click Next.

5. To schedule a program to start automatically, click Start a program, and then click Next. Select the daily_copy.bat created following the instructions in this document.

6. Click Browse to find the program you want to start, and then click Next.

7. Click Finish.

Page 80: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Page 80 of 81

Create the following directory structure in the backup disk:

Copy the following text into a file named ‘daily_copy.bat’:

@echo off

f:

cd f:\backup

ECHO Daily RMAN backup starting >> f:\backup\Logs\daily_copy.log

date /t >> f:\backup\Logs\daily_copy.log

Echo Time>> f:\backup\Logs\daily_copy.log

time /T >> f:\backup\Logs\daily_copy.log

ECHO Run rman for database QL >> f:\backup\Logs\daily_copy.log

rman @f:\backup\Rman_daily\daily_copy.sql >> f:\backup\Logs\daily_copy.log

ECHO Copy spfile and init.ora from INOVA >> f:\backup\Logs\daily_copy.log

COPY c:\oracle\product\11.2.0\dbhome_1\database\SPFILE*.*

f:\backup\RMAN_daily\SPFILE*.* >> f:\backup\Logs\daily_copy.log

COPY c:\oracle\product\11.2.0\dbhome_1\srvm\admin\init*.* f:\backup\RMAN_daily\init*.*

>> f:\backup\Logs\daily_copy.log

The backup is configured to create a daily backup and delete all previous backups older than 7 days.

Copy the following text into a file named ‘daily_copy.sql’ in the ‘RMAN_daily’ folder:

connect target sys/werfen

run {

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;

# Defines how long we keep backups and archives

CONFIGURE CONTROLFILE AUTOBACKUP ON;

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'f:\backup\RMAN_Copy\%F';

# We define here the path to store backups

CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'f:\backup\RMAN_Copy\%d_%Y%M%D%U';

CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COMPRESSED BACKUPSET;

CONFIGURE MAXSETSIZE TO 8192M;

backup database

include current controlfile

plus archivelog;

CROSSCHECK BACKUP completed before 'sysdate - 7'; # Double checks cross references of

backup files

CROSSCHECK ARCHIVELOG ALL; # Double checks cross references of archivelog files

DELETE NOPROMPT OBSOLETE; # Deletes old backups and archives

DELETE NOPROMPT ARCHIVELOG UNTIL TIME "SYSDATE - 7";

delete noprompt expired backup;

delete noprompt expired archivelog all;

report schema;

}

exit;

Page 81: Oracle 11g Installation Manual - Inova Diagnostics Support/QUANTA Link/QL_Oracle_1… · Oracle 11g Installation Manual Page 3 of 81 1. Oracle 11g installation 1.1. Prerequisites

Oracle 11g Installation Manual

Inova Diagnostics, Inc. is a company of the Werfen Group QUANTA Link™ is property of Inova Diagnostics, Inc.

All brands named in this document

belong to their respective owners

QUANTA Link™ – Oracle 11g Installation Manual Version 1.1 © Inova Diagnostics, Inc. 2011 – All rights reserved

Page 81 of 81