Thursday 24 November 2016

Useful queries for DBA's !!!!

======================
query to check temp usage
======================

SELECT A.tablespace_name tablespace, D.mb_total,
SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used,
D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free
FROM v$sort_segment A,
(
SELECT B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total
FROM v$tablespace B, v$tempfile C
WHERE B.ts#= C.ts#
GROUP BY B.name, C.block_size
) D
WHERE A.tablespace_name = D.name
GROUP by A.tablespace_name, D.mb_total;


**********************************************
CHECKING FREE SPACE IN DATA FILES
***********************************************


SELECT
   a.tablespace_name,
   a.file_name,
   (a.bytes/1024/1024) allocated_bytes,
   b.free_bytes
FROM
   dba_data_files a,
   (SELECT file_id, (SUM(bytes)/1024/1024) free_bytes
    FROM dba_free_space b GROUP BY file_id) b
WHERE
   a.file_id=b.file_id
ORDER BY
   a.tablespace_name;


-----------------------------
Number of Sessions::
-------------------------

select SESSIONS_MAX,
SESSIONS_WARNING,
SESSIONS_CURRENT,
SESSIONS_HIGHWATER,
USERS_MAX
from v$license;




-----------------------------
Number of Connected users:
-----------------------------

select count(distinct d.user_name) from apps.fnd_logins a,
v$session b, v$process c, apps.fnd_user d
where b.paddr = c.addr
and a.pid=c.pid
and a.spid = b.process
and d.user_id = a.user_id
and (d.user_name = 'USER_NAME' OR 1=1);




************************************************
tableevel locks/locks specific to particular table
**********************************************************

SET ECHO off
set linesize 200 feedback off heading on
column sid format 9999
column res heading 'Resource Type' format a20
column id1 format 9999999
column id2 format 9999999
column lmode heading 'Lock Held' format a14
column request heading 'Lock Req.' format a14
column serial# format 99999
column username  format a10
column terminal heading Term format a6
column tab format a30
column owner format a8
select  l.sid,s.serial#,s.username,s.terminal,
        decode(l.type,'RW','RW - Row Wait Enqueue',
                    'TM','TM - DML Enqueue',
                    'TX','TX - Trans Enqueue',
                    'UL','UL - User',l.type||'System') res,
        substr(t.name,1,30) tab,u.name owner,
        l.id1,l.id2,
        decode(l.lmode,1,'No Lock',
                2,'Row Share',
                3,'Row Exclusive',
                4,'Share',
                5,'Shr Row Excl',
                6,'Exclusive',null) lmode,
        decode(l.request,1,'No Lock',
                2,'Row Share',
                3,'Row Excl',
                4,'Share',
                5,'Shr Row Excl',
                6,'Exclusive',null) request
from v$lock l, v$session s,
sys.user$ u,sys.obj$ t
where l.sid = s.sid
and s.type != 'BACKGROUND'
and t.obj# = l.id1
and u.user# = t.owner#
and t.name like '%PO%'
/
set feedback on




==================================
Need all tables details on which the user have access
==================================

set pages 0
 set linesize 200
 col GRANTOR for a20
 col GRANTEE for a20
 spool GSDW_NRPS_SCH.txt
 select * from dba_tab_privs where GRANTEE ='GSDW_NRPS_SCH';



==================================================
 To get lock details with holders and waiters
=========================================

SELECT lpad('-->',DECODE(a.request,0,0,5),' ')||a.sid sess
, a.id1
, a.id2
, a.lmode
, a.request req, a.type
, b.event
, b.seconds_in_wait
FROM V$LOCK a, v$session_wait b
WHERE a.id1 IN (SELECT id1 FROM V$LOCK WHERE lmode = 0)
and a.sid=b.sid
ORDER BY id1,request
/





=========================================
 To get why a session is waiting
=========================================

col event for a25 word_wrap;
select a.event event, a.seconds_in_wait, s.status
from v$session_wait a, v$session s
where a.sid=s.sid
and a.sid=&1
/



========================================================================
To get row information of a session, if the information is changing that means the session is actually active else it means inactive
========================================================================


column name format a30 word_wrapped
column vlu format 999,999,999,999
select b.name, a.value vlu
from v$sesstat a, v$statname b
where a.statistic# = b.statistic#
and sid =&1
and a.value != 0
and b.name like '%row%'
/


===============
To check locks
===============
select s1.username || '@' || s1.machine || ' ( SID=' || s1.sid || ' )  is blocking '
|| s2.username || '@' || s2.machine || ' ( SID=' || s2.sid || ' ) ' AS blocking_status
from v$lock l1, v$session s1, v$lock l2, v$session s2
where s1.sid=l1.sid and s2.sid=l2.sid
and l1.BLOCK=1 and l2.request > 0
and l1.id1 = l2.id1
and l2.id2 = l2.id2 ;



================
What's in undo
================

 select tablespace_name,status,count(*) as HOW_MANY from dba_undo_extents group by tablespace_name,status;



=====================================================
Show segments that are approaching max_extents
=====================================================

col segment_name format a40
select owner,segment_type,segment_name,max_extents - extents as "spare",max_extents from dba_segments where owner not in ('SYS','SYSTEM')
and (max_extents - extents) < 10
order by 4
/

To change maxextents
alter <segment_type> <segment_name> storage(maxextents 150);



=====================================
List all objects in a tablespace
=====================================

set pages 999
col owner format a15
col segment_name format a40
col segment_type format a20
select owner,segment_name,segment_type from dba_segments where lower(tablespace_name) like lower('%&tablespace%')
order by owner, segment_name
/

===========================================
Show the files that comprise a tablespace
==================================

set lines 100
col file_name format a70
select file_name,ceil(bytes / 1024 / 1024) "size MB" from dba_data_files where tablespace_name like '&TSNAME'
/

===============================
User quotas on all tablespaces
================================

col quota format a10
select username,tablespace_name,decode(max_bytes, -1, 'unlimited',ceil(max_bytes/ 1024/1024)||'M') "QUOTA" from dba_ts_quotas
where tablespace_name not in('TEMP')
/


=====================================
Show all tablespaces used by a user
=======================================

select tablespace_name,ceil(sum(bytes)/1024/ 1024) "MB" from dba_extents where owner like '&user_id' group by tablespace_name
order by tablespace_name
/
==================================
Display the rollback segments
=========================================

 select segment_name,status from dba_rollback_segs
/

========================
list open cursors
=========================

set lines 100 pages 999
select count(hash_value) cursors,sid,user_name from v$open_cursorgroup by sid,user_nameorder by cursors
/



==================================
Display any long operations
=========================================

set lines 100 pages 999
col username format a15
col message format a40
col remaining format 9999
select username,to_char(start_time, 'hh24:mi:ss dd/mm/yy') started,time_remaining remaining,message from v$session_longops
where time_remaining=0 order by time_remaining desc
/



========================================
Show user info including os pid        
=========================================

col "SID/SERIAL" format a10
col username format a15
col osuser format a15
col program format a40
select s.sid ||','|| s.serial# "SID/SERIAL",s.username,s.osuser,p.spid "OS PID",s.program from v$session s,v$process p
Where s.paddr = p.addr order by to_number(p.spid)
/

=========================================
Sessions sorted by logon time
==============================================

set lines 100 pages 999
col ID format a15
col osuser format a15
col login_time format a14
select username,osuser,sid ||','|| serial# "ID",status,to_char(logon_time, 'hh24:mi dd/mm/yy') login_time,last_call_et from v$session
where username is not null order by login_time
/


