Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

1) Prepare directories on your hard drive. Place a small text file in one directory. Use Oracle package UTL_FILE to read that file, line by line, from one directory and write a similarly named file into the second directory. Before writing the file to the second directory check whether a file with the intended file already exists in that directory. If it does, do not overwrite it but rather rename that existing file (create a backup copy).

2) Prepare an indefinitely running process that would insert a single row with a numeric primary key in one column and some kind of time stamp in the other column. Between two insertions, what 10 seconds. Control the wait between two insertions using Oracle packaged procedure:

dbms_lock.sleep(Number_of_seconds );

You do want to have a way of telling that process to stop. Use tools given by Oracle's dbms_pipe package. Let that process periodically read a named pipe. If there appears a message "STOP" in that pipe, the process should stop.

3) Prepare a object types emp_t, dept_t, andoffice_t where type emp_t will have information on employees empno, ename, managerrefanddeptref. Field managerref is the reference (pointer) to an emp_t object containing description of an employee's manager. Similarly, deptref is the reference to an object of type dept_t. Type dept_t contains information about a department, i.e. deptno, dname, location (city) and officeref. Field officeref is a reference pointing to an object of type office_t which describes an office building. Type office_t contains attributes specifying office building name, street address and room number. Create object tables EMP_TAB, DEPT_TAB and OFFICE_TAB that contain objects of typesemp_t, dept_tandoffice_t. Populate your tables by selecting data from tables EMP and DEPT in you demo schema and by plain inserts and updates where new data are needed. Using navigation through references create a result set presenting:

a) ename, empno, and location where employees work.

Extend you query to display

b) empno, ename, location, office_building_name, room_number.

Extend your query to display

c) Empno, manager's empno, ename, manager's ename, location of the employee and location of the manager

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M9717696
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in DBMS

Instructionsfor decades relational databases remained

Instructions For decades, relational databases remained essentially unchanged; data was segmented into specific chunks for columns, slots, and repositories, also called structured data. However, in this Internet of Thing ...

A taking an unnormalised list describe how you would

(a) Taking an unnormalised list, describe how you would normalise it using the normal forms technique and show how the result of this method is used. (b) You are currently in the process of developing a RDBMS for a natio ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Analytic reportpurpose the purpose of this task is to

Analytic Report: Purpose: The purpose of this task is to provide students with practical experience in working in teams to write a Data Analytical report to provide useful insights, pattern and trends in the chosen/given ...

Question sql injection is in the top 10 owasp and common

Question : SQL Injection is in the top 10 OWASP and Common Weakness Enumeration. Using MySQL and PHP, show your own very short and simple application that is vulnerable to this attack. Provide another version that mitiga ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Questionsuppose a prolog database exists that gives

Question: Suppose a Prolog database exists that gives information about states and capital cities. Some cities are big, others small. Some states are eastern, others are western. a. Write a query to find all the small ca ...

Question 1 what isdata-manipulation language dml there are

Question: 1. What isData-Manipulation Language (DML)? There are four types of access in DML, explain each one. 2. Assume we have a Library Database consists of the following relations: author(author_id, first_name, last_ ...

Sql transactions exercisesconsider table itemnameprice

SQL Transactions Exercises Consider table Item(name,price) where name is a key, and the following two concurrent transactions. T1: Begin Transaction; Update Item Set price = 2*price Where name = 'pencil'; Insert Into Ite ...

Sqlquery 1 how many products have standard price less than

SQL Query 1. How many products have standard price less than 1000? Query 2: Display all attributes for products made of "Cherry" from Product table w/o referring to column names. Query 3: Display all product names having ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As