1 prepare directories on your hard drive place a small text

Assignment Help Database Management System
Reference no: EM13348079

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

Reference no: EM13348079

Questions Cloud

Are you familiar with the swift even flow to practice : are you familiar with the swift even flow to practice concept.write a two page summary on a particular process in any
Proposal aenvisages generation of electricity from water - : proposal aenvisages generation of electricity from water - a hydro-electric project. the useful life of this project is
Quantitative analysis for decision making class1- linear : quantitative analysis for decision making class1- linear regression is great tool for use in statistics and most
1 design and implement a c program for the given : 1. design and implement a c program for the given specification.2. show a structure diagram for your program using the
1 prepare directories on your hard drive place a small text : 1 prepare directories on your hard drive. place a small text file in one directory. use oracle package utlfile to read
Quantitative analysis for decision making class- this is : quantitative analysis for decision making class- this is related the multiple regression analysis and different
You are required to select a country of your choice review : you are required to select a country of your choice review the countrys political economy political economic and legal
Analyze an existing company for operation strategy and one : analyze an existing company for operation strategy and one under supply chain strategy1. introductionguideline- should
Write a report about how foreign direct investment : write a report about how foreign direct investment influences the wages and income in vietnam then compare it to

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd