Configuring Databases Using Soft Links



Documents pareils
Sun Java SystemWeb Server 7.0 Documentation Center

SunATM 4.0 Release Notes

Solaris Server Intranet Extension 1.0 Licensing Guide

Sun Blade G2 RAID 0/1 Expansion Module Installation Guide

SunVTS 7.0 Software Quick Reference

Sun StorEdge PCI Dual Ultra3 SCSI Host Adapter Release NotesM

Solaris 8 Operating Environment Additions to sysidcfg

Planning Solstice Backup 6.1 (localisé)

SunScreen SKIP Open Issues and Late-breaking News, Release 1.1.1

SunVTS Quick Reference Card

Sun Ultra 45 and Ultra 25 Workstations Getting Started Guide

Netra Proxy Cache Server Product Notes. A Sun Microsystems, Inc. Business 901 San Antonio Road Palo Alto,, CA

Sun Fire V120 and Netra 120 Server

Quick Start Guide This guide is intended to get you started with Rational ClearCase or Rational ClearCase MultiSite.

Sun Java Desktop System Management Tools

Sun StorageTek 2500 Series

Instructions Mozilla Thunderbird Page 1

What s New. Sun ONE Application Server. Version 7, Enterprise Edition

Sun Small Programmable Object Technology (Sun SPOT) Release Notes Release 3.0. Sun Labs October 2007

Paxton. ins Net2 desktop reader USB

Cheque Holding Policy Disclosure (Banks) Regulations. Règlement sur la communication de la politique de retenue de chèques (banques) CONSOLIDATION

Guide de démarrage du système modulaire Sun Blade 6000

How to Login to Career Page

Contents Windows

Package Contents. System Requirements. Before You Begin

Not for Publication Sun Java System Application Server 9.1 Administration Guide

en SCÈNE RATIONAL Rational Démonstration SDP : automatisation de la chaîne de développement Samira BATAOUCHE sbataouche@fr.ibm.com

English Q&A #1 Braille Services Requirement PPTC Q1. Would you like our proposal to be shipped or do you prefer an electronic submission?

APPENDIX 6 BONUS RING FORMAT

APPENDIX 2. Provisions to be included in the contract between the Provider and the. Holder

Règlement sur le télémarketing et les centres d'appel. Call Centres Telemarketing Sales Regulation

RULE 5 - SERVICE OF DOCUMENTS RÈGLE 5 SIGNIFICATION DE DOCUMENTS. Rule 5 / Règle 5

SERVEUR DÉDIÉ DOCUMENTATION

Instructions pour mettre à jour un HFFv2 v1.x.yy v2.0.00

Guide de récupération de Windows Server 2003 R2 pour serveurs Sun x64

ETABLISSEMENT D ENSEIGNEMENT OU ORGANISME DE FORMATION / UNIVERSITY OR COLLEGE:

WEB page builder and server for SCADA applications usable from a WEB navigator

Notice Technique / Technical Manual

Logitech Tablet Keyboard for Windows 8, Windows RT and Android 3.0+ Setup Guide Guide d installation

AMENDMENT TO BILL 32 AMENDEMENT AU PROJET DE LOI 32

Folio Case User s Guide

INDIVIDUALS AND LEGAL ENTITIES: If the dividends have not been paid yet, you may be eligible for the simplified procedure.

Oracle FS Data Protection Manager. Release Notes. Part Number E Oracle FS Data Protection Manager release 3.5.

NORME INTERNATIONALE INTERNATIONAL STANDARD. Dispositifs à semiconducteurs Dispositifs discrets. Semiconductor devices Discrete devices

Support Orders and Support Provisions (Banks and Authorized Foreign Banks) Regulations

GIGABIT PCI DESKTOP ADAPTER DGE-530T. Quick Installation Guide+ Guide d installation+

Sun Explorer Release Notes

DOCUMENTATION MODULE BLOCKCATEGORIESCUSTOM Module crée par Prestacrea - Version : 2.0

Credit Note and Debit Note Information (GST/ HST) Regulations

MELTING POTES, LA SECTION INTERNATIONALE DU BELLASSO (Association étudiante de lʼensaparis-belleville) PRESENTE :

DOCUMENTATION - FRANCAIS... 2

First Nations Assessment Inspection Regulations. Règlement sur l inspection aux fins d évaluation foncière des premières nations CONSOLIDATION

Server Architecture Overview

Cedric Dumoulin (C) The Java EE 7 Tutorial

Academic Project. B2- Web Development. Resit Project. Version 1.0 Last update: 24/05/2013 Use: Students Author: Samuel CUELLA

Archived Content. Contenu archivé

Practice Direction. Class Proceedings

