C:\TEMP>oonewfd -fdfilehost pcbunn.cithep.caltech.edu -fdfilepath c:\temp\test.f

db -lockserverhost pcbunn.cithep.caltech.edu -fdnumber 10 testFD

 

Objectivity/DB (TM) Create Federated Database Utility, Version 4.0.2

Copyright (c) Objectivity, Inc 1993, 1996. All rights reserved.

 

Federated Database "testFD" created.

 

C:\TEMP>oofile test.fdb

 

Objectivity/DB (TM) Examine Database File Utility, Version 4.0.2

Copyright (c) Objectivity, Inc 1992, 1996. All rights reserved.

 

Attempting to interpret the file...

 

File Type : Autonomous Partition

Page Size : 8192

 

Searching for a Root Object...

Autonomous Partition name : testFD

Federated Database name : testFD

Lock Server name : pcbunn.cithep.caltech.edu

Reference Number : 10

Journal Directory : pcbunn.cithep.caltech.edu:c:\temp

 

If you define a Federated Database using the oonewfd utility with the

information in Root object you should be able to run oodumpcatalog.

 

***************************WARNING**************************

* You should verify that this file does not belong to an *

* active Federated Database before moving or modifying it. *

************************************************************

 

------------------------------------------------------------------------------

 

happy04 55: oochange testbootfile

 

Objectivity/DB (TM) Change FD/AP Control Parameters Utility, Version 4.0.2

Copyright (c) Objectivity, Inc 1990, 1996. All rights reserved.

 

FD ID: 10

System Name: testFD

Page Size: 8192

Lock Server Host: pcbunn.cithep.caltech.edu

FD File Host: pcbunn.cithep.caltech.edu

FD File Path: c:\temp\test.fdb

Boot File Host: pcbunn

Boot File Path: C:\TEMP\testFD

Journal Directory Host: pcbunn.cithep.caltech.edu

Journal Directory Path: c:\temp

 

happy04 56: cat testbootfile

ooFDNumber=10

ooPageSize=8192

ooLockServerName=pcbunn.cithep.caltech.edu

ooFDDBHost=pcbunn.cithep.caltech.edu

ooFDDBFileName=c:\temp\test.fdb

happy04 57:

 

 

 

C:\TEMP>netstat 2

 

Active Connections

 

Proto Local Address Foreign Address State

TCP pcbunn:1025 localhost:1027 ESTABLISHED

TCP pcbunn:1027 localhost:1025 ESTABLISHED

TCP pcbunn:1029 l3pc1.cithep.caltech.edu:nbsession ESTABLISHED

TCP pcbunn:1064 happy04.cacr.caltech.edu:telnet ESTABLISHED

TCP pcbunn:1364 hero.cacr.caltech.edu:nbsession ESTABLISHED

TCP pcbunn:6773 happy04.cacr.caltech.edu:4249 ESTABLISHED

TCP pcbunn:6774 happy04.cacr.caltech.edu:4251 ESTABLISHED

TCP pcbunn:1707 cithe502.cithep.caltech.edu:pop3 TIME_WAIT

TCP pcbunn:1459 cithe502.cithep.caltech.edu:pop3 TIME_WAIT

happy04 34: oocheckls pcbunn.cithep.caltech.edu

 

Objectivity/DB (TM) Check Lock Server Utility, Version 4.0.2

Copyright (c) Objectivity, Inc 1994, 1996. All rights reserved.

 

The Lock Server is running on 'pcbunn.cithep.caltech.edu'.

 

happy04 35: oonewfd -fdfilepath stars.fdb -lockserver pcbunn.cithep.caltech.edu starsDB

 

Objectivity/DB (TM) Create Federated Database Utility, Version 4.0.2

Copyright (c) Objectivity, Inc 1993, 1996. All rights reserved.

 

Federated Database "starsDB" created.

happy04 36: ooddlx stars.ddl starsDB

 

Objectivity/DB (TM) C++ DDL Translator, Version 4.0.2

Copyright (c) Objectivity, Inc 1989, 1996. All rights reserved.

 

happy04 37:

 

happy04 74: make

/tmp/julian/objectivity-4.0.2/hp9000s700/bin/oonewfd -standalone -fdlocalpath stars.fdb -pagesize 8192 -lockserverhost pcbunn.cithep.caltech.edu \

-fdnumber 1 stars

 

