Agile Product Lifecycle Management Database Install Guide Release 9.3.3 E39281-02 |
|
![]() Previous |
![]() Next |
You can create an Oracle Real Application Clusters (RAC) database instance for Agile PLM using the Oracle Database Configuration Assistant (DBCA), and then create an Agile PLM schema in that database instance.
To create an Oracle RAC database instance:
Start the Oracle Database Configuration Assistant. (From the Start menu, navigate to All Programs > Oracle - <Oracle home> > Configuration and Migration Tools, and choose Database Configuration Assistant). The Database Configuration Assistant: Welcome dialog appears.
Select the Oracle Real Application Clusters database option. Click Next.
In the Operations dialog, select Create a Database. Click Next.
In the Node Selection dialog, select all Oracle RAC nodes. Click Next.
In the Database Templates dialog, select Custom Database. Click Next.
In the Database Identification dialog, enter values for the Global Database Name and SID Prefix. For example, RAC.WORLD and RAC. Click Next.
In the Management Options dialog, click Next to accept the default selections. For more information on Oracle Enterprise Manager, see related documentation on the Oracle Technology Network (OTN) website http://www.oracle.com/technetwork/documentation/agile-085940.html
.
In the Database Credentials dialog, choose the Use the Same Password for All Accounts option. You can change the passwords later. Enter a password and confirm it. Click Next.
In the Storage Options dialog, select your preferred storage option. The storage option that you have on your system is automatically detected and appears selected. Click Next. Based on your selection, the Database Configuration Assistant will present further options. Follow on-screen directions to configure storage details.
Next, select the database components you require. In the Database Content dialog, under Database Components, select the following:
Oracle Data Mining
Oracle Text
Enterprise Manager Repository (Optional)
Click Next.
In the Database Services dialog, to accept the current configuration details, click Next.
Note: At any stage, to change your selections, click Back and navigate to the appropriate dialog. |
In the Initialization Parameters dialog, under Memory, select Custom. Provide desired SGA and PGA sizes or accept the default. Click Next.
In the Database Storage dialog, select the Tablespaces node. Create the following tablespaces in the instance.
AGILE_DATA1
AGILE_DATA2
AGILE_DATA3
AGILE_DATA4
AGILE_DATA5
AGILE_INDX1
AGILE_INDX2
AGILE_INDX3
AGILE_INDX4
AGILE_INDX5
Note: Data files should be sized at least 1GB each with autoextend enabled, and must be named as listed above. You can store the data file at any location on your hard drive. |
Review the storage parameters and click Next to accept.
In the Creation Options dialog, Create a Database is the default selection. Click Finish to accept database creation settings.
In the Summary screen, click OK to start the database creation process.
Once the database creation is complete, a dialog appears with details of the newly created database instance. Make a note of the information for your records. Within this dialog, click Password Management and do the following:
a. Make sure that the CTXSYS account is not locked. If it is locked, log in to Oracle as 'sys' or 'system' and execute the SQL command:
alter user ctxsys account unlock;
b. Set the following account passwords:
system / manager
ctxsys / ctxsys
sys / oracle
You can change the passwords after schema creation is complete.
Click Exit. The Oracle RAC database instance creation is now complete.
The Oracle database stores data in virtual containers known as schemas. The Agile Database Configuration Utility creates the database, user account, and schema used by Agile. Additional schemas are not necessary; however, you can create additional Agile schemas with different user names if necessary.
Note: You should not use the Oracle Security Manager to create users. |
To create a schema in the Oracle RAC Database Instance:
On UNIX:
Run agile9database.sh and choose the Generate Maintenance Scripts Only option to generate the Agile PLM 9.3.3 schema maintenance scripts.
Run recreateagile.sh to create the schema.
On Windows:
Run the database installer, described in "Installing the Agile Database on Windows".
In the installer screen where you specify the Oracle SID, select the Generate Database Scripts Only check box. See Step 3 under "Creating the Agile Database on Windows"
Follow on-screen instructions to generate scripts.
Run recreateagile.bat to create the schema.
There are three requirements around the package SYS.DBMS_SHARED_POOL for an Agile database. If the requirements are not met, and the package DBMS_SHARED_POOL does not exist in the SYS schema, you may receive a DBMS shared pool error or AGILE9_UTILS error.
To ensure that DBMS_SHARED_POOL requirements are met:
Log in to the database as 'sys' user.
Run the following command:
SQL> describe SYS.DBMS_SHARED_POOL
If you receive an error indicating that the object SYS.DBMS_SHARED_POOL does not exist, run the SQL script dbmspool.sql located at ORACLE_HOME/RDBMS/admin.
As 'sys' user, grant execute privileges to the agile schema user.
SQL> grant execute on SYS.DBMS_SHARED_POOL to AGILE;
Where AGILE is the agile schema user.
Connect to the database as the agile schema user, and run the following command:
SQL> create synonym DBMS_SHARED_POOL for SYS.DBMS.SHARED_POOL;
When the process completes, run the following command to compile the AGILE9_UTILS package:
SQL> alter package agile9_utils compile body;
The package should compile without errors. If the package compiles with errors, run the following command and correct the same:
SQL> show errors
This section describes mandatory and optional postinstallation tasks to be completed, such as configuring Oracle network connectivity and setting up additional Oracle functionality.
If this is the first time Oracle has been installed on the current computer, you need to add and configure a new database listener.
Note: If you are creating a new Agile database on the same computer, you only need to add the new database to the existing listener. |
To add and configure a new Listener:
Start Oracle Net Manager:
On Windows, choose Start > All Programs > <ORACLE_HOME> > Configuration and Migration Tools > Net Manager.
On UNIX, run the command $ netmgr &.
In the Oracle Net Manager window, double-click the Local folder and select the Listeners folder.
Click Create in the toolbar to add a listener.
The Choose Listener Name dialog box appears.
Click OK.
In the Listening Locations drop-down list, select Database Services.
Click Add Database.
In the dialog box that appears, make the following changes:
Global Database Name: agile9
Oracle home Directory: <ORACLE_HOME>
SID: agile9
Note: If you used a different global database name or different home directory during the database installation, change the information as appropriate. |
Choose File > Save Network Configuration to save your changes.
Close Oracle Net Manager.
To restart the database listener, open a Command Prompt window and type lsnrctl reload.
In the Oracle Net Manager window, double-click the Local folder and select the Service Naming folder.
Click Create in the toolbar to add a service name.
The Net Service Name Wizard starts.
In the Net Service Name field, type the name of the computer where the Oracle database is located (usually the current computer). Click Next.
You are prompted to select a network protocol. Select TCP/IP (Internet Protocol) and click Next.
Type the name of the computer where Oracle is located in the Hostname field (the same name you typed in step 3). Accept 1521 as the default port number. Click Next.
Select Oracle8i or later as the service name, and type agile9 in the field. Click Next.
Click Test to test the service.
The test initially fails because the default uses the incorrect login.
Click Change Login to reset the username and password.
Type agile in the Username field and tartan in the Password field. Click OK.
Click Test. You should now see a message indicating that the test was successful.
Click Close.
Click Finish to exit the Net Service Name Wizard.
From the Net Manager menu, choose File > Save Network Configuration to save the service name.
To set up the Oracle database to automatically shut down and start when the host computer starts and shuts down:
Log in the system as root.
Create a file named "dbora" in the /etc/init.d directory:
# cat /home/oracle/agile9330db/dbora > /etc/init.d/dbora [Enter]
Link to the dbora file:
# ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora [Enter]
# ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora [Enter]
This section describes how to set up Oracle Net Manager and Oracle Enterprise Manager for administrative purposes.
If you use the TNS_ADMIN environment variable to specify the location of Oracle Network Services configuration files (such as tnsnames.ora), move the files located in the $ORACLE_HOME/network/admin directory to the directory specified by TNS_ADMIN.
To set up Oracle Net Manager on UNIX:
Log in as root and change the ownership of the /var/opt/oracle directory:
# chown -R oracle:dba /var/opt/oracle [Enter]
Switch to the Oracle user, and change to the $ORACLE_HOME/network/admin directory:
# su - oracle [Enter]
$ cd $ORACLE_HOME/network/admin [Enter]
Move all the files to the directory defined by environment parameter TNS_ADMIN, which is /var/opt/oracle:
$ mv * /var/opt/oracle [Enter]
You can use Database Control to perform many database administration and management tasks including SQL performance tuning.
To configure the Oracle network connection:
On Windows: Choose Start > AllPrograms > Oracle - <ORACLE_HOME> > Configuration and Migration Tools > Database Configuration Assistant.
On UNIX: Run the command $ dbca &.
The Welcome screen appears.
Click Next.
Choose Configure Database Options on the Operations page. Click Next.
The Database page appears
Select the agile9 database you just created. Click Next.
The Management Options page appears.
Check Configure the Database with Enterprise Manager. Click Next.
The Database Content page appears.
Accept the defaults. Click Next.
The Database Credentials page appears.
Enter a password for the DBSNMP and SYSMAN users. Click Next.
The Connection Mode page appears.
Select Dedicated Server Mode. Click Finish.
Click OK for confirmation. Database configuration begins.
When configuration completes, the Database Control URL displays. Make a note of this URL because it is how you log in to the database.
Click OK to close the Database Configuration Assistant.
Open a web browser and enter the Database Control URL.
Type the User Name and Password of the Agile database. Click Login.
Click I agree to accept the license agreement and display the Database Control page.
You have now finished installing and configuring the Agile PLM Database.
Based on your installation requirement, you have the option to choose either BASIC lexer or WORLD lexer. The default lexer is BASIC. To overcome FTS limitations related to character searches, customers using the Japanese lexer should change from BASIC to WORLD lexer.
To switch lexer preference:
Stop the application server.
Run the database installer with the Generate maintenance scripts option selected.
Edit recreateagile.bat to switch the lexer.
Change: agile9_fts_prefs_lexer_basic.sql
To: agile9_fts_prefs_lexer_world.sql
Run recreateagile.bat.
Import customer data.
Restart the application server.