Grandes tendances et leurs impacts sur l acquisition de produits et services TI.

Natixis Asset Management Response to the European Commission Green Paper on shadow banking

THE LAW SOCIETY OF UPPER CANADA BY-LAW 19 [HANDLING OF MONEY AND OTHER PROPERTY] MOTION TO BE MOVED AT THE MEETING OF CONVOCATION ON JANUARY 24, 2002

Le passé composé. C'est le passé! Tout ça c'est du passé! That's the past! All that's in the past!

Life Companies Borrowing Regulations. Règlement sur les emprunts des sociétés d assurance-vie CONSOLIDATION CODIFICATION

DOCUMENTATION - FRANCAIS... 2

Editing and managing Systems engineering processes at Snecma

ADMINISTRATION DE ADOBE LIVECYCLE MOSAIC 9.5

TABLE DES MATIERES A OBJET PROCEDURE DE CONNEXION

COPYRIGHT Danish Standards. NOT FOR COMMERCIAL USE OR REPRODUCTION. DS/EN 61303:1997

Ships Elevator Regulations. Règlement sur les ascenseurs de navires CODIFICATION CONSOLIDATION. C.R.C., c C.R.C., ch. 1482

Borrowing (Property and Casualty Companies and Marine Companies) Regulations

Once the installation is complete, you can delete the temporary Zip files..

Form of Deeds Relating to Certain Successions of Cree and Naskapi Beneficiaries Regulations

Calculation of Interest Regulations. Règlement sur le calcul des intérêts CONSOLIDATION CODIFICATION. Current to August 4, 2015 À jour au 4 août 2015

Tom Pertsekos. Sécurité applicative Web : gare aux fraudes et aux pirates!

Subject to the terms of this Agreement, Adobe hereby grants you a nonexclusive,

VTP. LAN Switching and Wireless Chapitre 4

RAPID Prenez le contrôle sur vos données

Import Allocation Regulations. Règlement sur les autorisations d importation CONSOLIDATION CODIFICATION

Appointment or Deployment of Alternates Regulations. Règlement sur la nomination ou la mutation de remplaçants CONSOLIDATION CODIFICATION

OUVRIR UN COMPTE CLIENT PRIVÉ

Nouveautés printemps 2013

Interest Rate for Customs Purposes Regulations. Règlement sur le taux d intérêt aux fins des douanes CONSOLIDATION CODIFICATION

Le Cloud Computing est-il l ennemi de la Sécurité?

Discours de Eric Lemieux Sommet Aéro Financement Palais des congrès, 4 décembre 2013

Règlement sur les baux visés à la Loi no 1 de 1977 portant affectation de crédits. Appropriation Act No. 1, 1977, Leasing Regulations CODIFICATION

Input Tax Credit Information (GST/HST) Regulations

Railway Operating Certificate Regulations. Règlement sur les certificats d exploitation de chemin de fer CODIFICATION CONSOLIDATION

FÉDÉRATION INTERNATIONALE DE NATATION Diving

Forthcoming Database

Mon Service Public - Case study and Mapping to SAML/Liberty specifications. Gaël Gourmelen - France Telecom 23/04/2007

ONTARIO Court File Number. Form 17E: Trial Management Conference Brief. Date of trial management conference. Name of party filing this brief

Contrôle d'accès Access control. Notice technique / Technical Manual

SAP Best Practices. Commande en ligne pour les clients et les partenaires SAP

Export Permit (Steel Monitoring) Regulations. Règlement sur les licences d exportation (surveillance de l acier) CONSOLIDATION CODIFICATION

SAP Runs SAP Reporting Opérationnel & BI avec HANA et SAP Analytics. Pierre Combe, Enterprise Analytics Juin, 2015

iqtool - Outil e-learning innovateur pour enseigner la Gestion de Qualité au niveau BAC+2

Principe de TrueCrypt. Créer un volume pour TrueCrypt

Tex: The book of which I'm the author is an historical novel.

Sun ZFS Appliance Monitor. Configuration Guide, Version 1.0

Transcription:

Configuring Databases Using Soft Links Carlos Godinez, Global Customer Benchmarking Sun BluePrints OnLine January 2003 http://www.sun.com/blueprints Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95045 U.S.A. 650 960-1300 Part No. 817-1048-10 Revision 1.0, 1/6/03 Edition: January 2003

