Home > Ask the Oracle Experts > (Archive) Database Security Questions & Answers > Deploy entire database schemas
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Deploy entire database schemas

Dan Norris EXPERT RESPONSE FROM: Dan Norris

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 21 March 2005
We have developed a Web application using Web objects 5.2 with Oracle 8i. What is the best way to deploy entire database schemas at a client machine, and the first time when project is going to deploy? What are the best ways to load the large data from client machine to our machine? We generally get the insertion script from the client and we run that using SQL*Plus command. But if the statements are more than 2,500 characters, it throws an exception.

>
EXPERT RESPONSE
From the description, it sounds like this is intended to be a packaged application of some sort. First, for deploying the schema, I would prepare SQL scripts and ship them with the product. Before doing so, make sure that your product's documentation clearly states what versions of Oracle that your product has been certified (or at least tested) with. If there is some significant amount of seed data that is to be included with new deployments, then I would create SQLLDR scripts and load that data from flat text files. Alternatively, you could also create insert statements in a script if there's not too much data.

For getting data back from a site, I would use SQLLDR and use a select statement to generate the raw data file for loading on the remote site. That will bypass any issues you have with length of SQL statements. You can find many scripts on the internet for doing just that task--search for data dumper or SQL unloader.

You should track the version of the database schema in the database somewhere and an upgrade script should check the current version and apply the necessary changes to upgrade that version to the current or target release. Internally, such a script might have smaller functions or blocks that do the individual upgrades from one version to the next so that an outer section would just need to figure out where to start and run all of the functions in sequence.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
(Archive) Database Security
Identifying the user who submits a query
Is it possible to granting privileges on a schema level?
Acquiring knowledge of Oracle database users and their IDs
Manage users using Oracle Internet Directory
Is there a "backdoor" to retrieve passwords?
Setting up password values
Does Oracle password support special characters?
SQL statement issued by the client system
Oracle forms only accessing the database
Preventing connections to the database

Oracle database security
Oracle Security: Top five headlines
Oracle Identity Manager adds provisioning, compliance features
Firm dumps MySQL on Red Hat for Oracle Database on Oracle Linux
Oracle password best practices
Five ways to prepare for a SOX audit
When were the SYS/SYSTEM passwords last changed?
How to create a password file in Oracle 9i?
Bharosa to give Oracle users transaction security
Database security when users can connect without password
Running a script without user's password to Oracle database

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts