If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Read only database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-03, 01:00
Anu_R Anu_R is offline
Registered User
 
Join Date: Jun 2003
Posts: 38
Question Read only database

Hi,

I am using IDS 9.3.

How do i create a read-only database using dbaccess.

Thanks,
Anu_r
Reply With Quote
  #2 (permalink)  
Old 09-15-03, 05:11
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
You can't.

You have a few possibilities:
1. Use HDR to create a read-only instrance. In th eprimary instance you can create a database that is fully query-able in th esecondary database server.
2. You can create a standard database and make sure that the users who connect to this database only have select permissions.
3. Create you database and make sure that your read-only data resides on an optical disk using the optical disk subsystem.
4. Create your own interface with VTI (Virtual Table Interface)
__________________
rws
Reply With Quote
  #3 (permalink)  
Old 09-16-03, 01:47
Anu_R Anu_R is offline
Registered User
 
Join Date: Jun 2003
Posts: 38
Thanks!! Can you give me a link to the documentation that describes the methods you state. I will try.

I tried a HDR sometime ago but unfortunately could not do it.

Anu_R
Reply With Quote
  #4 (permalink)  
Old 09-16-03, 03:52
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
In reply to yr private msg:

ONDBSPACEDOWN 2
# Dbspace down option: 0 = CONTINUE, 1 = ABORT,2 = WAIT

This is a parameter in the $INFORMIXDIR/etc/$ONCONFIG file.
__________________
rws
Reply With Quote
  #5 (permalink)  
Old 09-16-03, 07:50
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
To bring down a dbspace, issue the command:
onspaces -s <dbspace> -p <path> -o <offset> -D -y

To bring a dbspace up, issue the command:
onspaces -s <dbspace> -p <path> -o <offset> -O -y

onspaces -- will give you an overview.
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On