Copyright 2003 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, California 95045 U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the United States and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun logo, Sun BluePrints, Solstice DiskSuite, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the US and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun s written license agreements. U.S. Government Rights Commercial use. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the Far and its supplements. DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. Copyright 2003 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, Californie 95045 Etats-Unis. Tous droits réservés. Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l utilisation, la copie, la distribution, et la décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans l autorisation préalable et écrite de Sun et de ses bailleurs de licence, s il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun. Des parties de ce produit pourront être dérivées des systèmes Berkeley BSD licenciés par l Université de Californie. UNIX est une marque enregistree aux Etats-Unis et dans d autres pays et licenciée exclusivement par X/Open Company Ltd. Sun, Sun Microsystems, le logo Sun, Sun BluePrints, Solstice DiskSuite, et Solaris sont des marques de fabrique ou des marques déposées, ou marques de service, de Sun Microsystems, Inc. aux Etats-Unis et dans d autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d autres pays. Les produits portant les marques SPARC sont basés sur une architecture développée par Sun Microsystems, Inc. L interface d utilisation graphique OPEN LOOK et Sun a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d utilisation visuelle ou graphique pour l industrie de l informatique. Sun détient une licence non exclusive de Xerox sur l interface d utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l interface d utilisation graphique OPEN LOOK et qui en outre se conforment aux licences écrites de Sun. CETTE PUBLICATION EST FOURNIE "EN L ETAT" ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N EST ACCORDEE, Y COMPRIS DES GARANTIES CONCERNANT LA VALEUR MARCHANDE, L APTITUDE DE LA PUBLICATION A REPONDRE A UNE UTILISATION PARTICULIERE, OU LE FAIT QU ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE GARANTIE NE S APPLIQUERAIT PAS, DANS LA MESURE OU IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU. Please Recycle

Configuring Databases Using Soft Links When you specify the location for the storage objects of any relational database management system (RDBMS), there are two options; soft or absolute paths. A soft path, also referred to as a symbolic path, is a file name that links to the physical file through symbolic links (ln -s). An absolute path represents the physical file itself. Physical files can be file system files, raw devices, or VERITAS Volume Manager, Solstice DiskSuite software, or Solaris Volume Manager volumes. This Sun BluePrints OnLine article explains the advantages of using soft links when configuring databases and provides techniques and examples for using them. It contains the following sections: Benefits of Using Soft Links on page 1 Using Symbolic Links to Set Up a Database on page 2 Using Soft Links With VERITAS QIO on page 4 Benefits of Using Soft Links Using an absolute file path to specify the location of database storage objects permanently ties the database object to its physical location. There are a number of situations, in a benchmark or production environment, where it s desirable to have the flexibility to quickly and safely alter the location of database objects. 1

The following sample situations demonstrate instances where the use of symbolic links are beneficial: Relocating a complete database to a different input/output (I/O) subsystem. To relocate a database, simply copy the database files to their new storage location and reestablish the links between the database files and that new storage location. When the underlying I/O layout for ORACLE storage objects (dbf files) become a bottleneck, you can relocate the objects as described in the preceding bullet. Validating a database with a cold backup. Once a backup copy of a database is in place, you can simply change the current database links to point to the backed up database area and then bring up the backup database to quickly confirm that the backup is valid. Ease of database management when VERITAS file system (VxFS) is deployed with VERITAS QuickIO (VERITAS QIO). For more information, read Using Soft Links With VERITAS QIO on page 4. Symbolic links provide meaningful naming for raw devices used in database configurations; for example, when $ORACLE_BASE/oradta/PROD/system.dbf is used instead of the actual raw partition /dev/rdsk/c1t1d0s3. This can simplify database management and configuration tasks. These benefits come with some added complexity. You must have foresight when adding a new database file. There is no tolerance for errors between the database reference and the symbolic-link name. An error could result in the symbolic-link file system being inadvertently filled. Using Symbolic Links to Set Up a Database Normally, using symbolic links is a three-step procedure. However, when VERITAS QIO is involved, there is an additional, fourth step to complete. Caution For the procedure described in this article to work safely and accurately, we strongly recommended that Step 2 on page 3 and the second step on page 4 be scripted to include all database files. 2 Configuring Databases Using Soft Links January 2003

