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

Go Back   Oracle OTM / G-Log GC3 Community Support > OTM / G-Log - Technical Topics > Database Administration
Reload this Page

[SOLVED] Error when trying to use DB scripts provided with OTM


Database Administration Database installation, creation, administration and related topics.

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 3rd, 2009, 19:03
Senior Member
 
Join Date: Feb 2008
Posts: 114
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 13
Thanked 1 Time in 1 Post
Rep Power: 2
cspadola is on a distinguished road
[SOLVED] Error when trying to use DB scripts provided with OTM

I have just finished installing Oracle 10g Enterprise Edition (10.2.0.3) and would like to run the Tablespace creation scripts that were provided with the OTM install.

I have logged into SQLPLUS as SYSTEM and am within the Script8 directory. I am able to start off with the create_gc3_tablespaces script and answer all the prompted questions but when I tell it to create the tablespaces now, it immediately gives me these errors:

================================================== ====
*
ERROR at line 1:
ORA-04063: package body "SYSTEM.CREATE_TABLESPACE" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYSTEM.CREATE_TABLESPACE"
ORA-06512: at line 1


BEGIN create_tablespace.set_partition_db('n'); END;

*
ERROR at line 1:
ORA-04063: package body "SYSTEM.CREATE_TABLESPACE" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYSTEM.CREATE_TABLESPACE"
ORA-06512: at line 1


BEGIN create_tablespace.set_dbtype('n'); END;

*
ERROR at line 1:
ORA-04063: package body "SYSTEM.CREATE_TABLESPACE" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYSTEM.CREATE_TABLESPACE"
ORA-06512: at line 1


BEGIN create_tablespace.set_auto_extend('y'); END;

*
ERROR at line 1:
ORA-04063: package body "SYSTEM.CREATE_TABLESPACE" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYSTEM.CREATE_TABLESPACE"
ORA-06512: at line 1


BEGIN create_tablespace.set_execute('y'); END;

*
ERROR at line 1:
ORA-04063: package body "SYSTEM.CREATE_TABLESPACE" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYSTEM.CREATE_TABLESPACE"
ORA-06512: at line 1


BEGIN create_tablespace.create_all_ts('D:\oracle\oradata ', '1024000K','2048000K'
); END;

*
ERROR at line 1:
ORA-04063: package body "SYSTEM.CREATE_TABLESPACE" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYSTEM.CREATE_TABLESPACE"
ORA-06512: at line 1

================================================== ====

I am definitely not a DBA and I see the different sql script files the original create_gc3_tablespaces script calls on within the same directory.

Can somebody give me some sugestions? Just to note, none of the scripts in this Script8 directory have been modified in any way.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old July 3rd, 2009, 20:54
Member
 
Join Date: Jul 2006
Posts: 48
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 16
Thanked 11 Times in 9 Posts
Rep Power: 0
acuartero is on a distinguished road
Re: Error when trying to use DB scripts provided with OTM

Hi Carmelo,

I think your problem is that you need to login as user SYS not as SYSTEM.

Thanks,
Alan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old July 3rd, 2009, 21:10
Senior Member
 
Join Date: Feb 2008
Posts: 114
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 13
Thanked 1 Time in 1 Post
Rep Power: 2
cspadola is on a distinguished road
Re: Error when trying to use DB scripts provided with OTM

Thanks Alan...it has been too long since I did a full install (DB + OTM), especially one in a Windows Environment.

I logged in as SYS and it looks to be doing it now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old July 6th, 2009, 15:37
Senior Member
 
Join Date: Feb 2008
Posts: 114
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 13
Thanked 1 Time in 1 Post
Rep Power: 2
cspadola is on a distinguished road
Re: Error when trying to use DB scripts provided with OTM

I am able to get past the tablespace creation step now.

However, when I get to the step to create_public_synonyms, I receive the following error:

SQL> @create_public_synonyms
SELECT owner, table_owner FROM DBA_SYNONYMS WHERE SYNONYM_NAME = p_synonym_name;
*
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

I am logged in as glogowner as per the admin guide while running this script. the previous 2 scripts in this section ran without error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old July 6th, 2009, 16:29
Member
 
