发新话题
打印

[已解决] 无法初始化数据库( 此文章被查看:340次,被回复:7篇!! )

本主题由 yunshan 于 2008-8-1 10:48 关闭

无法初始化数据库

在创建测试数据库的时候老是提示这样的错误,我使用的数据库是oracle9i,如果使用Access,则没有问题,请大家帮忙看看,如下图:


问题已经解决 [打开主题]
本主题的最佳答案为 [ 5 楼].

附件

未命名.jpg (45.62 KB)

2008-6-12 15:42

未命名.jpg




© 本文为 m_2@live.cnSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

发张大图:

附件

未命名1.jpg (67.29 KB)

2008-6-12 15:45

未命名1.jpg




© 本文为 m_2@live.cnSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

表空间是空的吗?



© 本文为 yunshanSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

是空的啊。。。。。。

© 本文为 m_2@live.cn 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

估计是你的Oracle用户权限有问题,参考下图进行设置:




最佳答案
该回答被楼主/管理员列为正解!

© 本文为 yunshan 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

Oracle roles can cause problems during ClearQuest user database creation
http://www-1.ibm.com/support/docview.wss?uid=swg21217027

Problem(Abstract)
This technote addresses a potential issue that can occur if creating a database in IBM® Rational® ClearQuest®, when the Oracle user accounts have been granted roles in addition to CONNECT and RESOURCE, which are the required roles.  
  
Symptom
Sample error message if Oracle user accounts have incorrect roles:

Unable to initialize database "TEST" with schema "Enterprise" version 1. Reason: SQLExecDirect: RETCODE=-1, State=42502, Native Error=942
SQL statement="delete from userdb_packagerev_usage"
[OpenLink][ODBC][Oracle Server]ORA-00942: table or view does not exist

The log file C:\DOCUME~1\myuser\LOCALS~1\Temp\TEST_Enterprise_1_init.log may be useful in resolving this problem.  
  

Cause
Oracle user accounts that have been granted roles in addition to CONNECT and RESOURCE can cause a failure during ClearQuest database creation.  
  

Resolving the problem
To determine which roles have been granted to a specific Oracle user follow the steps as outlined below.
Using Oracle SQL Plus:
* Connect to the Oracle Database as a 'SYSDBA'
'SYSDBA' would be the system DBA account
* Execute the following SQL script, providing the Oracle username in question:

select grantee, granted_role
  from dba_role_privs
  where grantee = <username>

Example:
If the User created initially was called 'CLEARQUEST', the sql statement would be:

select grantee, granted_role
   from dba_role_privs
   where grantee = 'CLEARQUEST'

The output desired would be:

GRANTEE                        GRANTED_ROLE
------------------------------ ------------------------------
CLEARQUEST                     RESOURCE
                               CONNECT

To alter an existing user account's permissions, execute the following statements:


To grant CONNECT and RESOURCE roles:
grant CONNECT, RESOURCE to CLEARQUEST;

To revoke roles:
revoke <role> from CLEARQUEST;   
Where <role> would be any role such as DBA

Note for ClearQuest 2002 and 2003 versions:
The only exception to the above would be the granted role of CTXAPP - this role is pertinent to Multi-line Text searching using the Oracle InterMedia Option and does not need to be revoked.

For more information regarding Multi-line Text searching see "Enhancing Oracle Search Capabilities" in the Rational 2003 Server Product Installation Guide.
This guide is located on the 'Rational Solutions for Windows Online Documentation CD. From the table of contents:
Topics -> Rational Server Products Installation Guide
From the Rational Server Product Installation Guide's table of contents:
> After Install: Configuring Databases and Administrative Tasks for ClearQuest
> Configuring the Oracle Server for ClearQuest
> Enhancing Oracle Search Capabilities

© 本文为 yunshan 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

我也碰到楼主这个问题,按楼上的说法试了----失败,不适合我的情况。等待适合我的方法!

© 本文为 miracle-ray 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

简单的测试一下
你直接在MAINTANANCETOOL里面用ORACLE 9i做数据库
建一个DBSET看是否可以呢?

另外,你在使用的ORACLE的USER的权限是什么的?

© 本文为 softfly 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

发新话题