Objectivity/DB (TM) Create Federated Database Utility, Version 4.0.2

Copyright (c) Objectivity, Inc 1993, 1996. All rights reserved.

 

Federated Database "stars" created.

/tmp/julian/objectivity-4.0.2/hp9000s700/bin/ooddlx -standalone -I/tmp/julian/objectivity-4.0.2/hp9000s700/include stars.ddl stars

 

Objectivity/DB (TM) C++ DDL Translator, Version 4.0.2

Copyright (c) Objectivity, Inc 1989, 1996. All rights reserved.

 

CC -I/tmp/julian/objectivity-4.0.2/hp9000s700/include -c stars_ddl.C

CC: "/tmp/julian/objectivity-4.0.2/hp9000s700/include/oo.h", line 510: warning: Do not qualify members of class ooId within the class definition (anachronism) (1861)

CC -I/tmp/julian/objectivity-4.0.2/hp9000s700/include -c stars.C

CC: "/tmp/julian/objectivity-4.0.2/hp9000s700/include/oo.h", line 510: warning: Do not qualify members of class ooId within the class definition (anachronism) (1861)

CC: "stars.C", line 46: warning: Function 'main' must return type 'int' (anachronism) (312)

CC -o import stars_ddl.o stars.o /tmp/julian/objectivity-4.0.2/hp9000s700/lib/liboo.a -Wl,-a,archive -lc -lBSD

/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (stars_ddl.o) was detected. The linked output may not run on a PA 1.x system.

/usr/ccs/bin/ld: Duplicate symbol "Star::Star(void)" in files stars_ddl.o and stars.o

/usr/ccs/bin/ld: Duplicate symbol "Star::set(float,float,float)" in files stars_ddl.o and stars.o

/usr/ccs/bin/ld: Duplicate symbol "Star::Star(const Star&)" in files stars_ddl.o and stars.o

/usr/ccs/bin/ld: Duplicate symbol "Star::nearness(float,float)" in files stars_ddl.o and stars.o

/usr/ccs/bin/ld: Unsatisfied symbols:

exp (code)

sqrt (code)

/usr/ccs/bin/ld: Found 4 duplicate symbol(s)

 

 

#include "stars.h"

 

void main () {

 

int i,nearest=-1;

float x,y,sigma;

float d,dmax;

 

ooHandle(Star) star;

 

ooHandle(ooFDObj) fdHandle;

 

ooTrans transaction;

 

// Initialise Objy

 

ooInit();

transaction.start();

 

// open the federated database

 

fdHandle.open("f:/stars/starsDB",oocUpdate);

 

// create a new database in the federation

 

ooHandle(ooDBObj) dbHandle = new(fdHandle) ooDBObj("STARS_DB_1");

 

// Generate a few stars

 

for (i=0;i<10;i++) {

x = drand48();

y = drand48();

sigma = 0.1*drand48();

star = new Star(x,y,sigma);

cout << "Generated star "

<< i <<

" at ("

<< x <<

","

<< y <<

") sigma "

<< sigma <<

endl;

}

 

// commit the new star objects to the database

 

transaction.commit();

 

}

 

 

Generated star 0 at (0.041,0.467) sigma 0.0334

Generated star 1 at (0.5,0.169) sigma 0.0724

Generated star 2 at (0.478,0.358) sigma 0.0962

Generated star 3 at (0.464,0.705) sigma 0.0145

Generated star 4 at (0.281,0.827) sigma 0.0961

Generated star 5 at (0.491,0.995) sigma 0.0942

Generated star 6 at (0.827,0.436) sigma 0.0391

Generated star 7 at (0.604,0.902) sigma 0.0153

Generated star 8 at (0.292,0.382) sigma 0.0421

Generated star 9 at (0.716,0.718) sigma 0.0895

 

happy04 37: stars_match

** System Error #11023: Network Manager: Error receiving from Lock Server on

host happy04.cacr.caltech.edu - Connection timed out.

** System Error #4860: <DBScanItr>.next()): Storage Manager: Internal error.

Journal header not written (102396)

** System Error #3014: <DBScanItr>.next()): Error communicating with the Lock

Server process.

- context = #39-1-0-0

** System Error #2529: <DBScanItr>.next()): Object Manager was unable to open

the system name space

Time to search for nearest stars 1619 secs

** Error #13: ooTrans::commit(): Cannot commit a transaction because no

transaction is active