===========================================
Time since last user activity
==============================================

set lines 100 pages 999
select username,floor(last_call_et / 60) "Minutes",status from v$session where username is not null order by last_call_et
/
=============
Find a role
==================
 select * from dba_roles where role like '&role'
/
============================
Display pool usage
===========================
 select name,sum(bytes) from v$sgastat where poo like 'shared pool' group by name
/
==================================
PGA usage by username
===================================

 select st.sid "SID",sn.name "TYPE",ceil(st.value / 1024 / 1024) "MB" from v$sesstat st,v$statname sn
where st.statistic#=sn.statistic#
and sid in(select sid from v$session where username like '&user') and upper(sn.name) like '%PGA%' order by st.sid,st.value desc
/




============================================
To find out the Temp Tablespace Usage:
================================================
set lines 152
col FreeSpaceGB format 999.999
col UsedSpaceGB format 999.999
col TotalSpaceGB format 999.999
col host_name format a30
col tablespace_name format a30
select tablespace_name,
(free_blocks*8)/1024/1024 FreeSpaceGB,
(used_blocks*8)/1024/1024 UsedSpaceGB, (total_blocks*8)/1024/1024 TotalSpaceGB,
i.instance_name,i.host_name
from gv$sort_segment ss,gv$instance i where ss.tablespace_name in (select tablespace_name from dba_tablespaces where contents='TEMPORARY') and
i.inst_id=ss.inst_id;





Checkpoint VS switch logfile


Alter system checkpoint;

“alter system checkpoint;” flushes dirty buffers to data files and records SCN in data file header and control file. It changes the status of current redo log file group from active to inactive so that we could drop that redo log group.



Alter system switch logfile;

“alter system switch logfile;” causes a checkpoint later and then switches to next logfile and returns control to user right away.It’s faster than “alter system archive log current;”, which will wait to archive current log file out until the checkpoint completes.


LOG SWITCH triggers checkpoint
CHECKPOINT does not trigger LOG SWITCH

Wednesday 23 November 2016

How to check locks on ICM !!!


Simple output query
+++++++++++++++

SELECT v$access.sid, v$session.serial#
FROM v$session,v$access
WHERE v$access.sid = v$session.sid and v$access.object = 'FND_CP_FNDSM'
GROUP BY v$access.sid, v$session.serial#;
  2    3    4
       SID    SERIAL#
---------- ----------
      2208        442


Script to find out database growth !!!

set pages 2000
set linesize 2000
select to_char(CREATION_TIME,'RRRR') year, to_char(CREATION_TIME,'MM') month, round(sum(bytes)/1024/1024/1024) GB from   v$datafile
group by  to_char(CREATION_TIME,'RRRR'),   to_char(CREATION_TIME,'MM')

order by   1, 2;



Find out ICM logfile location !!!

SELECT 'ICM_LOG_NAME=' || fcp.logfile_name FROM fnd_concurrent_processes fcp, fnd_concurrent_queues fcq WHERE fcp.concurrent_queue_id = fcq.concurrent_queue_id AND fcp.queue_application_id = fcq.application_id AND fcq.manager_type = '0'
AND fcp.process_status_code = 'A';

Archivelog generation on a Hour/daily basis:

Archivelog generation on a Hour/daily basis:
set pages 1000
select trunc(COMPLETION_TIME,'DD') Day, thread#, round(sum(BLOCKS*BLOCK_SIZE)/1048576) MB,count(*) Archives_Generated from v$archived_log
group by trunc(COMPLETION_TIME,'DD'),thread# order by 1;

Archive log generation on an hourly basis:

set pages 1000
select trunc(COMPLETION_TIME,'HH') Hour,thread# , round(sum(BLOCKS*BLOCK_SIZE)/1048576) MB,count(*) Archives from v$archived_log
group by trunc(COMPLETION_TIME,'HH'),thread#  order by 1 ;

Recover Database Until

If you need to recover your database to a point in time by scn, sequence or time, you can use the following query to see the relation between time-scn-sequence, after restoring your database from a proper backup.

SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MM-YY HH24:MI:SS';

SQL> select NAME, SEQUENCE#, THREAD#, FIRST_TIME, FIRST_CHANGE#, NEXT_TIME, NEXT_CHANGE# from v$archived_log where SEQUENCE# > 166;

Sample Output:

NAME SEQUENCE# THREAD# FIRST_TIME FIRST_CHANGE# NEXT_TIME NEXT_CHANGE#
------------------------------ --------- ------- ---------- ----------------- --------- ----------------
/arch/1_166_593039.arc 166 1 10-11-08 06:31:15 34516912 10-11-08 06:31:36 34521645
/arch/1_167_593039.arc 167 1 10-11-08 06:31:36 34521645 10-11-08 06:31:56 34527024
/arch/1_168_593039.arc 168 110-11-08 06:31:56 34527024 10-11-08 06:32:10 34532094
/arch/1_169_593039.arc 169 1 10-11-08 06:32:10 34532094 10-11-08 06:32:35 34537223
...

You can modify the where clause depending on your needs. SEQUENCE# gives the sequence number of the archive log. FIRST_CHANGE# and NEXT_CHANGE# specify the first and last System Change Number (SCN); FIRST_TIME and NEXT_TIME specify the starting and ending time of that archivelog. regarding to these information you can decide any of the following recover operations:

RMAN> recover database until sequence 162280;
RMAN> recover database until SCN 34527024;
RMAN> recover database until time '10-11-08 06:31:15'

,or if you want to manually control recover process with specifying archive logs one by one, you can use "until cancel" clause in SQL. This recovery process continues until you cancel. If your archive logs are not on their default path you can specify the full path of the archive logs in this recovery process.

SQL > recover database until cancel;

Changing SYS Password in Dataguard Environment

If you change SYS password with ALTER USER SYS IDENTIFIED BY NEWPASSWORD on the primary database of a dataguard environment, primary side stops to transfer archivelogs to standby and you will see an error on primary database alertlog file like:

------------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
------------------------------------------------------------------

This is because "If you issue the ALTER USER statement to change the password for SYS, both the password stored in the data dictionary and the password stored in the password file are updated." So your password file is updated in primary side but not in standby side.

