Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Migrating
BITeamwork
Comments
Between
Oracle
BI
Environments
April
28,
2017
BITeamwork
Development
Team
BITeamwork
Version
This
document
assists
with
the
support
of
BITeamwork
versions:
• 3.7+
This
document
will
go
through
the
steps
to
migrate
comments
between
two
environments
in
OBIEE
working
with
the
BITeamwork
repository
schema
and
understanding
the
key
areas
where
a
customer
may
need
to
focus
their
attention
or
update
certain
BITeamwork
repository
schema
tables
in
order
to
provide
successful
parity
between
two
environments.
There
is
currently
no
automated
commentary
migration
process
or
solution
through
BITeamwork
to
migrate
comments
from
one
OBIEE
environment
(ex:
Production)
to
another
(ex:
QA).
This
is
a
manual
solution.
Any
assistance
you
may
require,
please
consult
our
sales
team
to
engage
with
you
in
a
professional
services
effort.
Save
Confirm
all
objects
representing
the
dashboard
page
(or
any
other
artifacts
desired)
are
being
captured
correct
from
the
source.
In
the
example
above
the
archive
is
for
a
dashboard
page
object.
Below
is
the
source
dashboard
page
object
in
edit
mode
using
the
dashboard
editor
to
see
where
the
specific
artifacts
in
that
dashboard
page
are
stored
so
we
can
tactically
archive
them
from
the
source.
Example
Objects
Being
Migrated:
Dashboard
/Shared
Folders/BITeamwork/Dashboards/BITeamwork
Migrations
Dashboard
Page
Included
in
/Shared
Folders/BITeamwork/Dashboards/BITeamwork
Migrations/ILCC
dashboard
Advanced
archive
/Shared
Folders/BITeamwork/Dashboards/BITeamwork
Migrations/page
1
Analysis
/
/Shared
Folders/BITeamwork/Inline
Cell
Commenting/Inline
Cell
Commenting
–
Report
Double
Comment
Box
Prompt
/Shared
Folders/BITeamwork/_Prompts/dp_product_year_etc_01
Text
Object
(part
of
dashboard
page
only)
Migrate
all
objects
using
archive
process
to
the
production
environment
from
test
for
example,
which
would
be
the
best
practice
for
moving
development
work.
Then
in
the
target
environment
unarchive
them
in
the
correct
locations.
This
completes
the
standard
migration
(re-‐migration)
process
best
practice
for
incremental
updates
to
target
environments
for
oracle
bi
artifacts.
The
following
columns
are
open
to
suspicion
when
attempting
the
migration
process:
Column
Name
Description
Critical
The
overall
dashboard
and
dashboard
page
code
created
by
GLOBALVIEWSTATEID
OBIEE
which
can
change
based
on
how
dashboard
objects
are
Y
migrated
or
updated
throughout
the
OBIEE
lifecycle.
The
actual
string
of
OBIEE
constructed
prompt
name
and
CONTEXTURLPARAMETERS
Y
prompt
selection
values
used
to
display
a
dashboard/page
with
reports
filtered.
This
also
contains
the
saw.dll
structure
with
portal
path
to
the
dashboard
page
object
itself.
Recording
of
the
prompt
and
its
structure
and
potentially
PROMPTSTATEID
Y
selected
values.
The
OBIEE
structure
referenced
to
a
dashboard
view
such
as
a
report
with
the
specifics
of
the
report
view
down
to
the
name
of
the
view
(i.e.:
table,2
chart,1
etc.)
including
compound
layout
number,
etc,.
ex:
DASHVIEWIDFULL
d:dashboard~p:42o3dnfpcag976qp~r:g5mbdg3k6ctliq6g
Y
~v:compoundView!1~v:tableView!1ViewContainer
This
contains
a
hash
which
gives
the
report
ID
r:
and
other
information
potentially
used
in
BITeamwork.
The
actual
OBIEE
constructed
report
ID
given
on
the
page
at
render
time.
This
should
be
the
same
obiee
report
REPORTID
identification
provided
when
the
object
is
created
on
the
Y
OBIEE
server.
This
is
also
embedded
in
the
OBIEE
object
XML
which
can
be
see
through
the
fat
client
Web
Catalog
Manager.
The
logical
path
associated
with
the
OBIEE
web
catalog
REPORTPATH
Y
structure.
Usually
this
starts
with
/Shared
Folders/.
VIEWREPORTREF
Typically
the
same
value
as
REPORTID
The
primary
key
and
identifier
given
to
each
cell
comment
using
relational
database
modeling
3rd
Normal
Form
(3NF)
CELLCOMMENTID
development
and
modeling
techniques.
This
column’s
value
is
Y
the
link
for
any
other
associates
or
attributes
a
comment
may
have
with
another
table
such
as
notifications,
replies,
etc.
CONTEXTPROMPTFOCUS
Used
to
capture
values
for
fixing
the
prompt
context
of
a
comment
when
using
the
PromptFix
option
when
adding
comments.
If
PromptFix
is
used
it
may
not
be
possible
to
migrate
those
specific
comments
to
another
environment.
In
the
next
section,
the
steps
will
show
the
required
steps
to
determine
the
columns
that
are
out
of
sync,
if
any,
which
may
require
manual
intervention
in
order
to
sync
the
source
environment’s
comments
to
the
target
environment’s
comments
thus
seeing
the
correct
source
environment’s
comments
in
the
target
OBIEE
environment.
• creating
a
new
cell
comment
in
the
target
environment
and
examining
the
table
column
values
as
shown
in
the
above
section
This
information
will
be
used
to
help
you
determine
what
you
need
to
change
in
the
relational
tables
when
you
seek
to
migrate
the
comment
metadata.
2. Now
use
the
SQL
query
above
on
the
target
environment
and
sort
by
created
date
descending
to
see
your
recorded
information.
Based
on
our
development
team’s
comparisions
the
fields’
values
that
typically
change
are
the
following
fields:
• GlobalViewStateId
• DashViewIDFull
(potentially)
• ReportID
(potentially
not
captured
for
a
cell
annotation)
• ViewReportRef
(potentially)
Obviously,
CellCommentID
and
CommentText
fields
will
change.
3. Repeat
step
#2
above
but
this
time
create
a
new
Inline
Cell
Comment
and
examine
the
same
field
changes
and
then
capture
the
difference
in
the
values
comparing
them
to
the
source
environment.
4. View
the
source
system
in
a
similar
fashion
to
determine
the
above
field
values
for
the
archived
and
unarchived
objects
by
looking
at
the
same
table
on
the
BITeamwork
source
system
repository.
Compare
the
Source
and
Target
Data
Elements
Stored
for
Comments
By
viewing
the
source
and
data
comments
for
the
same
dashboard,
where
comments
are
created
independently
of
each
environment
(specifically
only
the
target
environment
needs
a
new
comment
created),
the
results
can
be
compared
similar
to
as
below
to
determine
next
steps:
1. Mark
down
the
respective
values
for
the
particular
type
of
comment
(ILC,
cell
annotation
dashboard,
footnote)
per
the
comparison
chart
below
and
determine
the
deltas
between
the
SQL
Queries
run
on
target
versus
source:
Column
Name
Source
Value
Target
Value
GLOBALVIEWSTATEID
knucbo4euvci379uopgscqpo7u
ftqdlnk6kqb7mlcraolbmmu01e
CONTEXTURLPARAMETERS
Same
Unless
Incorrect
Migration
or
BI
Version
PROMPTSTATEID
1646095062
1646095062
d:dashboard~p:js422ganvkd0cun6~
d:dashboard~p:js422ganvkd0cun6~
DASHVIEWIDFULL
r:86p1epb2hn97an1j~v:compoundView!1~
r:86p1epb2hn97an1j~v:compoundView!1~
v:tableView!1ViewContainer
v:tableView!1ViewContainer
REPORTID
86p1epb2hn97an1j
86p1epb2hn97an1j
REPORTPATH
Same
Unless
Incorrect
Migration
VIEWREPORTREF
86p1epb2hn97an1j
86p1epb2hn97an1j
What
to
Migrate
for
the
Solution
to
Work
The
OBIEE
system
and
BITeamwork
are
still
completely
separate
entities.
They
are
only
coupled
by
the
BITeamwork
repository
in
regards
to
how
comments
appear
on
the
screen
in
the
correct
place.
If
the
OBIEE
target
system
is
different
such
as
it
is
not
relatively
similar
to
the
source
system
then
a
migration
of
comments
will
be
difficult.
Any
major
differences
in
the
following
will
have
an
impact
to
the
ability
to
migrate
commentary:
1. Dashboard
names
2. Object
locations
3. Updates
in
the
BITeamwork
repository
structure
Export
a
Database
Schema
in
Source
and
Replace
the
Target
Schema
Assuming
that
your
organization
has
used
best
practices
for
migration
development
content
from
DEV
to
TEST
to
PRODUCTION
and
that
as
per
the
above
you’ve
conducted
the
tests
to
show
where
the
deltas
in
metadata
reside,
the
only
remaining
steps
is
to
completely
move
the
repository
of
BITeamwork
from
one
location
to
another
safely,
effectively
replacing
the
target
environment
BITeamwork
comment
repository.
After
which
you
will
then
need
to
run
the
SQL
UPDATE
statement(s)
on
the
target
environment’s
repository.
6. ….
7. …
5. DROP
the
user
and
schema
BITEAMWORK_OBI
in
order
to
move
the
content
from
the
source
to
the
target.
a. You
do
not
need
to
run
the
uninstall
BITeamwork
script.
You
simply
need
to
drop
the
schema
b. NOTE:
it
makes
sense
to
backup
this
target
schema
first
using
the
same
export
options
shown
in
the
previous
section.
This
way
you
could
restore
if
you
bumped
into
issues.
DROP
USER
BITEAMWORK_OBI
CASCADE;
NOTE:
if
needing
to
kill
sessions
prior
to
the
DROP
command
working
correctly,
use
the
following
logic
to
create
necessary
kill
scripts
to
be
able
to
drop
the
user
cleanly,
select 'alter system kill session ''' || sid || ',' || serial# || ''';' from
v$session where username = '<your_schema>'
Ref:
https://javaworks.wordpress.com/2009/10/29/oracle-‐how-‐to-‐drop-‐a-‐user-‐who-‐is-‐connected-‐forcefully/
6. In
another
terminal
window
or
exit
SQLplus
kernel,
enter
the
following
to
begin
importing
the
schema
from
the
exported
dmp
file,
for
example:
impdp
system/Sy$tem64@oracle12c
directory=testout
dumpfile=testout.dmp
logfile=testoutbiteamworkmigrate.log
Another
option
would
be
to
import
to
a
different
schema
name
keeping
the
old
schema
intact.
This
would
cause
you
to
repoint
several
things
in
the
system
which
is
beyond
this
document
but
the
imported
dmp
file
schema
could
be
imported
to
another
schema
name
using
the
remap_schema
syntax.
7. Confirm
the
imported
schema
results
and
validate
by
running
a
query
on
the
appropriate
table
that
the
correct
source
repository
is
now
on
the
target
8. Update
the
newly
imported
schema
to
ensure
the
password
is
the
password
that
was
used
previous
as
something
could
have
corrupted
during
transit
MODIFY
USER
BITeamwork_OBI
identified
by
‘testing123’
The
following
update
script
was
run,
UPDATE
TW_ANALYSIS_CELL_COMMENT
SET
GLOBALVIEWSTATEID
=
'ftqdlnk6kqb7mlcraolbmmu01e'
WHERE
GLOBALVIEWSTATEID
=
'knucbo4euvci379uopgscqpo7u'
AND
REPORTPATH
=
'/shared/BITeamwork/Inline
Cell
Commenting'
AND
REPORTNAME
=
'Inline
Cell
Commenting
-‐
Double
Comment
Box';
Start
the
Weblogic
Deployment
of
the
JEE
BITeamwork
application
After
which
the
same
dashboard
page
on
the
target
environment
was
reviewed
and
the
target
page
appears
as
below:
For
reference
here
is
the
original
source
environment
dashboard
page: