otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Installation and Upgrades Getting past the first step - installing and upgrading OTM / G-Log.

Tags: , ,

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 8th, 2007, 15:13
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 791
Blog Entries: 7
Thanks: 51
Thanked 194 Times in 119 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10
chrisplough has a spectacular aura aboutchrisplough has a spectacular aura aboutchrisplough has a spectacular aura about
Send a message via AIM to chrisplough
Create OTM 5.5 DB - need SYS privileges

While helping a friend setup an OTM 5.5 instance, I ran into a problem where the create_glog_roles.sql and create_glog_users.sql scripts were failing because the SYSTEM user didn't have privileges to run some of the required commands.

The fix is simple, rather than running both scripts as SYS (which I avoid doing - much like running commands as root on Unix / Linux boxes), or granting more privilleges to the SYSTEM user, you can get buy with just running certain commands as SYS.

Here's the course of events:
  1. Login to your OTM app server
  2. Change directories to <otm_home_dir>/glog/oracle/script8
  3. Sqlplus into your OTM database as the SYSTEM user
  4. Run
    Code:
    @create_glog_roles.sql
  5. Sqlplus into your OTM database as the SYS user
  6. Run:
    Code:
    grant SELECT ON DBA_SYNONYMS to app_owner;
    grant execute on dbms_rls to app_owner;
    grant select on sys.v_$context to app_owner;
    GRANT execute on dbms_rls to rep_owner;
    commit;
  7. Sqlplus into your OTM database as the SYSTEM user
  8. Run:
    Code:
    @create_glog_users.sql
  9. Sqlplus into your OTM database as the SYS user
  10. Run:
    Code:
    grant DBA to glogowner;
    grant DBA to glogdba;
    grant execute on dbms_aqin to glogdba;
    grant execute on dbms_rls to glogowner;
    GRANT EXECUTE ON DBMS_AQIN TO glogowner;
    GRANT execute on dbms_pipe TO glogowner;
    commit;
Hope this helps!
--Chris
__________________
Chris Plough
MavenWire

www.MavenWire.com

Last edited by chrisplough : June 8th, 2007 at 16:38.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old June 8th, 2007, 15:59
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 791
Blog Entries: 7
Thanks: 51
Thanked 194 Times in 119 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10
chrisplough has a spectacular aura aboutchrisplough has a spectacular aura aboutchrisplough has a spectacular aura about
Send a message via AIM to chrisplough
Re: Create OTM 5.5 DB - need SYS privileges

Just a quick update. While setting up the OTM database, you will get the following error while running the create_public_synonyms.sql script as the reportowner user:
Code:
SQL> @create_public_synonyms.sql
   SELECT owner, table_owner FROM DBA_SYNONYMS WHERE SYN *
ERROR at line 8:
ORA-06550: line 8, column 35:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 8, column 4:
PL/SQL: SQL Statement ignored
In order to resolve this issue, just login to the OTM database as the SYS user and run:
Code:
grant SELECT ON DBA_SYNONYMS to rep_owner;
Then, re-run the create_public_synonyms.sql script as the reportowner user.

This will avoid several problems later down the road.

Hope this helps!

--Chris
__________________
Chris Plough
MavenWire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old October 22nd, 2007, 07:46
Junior Member
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
jonash is on a distinguished road
Re: Create OTM 5.5 DB - need SYS privileges

I had similar problems, but these were caused by the setting of O7_DICTIONARY_ACCESSABILITY. If this is set to false, the permissions for SYSTEM are tightened. If set to TRUE, the scripts work.

Just my thoughts...

Jonas

Edit:
To clear things up: The parameter is for the database, init.ora, and not in OTM...

Last edited by jonash : October 27th, 2007 at 10:31.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to jonash For This Useful Post:
chrisplough (October 22nd, 2007)
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create partial bill and understand that it was paid? 4yyort Settlement 1 May 27th, 2008 11:08
how to create a frame. sn1405 Branding, Screen Sets, XSL/CSS and Translations 0 January 30th, 2008 14:29
Create a wireless user id with read access only hosk9818 Execution 2 January 6th, 2008 22:48
Create Lists in Business Monitor rj5316 Workflow 3 December 11th, 2007 14:56
[SOLVED] Manager Layout - How to Create Buttons? soujanya Branding, Screen Sets, XSL/CSS and Translations 6 July 18th, 2007 00:34



All times are GMT. The time now is 21:28.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37