Sei sulla pagina 1di 9

################################################################################ Xps Dual configuration ################################################################################ Dual configuration ################## The Xps daemon (xpsd) is running on Xps Host

The Oracle database is running on Oracle Host The Xps distribution must be installed on (or visible from) both Xps Host and Oracle Host Naming conventions ################## XPS_FO_4.00 : Xps version name MYXPS : Oracle database name geovation user: Linux user, owner of the geovation distribution database user : Linux user, owner of the database distribution (oracle user) Xps Host : host on which the Xps daemon (xpsd) is running Oracle Host: host on which the Oracle database is running /soft/geovation: /opt/oracle : /data01/oracle : /data02/oracle : File File File File system system system system to to to to install the geovation software install the oracle software store the system database files (ORACLE_DATA) store the projects data files (XPS_DATA)

################################################################################ Xps installation on Xps Host ############################ Logon as geovation user on Xps Host Get Xps distribution: XPS_FO_4.00.tar.gz % cp -p XPS_FO_4.00.tar.gz /soft/geovation % cd /soft/geovation % tar xvfzp XPS_FO_4.00.tar.gz Configure the Xps environment for the Xps client applications ############################################################# Logon as geovation user on Xps Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % cd $XPSROOT/data % cp -p config.xps.example config.xps % chmod 666 config.xps % vi config.xps Customize the following variables to fit your environment Xps*server : host name (or IP address) of the Xps Host Xps*base : Oracle database name (ORACLE_SID) [MYXPS] Xps*port : 4100 Ora*listener : Oracle listener port number [1521] Ora*server : host name (or IP address) of the Oracle Host Configure the Xps environment for the Xps server

################################################ Logon as geovation user on Xps Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % cd $XPSROOT/admin/data % cp -p xps.env.example xps.env.`hostname` % chmod 755 xps.env.`hostname` % vi xps.env.`hostname` Customize the following variables to fit your environment ORACLE_SID : MYXPS XPS_DATA : /data02/oracle/XPS_DATA SAME_HOST_ORA_XPSD : NO XPSPORT : 4100 ORA_LSN_PORT : 1521 ORACLE_BASE : /opt/oracle % cp -p xpsenv.remote.example xpsenv.remote.`hostname` % chmod 755 xpsenv.remote.`hostname` % vi xpsenv.remote.`hostname` Customize the following variables to fit your environment ORACLE_BASE : /opt/oracle ORACLE_HOME : $ORACLE_BASE/product/10.2.0/client_4 TNS_ADMIN : $ORACLE_HOME/network/admin TWO_TASK : $ORACLE_SID Configure the Oracle environment for the Xps database ##################################################### Logon as database user on Xps Host % setenv ORACLE_HOME /opt/oracle/product/10.2.0/client_4 % $ORACLE_HOME/bin/netca Local Net Service Name Configuration Add Servive Name: MYXPS Protocol: TCP Host name: Oracle Host Port number: 1521 No, do not test Net Service Name: MYXPS No Next Finish This add an entry in the $ORACLE_HOME/network/admin/tnsnames.ora file ################################################################################ Xps installation on Oracle Host ############################### Logon as geovation user on Oracle Host Get Xps distribution: XPS_FO_4.00.tar.gz % cp -p XPS_FO_4.00.tar.gz /soft/geovation % cd /soft/geovation

% tar xvfzp XPS_FO_4.00.tar.gz Configure the Xps environment for the Oracle server ################################################### Logon as geovation user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % cd $XPSROOT/admin/data % cp -p xps.env.oracle xps.env.`hostname` % chmod 755 xps.env.`hostname` % vi xps.env.`hostname` Customize the following variables to fit your environment ORACLE_SID : MYXPS XPS_DATA : /data02/oracle/XPS_DATA ORACLE_BASE : /opt/oracle ORACLE_HOME : $ORACLE_BASE/product/10.2.0/db_4 ORA_LSN_PORT : 1521 TNS_ADMIN : $ORACLE_BASE/admin/$ORACLE_SID XPSPORT : 4100 ################################################################################ Create ORACLE_DATA and XPS_DATA directories ########################################### Logon as root user on Oracle Host # cd /data01/oracle # mkdir -m 770 ORACLE_DATA # chown -R oracle:dba ORACLE_DATA # # # # cd /data02/oracle mkdir -m 770 XPS_DATA mkdir -m 770 XPS_DATA/MYXPS chown -R oracle:dba XPS_DATA

