otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire


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

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: 1,156
Blog Entries: 8
Groans: 0
Groaned at 1 Time in 1 Post
Thanks: 137
Thanked 256 Times in 159 Posts
Rep Power: 10
chrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the rough
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: 1,156
Blog Entries: 8
Groans: 0
Groaned at 1 Time in 1 Post
Thanks: 137
Thanked 256 Times in 159 Posts
Rep Power: 10
chrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the rough
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
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 1 Time in 1 Post
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

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
vpd.set_user throws exception of 'Insufficient Privileges' sknmail@rediffmail.com Database Administration 1 July 2nd, 2009 09:49
How to create Mixed Pallet? Kiseleva Order Processing 0 July 2nd, 2009 07:33
Create new FTI garofalof Reports / BI / FTI and Other Analytics 0 December 11th, 2008 10:49
How to Create Order Movements? cool_brat Order Processing 3 May 4th, 2008 11:05
how to create a frame. sn1405 Branding, Screen Sets, XSL/CSS and Translations 0 January 30th, 2008 14:29



All times are GMT. The time now is 07:38.
Copyright © 2006-2009, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

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 38 39 40