Showing posts with label DB. Show all posts
Showing posts with label DB. Show all posts

Sunday, 23 November 2014

Write-Ups: How do roles simplify database administration with regard to privileges?

Managing privileges can be very confusing if not planned and implemented in an organized manner.
How do roles simplify database administration with regard to privileges?

I would like the answer about 200 words.

Sol:
Managing privileges is not an easy job in an enterprise database. There of thousands of privileges which are being used. Hence Users cannot be assigned and managed with privileges, so we go for something called roles. A set of privileges are assigned to a role. This role is then assigned to users. Each and every user must have a role for accessing any resources in a database.
A role definitely simplifies the work of database administration when compared to privileges. Managing a role is very much easy when compared to managing a privilege. Once the set of privileges are assigned to one particular role the role assigned to the user can be performed within the limits of the assigned privileges.
Let us take an example where the role1 is assigned to the user1 with privileges of insert, update, select and create. Here the user1 has got privileges of inserting the data to a table or updating the data or else just for selecting any table or data or create tables. We can call this as user privileges, since the delete privilege is not given to user. It’s mainly for admin use. Hence user will not be able to delete the data or table but he/she will be able to create a table, update a table or else insert data.
In this manner the set of privileges perform together in the form of a role, which is assigned to users to perform their activity. Hence role simplifies the task of DBA when compared to privileges.

References:

Database Assignment Help: Execute your script to create the new user...

#User roles
You need to create a new user named ASSOCDBA1 and a new ROLE named JRDBA1 that can be used for an assistant DBA. You want the new role to contain the DBA role that the SYSTEM user has with ADMIN OPTION (when it pertains to the current SYSTEM user setting). You also want the new role to be password-protected with a password of MJOAG2T. Once the role is created, assign the role to the new user ASSOCDBA1, but do not make it the default role.

Execute your script to create the new user, the new ROLE, assign privileges to the role, and assignment of the ROLE to the user.

Need a quick solution to this question? Comment on this post!!!

Saturday, 22 November 2014

Database Queries: Write and execute the SQL commands..

New data types
Q) You are going to create new table to be housed in the USERS01 tablespace.
The table name will be METALS and will be used to store a description of various metals. The following offers some additional direction on how the table should be created.

* The table shall have a primary key called METALS_ID.
* An inline primary key constraint shall be defined. The constraint name shall be METALS_ID_PK shall be used.
* An addition column of METAL_DESCRIPTION shall be added to the table definition.
* A unique constraint on METAL_DESCRIPTION shall be added to the table definition. The constraint name shall be METAL_DESC_UK shall be used.
Can you write and execute the SQL commands.

Need a quick solution to this question? Comment on this post!!!

Wednesday, 18 May 2011

Database Assignment Help

----------------------------------------------------------------------------------------------------------------------------------
Create an Unformatted Work Order report which displays when a work order is assigned to a crew
The ability to assign WO’s has already been complete you just need to create the report that displays the information.
Add a button to the assign work order form to display the report mentioned above when you click on it.
Create a report that displays the information already displayed in the open work order form. This report should be called the open work order report.
New order Entry form
-WO
-Property ID
-Address
-Client
-Zipcode
-Assigned date from Client
-Entered Date (auto)
-Original client request (attachment)
-Client Comments
-(if it is an initial create a -1 WO and a -2)
[saves to a temporary file for review before posting to database, no posting double entries, auto produce report on contradicting entries]

Unassigned Work Order Form
-WO(static)
-Property ID (static)
-Address (Static)
-Zipcode (static)
Crew(pull-down)
Account Manager’s comments
Account manager’s Activities request
Assigned Date (auto)
Estimated completion date
Add Activity types
Client
Type
Rate
Unit of measure

Adjust Property ID form
Property ID (static)
Address
Zipcode

Zipcode to City table


Open Work Order Report
WO
Property ID
Address
Client
Work Order Status
Date
Due Date
Comments
Account Manager

Work Order Processing Form
-WO(static)
-Property ID (static)
-Address (Static)
-Zipcode (static)
Assigned Crew (Static)
AM requested Activities (static)
AM Comments (static)
Estimated completion date (static)
Assigned by 
Actual Activities
Field Comments
Inventory Items Used
Due Date extension (y/n)
Due date extension (date)
Arrival time (time)
Completion time (time)
Photos taken
Link to photos taken
Cubic Yards Removed (on trashouts)
Dumpster ordered (on trashouts)
Photos for each activity (server location)
Length x with (if grasscuts)
Type of Trip charge(if trip charge)
[track trip charges by property id]


Update Crews Form
Employee
Supervisior
Crew

Work Order Completion Report
Work Order
Activities Performed
Due Date 
Field Comments
Date Completed
Post completion comments


Admin Processing Form
Work Order
Property ID
Address
Due Date
Date Completed in the field
Photos Uploaded By
Do photos support work?
Location of scanned backup (server location)
Post Completion comments

Work Order Revenue Estimate Report
Work Order
Property ID
Actual Activities
Revenue

Total Revenue


Daily Revenue Estimate
Assigned date
Completion date
WO
Total Revenue
Daily revenue
Daily rev goal
Weekly Revenue Report
Assigned date
Completion date
WO
Total revenue
Weekly revenue
YTD revenue
MTD revenue
Annual Revenue Goal
Monthly Revenue goal
Weekly Revenue goal
Daily revenue goal
Amount over the goal
Amount over x 3%

Bid form
Activities
Cost per activity
Date of initial bid
Date assigned to 180
Estimated completion date
Sub estimate
Estimated revenue

Upload Monthly Janitorial 

Upload Triweekly addresses

Monthly Work orders by type
Monthly zipcodes 
Vehicle Maintenance report
Inventory Usage Report
Estimated Net Income Report
Invoicing Form
WO
Property ID
Invoice Number

-how to dont allow manual edit to the tables ,and just forms should do that
2-after building the report,the viewer should be able to add extra values to the report .
3-for example fill the form which is directly connected to data base and clear the txt boxes if the user decide that he doesnt want the record.
4-create login screan with password.
5-we try this but tink its hard to do it directly
have for example the supervisor able view and update but for example the workers not just to view ,more likely set rights for the users
create a report and then be able to exchange the information on them for example if there 6 txt boxes 
and the report fill 4 of them when we ran it,the user can actually go to this report and fill the other 2 and add edit the other 4
all this should be done in MS Access

Price 50$) - Contact: businessonline4me@gmail.com

------------------------------------------------------------------------------------------------------------------------------------

Suppose you need to sort a relation of 40 gigabytes, w/4 kb blocks, 
using a memory size of 40 mgbytes. 
Suppose the cost of seek is 5milliseconds, while the disk transfer
rate is 40mgbytes per second. 
a. Find the cost of sorting the relation , in seconds, w/bb = 1 & 
w/ bb= 100.

b. In each case, how many merge passes are required?
c. Suppose a flash storage device is used instead of a disk , and 

it has a seek time of 1 microsecond, and a transfer rate of 40 
mgbytes per second . Recompute the cost of sorting the relation, 
in seconds, w/bb= 1 & w/bb= 100, in this setting.

The question is from the textbook "Database System Concepts" 6th 
edition chapter 13 Query optimization

Price 5$) - Contact: businessonline4me@gmail.com
----------------------------------------------------------------------------------------------------------------------------------