Solved

DB Startup procedures Oracle 11g

Posted on 2011-09-27
3
393 Views
Last Modified: 2012-05-12
Hello I am writing a manual and wanted to do peer review.
--------------------------------------------------------------------------------------------------------
Is the following correct?
--------------------------------------------------------------------------------------------------------
Database Server Installation – where to go for this on a unix server?
--------------------------------------------------------------------------------------------------------
The schema will be provided by the project development/DBA staff.
A abc schemapackage consists of SQL files that can be executed using the target RDBMS admin tool (for example, sqlplus is usually used for Oracle).

Schema Owner:       abc
TableSpace Names:       abc_TS_01            
(for all tables except Message_Content table)
              abc_TS_02      (for Message_Content table)

The abc schema is defined in the following files:
            abcCreate.sql
            abcDrop.sql

The following procedure is required to install the database schema.
Edit the file abc.sql
a.      Update the userid and password
Update location of spool (log file)
2)      Execute the installation script
#createschema.sh
3)      Browse the log file for any errors

The embedded zip file contains the DB install shell script, and sample schema SQL files.  The actual schema SQL files (DirectDrop.sql and DirectCreate.sql) will be provided by xyz team.
0
Comment
Question by:halukonm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 74

Expert Comment

by:sdstuber
ID: 36710826
we can't tell you if it's correct or not.

but,  assuming you "will" have all of the files you specify and each of them does what you say they do, then yes, your instructions appear to be correct.


When I do installs, I try to remove as many human steps as possible.  Or, if I can't, then prompt for them rather than require file edits.  If you ask somebody to modify your file, you are asking them to break your file.  Even if it's something as simple as filling in name/password fields.

Since your users will be running a shell script.  I suggest your instructions be...

unzip file   Install.zip
run    installme.sh

and then installme.sh  will prompt for name/password/spool file and after execution it will automatically pipe the log file through "more" or pop it up in vi or some other tool for inspection.
0
 

Author Comment

by:halukonm
ID: 36710938
thanks

do you have any installation guides or can you point empirically to a place where I could get more information?
0
 
LVL 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 36710984
sorry, no I don't really have a guide.

however there are lots of examples of scripting, here's a good collection showing various uses.

http://www.orafaq.com/wiki/Scripts#Unix_Shell_Scripts
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Solaris acount issues 44 46
Migration from sql server to oracle 5 36
Oracle Nested table uses ? 2 44
Shell Script- gzip 5 48
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question