In this situation set your password file in standby server with:
orapwd file=$ORACLE_HOME/dbs/orapwSID password=newpassword; (don't forget to move/delete old one)

Conclusion: If you're going to change your sys password in a dataguard environment you must set the password files with new password in both primary and standby servers.

How to Query RMAN Session Status

Here is a query to V$SESSION_LONGOPS view that shows the status of RMAN sessions. It also calculates the percentage of the job that has been completed.

SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK, ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE" FROM V$SESSION_LONGOPS WHERE OPNAME LIKE 'RMAN%' AND OPNAME NOT LIKE '%aggregate%' AND TOTALWORK != 0 AND SOFAR <> TOTALWORK;
Sample Output:
SID SERIAL# CONTEXT SOFAR TOTALWORK %_COMPLETE
--- ---------- ---------- ------ ---------- ----------
18 11 1 1995623 3083904 64.71
15 11 1 1863491 3599872 51.77
14 11 1 1936968 3339904 57.99
16 11 1 1843544 3083904 59.78

Wednesday 9 November 2016

Setting up Load balancer in OTM 6.3.x version

Below changes need to perform in OTM Web servers only.

1. Back up the existing server.xml file:
$ cd <otm_install_dir>/tomcat/config
$ cp server.xml server.xml_date



2. Edit the server.xml file and locate the following section:
<Connector address="localhost" port="8009" protocol="HTTP/1.1"
connectionTimeout="3600000"
proxyName="www.abc.com" proxyPort="4443"
URIEncoding="UTF-8" />



3. Change it to add the line in bold:
<Connector address="localhost" port="8009" protocol="HTTP/1.1"
connectionTimeout="3600000"
scheme="https" secure="true"
proxyName="www.abc.com" proxyPort="4443"
URIEncoding="UTF-8" />



4. restart the Web server instance

OTM LOG FILES

OTM web server log file Location

cd $OTM_HOME/logs/tomcat
-rw-r--r--. 1 oracle dba    0 Nov  9 10:55 startup.out
-rw-r--r--. 1 oracle dba  51K Nov  9 10:54 shutdown.log.0
-rw-r--r--. 1 oracle dba 2.3M Nov  9 11:49 console.log.0


OTM App server log file location
cd $OTM_HOME/logs/weblogic

-rw-r--r--. 1 oracle dba 865K Nov  9 10:56 weblogic.log
-rw-r--r--. 1 oracle dba 2.2M Nov  9 11:30 console.log.0



OTM Database users


Archive
This user owns the DMP tables used for archiving the data. May not be deleted.


GLOGDBA
This user has access to functions and packages owned by glogowner and reportowner, but does not itself own any tables, views, functions, or packages. It must call the vpd.set_user stored procedure to set user context to view data. May not be deleted.


GLOGOWNER
This user owns OTM tables, views, functions and packages, can create or alter data structures within the database and can manipulate data. May not be deleted.

GLOGLOAD
Used for loading data into glogowner and reportowner schemas. May not be deleted.

DIR_XML_USER
This user should be use for Direct XML integration. This user has the minimum privileges to successfully insert XML transmissions into database objects when using the Direct XML integration feature.


REPORTOWNER
This user owns the tables, views, functions and packages required for reporting, and can read the data. May not be deleted.


GLOBALREPORTUSER
This user has read access to all the data in OTM. It is mainly used for reporting. May not be deleted.


HDOWNER
This user owns FTI tables, views, functions and packages, can create or alter data structures within the database and can manipulate data. May not be deleted.



OTM Configuration Files

File Path/File name
<OTM_HOME>/glog/config/glog.properties


Description
The main configuration/properties file for the OTM, GTM and FTI applications. This is the only properties file that should be changed.


Contains
Various URLs for the application server and third party servers
Various Ports
Database Users
Database User passwords
Application version



File Path/File name
<OTM_HOME>/weblogic/weblogic.conf

Description
The configuration file used for the application launcher to start WebLogic.


Contains
Environment variables
Product Directory information
Launcher host and port
JVM system properties and arguments
WebLogic arguments
User system password
WebLogic instance name
WebLogic URL





File Path/File name
<OTM_HOME>/tomcat/tomcat.conf


Description
The configuration file used for the application launcher to start tomcat.


Contains
Environment variables
Product Directory information
Launcher host and port
JVM system properties and arguments
Encoded passwords
Tomcat arguments



File Path/File name
<OTM_HOME>/tomcat/conf/server.xml


Description
The configuration file for the Tomcat servlet container


Contains
IP Address for the web container and associated ports
Context Path


File Path/File name
<OTM_HOME>/glog/gc3webapp/WEB-INF/web.xml

Description
A Tomcat configuration file for web applications.

Contains
Session Timeout
Security Role Mapping
Security Filters for Parameter Validation, Cross Site Request Filter, etc.
Servlet mapping



File Path/File name
<OTM_HOME>/weblogic/domains/otm/config/config.xml (config.xml.fresh)

Description
The configuration file for the Oracle WebLogic Application Server


Contains
Server name
Listening ports
IP Address(es)
User name
Password
Key Store Information
Security Configuration Information




Increasing the Java Heap size for a managed server

For better performance, you may need to increase the heap size for each Managed Server in your environment. If you use Node Manager to start the Managed Servers, you can specify a heap size as a Java argument on the Server Start tab for each Managed Server.
To change the Java Heap size for a managed server:
click Lock & Edit
In the left pane of the console, expand Environment > Servers.
In the Servers table, click the name of the server instance you want to configure.
On the Configuration tab, click Server Start.
In the Arguments field, specify the Java option to increase the heap size. For example: -Xmx1024m
Click Save.
To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
Not all changes take effect immediately—some require a restart.
After you finish
You must reboot the server to use the new heap values.

What is Oracle FTI?


FTI = FTI stands Fusion transport intelligence which is used to convert data into information and information into bar or pie chart which produce meaningful information and easy to understand business.


OR

Oracle OBIEE+pre define reports which comes with OTM.

How to check OTM patches are applied or not?.



[oracle@wlsadmin ~]$ cat /u01/OTM636/otm/glog/config/glog.patches.properties |grep -i 22163954
installed_patch=otm637_quickpatch_22163959 (22163954)
[oracle@wlsadmin ~]$

How to De-install OTM patch?

1)Shutdown OTM services
http://abduulwasiq.blogspot.in/2016/11/how-to-stop-and-start-services.html

2)De Install OTM patch

Example
[oracle@wlsadmin OTM636]$ java -jar otm636_quickpatch_20281351.jar -d /u01/OTM636/otm -uninstall
Uninstall Patch OTM636_quickpatch_20281351

Removing Installed Files...
Removing : /u01/OTM636/otm/glog/gc3webapp/WEB-INF/classes/glog/business/action/ShipmentPlanningActionExecutor.class Successful
Removing : /u01/OTM636/otm/glog/oracle/script8/patch_vars.txt Successful

Restoring Backed Up Files...
Extracting: /u01/OTM636/otm/glog/gc3webapp/WEB-INF/classes/glog/business/action/ShipmentPlanningActionExecutor.class
Extracting: /u01/OTM636/otm/glog/oracle/script8/patch_vars.txt

Fix Permissions...

Uninstall Successful.
[oracle@wlsadmin OTM636]$

How to apply OTM patch?

1)Download patch and unzip it.
2)Shutdown OTM services.
http://abduulwasiq.blogspot.in/2016/11/how-to-stop-and-start-services.html

3)Applying OTM patch

[oracle@wlsadmin 18615753]$ java -jar otm636_quickpatch_18615753.jar -d /u01/OTM636/otm
Install Patch OTM636_quickpatch_18615753

Backing up Files...
Backing up: /u01/OTM636/otm/glog/gc3webapp/WEB-INF/classes/glog/business/fleetassignment/FleetEquipmentAssigner.class
Backing up: /u01/OTM636/otm/glog/gc3webapp/WEB-INF/classes/glog/business/fleetassignment/FleetEquipmentAssigner$Segment.class
Backing up: /u01/OTM636/otm/glog/oracle/script8/patch_vars.txt

Extracting Files...
Extracting: /u01/OTM636/otm/glog/gc3webapp/WEB-INF/classes/glog/business/fleetassignment/FleetEquipmentAssigner.class
Extracting: /u01/OTM636/otm/glog/gc3webapp/WEB-INF/classes/glog/business/fleetassignment/FleetEquipmentAssigner$Segment.class
Extracting: /u01/OTM636/otm/glog/oracle/script8/patch_vars.txt

Fix Permissions...

Special Instructions. (Please Read And Follow)
==============================================

- Start the OTM/GC3 web (OHS and Tomcat) and application WebLogic servers as described in the Administration guide.

Contact Oracle Technical Support if you have any questions or problems during the patch process.

