How to create a user in Oracle to create new Oracle projects

http://kb-index.mercury.com/web/queries/KBAview.asp?Product=TD&Conceptid=7095&BVUserID



Problem Description: How to create a user in Oracle to create new Oracle projects

The SQL statements for an Oracle Database Administrator to run in order to give a TestDirector user privileges for creating new TestDirector Oracle projects.

Please refer to article Problem ID 7093 - How does TestDirector create Oracle projects for explanation.

Please refer to this article for more explanation on checking permissions: Problem ID 7145 - How to check permissions for an Oracle user creating TD projects

Solution: SQL statements to create a user in Oracle to create projects

Note:
Please have your Oracle DBA do this for you.

TestDirector 7.01 - 7.2

Here is a way to create an Oracle user named "projadmin" that can be used to create new TestDirector projects.

1. Using the SQL Plus Utility, connect to the Oracle Server using the "SYS" account. Execute these SQL statements and verify that each statement is executed successfully:

create user projadmin identified by projadmin;
grant grant any role, create user,drop user to projadmin;
grant select on dba_free_space to projadmin;
grant connect to projadmin;
grant resource to projadmin with admin option;

If any of the SQL statements failed, that means the "SYS" account does not have the enough privileges; please refer to your DBA.

2. Open the Project Administrator, try to create a new Oracle project using the user "projadmin" with password "projadmin" to log into the Oracle Server.

TestDirector 7.5

1. Using the SQL Plus Utility, connect to the Oracle Server using the "SYS" account. Execute these SQL statements and verify that each statement is executed successfully:

create user projadmin identified by projadmin;
grant grant any role, create user, drop user to projadmin;
grant select on dba_free_space to projadmin;
grant connect to projadmin;
grant resource to projadmin with admin option;
grant select on dba_tablespaces to projadmin;
grant create session to projadmin with admin option;
grant create table to projadmin with admin option;
grant create view to projadmin with admin option;
grant alter user to projadmin;
grant select any table to projadmin with admin option;

If any of the SQL statements failed, that means the "SYS" account does not have the enough privileges; please refer to your DBA.

2. Open the Site Administrator, try to create a new Oracle project using the user "projadmin" with password "projadmin" to log into the Oracle Server.

TestDirector 7.6 and 8.0

The following Oracle privileges are required by TestDirector 7.6 and 8.0. Note that the user account should be created on the Oracle database server by an Oracle database administrator logging in as "SYS".

Note:
The user name must be capitalized.

CREATE USER <USER> IDENTIFIED BY <PASSWORD>
DEFAULT TABLESPACE <USERS_TABLE> TEMPORARY
TABLESPACE <TEMP_TABLE> ACCOUNT UNLOCK;
GRANT CREATE SESSION TO <USER> WITH ADMIN OPTION;
GRANT CREATE TABLE TO <USER> WITH ADMIN OPTION;
GRANT CREATE VIEW TO <USER> WITH ADMIN OPTION;
GRANT CREATE USER TO <USER>;
GRANT SELECT ON "SYS"."DBA_FREE_SPACE" TO <USER>;
GRANT SELECT ON "SYS"."DBA_TABLESPACES" TO <USER>;
GRANT ALTER USER TO <USER>;
GRANT DROP USER TO <USER>;
GRANT SELECT ON V$INSTANCE TO <USER>;

Note that this information can be found in the TestDirector Administrator's guide in the Chapter on Configuring Servers and Parameters. It is in the section for defining new database servers for Oracle.

Quality Center 8.0

Please refer to Problem ID 32903 - What are the minimum permissions for Oracle in Quality Center.

你可能感兴趣的:(How to create a user in Oracle to create new Oracle projects)