Join Date: Jul 2006
Posts: 48
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 16
Thanked 11 Times in 9 Posts
Rep Power: 0
acuartero is on a distinguished road
Re: Error when trying to use DB scripts provided with OTM

Carmelo,

I think you're missing some grants to glogowner. Did you encounter any errors with create_glog_roles.sql and create_glog_users.sql?

Thanks,
Alan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6 (permalink)  
Old July 6th, 2009, 18:12
Senior Member
 
Join Date: Feb 2008
Posts: 114
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 13
Thanked 1 Time in 1 Post
Rep Power: 2
cspadola is on a distinguished road
Re: Error when trying to use DB scripts provided with OTM

I re-ran all the scripts again and it seems to have worked this time. I didn't have any errors when running the create roles and users scripts however I did run into errors when I ran the create synonyms script.

I ran them all again and after the recompile, there are o invalid objects.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7 (permalink)  
Old July 6th, 2009, 18:54
Senior Member
 
Join Date: Feb 2008
Posts: 114
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 13
Thanked 1 Time in 1 Post
Rep Power: 2
cspadola is on a distinguished road
Re: Error when trying to use DB scripts provided with OTM

I spoke too soon. I see in the logs that when I was creating the tablespaces using the create_gc3_tablespaces script, it was able to create all the tablespaces but at the end of the script, I see the following error:

BEGIN create_tablespace.create_all_ts('d:\oracle\oradata ', '1024000K','2048000K'
); END;

*
ERROR at line 1:
ORA-29339: tablespace block size 16384 does not match configured block sizes
ORA-06512: at "SYS.CREATE_TABLESPACE", line 136
ORA-06512: at "SYS.CREATE_TABLESPACE", line 497
ORA-06512: at "SYS.CREATE_TABLESPACE", line 187
ORA-06512: at "SYS.CREATE_TABLESPACE", line 159
ORA-06512: at line 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8 (permalink)  
Old July 6th, 2009, 19:43
Member
 
Join Date: Jul 2006
Posts: 48
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 16
Thanked 11 Times in 9 Posts
Rep Power: 0
acuartero is on a distinguished road
Re: Error when trying to use DB scripts provided with OTM

Sounds like your database was created with a different block size. I believe the default under windows is 8K. You can do the following instead but for performance reasons it would be better to rebuild the DB with a 16k block size in the first place. I guess if its not going to be a production instance you can get away with this.

from the Admin guide... pg 3-19

This script creates LOB tablespaces with 16 KB block size. This is the recommended block size for
optimal performance. In order to create a tablespace with 16 KB block size, you should have the
following init.ora parameter set if your database standard block size is not 16 KB. Change the cache
size as needed for your database.
db_16k_cache_size = 104857600 # 100MB for 16k block buffers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9 (permalink)  
Old July 6th, 2009, 19:51
Senior Member
 
Join Date: Feb 2008
Posts: 114
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 13
Thanked 1 Time in 1 Post
Rep Power: 2
cspadola is on a distinguished road
Re: Error when trying to use DB scripts provided with OTM

Thanks Alan, I think for now I will leave it as is seeing how this will not be a PROD server. Next time I re-install OTM on this sandbox server I will go for the bigger block size.

Looks like OTM is up and running now. And in case I didn't say it today, I hate installing and running OTM on Windows!

Thanks for your help.

Carmelo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10 (permalink)  
Old July 7th, 2009, 00:35
Senior Member and Blogger
 
Join Date: Nov 2007
Location: Drexel Hill, PA
Posts: 371
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 0
Thanked 67 Times in 63 Posts
Rep Power: 3
nick.polites will become famous soon enough
Re: Error when trying to use DB scripts provided with OTM

You could also just put that parameter in and bounce the database. The next time you create the tablespace it should work.
__________________
MavenWire Hosting Admin
www.mavenwire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


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
TE020 and TE040 test scripts for EBS-OM to OTM integration raju.nimmana OTM / EBS / JDE E1 Integration 0 November 5th, 2008 07:30



All times are GMT. The time now is 11:18.
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