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.:- M9132444
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in DBMS

Case study problem 1 the case study company has experienced

Case Study: Problem 1 The case study company has experienced rapid growth in both the size of its client base and also in the services provided to clients. Unfortunately, the growth in data management policies, procedure ...

Assignmenta restaurant is designing a database to keep

Assignment A restaurant is designing a database to keep track of customer services. A customer is defined as a customer ID, name, address and a telephone number. Customers are served by employees. Each employee is define ...

Backgrounda new training organization called abc

Background A new training organization called ABC TechTraining is opening soon and they have approached you to help design their new database. They have just completed the refurbishment of the premises and are now lookin ...

Question a suppose you are a marathon runner that can run a

Question : a) Suppose you are a marathon runner that can run a maximum of n miles on a single bottle of water. You are given a map of your marathon route with all the water stations marked. Design an efficient algorithm ...

Question suppose we have two kinds of doctors hospital

Question : Suppose we have two kinds of doctors: hospital doctors and family physicians. In addition to the doctor's id number, name, specialty, and years of experience, we want to record the hospital name for the hospit ...

Question create the physical data model for the logical

Question: Create the physical data model for the logical data model that you submitted in IP3. This should include all of the data definition language SQL. Your submission should include all DDL needed to: Create the tab ...

Suppose that you have designed a database for morgan

Suppose that you have designed a database for Morgan Importing that has the following tables: EMPLOYEE (EmployeeID, LastName, FirstName, Department, Phone, Fax, EmailAddress) STORE (StoreName, City, Country, Phone, Fax, ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

In sql database questions phase-1 in 100 words what steps

In SQL Database Questions: Phase-1 In 100 words, what steps can one take to avoid losing work? Which command is used to save changes to the database? What is the syntax for this command? Phase-2 In 100 words, explain the ...

  • 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