Create the Xps database ####################### NOTE #### The Create_Database_ca.csh script: * Create the database using dbca in silent mode * Use the template file $XPSROOT/admin/template/TemplateXpsFo.dbt * Create the files: * listener.ora * tnsnames.ora * oracle.env in the directory /opt/oracle/admin/MYXPS * Grant the execute privilege on dbms_lock to the user system END OF NOTE ########### Logon as database user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/Create_Database_ca.csh

Enter the database name: MYXPS Enter the database files directory for SYSTEM and PROJ tablespaces: /data01/oracle/ORACLE_DATA Configure and re-start the listener - Re-start the database ########################################################### NOTE #### The default listener port is set to 1521. In this case: * The listener name is set to LISTENER * Use: $XPSROOT/admin/bin/startlsn MYXPS LISTENER and $XPSROOT/admin/bin/stoplsn MYXPS LISTENER * The startlsn and stoplsn scripts unset the TNS_ADMIN variable and looks for the listener.ora file in the /opt/oracle/product/10.2.0/db_4/network/admin directory If the listener port is set to another number (typically 1551): * The listener name is set to LISTENER_MYXPS * Use: $XPSROOT/admin/bin/startlsn MYXPS LISTENER_MYXPS and $XPSROOT/admin/bin/stoplsn MYXPS LISTENER_MYXPS * The TNS_ADMIN variable is set to /opt/oracle/admin/MYXPS * The startlsn and stoplsn scripts looks for the listener.ora file in the $TNS_ADMIN directory END OF NOTE ########### If the listener port is set to 1521, add the contents of the file: /opt/oracle/admin/MYXPS/listener.ora to the file: /opt/oracle/product/10.2.0/db_4/network/admin/listener.ora % % % % $XPSROOT/admin/bin/stoplsn MYXPS LISTENER | LISTENER_MYXPS $XPSROOT/admin/bin/stopdb MYXPS $XPSROOT/admin/bin/startlsn MYXPS LISTENER | LISTENER_MYXPS $XPSROOT/admin/bin/startdb MYXPS

Initialize the Xps database ########################### NOTE #### The database script: * Create Xps roles and users and grants roles to these users * Install the "multiple site" option * Install the Xps dictionary END OF NOTE ########### Logon as geovation user on Xps Host Then Logon as database user on Xps Host [using "su" and not "su -"] % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % echo $LD_LIBRARY_PATH if undefined enter setenv LD_LIBRARY_PATH /usr/local/lib:/usr/X11R6/lib:

/opt/oracle/product/10.2.0/db_4 % $XPSROOT/admin/bin/database To the question : Keep default XPSMANAGER password (y/n) Enter y to use the default XPS manager passworld n to define a particular password for XPS manager account Choose option C Enter Oracle system name : system Oracle system password : manager Choose option I Choose option X Update the Oracle Host hostname ############################### Logon as geovation user on Xps Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/xpsadm -update_server Enter: S_local Enter: 7 (ORACLE SERVER HOSTNAME) Enter the host name (or IP address) of the Oracle host Install the After Suspend Trigger ################################# Logon as database user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/XpsAfterSuspendTrigger --password <XPSMANAGER_PASSWORD> Start the After Suspend Trigger listener ######################################## Logon as geovation user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/startlsn MYXPS LISTENERXPSMYXPS ################################################################################ Configure the Oracle environment for the Auxiliary database ########################################################### Logon as database user on Xps Host % setenv ORACLE_HOME /opt/oracle/product/10.2.0/client_4 % $ORACLE_HOME/bin/netca Local Net Service Name Configuration Add Servive Name: WMYXPS Protocol: TCP Host name: Oracle Host Port number: 1521 No, do not test Net Service Name: WMYXPS No Next Finish