Installation Complete.
[oracle@wlsadmin 18615753]$

Tuesday 8 November 2016

Integrate MileMaker with OTM



1)Shutdown OTM services
1)Take backup of glog.properties and edit below two parameters.

milemaker.host=milemaker servername

milemaker.port=1031

3)Start OTM services.

The Oracle system identifier '' already exists, specify another SID


issue:
The Oracle system identifier '' already exists, specify another SID
The Oracle system identifier '' already exists, specify another SID error occurs during database creation via dbca utility.

Cause: You have probably previously created database with the same name and have removed it but the traces of it still remain

Solution: Open /etc/oratab file in edit mode and remove the line containing SID that is causing an error message. Another place to look would be

$ORACLE_BASE/oraInventory/ContentsXML/inventory.xml - this file could also contain an entry with the offending SID 

How to upload csv file in otm?

Business Process Automation--> Integration-->Integration Manager--> Upload an XML/CSV Transmission

browse file and click on upload .

Provide below input and wait for it to process.

validate =y UTF8 and click on run .

how to change the password on the app server to match what the database password is set to

how to change the password on the app server to match what the database password is set to
 java glog.util.appclass.Base64Encoding <new password>

How many ways we can do OTM installation?

We can do OTM installation in three ways.

GUI
./otmv635_<platform>.bin

CONSOLE
./otmv635_<platform>.bin –i console

SILENT
./otmv635_<platform>.bin –i silent –f installer.properties

How to change timeout session in otm?


1)Shutdown OTM services
2)Take backup of web.xml file which is located in below location.
ls -ltrh /u01/OTM636/otm/tomcat/conf/web.xml
-rwxrwxr-x. 1 oracle dba 160K Jan 29  2015 /u01/OTM636/otm/tomcat/conf/web.xml


cp -r /u01/OTM636/otm/tomcat/conf/web.xml /u01/otm636/otm/tomcat/conf/web.xml_9sep2015

Default time out is 30 mins.


grep -i session /u01/OTM636/otm/tomcat/conf/web.xml
  <!-- ==================== Default Session Configuration ================= -->
  <!-- You can set the default session timeout (in minutes) for all newly   -->
  <!-- created sessions by modifying the value below.                       -->
    <session-config>
        <session-timeout>120</session-timeout>
    </session-config>




3)

ls -ltrh /u01/OTM636/otm/glog/gc3webapp/WEB-INF/web.xml

cp -r /u01/OTM636/otm/glog/gc3webapp/WEB-INF/web.xml /u01/OTM636/otm/glog/gc3webapp/WEB-INF/web.xml_2sep2015

