Create a database using oracle packaged procedure

Assignment Help Database Management System
Reference no: EM132015

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: EM132015

Questions Cloud

Particular process in any organization : Write a two page summary on a particular process in any organization.
Economic costs and benefits for project : Economic costs and benefits for project
Quantitative analysis for decision making class : Quantitative Analysis for decision making class
Design for storing the maze layout : Design and implement a C++ program for maze layout
Create a database using oracle packaged procedure : Create a database using Oracle packaged procedure
Quantitative analysis for decision making class : Quantitative analysis for decision making class
Review the country political economy : Political Economy and Foreign Direct Investment - Review the country's political economy
Analyze an existing company for operation strategy : Analyze an existing company for Operation strategy and one under Supply Chain Strategy
How foreign direct investment influences the wages : How foreign direct investment influences the wages

Reviews

Write a Review

Database Management System Questions & Answers

  Prepare the relational schema for database

Prepare the relational schema for database

  Relational algebra operations

List the sequence of relational algebra operations needed to implement the queries.

  Database system development

The database application project (DAP) for this course consists of the creation of a fully functional Microsoft Access database application for a real client.

  Creating database structure using sql

creating database structure using SQL

  Analysis of a simple case study

VSS has an existing software package that controls its high bay systems and wants to rewrite it. The existing system is written in C and uses C-ISAM files to store data.

  Draw the e/r diagrams for the business rules

Draw the E/R diagrams for the business rules

  Study and modify the postgresql source code

Write a Assignment to study and modify the PostgreSQL source code, with a focus on one of the core modules - the buffer manager

  Stack and queue data structure

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

  Pharmacy designating database

Pharmacy systems today are more efficient and user friendly when compared to the systems 20 years ago.

  Create a database from scratch

Create a database from scratch that contains, at a minimum, the elements listed below

  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

  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