Creating database under Ingres

Last update on May 8, 2009 09:34 AM by jak58
Published by deri58

Creating database under Ingres





Intro


Ingres is a relational database management system (RDBMS) that is based upon a research project from the University of California at Berkeley . There are two different versions of Ingres available: a public domain version, known as Ingres or Berkeley Ingres; and a commercial version currently marketed by Computer Associates, mostly known as OpenIngres,or Ingres II.

The easiest way to create a database ingres is to use the command line createdb

The syntax is as follows:
createdb mydatabase


Here it will use the default locations (II_DATABASE, II_WORK, II_CHECKPOINT, II_DUMP and II_JOURNAL).

Command option:

-dlocate:To specify the location type DATA
-wlocation:To specify the location type WORK
-clocation:To specify the location type CHECKPOINT
-blocată:To specify the location type DUMP
-jlocation:To specify the location type JOURNAL

Example createdb


$ Createdb mydatabase
Creating database 'mydatabase. . .

Creating DBMS System Catalogs. . .
Modifying DBMS System Catalogs. . .
Creating Standard Catalog Interface. . .
Creating Front-end System Catalogs. . .


Creation of database 'mydatabase' completed successfully.


After specifying all rights, the following processes are effected:-




In the iidbdb (for Ingres installation of DataBase DataBase), the necessary information are compiled).

For the location type data, it adds a directory same as the database name where the file aaaaaaaa.cnf(configuration file) is placed.

Many files are created as system tables prior the options put forward (the createdb create catalogs for individuals OpenRoad - IDE graphic object Ingres - or ABF, or Star - federated databases - etc.)


You can detect where you are physically located by the infodb mydatabase

Example:
================== Wed Mar 14 22:21:38 2007 Database Information =================

Database: (mydatabase, jp) ID: Default 0x45F865BA Collations default
Unicode enabled: No
Extents: 5 Last Table Id: 237
Config File Version Id: 0x00060001 Database Version Id: 8
Mode: DDL ALLOWED, ONLINE CHECKPOINT ENABLED
Status: VALID

The Database is not Journaled.

Journals are not valid from any checkpoint.

---- Journal information -------------------------------------------- -------------
Checkpoint sequence: 0 Journal sequence: 0
Current journal block: 0 Journal block size: 16384
Initial journal size: 4 Target journal size: 512
Last Log Address Journaled: <0:0:0>
---- Dump information -------------------------------------------- ----------------
Checkpoint sequence: 0 Dump sequence: 0
Current dump block: 0 Dump block size: 16384
Initial dump size: 4 Target dump size: 512
Last Log Address Dumped: <0:0:0>
---- Checkpoint History for Journal ------------------------------------------ ----
Date Ckp_sequence First_jnl Last_jnl valid mode
-------------------------------------------------- --------------------------
None.
---- Checkpoint History for Dump ------------------------------------------ -------
Date Ckp_sequence First_dmp Last_dmp valid mode
-------------------------------------------------- --------------------------
None.
---- Cluster Journal History ------------------------------------------- ----------
Node ID Current Journal Current Block Last Log Address
-------------------------------------------------- ----------
None.
Dump Cluster ---- History ------------------------------------------- ----------
Node ID Current Dump Current Block Last Log Address
-------------------------------------------------- ----------
None.
Extent directory ---- -------------------------------------------- ----------------
Location Flags Physical_path
-------------------------------------------------- ----------------
ii_database ROOT, DATA D: \ Program Files \ Ingres \ Ingres [II] \ ingres \ data \ default \ mydatabase
JOURNAL ii_journal D: \ Program Files \ Ingres \ Ingres [II] \ ingres \ JNL \ default \ mydatabase
CHECKPOINT ii_checkpoint D: \ Program Files \ Ingres \ Ingres [II] \ ingres \ CKP \ default \ mydatabase
DUMP ii_dump D: \ Program Files \ Ingres \ Ingres [II] \ ingres \ dmp \ default \ mydatabase
WORK ii_work D: \ Program Files \ Ingres \ Ingres [II] \ ingres \ work \ default \ mydatabase

================================================== ==============================

The location ROOT, DATA also known as default location where all the tables will will be created (with location clause = (list of locations).
Best answers for « Creating database under Ingres » in :
Visual FoxPro Show Visual FoxPro Visual FoxPro (VFP) is a very powerful tool marketed by Microsoft since 1995. It includes a programming language, an engine for relational database and an integrated development environment (IDE), which allows developers...
Batch Script - Move files to \%date%\%time%\ ShowBatch Script - Move files to \%date%\%time%\ Issue Solution Note Issue I have been trying to make a simple batch script to create database backups and move then into a folder named by date, and a sub folder by time. This is what I...
Automatic backup of a Database in SQL EXPRESS 2005 ShowAutomatic backup of a Database in SQL EXPRESS 2005 If you want to automate a backup of a database in SQL Server Express, there is a simple solution using a .bat. file. Create a new text file. This file should contain the following...
Connect a database (MDB) to excel Show[VBA] Connecting a database (MDB) to excel Below is a tips of how to connect an Access database (MDB) in an application excel Add reference Microsoft DAO object librairy X.X In a general module (eg Module1) paste the code below...
Databases - Using forms ShowUsing forms In order to use databases, the user must be provided with an interface that allows him or her to view data based on certain criteria. There is a tool for this: forms. A form is an interface with components for displaying, entering, or...
Creating a local area network ShowWhy set up a local area network? When you have several computers, it can be convenient to connect them to each other to create a local area network (LAN). Setting up such a network costs very little, contrary to what people may think. Here are a...
Creating a LAN ShowWhy set up a LAN? If you have several computers, it may be worthwhile to connect them in order to create a local area network (LAN). Setting up such a network is much less expensive than what you might think. Here are a few ways you might benefit...