grep -i session /u01/OTM636/otm/glog/gc3webapp/WEB-INF/web.xml


 <session-config>
      <session-timeout>120</session-timeout>
   </session-config>
        <listener-class>listeners.SessionListener</listener-class>
        <listener-class>glog.webserver.util.listener.SessionListener</listener-class>
       <filter-name>ClientSessionFilter</filter-name>
       <filter-class>glog.webserver.session.clientsession.ClientSessionFilter</filter-class>
      <filter-name>ClientSessionFilter</filter-name>
       <filter-class>glog.webserver.session.ParameterValidation</filter-class>
  <servlet-name>glog.webserver.session.ServletDiagServlet</servlet-name>
  <servlet-class>glog.webserver.session.ServletDiagServlet</servlet-class>
  <servlet-name>glog.webserver.session.ServletDiagServlet</servlet-name>
  <url-pattern>/glog.webserver.session.ServletDiagServlet/*</url-pattern>
  <servlet-name>glog.webserver.session.SessionErrorServlet</servlet-name>
  <servlet-class>glog.webserver.session.SessionErrorServlet</servlet-class>
  <servlet-name>glog.webserver.session.SessionErrorServlet</servlet-name>
  <url-pattern>/glog.webserver.session.SessionErrorServlet/*</url-pattern>
  <servlet-name>glog.webserver.session.SessionDiagServlet</servlet-name>
  <servlet-class>glog.webserver.session.SessionDiagServlet</servlet-class>
  <servlet-name>glog.webserver.session.SessionDiagServlet</servlet-name>
  <url-pattern>/glog.webserver.session.SessionDiagServlet/*</url-pattern>
  <servlet-name>glog.webserver.session.ProducerDiagServlet</servlet-name>
  <servlet-class>glog.webserver.session.ProducerDiagServlet</servlet-class>
  <servlet-name>glog.webserver.session.ProducerDiagServlet</servlet-name>
  <url-pattern>/glog.webserver.session.ProducerDiagServlet/*</url-pattern>
  <servlet-name>glog.webserver.sessionperf.SessionPerfServlet</servlet-name>
  <servlet-class>glog.webserver.sessionperf.SessionPerfServlet</servlet-class>
  <servlet-name>glog.webserver.sessionperf.SessionPerfServlet</servlet-name>
  <url-pattern>/glog.webserver.sessionperf.SessionPerfServlet/*</url-pattern>



Note

The default session timeout for the OTM Web Server is 30 minutes.
If you leave OTM idle for 30 minutes, your session will timeout and you will need to log in again.


For some Oracle Transportation Management installations, you may want to increase this timeout.
Please note that increasing the session timeout will increase the load on your Web server and may decrease the number of simultaneous users that can access the system. Oracle doesnt

recommend this setting more than 60 minutes.


To change this setting, edit the web.xml files on your OTM Web Server(s) at
<otm_install_path>/tomcat/conf/web.xml
<otm_install_path>/glog/gc3webapp/WEB-INF/web.xml


Below line should be edit in each file:
<session-timeout>30</session-timeout>


Change the setting to desired number of minutes.


Restart the OTM application for these changes to take effect.


See Note 1333246.1 - How Do I Alter The Session Time Before User Is Logged Out Of OTM Due To Inactivity?
Note 1351297.1 - How To Change The Session Timeout In Oracle BI Publisher 11g


If this is still not working, I suggest you log a Service Request with Oracle Support to investigate.

How to configure mapviewer in OTM?



1)Shutdown OTM services
2)Take backup of glog.properties


3)Modify below parameters in OTM configuration file.

glog.mapServer=elocation.oracle.com
glog.map.service_name=elocation_mercator
glog.map.basemap=elocation_mercator.world_map


4)Start OTM services and access maps in OTM.

Re set GLOGLOAD user password in OTM

++++++++++++++++++++++++++++++++++++++++++++++
How to change the password of glogload?
++++++++++++++++++++++++++++++++++++++++++++++++
Step 1: Shutdown OTM application services.
a) Stop the Web Server
---------------------------
/u01/OTM636/otm/install/ohs
[oracle@wlsadmin ohs]$ ./glogweb-wl stop
Stopping Oracle HTTP Server
opmnctl stopall: stopping opmn and all managed processes...
Stopping Tomcat Web Container...
[oracle@wlsadmin ohs]$



b) Stop the Application Server
-----------------------------
[oracle@wlsadmin weblogic]$ pwd
/u01/OTM636/otm/install/weblogic
[oracle@wlsadmin weblogic]$ ./glogapp-wl stop
Stopping WebLogic Application Server...
[oracle@wlsadmin weblogic]$
[oracle@wlsadmin weblogic]$


Step 2: Change the database passwords.
---------------------------------------

SQL> alter user glogload identified by Rockon11g;

User altered.

SQL>


Step 3: Encode the password for GLOG.
-------------------------------------------
[oracle@wlsadmin install]$ pwd
/u01/OTM636/otm/install
[oracle@wlsadmin install]$ . ./gc3env.sh
[oracle@wlsadmin install]$ java glog.util.appclass.Base64Encoding Rockon11g
<Um9ja29uMTFn>
[oracle@wlsadmin install]$



ii)
Backup  glog.properties.
-----------------------------
[oracle@wlsadmin config]$ cp -r glog.properties glog.properties_29april2015
[oracle@wlsadmin config]$ ls -ltrh glog.properties glog.properties_29april2015
-rwxr-----. 1 oracle dba 15K Apr 29 09:35 glog.properties
-rwxr-----. 1 oracle dba 15K Apr 29 13:28 glog.properties_29april2015
[oracle@wlsadmin config]$


iii)
Update glog.properties

remove <> and add with the password {e as per OTM DOC.
[oracle@wlsadmin config]$ diff glog.properties glog.properties_29april2015
92d91
< glog.database.load.password={eUm9ja29uMTFn
[oracle@wlsadmin config]$


Step 4: Start application services for OTM.
starting weblogic server
--------------------------
[oracle@wlsadmin weblogic]$ pwd
/u01/OTM636/otm/install/weblogic
[oracle@wlsadmin weblogic]$ ./glogapp-wl start
Waiting for DB Server to finish startup
Starting WebLogic Application Server...
[oracle@wlsadmin weblogic]$


starting tomcat server
-----------------------
/u01/OTM636/otm/install/ohs
[oracle@wlsadmin ohs]$ ./glogweb-wl start
Starting Tomcat Web Container...
Starting Oracle HTTP Server
opmnctl startall: starting opmn and all managed processes...
[oracle@wlsadmin ohs]$


Checking logfies for weblogic
-------------------------------
[oracle@wlsadmin weblogic]$ tail -f console.log.0
INFO | 2015/04/29 13:38:53 | <Apr 29, 2015 1:38:53 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems

CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
INFO | 2015/04/29 13:38:53 | <Apr 29, 2015 1:38:53 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c)

2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX:

Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
INFO | 2015/04/29 13:38:53 | <Apr 29, 2015 1:38:53 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading

of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
INFO | 2015/04/29 13:38:53 | <Apr 29, 2015 1:38:53 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c)

2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the

AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
INFO | 2015/04/29 13:38:53 | <Apr 29, 2015 1:38:53 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 20.198.xx.xx:7001 for protocols iiop, t3, ldap, snmp, http.>
INFO | 2015/04/29 13:38:53 | <Apr 29, 2015 1:38:53 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 20.198.xx.xx:7002 for protocols iiops, t3s, ldaps,

https.>
INFO | 2015/04/29 13:38:53 | <Apr 29, 2015 1:38:53 PM IST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "gc3-wlsadmin" for domain "Otmv636" running in Production

Mode>
INFO | 2015/04/29 13:38:55 | <Apr 29, 2015 1:38:55 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
INFO | 2015/04/29 13:38:55 | <Apr 29, 2015 1:38:55 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
INFO | 2015/04/29 13:39:59 | -- OTM Event: serverReady



Checking logfile for tomcat
---------------------------
[oracle@wlsadmin tomcat]$ tail -f /u01/OTM636/otm/logs/tomcat/console.log.0
INFO | 2015/04/29 13:37:20 |    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
INFO | 2015/04/29 13:37:20 |    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
INFO | 2015/04/29 13:37:20 |    at java.util.concurrent.FutureTask.run(FutureTask.java:139)
INFO | 2015/04/29 13:37:20 |    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
INFO | 2015/04/29 13:37:20 |    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
INFO | 2015/04/29 13:37:20 |    at java.lang.Thread.run(Thread.java:680)
INFO | 2015/04/29 13:37:20 | Apr 29, 2015 1:37:20 PM org.apache.coyote.AbstractProtocol start
INFO | 2015/04/29 13:37:20 | INFO: Starting ProtocolHandler ["http-bio-127.0.0.1-8009"]
INFO | 2015/04/29 13:37:20 | Apr 29, 2015 1:37:20 PM org.apache.catalina.startup.Catalina start
INFO | 2015/04/29 13:37:20 | INFO: Server startup in 262120 ms




[oracle@wlsadmin ~]$ sqlplus GLOGLOAD/Rockon11g

SQL*Plus: Release 11.2.0.1.0 Production on Wed Apr 29 15:01:32 2015

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select name,created from v$database;

NAME                        CREATED
--------------------------- ---------------
OTMTEST                     10-FEB-15

SQL> show user
USER is "GLOGLOAD"
SQL>

Re set GLOGDBA user password in OTM

+++++++++++++++
 CHANGING GLOGDBA PASSWORD
 ++++++++++++++++++

 1)stop web server
 -------------------
[oracle@wlsadmin weblogic]$ cd /u01/OTM636/install/ohs
[oracle@wlsadmin ohs]$ ./glogweb-wl stop
Stopping Oracle HTTP Server
opmnctl stopall: stopping opmn and all managed processes...
Stopping Tomcat Web Container...
[oracle@wlsadmin ohs]$


 2)stop app server
 -------------------
 /u01/OTM636/install/weblogic
[oracle@wlsadmin weblogic]$ ./glogapp-wl stop
Stopping WebLogic Application Server...


Step 3: Change the database passwords.
---------------------------------------
SQL> alter user glogdba identified by Abduldba;

User altered.

SQL>


Step 4
-------------

[oracle@wlsadmin install]$ pwd
/u01/OTM636/install
[oracle@wlsadmin install]$ . ./gc3env.sh
[oracle@wlsadmin install]$ java glog.util.appclass.Base64Encoding Abduldba
<QWJkdWxkYmE=>
[oracle@wlsadmin install]$




Step 5
Take the backup of glog.properties file
-------------------------

[oracle@wlsadmin config]$ ls -ltrh /u01/OTM636/glog/config/glog.properties
-rwxr-----. 1 oracle dba 15K Feb 10 14:21 /u01/OTM636/glog/config/glog.properties
[oracle@wlsadmin config]$ cp -r /u01/OTM636/glog/config/glog.properties /u01/OTM636/glog/config/glog.properties_22April2015
[oracle@wlsadmin config]$

step 6
----------
[oracle@wlsadmin config]$ ls -ltrh /u01/OTM636/glog/config/glog.properties
-rwxr-----. 1 oracle dba 15K Feb 10 14:21 /u01/OTM636/glog/config/glog.properties
[oracle@wlsadmin config]$ vi /u01/OTM636/glog/config/glog.properties
[oracle@wlsadmin config]$ diff /u01/OTM636/glog/config/glog.properties /u01/OTM636/glog/config/glog.properties_22April2015
87,88d86
< glog.database.password={eQWJkdWxkYmE=
<
[oracle@wlsadmin config]$

glog.database.password={eR0xPR0xPQUQ=

step 7
--------
starting app server

/u01/OTM636/install/weblogic
[oracle@wlsadmin weblogic]$ ./glogapp-wl start
Waiting for DB Server to finish startup
Starting WebLogic Application Server...
[oracle@wlsadmin weblogic]$


[oracle@wlsadmin ohs]$ pwd
/u01/OTM636/install/ohs
[oracle@wlsadmin ohs]$ ./glogweb-wl start
Starting Tomcat Web Container...
Starting Oracle HTTP Server
opmnctl startall: starting opmn and all managed processes...
[oracle@wlsadmin ohs]$



Checking weblogic logfile
++++++++++++++++++++++++

[oracle@wlsadmin weblogic]$ ls -ltrh /u01/OTM636/logs/weblogic/console.log.0
-rw-r--r--. 1 oracle dba 715K Apr 22 15:05 /u01/OTM636/logs/weblogic/console.log.0
[oracle@wlsadmin weblogic]$ tail -f /u01/OTM636/logs/weblogic/console.log.0
INFO | 2015/04/22 15:05:23 | <Apr 22, 2015 3:05:23 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c)

2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX:

Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
INFO | 2015/04/22 15:05:23 | <Apr 22, 2015 3:05:23 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading

of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
INFO | 2015/04/22 15:05:23 | <Apr 22, 2015 3:05:23 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c)

2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the

AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
INFO | 2015/04/22 15:05:23 | <Apr 22, 2015 3:05:23 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 20.198.xx.xx:7002 for protocols iiops, t3s, ldaps,

https.>
INFO | 2015/04/22 15:05:23 | <Apr 22, 2015 3:05:23 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 20.198.94.62:7001 for protocols iiop, t3, ldap, snmp, http.>
INFO | 2015/04/22 15:05:23 | <Apr 22, 2015 3:05:23 PM IST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "gc3-wlsadmin" for domain "Otmv635" running in Production

Mode>
INFO | 2015/04/22 15:05:23 | <Apr 22, 2015 3:05:23 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
INFO | 2015/04/22 15:05:23 | <Apr 22, 2015 3:05:23 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
INFO | 2015/04/22 15:05:23 | [INFO ][memory ] [YC#20] 139.582-139.619: YC 740942KB->434310KB (1048576KB), 0.037 s, sum of pauses 36.916 ms, longest pause 36.916 ms.
INFO | 2015/04/22 15:05:31 | -- OTM Event: serverReady




Checking tomcat logfile
--------------------
[oracle@wlsadmin tomcat]$ ls -ltrh /u01/OTM636/logs/tomcat/console.log.0
-rw-r--r--. 1 oracle dba 2.7M Apr 22 15:05 /u01/OTM636/logs/tomcat/console.log.0
[oracle@wlsadmin tomcat]$ tail -f /u01/OTM636/logs/tomcat/console.log.0
INFO | 2015/04/22 15:05:21 |    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
INFO | 2015/04/22 15:05:21 |    at java.util.concurrent.FutureTask.run(FutureTask.java:139)
INFO | 2015/04/22 15:05:21 |    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
INFO | 2015/04/22 15:05:21 |    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
INFO | 2015/04/22 15:05:21 |    at java.lang.Thread.run(Thread.java:680)
INFO | 2015/04/22 15:05:21 | Apr 22, 2015 3:05:21 PM org.apache.coyote.AbstractProtocol start
INFO | 2015/04/22 15:05:21 | INFO: Starting ProtocolHandler ["http-bio-127.0.0.1-8009"]
INFO | 2015/04/22 15:05:21 | Apr 22, 2015 3:05:21 PM org.apache.catalina.startup.Catalina start
INFO | 2015/04/22 15:05:21 | INFO: Server startup in 99554 ms
INFO | 2015/04/22 15:05:30 | [INFO ][memory ] [YC#16] 111.398-111.451: YC 692136KB->411973KB (1048576KB), 0.054 s, sum of pauses 53.609 ms, longest pause 53.609 ms.
INFO | 2015/04/22 15:06:55 |  : QUERYRESOURCES : 0
INFO | 2015/04/22 15:06:55 | en : QUERYRESOURCES : 969667
INFO | 2015/04/22 15:06:55 | en_US : QUERYRESOURCES : 0
INFO | 2015/04/22 15:06:56 |  : TRANSLATION : 0
INFO | 2015/04/22 15:06:56 | en : TRANSLATION : 1120776
INFO | 2015/04/22 15:06:56 | en_US : TRANSLATION : 0
INFO | 2015/04/22 15:07:09 | en_US_DBA : TRANSLATION : 0
INFO | 2015/04/22 15:07:10 | [INFO ][memory ] [YC#17] 210.512-210.555: YC 798119KB->480084KB (1048576KB), 0.044 s, sum of pauses 43.663 ms, longest pause 43.663 ms.



SQL> conn glogdba/Abduldba
Connected.
SQL> show user
USER is "GLOGDBA"
SQL>

How to stop and start services?.



Stopping OTM services
+++++++++++++++++



 1)stop web server
 -------------------
[oracle@wlsadmin weblogic]$ cd /u01/OTM636/install/ohs
[oracle@wlsadmin ohs]$ ./glogweb-wl stop
Stopping Oracle HTTP Server
opmnctl stopall: stopping opmn and all managed processes...
Stopping Tomcat Web Container...
[oracle@wlsadmin ohs]$


 2)stop app server
 -------------------
 /u01/OTM636/install/weblogic
[oracle@wlsadmin weblogic]$ ./glogapp-wl stop
Stopping WebLogic Application Server...





Starting OTM services
+++++++++++++++++


/u01/OTM636/install/weblogic
[oracle@wlsadmin weblogic]$ ./glogapp-wl start
Waiting for DB Server to finish startup
Starting WebLogic Application Server...
[oracle@wlsadmin weblogic]$


[oracle@wlsadmin ohs]$ pwd
/u01/OTM636/install/ohs
[oracle@wlsadmin ohs]$ ./glogweb-wl start
Starting Tomcat Web Container...
Starting Oracle HTTP Server
opmnctl startall: starting opmn and all managed processes...
[oracle@wlsadmin ohs]$

How to change GLOGOWNER user password?


glogowner default password is glogowner , if changed nothing will happen.

The application doesn't login directly as glogowner, it logs in as glogdba and glogload,
so you can change the glogowner password without updating any property files. You'll just need to remember it when patching.


sqlplus "/as sysdba"

SQL> alter user glogowner identified by yourpassword;


Note : Changing glogowner password doesn't require any service to be shutdown.

The same way you can change the password of archive,reportowner and xmlreport user password.





Installing ORACLE OTM more than one machine.


Let's we want to install oracle OTM into three machine.

Machine 1  -- Install Oracle Database
Machine 2 -- Install OTM Web server
Machine  -- Install OTM App server



Follow below steps to complete multi  node OTM installation.

Machine1 --> DB -1SERVER   --> Database and listener.
Machine2 --> WEB SERVER   ---> install oracle client ,jdk,weblogic,webtier utilities,otm63* web only
Machine3 --> APP SERVER   ---> install oracle client ,jdk,weblogic,otm63* app only
Create tablespaces
Create Users
./create_all.sh


Changing the size of JVM memory in OTM for web server and Weblogic Application Server !!!


In order to change the weblogic and web server memory you have to shutdown the otm web server and app server .


1)Stop otm web and app services.


2)Change JVM memory sizes.

Web Server
+++++++++++
Go to
cd $OTM_HOME/server/bin

ls -l /u01/OTM636/otm/tomcat/bin/tomcat.conf

take the backup of tomcat.conf file and change parameter as shown below.

[oracle@wlsadmin bin]$ diff tomcat.conf tomcat.conf_latest
49,50c49,50
< command.start.jvm.arg=-Xms2048m
< command.start.jvm.arg=-Xmx2048m
---
> command.start.jvm.arg=-Xms4096m
> command.start.jvm.arg=-Xmx4096m
[oracle@wlsadmin bin]$



Weblogic Application Server
+++++++++++++++++++++
Go to 
cd $OTM_HOME/weblogic

ls -l /u01/OTM637/otm/weblogic/weblogic.conf

[oracle@wlsadmin weblogic]$ diff weblogic.conf weblogic.conf_latest
55,56c55,56
< command.start.jvm.arg=-Xms2048m
< command.start.jvm.arg=-Xmx2048m
---
> command.start.jvm.arg=-Xms4096m
> command.start.jvm.arg=-Xmx4096m
[oracle@wlsadmin weblogic]$


3)Start OTM services .

Monday 7 November 2016

Installing Oracle OTM 636

































Install Oracle Web Tier 11.1.1.7.0














Installing Oracle OTM on Single Machine

How to install Oracle OTM on single Machine.


1)Install oracle database
2)JDK
3)Weblogic 10.3.6 11gr1
4)OHS 11.1.1.7
5)OTM 6.3.x
6)create tablespaces
7)create users
8)run create_all.sh



Installing Oracle Weblogic 10.3.6
























Create Tablespace
+++++++++++++++
Go to $OTM_HOME/glog/oracle/script8
[oracle@wlsadmin script8]$ sqlplus "sys/xxxxxx@OTMTEST as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Tue Sep 15 12:33:26 2015

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @create_gc3_tablespaces.sql


Default parameters are:
Initial file size: 1G
If autoextend is on, maxsize: 5G
Review Admin Guide for details
Do you want to use above defaults (Y/N : Y)? N

Please enter file size, you can use K, M, G, or T to specify the size in kilobytes, megabytes, gigabytes, or terabytes
Hit "ENTER" if you use GLOG default:  200M

Please enter maximum file size, it must greater than (file_size + 250M)
Hit "ENTER" if you use GLOG default:  2G

Set auto extend on for data files? (Y/N : Y) Y

Please enter the directory where you want the data files to be located
including trailing "/" or "\" : /u01/oracle/oradata/OTMTEST/

You can create the tablespace now OR you can examine create statements in log file and create later
The SQL statements are either in a log file your utl_file_dir directory or in your current directory.
Creating tablespaces now? (Y/N : N) Y

CREATE TABLESPACE DATA
DATAFILE '/u01/oracle/oradata/OTMTEST/DATA01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE DATA
DATAFILE '/u01/oracle/oradata/OTMTEST/DATA01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE INDX
DATAFILE '/u01/oracle/oradata/OTMTEST/INDX01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE INDX
DATAFILE '/u01/oracle/oradata/OTMTEST/INDX01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE ARCHIVE
DATAFILE '/u01/oracle/oradata/OTMTEST/ARCHIVE01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE ARCHIVE
DATAFILE '/u01/oracle/oradata/OTMTEST/ARCHIVE01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE REPORT
DATAFILE '/u01/oracle/oradata/OTMTEST/REPORT01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE REPORT
DATAFILE '/u01/oracle/oradata/OTMTEST/REPORT01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE REPORTINDX
DATAFILE '/u01/oracle/oradata/OTMTEST/REPORTINDX01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE REPORTINDX
DATAFILE '/u01/oracle/oradata/OTMTEST/REPORTINDX01.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY1
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY1
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY2
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY201.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY2
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY201.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY3
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY301.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY3
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY301.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY4
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY401.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY4
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY401.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY5
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY501.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY5
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY501.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY6
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY601.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY6
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY601.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY7
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY701.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE BPL_DAY7
DATAFILE '/u01/oracle/oradata/OTMTEST/BPL_DAY701.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE PART_1
DATAFILE '/u01/oracle/oradata/OTMTEST/PART_101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE PART_1
DATAFILE '/u01/oracle/oradata/OTMTEST/PART_101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE PART_2
DATAFILE '/u01/oracle/oradata/OTMTEST/PART_201.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE PART_2
DATAFILE '/u01/oracle/oradata/OTMTEST/PART_201.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE PART_3
DATAFILE '/u01/oracle/oradata/OTMTEST/PART_301.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE PART_3
DATAFILE '/u01/oracle/oradata/OTMTEST/PART_301.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE PART_4
DATAFILE '/u01/oracle/oradata/OTMTEST/PART_401.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE PART_4
DATAFILE '/u01/oracle/oradata/OTMTEST/PART_401.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE LOB1
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB1
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB2
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB201.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB2
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB201.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB3
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB301.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB3
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB301.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB4
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB401.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB4
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB401.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB5
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB501.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB5
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB501.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB6
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB601.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB6
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB601.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB7
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB701.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE LOB7
DATAFILE '/u01/oracle/oradata/OTMTEST/LOB701.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE MSG_PART_TBS1
DATAFILE '/u01/oracle/oradata/OTMTEST/MSG_PART_TBS101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE MSG_PART_TBS1
DATAFILE '/u01/oracle/oradata/OTMTEST/MSG_PART_TBS101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M
/



CREATE TABLESPACE MSG_LOB_TBS1
DATAFILE '/u01/oracle/oradata/OTMTEST/MSG_LOB_TBS101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/



CREATE TABLESPACE MSG_LOB_TBS1
DATAFILE '/u01/oracle/oradata/OTMTEST/MSG_LOB_TBS101.dbf'
SIZE 200M REUSE
AUTOEXTEND ON NEXT 256000K MAXSIZE 2G
SEGMENT SPACE MANAGEMENT AUTO EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M BLOCKSIZE 16K
/


SQL>




Create users
++++++++
SQL> select name,created from v$database;

NAME                        CREATED
--------------------------- ---------------
OTMTEST                     09-SEP-15
SQL> show user
USER is "SYS"
SQL> !ls -l create_glog_users.sql
-rwxrwxr-x. 1 oracle dba 10931 Jan 29  2015 create_glog_users.sql

SQL> @create_glog_users.sql

This script creates following OTM users.
Script will also prompt for the password
for each user which will be used during
create user step.

ARCHIVE
GLOGDBA
GLOGOWNER
GLOGLOAD
REPORTOWNER
GLOBALREPORTUSER
DIR_XML_USER


Make sure that OTM tablespaces have been already created.

If not, hit Ctrl + C to exit this script

Press Enter to continue



Enter Connection ID:
Enter value for 1: OTMTEST



Enter user name (Other than SYS user) who can create new users(Press Enter for default of SYSTEM):
Enter value for 2: system



Enter password for this user:
Enter value for 3: Timepass




Enter password for user SYS to login as SYSDBA:
Enter value for 4: Timepass




Enter password for user ARCHIVE:
Enter value for 5: ARCHIVE




Enter password for user GLOGDBA:
Enter value for 6: GLOGDBA




Enter password for user GLOGOWNER:
Enter value for 7: GLOGOWNER




Enter password for user GLOGLOAD:
Enter value for 8: GLOGLOAD




Enter password for user REPORTOWNER:
Enter value for 9: REPORTOWNER




Enter password for user GLOBALREPORTUSER:
Enter value for 10: GLOBALREPORTUSER




Enter password for user DIR_XML_USER:
Enter value for 11: DIR_XML_USER



Connected.
Connected.

Creating OTM database users...
Connected.
Creating roles...

Dropping and recreating roles... (create_glog_roles)
Completed role creation.
OTM database user creation completed.
12:39:07 SQL>




run create_all.sh
++++++++++++++

/u01/OTM636/otm/glog/oracle/script8
[oracle@wlsadmin script8]$ ./create_all.sh

--*********************************************************

Make sure that OTM database users have been created.
Use create_glog_users.sql script to create OTM database users.

Make sure that OTM tablespaces have been created.
You may use create_gc3_tablespaces.sql to create OTM tablespaces.

--*********************************************************

Hit Ctrl + C to exit this script

Press Enter key to start creating OTM schemas.....
Enter Database Connection ID: OTMTEST
Enter SYS password to log in as SYSDBA:
Enter user name (Other than SYS user) who can create new users(Press Enter for default of SYSTEM): system
Enter password for above user:
Enter the glog properties path (Press Enter for default of ../../config):
Using default property path ../../config


Enter password for ARCHIVE user:
Enter password for GLOGOWNER user:
Enter password for REPORTOWNER user:
OTM Schema installation started....


This script creates OTM database objects.

Enter Connection ID:(Press Enter for default of LOCALDB)

Enter SYS password to login as SYSDBA:

Is this a Unix machine (ie. runs .sh rather than .cmd scripts)? (Y/N : Y)?
Enter Y or N

Enter the glog properties path:

Enter password for user ARCHIVE:

Enter password for user GLOGOWNER:

Enter password for user REPORTOWNER:

Connecting as glogowner to OTMTEST


Creating GLOGOWNER objects...
Creating packages...
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
Creating tables...
   AAR_CAR_EQUIP_TYPE_JOIN
   ACCESSORIAL_BASIS_PRECEDENCE
   ACCESSORIAL_CODE
   ACCESSORIAL_COST
   ACCESSORIAL_COST_UNIT_BREAK
   ACCESSORIAL_DEFAULT
   ACCOUNT_NUMBER
   ACCOUNT_USER_ASSOCIATION
   ACR_ENTRY_POINT
   ACR_ROLE
   ACR_ROLE_ENTRY_POINT
   ACR_ROLE_ROLE
   ACTION
   ACTION_ARG
   ACTION_DEF
   ACTION_DEF_ARG
   ACTION_DEF_SEL_PARAM
   ACTION_DEF_STATE
   ACTION_DRAG
   ACTIVITY
   ACTIVITY_CALENDAR
   ACTIVITY_CALENDAR_OVERRIDE
   ACTIVITY_TIME
   ACTIVITY_TIME_DEF
   ACTIVITY_TYPE
   ADHOC_NOTIFY  (Partitioned)
   ADJUSTMENT_REASON
   ADVANCED_LAYOUT
   AD_REGION
   AD_TIME
   AF_COST_VS_REVENUE
   AGENT

(Call for updating password is sh ./update_password_migration.sh )
 TNSSTR: wlsadmin.com 1521 otmprod


Connecting as glogowner to OTMTEST

OTM Database Object Counts
Connecting as glogowner to OTMTEST



List of first 50 Invalid objects after recompile.
================================================


Invalid objects before Recompile....

       461

Invalid objects after Recompile....

         0



All objects are now valid.





Marking 6.3 structural changes applied...
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
PACKAGE DBUPDATE_631 has been dropped.
PACKAGE DBUPDATE_631g has been dropped.
PACKAGE DBUPDATE_632 has been dropped.
PACKAGE DBUPDATE_632g has been dropped.
PACKAGE DBUPDATE_633 has been dropped.
PACKAGE DBUPDATE_633g has been dropped.
PACKAGE DBUPDATE_634g has been dropped.
PACKAGE DBUPDATE_635g has been dropped.
PACKAGE DBUPDATE_636g has been dropped.

Marking 6.3 data migrations applied...
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
PACKAGE DBPATCH_631 has been dropped.
PACKAGE DBPATCH_631g has been dropped.
PACKAGE DBPATCH_632 has been dropped.
PACKAGE DBPATCH_632g has been dropped.
PACKAGE DBPATCH_633 has been dropped.
PACKAGE DBPATCH_633g has been dropped.
PACKAGE DBPATCH_634 has been dropped.
PACKAGE DBPATCH_634g has been dropped.
PACKAGE DBPATCH_635 has been dropped.
PACKAGE DBPATCH_635g has been dropped.
PACKAGE DBPATCH_636g has been dropped.
OTM Database Object Counts

ARCHIVE         INDEX                    5
                LOB                      5
                SEQUENCE               461
                TABLE                  461
GLOGLOAD        SYNONYM               2369
                TRIGGER                  1
GLOGOWNER       FUNCTION              9161
                INDEX                 3888
                INDEX PARTITION         73
                JAVA CLASS              11
                JAVA SOURCE              7
                LOB                     45
                LOB PARTITION           61
                PACKAGE                 71
                PACKAGE BODY            69
                QUEUE                   11
                SEQUENCE               301
                SYNONYM                131
                TABLE                 1847
                TABLE PARTITION        473
                TRIGGER               4220
                TYPE                     5
                VIEW                    25
REPORTOWNER     FUNCTION                80
                INDEX                   15
                PACKAGE                 82
                PACKAGE BODY            82
                SEQUENCE                 1
                SYNONYM               2238
                TABLE                   15
                TRIGGER                 16
                VIEW                    33

OTM database users and their objects creation completed.
Check create_all_<dbsid>_<timestamp>.log and import_content_<dbsid>_<timestamp> log files for ORA- or compilation errors.


[oracle@wlsadmin script8]$
[oracle@wlsadmin script8]$



[oracle@wlsadmin script8]$ grep -i ORA create_all_OTMTEST_201509151244.log
   CONTACT_CORPORATION
   CORPORATION
   CORPORATION_INVOLVED_PARTY
   CORPORATION_PROFILE
   CORPORATION_PROFILE_DETAIL
   CORPORATION_VAT_REG_JOIN
   LOCATION_CORPORATION
   ORACLE_ERROR
   TENDER_COLLABORATION
   TENDER_COLLABORATION_STATUS
Check create_all_<dbsid>_<timestamp>.log and import_content_<dbsid>_<timestamp> log files for ORA- or compilation errors.
[oracle@wlsadmin script8]$


[oracle@wlsadmin script8]$ egrep -i 'errors|warnings'  create_all_OTMTEST_201509151244.log
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
Check create_all_<dbsid>_<timestamp>.log and import_content_<dbsid>_<timestamp> log files for ORA- or compilation errors.
[oracle@wlsadmin script8]$



Check for error and warning in the logfile.

[oracle@wlsadmin script8]$ egrep -i 'warnings|error|ORA' import_content_OTMTEST_20150915_1317.log
<ErrorCount>0</ErrorCount>
<ErrorCount>0</ErrorCount>
<ErrorCount>0</ErrorCount>
<ErrorCount>0</ErrorCount>
<ErrorCount>0</ErrorCount>
<ErrorCount>0</ErrorCount>


[oracle@wlsadmin script8]$ egrep -i 'Caught|ORA' create_all_OTMTEST_201509151244.log
   CONTACT_CORPORATION
   CORPORATION
   CORPORATION_INVOLVED_PARTY
   CORPORATION_PROFILE
   CORPORATION_PROFILE_DETAIL
   CORPORATION_VAT_REG_JOIN
   LOCATION_CORPORATION
   ORACLE_ERROR
   TENDER_COLLABORATION
   TENDER_COLLABORATION_STATUS
Check create_all_<dbsid>_<timestamp>.log and import_content_<dbsid>_<timestamp> log files for ORA- or compilation errors.
[oracle@wlsadmin script8]$



[oracle@wlsadmin script8]$ grep -i 'Caught exception' import_content_OTMTEST_20150915_1317.log
[oracle@wlsadmin script8]$  grep -i 'SP2' import_content_OTMTEST_20150915_1317.log
[oracle@wlsadmin script8]$