To Use Symbolic Links 1. Identify database file names and their corresponding real (physical) locations. 2. Create symbolic links as shown in the following file system and raw device examples: File system example: #!/bin/ksh ORACLE_BASE=/home/oracle; export $ORACLE_BASE rm -f $ORACLE_BASE/oradata/PROD/*.{dbf,ctl,log} ln -s /fs01/control.ctl $ORACLE_BASE/oradata/control.ctl ln -s /fs02/system.dbf $ORACLE_BASE/oradata/system.dbf ln -s /fs03/undotbs01.dbf $ORACLE_BASE/oradata/undotbs01.dbf ln -s /fs03/redo.log $ORACLE_BASE/oradata/redo.log Raw devices example: #!/bin/ksh ORACLE_BASE=/home/oracle; export $ORACLE_BASE rm -f $ORACLE_BASE/oradata/PROD/*.{dbf,ctl,log} ln -s /dev/rdsk/c1t1d0s3 $ORACLE_BASE/oradata/control.ctl ln -s /dev/rdsk/c2t2d0s3 $ORACLE_BASE/oradata/system.dbf ln -s /dev/rdsk/c3t3d0s3 $ORACLE_BASE/oradata/undotbs01.dbf ln -s /dev/rdsk/c4t4d0s3 $ORACLE_BASE/oradata/redo.log 3. Create the database, specifying soft link file names to map to the location where a storage object is needed, for example: CREATE DATABASE PROD DATAFILES '$ORACLE_HOME/oradata/system.dbf' SIZE 500M REUSE AUTOEXTEND OFF LOGFILE GROUP 1 ('$ORACLE_BASE/oradata/PROD/redo01.log') SIZE 1500M reuse, GROUP 2 ('$ORACLE_BASE/oradata/PROD/redo02.log') SIZE 1500M reuse, Note Even though these examples use an ORACLE database, the same techniques and principles should work with any database. Using Symbolic Links to Set Up a Database 3

Using Soft Links With VERITAS QIO When you use VERITAS QIO, soft links show the simplicity and flexibility of managing database objects. VERITAS QIO allows access to a regular VxFS file as a raw character device through a pseudo device by using the ::cdev:vsf: name extension. VERITAS suggests the following three-step procedure to accomplish this task: (1) change the directory to where the regular file is located, (2) moving (mv) the file to a dot file, and (3) establishing a symbolic link to that file: # cd /fs01 # mv tablespace_1.dbf.tablespace_1.dbf # ln -s.tablespace_1.dbf::cdev:vxfs: tablespace_1.dbf These three steps are replaced by the following script: #!/bin/ksh ORACLE_BASE=/home/oracle; export $ORACLE_BASE rm -f $ORACLE_BASE/oradata/PROD/*.{dbf,ctl,log} ln -s /fs01/system.dbf::cdev:vxfs $ORACLE_BASE/oradata/system.dbf Another advantage of using symbolic links is that they allow you to take database files out of QIO (for example, if you need to use Oracle's auto-extend feature to grow a tablespace). Normally, this requires you to use the following commands: # cd /fs01 # rm tablespace_1.dbf # mv.tablespace_1.dbf tablespace_1.dbf This confusing, risky, and error prone step is replaced by running the following script: #!/bin/ksh ORACLE_BASE=/home/oracle; export $ORACLE_BASE rm -f $ORACLE_BASE/oradata/PROD/*.{dbf,ctl,log} ln -s /fs01/tablespace_1.dbf $ORACLE_BASE/oradata/tablespace_1.dbf 4 Configuring Databases Using Soft Links January 2003

Moving Database Tablespace Example In this example, a tablespace is found to be I/O bottlenecked and needs to be relocated to ease I/O contention. To Relocate a Tablespace 1. Shut down the database. 2. Copy the data files that made up the tablespace to a new location: # cp /fs03/datafile1.dbf /NEW-fs03/datafile1.dbf # cp /fs04/datafile2.dbf /NEW-fs04/datafile2.dbf 3. Remove the old database links: # rm /oradata/datafile1.dbf # rm /oradata/datafile2.dbf 4. Re-establish the database links to the new locations: # ln -s /NEW-fs03/datafile1.dbf /oradata/datafile1.dbf # ln -s /NEW-fs04/datafile2.dbf /oradata/datafile2.dbf 5. Restart the database and confirm the results. About the Author Carlos Godinez has worked as senior benchmark engineer for the almost four years in the Customer Benchmark Center in Newark, California. His job requires him to set up large databases efficiently and quickly. Carlos has used the technique described in this article extensively during the last four years. About the Author 5

Acknowledgements The author would like to recognize the following individuals for their contributions to this article: Bob Sneed, PAE, for suggestions about this subject matter. Keith Leong, Manager, for supporting the development of this paper. Ordering Sun Documents The SunDocs SM program provides more than 250 manuals from Sun Microsystems, Inc. If you live in the United States, Canada, Europe, or Japan, you can purchase documentation sets or individual manuals through this program. Accessing Sun Documentation Online The docs.sun.com web site enables you to access Sun technical documentation online. You can browse the docs.sun.com archive or search for a specific book title or subject. The URL is http://docs.sun.com/ To reference Sun BluePrints OnLine articles, visit the Sun BluePrints OnLine Web site at: http://www.sun.com/blueprints/online.html 6 Configuring Databases Using Soft Links January 2003