473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Oracle Security conversion..

Uma
Hi..

here is my question..

these are my Oracle scripts . I want the similar concepts in DB2

connect system/manager

/********************************************/
/* Create the two roles used by MWMS system */
/********************************************/
CREATE ROLE WMS_DBA;
CREATE ROLE WMS_USER;
CREATE ROLE WEB_USER;
/*************************************/
/* Grant privileges to the two roles */
/*************************************/
GRANT
ALTER ANY INDEX, ALTER ANY PROCEDURE, ALTER ANY ROLE, ALTER ANY
SEQUENCE, ALTER ANY TABLE, ALTER ANY TRIGGER, ALTER USER, COMMENT ANY
TABLE,
CREATE ANY INDEX, CREATE ANY PROCEDURE, CREATE ANY SEQUENCE, CREATE
ANY SYNONYM, CREATE ANY TABLE, CREATE ANY TRIGGER, CREATE ANY VIEW,
CREATE DATABASE LINK,
CREATE PROCEDURE, CREATE PUBLIC DATABASE LINK, CREATE PUBLIC SYNONYM,
CREATE SEQUENCE, CREATE SESSION, CREATE SYNONYM, CREATE TABLE, CREATE
TRIGGER, CREATE USER,
CREATE VIEW, DELETE ANY TABLE, DROP ANY INDEX, DROP ANY PROCEDURE,
DROP ANY ROLE, DROP ANY SEQUENCE, DROP ANY SYNONYM, DROP ANY TABLE,
DROP ANY TRIGGER, DROP ANY VIEW,
DROP PUBLIC DATABASE LINK, DROP PUBLIC SYNONYM, DROP USER, EXECUTE
ANY PROCEDURE, GRANT ANY ROLE, INSERT ANY TABLE, SELECT ANY SEQUENCE,
SELECT ANY TABLE, UPDATE ANY TABLE
TO
WMS_DBA WITH ADMIN OPTION;

GRANT
CREATE SESSION, SELECT ANY TABLE, EXECUTE ANY PROCEDURE
TO
WMS_USER;

/****************************************/
/* Drop the users identified as DBA's */
/****************************************/
DROP USER ABC CASCADE;

/****************************************/
/* Create the users identified as DBA's */
/****************************************/
CREATE USER ABC IDENTIFIED BY ABC DEFAULT TABLESPACE PKEYS_CWS
TEMPORARY TABLESPACE TEMP;

/************************************************** **********/
/* Grant the WMS_DBA Role to the users identified as DBA's */
/************************************************** **********/
GRANT WMS_DBA TO ABC;

/*************************************************/
/* This grants unlimited tablespace to user MWMS */
/*************************************************/
GRANT UNLIMITED TABLESPACE TO ABC IDENTIFIED BY ABC;
connect sys/change_on_install;
ALTER USER sys IDENTIFIED BY manager;
GRANT SELECT ON V_$SESSION TO WMS_USER;
GRANT SELECT ON V_$SESSION TO ABC;
GRANT SELECT ON dba_users TO WMS_USER;
GRANT SELECT ON dba_users TO ABC;
Jul 19 '05 #1
1 3458
Uma wrote:

Hi..

here is my question..

these are my Oracle scripts . I want the similar concepts in DB2


You want conversion TO DB2? If yes, you might ask over at
comp.databases.db2
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: expecthealth | last post by:
OPERATIONAL ORACLE DBA Position Description: This position will report to the Manager of Systems Services. The DBA will work in the Oracle environment and help manage a complex production...
1
by: Mike | last post by:
Hi all, I'm trying to decide between two books for Oracle Financials security - there seem to be two obvious possibilities. The books are "Oracle E-Business Suite Financials Administrations" by...
0
by: JWM | last post by:
I am trying to implement Oracle connection pooling for the following code, which was written by someone else. Here is my main question -- this java file creates code that is executed every hour,...
8
by: Tavish Muldoon | last post by:
At a high level - what would be involved in switching from Oracle to DB2? Pretty vague, I know - but anyone have experience with this kind of migration? Pointers? Things to look for? Tmuld
13
by: BigDaDDY | last post by:
Um yeah....In case you haven't figured it out, Microsoft sucks. I'm going to be kicked back in my chair eating popcorn and watching football 10 years from now, while all you clowns are scrambling...
13
by: Chris Botha | last post by:
The machine is running XP Pro with all the latest service packs, etc. I must access an Oracle database so I installed the Oracle client stuff. I can query Oracle from a Windows app, no problem....
1
by: bala | last post by:
Hi Access Gurus The MS Access DB (MS Access 2002 Database) which is currently serving as the backend Database to MS Access (MS Access 2002/XP) frontend needs to be converted to Oracle 8i Backend...
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
1
by: Uma | last post by:
Hi.. here is my question.. these are my Oracle scripts . I want the similar concepts in DB2 connect system/manager /********************************************/ /* Create the two roles...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.