This add an entry in the $ORACLE_HOME/network/admin/tnsnames.ora file Create the Auxiliary database ############################# Logon as database user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/Create_Database_ca.csh Enter the database name: WMYXPS Enter the database files directory for SYSTEM and PROJ tablespaces: /data01/oracle/ORACLE_DATA To remove /data01/oracle/ORACLE_DATA/WMYXPS directory previously created is requested. Initialize the Auxiliary database ################################# Logon as geovation user on Xps Host Then Logon as database user on Xps Host [using "su" and not "su -"] % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % echo $LD_LIBRARY_PATH if undefined enter setenv LD_LIBRARY_PATH /usr/local/lib:/usr/X11R6/lib: /opt/oracle/product/10.2.0/db_4 % $XPSROOT/admin/bin/wdatabase To the question : Keep default XPSMANAGER password (y/n) Enter y to use the default XPS manager passworld n to define a particular password for XPS manager account Choose option C Enter Oracle system name : system Oracle system password : manager Choose option I Choose option X Update the Oracle Host hostname ############################### Logon as geovation user on Xps Host % $XPSROOT/admin/bin/wxpsadm -update_server Enter: S_local Enter: 7 (ORACLE SERVER HOSTNAME) Enter the host name (or IP address) of the Oracle host Stop the Auxiliary database ############################### Logon as geovation user on Oracle Host Then Logon as database user on Oracle Host [using "su" and not "su -"] % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/stopdb WMYXPS

Check XPS_DATA repository ########################## Logon as system manager on Oracle Host % cd /data02/oracle/XPS_DATA If repository XPSMY is not created then % mkdir XPSMY % chown oracle XPSMY % chgrp dba XPSMY % chmod 770 XPSMY ################################################################################ Start xpsd daemon ################# Logon as geovation user on Xps Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/xpsstart Create a Xps project #################### Logon as geovation user on Xps Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/xpsadm -create TEST Do you want to use a pattern project ? (Y, N) : N Check AFTER SUSPEND trigger ########################### Logon as database user on Oracle Host % source /usr/local/bin/coraenv ORACLE_SID = [oracle] ? MYXPS % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/stopdb MYXPS % $XPSROOT/admin/bin/startdb MYXPS % setenv gvr_root dummy % source $XPSROOT/admin/bin/xpsenvset % sqlplus / as sysdba SQL> select name from v$datafile where name like '%D1%'; NAME ---------------------------------------------------------------------------/data02/oracle/XPS_DATA/MYXPS/D1_TEST_1461028501_0.dbf SQL> exec addfile('/soft/geovation/XPS_FO_4.00/admin/bin/XpsAddFileAfterSusp end XPSMANAGER_PASSWORD D1_TEST_1461028501') PL/SQL procedure successfully completed. SQL> select name from v$datafile where name like '%D1%';

NAME ---------------------------------------------------------------------------/data02/oracle/XPS_DATA/MYXPS/D1_TEST_1461028501_0.dbf /data02/oracle/XPS_DATA/MYXPS/D1_TEST_1461028501_1.dbf SQL> !ls -latr /data02/oracle/XPS_DATA/MYXPS/D1_TEST_1461028501* /data02/oracle/XPS_DATA/MYXPS/D1_TEST_1461028501_0.dbf /data02/oracle/XPS_DATA/MYXPS/D1_TEST_1461028501_1.dbf SQL> quit ################################################################################ Start Xps ######### Logon as oracle user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/startlsn MYXPS LISTENER | LISTENER_MYXPS % $XPSROOT/admin/bin/startdb MYXPS Logon as geovation user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/startlsn MYXPS LISTENERXPSMYXPS Logon as geovation user on Xps Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/xpsstart ################################################################################ Stop Xps ######## Logon as geovation user on Xps Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/xpsstop Logon as oracle user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/stopdb MYXPS % $XPSROOT/admin/bin/stoplsn MYXPS LISTENER | LISTENER_MYXPS Logon as geovation user on Oracle Host % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % $XPSROOT/admin/bin/stoplsn MYXPS LISTENERXPSMYXPS ################################################################################ Listeners status ################ Logon as geovation or oracle user on Oracle Host

% source /usr/local/bin/coraenv ORACLE_SID = [oracle] ? MYXPS % setenv XPSROOT /soft/geovation/XPS_FO_4.00 % source $XPSROOT/admin/bin/xpsenvset % lsnrctl status LISTENER | LISTENER_MYXPS % lsnrctl status LISTENERXPSMYXPS

################################################################################ IT managements ############### For an automatic start of the database at machine boot or to shutdown the databa se when the machine is stopped, the following scripts must be customized . $XPSROOT/admin/bin/applisrv.template $XPSROOT/admin/bin/applidb.template $XPSROOT/admin/bin/setuptemplate.csh

Potrebbero piacerti anche