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

  Do a requirements analysis for the case study

To apply and consolidate skills acquired in the requirement and analysis disciplines through analysis of a simple case study, and to express the results through the relevant UML diagrams. ITC203

  Triggers important in database systems

What are triggers used for, and why are they important in database systems? Provide an example of a situation where a trigger would be appropriate.

  Explain what do business rules require to be effective

What are the advantages of having the DBMS between the end user's applications and the database. What are some reasons for studying file systems. IT 645 - Database Management Systems

  Build the prototype as a distributed system

You should document a UML design for the proposed system. This should include a description of: architecture, requirements and functionality, detailed system design.

  Which does not apply to the following relationship image

A primary key  can be computer generated. consists of one field only that uniquely identifies each record in a table. is a relationship between two or more tables. All of the above.

  Explain the benefits and current trends of data warehousing

Create a diagram using Visio, Microsoft Paint, or other graphical creation utility of your choosing to illustrate the conceptual data feeds into and out of the data warehouse. Note: The graphically depicted solution is not included in the required..

  Provide an expression in relational algebra

Provide expression in relational algebra for each of the following queries: Give all the managers in database a 10 percent salary raise. Give all the other employees a 5 percent salary raise.

  How to connect to the oracle database

Instructions: You can use any source you prefer, the text, Internet, etc. The answers should not take more than 1 - 2 paragraphs of text, please submit a word processing document, please make sure it's compatible with MS Word.

  Application important part of security model for databases

Using Internet as the research tool for extra information not presented in text, describe why application roles are important part of the security model for databases.

  Your task is to develop a database to support this activity

Your task is to develop a database to support this activity.Here is what you need to be able to provide Custom Auto Body in order to land your first consulting contract:

  Prove-leaves of binary search tree are located in bottom

Examples for small n are given bellow, where a small square box represents an unsuccessful search. Prove that leaves of any binary search tree are located in the bottom two levels.

  Create a database design specification

The Enhanced Entity Relationship Diagram (EERD) produced with a drawing or case tool. Your EERD must use a 'standard' notation style such as Crows Foot or Chen.

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