DBSPACETEMP Variable
Posted in 2004
Problem: temp tables from "SELECT ... INTO TEMP" landed in rootdbs instead of the configured temp dbspace, even though DBSPACETEMP (onconfig and environment) pointed at a dbspace created with onspaces -t; only adding WITH NO LOG put them in the temp space. Answer from several posters: a -t dbspace holds only unlogged objects, so logged temp tables (the default in a logged database) can't go there and fall back to rootdbs. Fix: create an ordinary, non-temp dbspace and add it to the colon-separated DBSPACETEMP list, so logged temp tables use it while WITH NO LOG tables use the -t space; using WITH NO LOG was also recommended for performance. The poster accepted this and added a 2GB "fake" temp dbspace; a later reply posted a test matrix confirming the behaviour.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: Performance & Tuning, Storage & Space Management, Server Administration
I'm running into a situation where temporary tables created by "SELECT
..... INTO TEMP tmptablename" are using space from the root dbspace
instead of our temp dbspace. Both the onconfig and environment
DBSPACETEMP variables are set to the temp dbspace that is flagged as
temporary space (see below). The only way I can force the temporary
table to use the temp dbspace is to add "WITH NO LOG" to the SQL
statement. I've consulted Ron Flannery's "The Informix Handbook",
"Informix Online Dynamic Server Performance Guide", and the "Informix
Guide to SQL", each of which say that all I need to do is set the
DBSPACETEMP variable in either the onconfig file or environment, and
make sure my temp dbspace was created with onspaces' "-t" control
argument.
:/ >onstat -c |grep -i dbspacetemp
# DBSPACETEMP:
DBSPACETEMP tempdbs #Default temp dbspaces
:/ >onstat -d |more
Dbspaces
address number flags fchunk nchunks flags owner name
9de4c158 1 1 1 1 N informix rootdbs
9e8a5a58 2 1 2 1 N informix logdbs
9e8a5b18 3 1 3 56 N informix
elitedbs
9e8a5bd8 4 2001 29 8 N T informix tempdbs
Thanks,=20
Anthony Ojeda
Senior Systems Administrator
LATHAM & WATKINS LLP
555 W. 5th Street, Suite 800
Los Angeles, CA 90013-1010
Direct Tel: (213) 891-7211
=46ax: (213) 891-7123
E-mail: anthony.ojeda@lw.com
www.lw.com
This email may contain material that is confidential, privileged and/or
attorney work product for the sole use of the intended recipient. Any review,
reliance or distribution by others or forwarding without express permission is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
Latham & Watkins LLP
Anthony
There are two types of temporary table, those created 'WITH NO LOG', which
are unlogged, and those without this caveat which are logged in the same
way as any permanent tables in the database.
There are also two type of dbspaces. Those created with the '-t' option
which can only contain unlogged tables and those created without this option
which can only contain logged tables. The '-t' option doesn't really mean
temporary, more it means unlogged.
The solution to you problem is to create a dbspace without the '-t' option,
but include it in the colon (':') separated list of dbspaces in the
DBSPACETEMP parameter of you onconfig file.
If you do this the logged temp tables will go in the logged temp dbspace
(until it fills then they will default to rootdbspace) and the unlogged
tables will go into the unlogged temp space.
-> -----Original Message-----
-> From: Anthony.Oje.... [mailto:Anthony.Ojeda@LW.com]
-> Sent: Wednesday, July 14, 2004 10:47 PM
-> To: ids@iiug.org
-> Subject: DBSPACETEMP Variable [3245]
->
->
-> I'm running into a situation where temporary tables created
-> by "SELECT
-> .... INTO TEMP tmptablename" are using space from the root dbspace
-> instead of our temp dbspace. Both the onconfig and environment
-> DBSPACETEMP variables are set to the temp dbspace that is flagged as
-> temporary space (see below). The only way I can force the temporary
-> table to use the temp dbspace is to add "WITH NO LOG" to the SQL
-> statement. I've consulted Ron Flannery's "The Informix Handbook",
-> "Informix Online Dynamic Server Performance Guide", and the "Informix
-> Guide to SQL", each of which say that all I need to do is set the
-> DBSPACETEMP variable in either the onconfig file or environment, and
-> make sure my temp dbspace was created with onspaces' "-t" control
-> argument.
->
->
->
-> :/ >onstat -c |grep -i dbspacetemp
-> # DBSPACETEMP:
-> DBSPACETEMP tempdbs #Default temp dbspaces
->
->
->
-> :/ >onstat -d |more
-> Dbspaces
-> address number flags fchunk nchunks flags owner name
-> 9de4c158 1 1 1 1 N
-> informix rootdbs
-> 9e8a5a58 2 1 2 1 N informix logdbs
-> 9e8a5b18 3 1 3 56 N informix
-> elitedbs
-> 9e8a5bd8 4 2001 29 8 N T
-> informix tempdbs
->
->
->
-> Thanks,=20
->
-> Anthony Ojeda
-> Senior Systems Administrator
->
-> LATHAM & WATKINS LLP
-> 555 W. 5th Street, Suite 800
-> Los Angeles, CA 90013-1010
-> Direct Tel: (213) 891-7211
-> =46ax: (213) 891-7123
-> E-mail: anthony.ojeda@lw.com
-> www.lw.com
->
->
-> This email may contain material that is confidential,
-> privileged and/or attorney work product for the sole use of
-> the intended recipient. Any review, reliance or
-> distribution by others or forwarding without express
-> permission is strictly prohibited. If you are not the
-> intended recipient, please contact the sender and delete all copies.
->
-> Latham & Watkins LLP
->
->
->
********************************************************************************
**
This message is sent in strict confidence for the addressee only. It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
********************************************************************************
**
Wow, can anyone confirm this? Thanks.
-----Original Message-----
From: forum.subscriber@iiug.org [mailto:forum.subscriber@iiug.org]On
Behalf Of Simmons, Keith
Sent: Thursday, July 15, 2004 2:45 AM
To: ids@iiug.org
Subject: RE: DBSPACETEMP Variable [3246]
Anthony
There are two types of temporary table, those created 'WITH NO LOG', which
are unlogged, and those without this caveat which are logged in the same
way as any permanent tables in the database.
There are also two type of dbspaces. Those created with the '-t' option
which can only contain unlogged tables and those created without this option
which can only contain logged tables. The '-t' option doesn't really mean
temporary, more it means unlogged.
The solution to you problem is to create a dbspace without the '-t' option,
but include it in the colon (':') separated list of dbspaces in the
DBSPACETEMP parameter of you onconfig file.
If you do this the logged temp tables will go in the logged temp dbspace
(until it fills then they will default to rootdbspace) and the unlogged
tables will go into the unlogged temp space.
-> -----Original Message-----
-> From: Anthony.Oje.... [mailto:Anthony.Ojeda@LW.com]
-> Sent: Wednesday, July 14, 2004 10:47 PM
-> To: ids@iiug.org
-> Subject: DBSPACETEMP Variable [3245]
->
->
-> I'm running into a situation where temporary tables created
-> by "SELECT
-> .... INTO TEMP tmptablename" are using space from the root dbspace
-> instead of our temp dbspace. Both the onconfig and environment
-> DBSPACETEMP variables are set to the temp dbspace that is flagged as
-> temporary space (see below). The only way I can force the temporary
-> table to use the temp dbspace is to add "WITH NO LOG" to the SQL
-> statement. I've consulted Ron Flannery's "The Informix Handbook",
-> "Informix Online Dynamic Server Performance Guide", and the "Informix
-> Guide to SQL", each of which say that all I need to do is set the
-> DBSPACETEMP variable in either the onconfig file or environment, and
-> make sure my temp dbspace was created with onspaces' "-t" control
-> argument.
->
->
->
-> :/ >onstat -c |grep -i dbspacetemp
-> # DBSPACETEMP:
-> DBSPACETEMP tempdbs #Default temp dbspaces
->
->
->
-> :/ >onstat -d |more
-> Dbspaces
-> address number flags fchunk nchunks flags owner name
-> 9de4c158 1 1 1 1 N
-> informix rootdbs
-> 9e8a5a58 2 1 2 1 N informix logdbs
-> 9e8a5b18 3 1 3 56 N informix
-> elitedbs
-> 9e8a5bd8 4 2001 29 8 N T
-> informix tempdbs
->
->
->
-> Thanks,=20
->
-> Anthony Ojeda
-> Senior Systems Administrator
->
-> LATHAM & WATKINS LLP
-> 555 W. 5th Street, Suite 800
-> Los Angeles, CA 90013-1010
-> Direct Tel: (213) 891-7211
-> =46ax: (213) 891-7123
-> E-mail: anthony.ojeda@lw.com
-> www.lw.com
->
->
-> This email may contain material that is confidential,
-> privileged and/or attorney work product for the sole use of
-> the intended recipient. Any review, reliance or
-> distribution by others or forwarding without express
-> permission is strictly prohibited. If you are not the
-> intended recipient, please contact the sender and delete all copies.
->
-> Latham & Watkins LLP
->
->
->
********************************************************************************
**
This message is sent in strict confidence for the addressee only. It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
********************************************************************************
**
Anthony,
This is one of my "favourite" problems to run into (the first time I hit it,
it took me about a week to figure out what the heck was going on). The
reason it's behaving this way is that NO ACTIVITY that happens in a dbspace
that is created as a "temp" dbspace can be logged (it's just the way that
temp spaces behave). If you create a temp table without the "with no log"
statement, the engine assumes that you want it logged, and so can't put it
in a temp space. Absent any other information, the engine puts the temp
table in the only space that it KNOWS exists, and is logged, which is
rootdbs.
That said, the solution is relatively simple, and generally not something
that I've seen talked about much. What you need to do is create some
additional NON-TEMP dbspaces, and add them to the DBSPACETEMP line in the
onconfig file. That way, the engine will allocate temp tables created "with
no log" to the true temp dbspaces, and it will allocate the temp tables
created without the "with no log" to the "fake" temp dbspaces.
I would ask, however, why you'd not want to add the "with no log" statement.
The real benefit is that the temp tables will perform measurably better with
that statement, and given that they're temp tables, you probably don't need
to be able to roll them back anyway. It's just a thought...
Thanks.
Dan Michaelis
Senior Software Developer
eOriginal, Inc
Suite 800
351 West Camden Street
Baltimore, MD 21201
410-625-5187 -- Office
407-758-3395 -- Cell
-----Original Message-----
From: Anthony.Oje.... [mailto:Anthony.Ojeda@LW.com]
Sent: Wednesday, July 14, 2004 5:47 PM
To: ids@iiug.org
Subject: DBSPACETEMP Variable [3245]
I'm running into a situation where temporary tables created by "SELECT
.... INTO TEMP tmptablename" are using space from the root dbspace
instead of our temp dbspace. Both the onconfig and environment
DBSPACETEMP variables are set to the temp dbspace that is flagged as
temporary space (see below). The only way I can force the temporary
table to use the temp dbspace is to add "WITH NO LOG" to the SQL
statement. I've consulted Ron Flannery's "The Informix Handbook",
"Informix Online Dynamic Server Performance Guide", and the "Informix
Guide to SQL", each of which say that all I need to do is set the
DBSPACETEMP variable in either the onconfig file or environment, and
make sure my temp dbspace was created with onspaces' "-t" control
argument.
:/ >onstat -c |grep -i dbspacetemp
# DBSPACETEMP:
DBSPACETEMP tempdbs #Default temp dbspaces
:/ >onstat -d |more
Dbspaces
address number flags fchunk nchunks flags owner name
9de4c158 1 1 1 1 N informix rootdbs
9e8a5a58 2 1 2 1 N informix logdbs
9e8a5b18 3 1 3 56 N informix
elitedbs
9e8a5bd8 4 2001 29 8 N T informix tempdbs
Thanks,=20
Anthony Ojeda
Senior Systems Administrator
LATHAM & WATKINS LLP
555 W. 5th Street, Suite 800
Los Angeles, CA 90013-1010
Direct Tel: (213) 891-7211
=46ax: (213) 891-7123
E-mail: anthony.ojeda@lw.com
www.lw.com
This email may contain material that is confidential, privileged and/or
attorney work product for the sole use of the intended recipient. Any
review, reliance or distribution by others or forwarding without express
permission is strictly prohibited. If you are not the intended recipient,
please contact the sender and delete all copies.
Latham & Watkins LLP
Daniel
thanks for the detail reply. Very much appreciated. I agree,
it surely sounds that it'd makes more sense to use the "WITH NO LOG"
when creating temp tables for efficiency. I have some developers who
haven't been doing this, but have squeezed by because they're tables
don't blow out the rootdbs dbspace. So I'm faced with legacy programs
that we may not have the time to go back and re-tool until later, if
ever. I'm going to take your advice and create a 2GB fake temp
dbspace to accommodate the temp table create without the "WITH NO LOG"
statement.
Best Regards, Anthony
-----Original Message-----
From: Michaelis, Daniel [mailto:dcmichaelis@eoriginal.com]
Sent: Thursday, July 15, 2004 6:56 AM
To: Ojeda, Anthony (GSO); ids@iiug.org
Subject: RE: DBSPACETEMP Variable [3245]
Anthony,
This is one of my "favourite" problems to run into (the first time I
hit it, it took me about a week to figure out what the heck was going
on). The reason it's behaving this way is that NO ACTIVITY that
happens in a dbspace that is created as a "temp" dbspace can be logged
(it's just the way that temp spaces behave). If you create a temp
table without the "with no log"
statement, the engine assumes that you want it logged, and so can't
put it in a temp space. Absent any other information, the engine puts
the temp table in the only space that it KNOWS exists, and is logged,
which is rootdbs.
That said, the solution is relatively simple, and generally not
something that I've seen talked about much. What you need to do is
create some additional NON-TEMP dbspaces, and add them to the
DBSPACETEMP line in the onconfig file. That way, the engine will
allocate temp tables created "with no log" to the true temp dbspaces,
and it will allocate the temp tables created without the "with no log"
to the "fake" temp dbspaces.
I would ask, however, why you'd not want to add the "with no log"
statement.
The real benefit is that the temp tables will perform measurably
better with that statement, and given that they're temp tables, you
probably don't need to be able to roll them back anyway. It's just a
thought...
Thanks.
Dan Michaelis
Senior Software Developer
eOriginal, Inc
Suite 800
351 West Camden Street
Baltimore, MD 21201
410-625-5187 -- Office
407-758-3395 -- Cell
-----Original Message-----
From: Anthony.Oje.... [mailto:Anthony.Ojeda@LW.com]
Sent: Wednesday, July 14, 2004 5:47 PM
To: ids@iiug.org
Subject: DBSPACETEMP Variable [3245]
I'm running into a situation where temporary tables created by "SELECT
.... INTO TEMP tmptablename" are using space from the root dbspace
instead of our temp dbspace. Both the onconfig and environment
DBSPACETEMP variables are set to the temp dbspace that is flagged as
temporary space (see below). The only way I can force the temporary
table to use the temp dbspace is to add "WITH NO LOG" to the SQL
statement. I've consulted Ron Flannery's "The Informix Handbook",
"Informix Online Dynamic Server Performance Guide", and the "Informix
Guide to SQL", each of which say that all I need to do is set the
DBSPACETEMP variable in either the onconfig file or environment, and
make sure my temp dbspace was created with onspaces' "-t" control
argument.
:/ >onstat -c |grep -i dbspacetemp
# DBSPACETEMP:
DBSPACETEMP tempdbs #Default temp dbspaces
:/ >onstat -d |more
Dbspaces
address number flags fchunk nchunks flags owner name
9de4c158 1 1 1 1 N informix rootdbs
9e8a5a58 2 1 2 1 N informix logdbs
9e8a5b18 3 1 3 56 N informix
elitedbs
9e8a5bd8 4 2001 29 8 N T informix tempdbs
Thanks,=20
Anthony Ojeda
Senior Systems Administrator
LATHAM & WATKINS LLP
555 W. 5th Street, Suite 800
Los Angeles, CA 90013-1010
Direct Tel: (213) 891-7211
=46ax: (213) 891-7123
E-mail: anthony.ojeda@lw.com
www.lw.com
This email may contain material that is confidential, privileged
and/or attorney work product for the sole use of the intended
recipient. Any review, reliance or distribution by others or
forwarding without express permission is strictly prohibited. If you
are not the intended recipient, please contact the sender and delete
all copies.
Latham & Watkins LLP
This email may contain material that is confidential, privileged and/or
attorney work product for the sole use of the intended recipient. Any review,
reliance or distribution by others or forwarding without express permission is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
Latham & Watkins LLP
Kenneth
Google on c.d.i. using +place +"temporary tables" and see the confirmations
running back to pre 2000.
Keith
-> -----Original Message-----
-> From: Olson, Kenneth (GEI, GEFA) [mailto:Kenneth.Olson@ge.com]
-> Sent: Thursday, July 15, 2004 2:14 PM
-> To: Simmons, Keith; ids@iiug.org
-> Subject: RE: DBSPACETEMP Variable [3246]
->
->
-> Wow, can anyone confirm this? Thanks.
->
-> -----Original Message-----
-> From: forum.subscriber@iiug.org [mailto:forum.subscriber@iiug.org]On
-> Behalf Of Simmons, Keith
-> Sent: Thursday, July 15, 2004 2:45 AM
-> To: ids@iiug.org
-> Subject: RE: DBSPACETEMP Variable [3246]
->
->
-> Anthony
->
-> There are two types of temporary table, those created 'WITH
-> NO LOG', which
-> are unlogged, and those without this caveat which are logged
-> in the same
-> way as any permanent tables in the database.
-> There are also two type of dbspaces. Those created with the
-> '-t' option
-> which can only contain unlogged tables and those created
-> without this option
-> which can only contain logged tables. The '-t' option
-> doesn't really mean
-> temporary, more it means unlogged.
-> The solution to you problem is to create a dbspace without
-> the '-t' option,
-> but include it in the colon (':') separated list of dbspaces in the
-> DBSPACETEMP parameter of you onconfig file.
-> If you do this the logged temp tables will go in the logged
-> temp dbspace
-> (until it fills then they will default to rootdbspace) and
-> the unlogged
-> tables will go into the unlogged temp space.
->
-> -> -----Original Message-----
-> -> From: Anthony.Oje.... [mailto:Anthony.Ojeda@LW.com]
-> -> Sent: Wednesday, July 14, 2004 10:47 PM
-> -> To: ids@iiug.org
-> -> Subject: DBSPACETEMP Variable [3245]
-> ->
-> ->
-> -> I'm running into a situation where temporary tables created
-> -> by "SELECT
-> -> .... INTO TEMP tmptablename" are using space from the root dbspace
-> -> instead of our temp dbspace. Both the onconfig and environment
-> -> DBSPACETEMP variables are set to the temp dbspace that is
-> flagged as
-> -> temporary space (see below). The only way I can force
-> the temporary
-> -> table to use the temp dbspace is to add "WITH NO LOG" to the SQL
-> -> statement. I've consulted Ron Flannery's "The Informix Handbook",
-> -> "Informix Online Dynamic Server Performance Guide", and
-> the "Informix
-> -> Guide to SQL", each of which say that all I need to do is set the
-> -> DBSPACETEMP variable in either the onconfig file or
-> environment, and
-> -> make sure my temp dbspace was created with onspaces' "-t" control
-> -> argument.
-> ->
-> ->
-> ->
-> -> :/ >onstat -c |grep -i dbspacetemp
-> -> # DBSPACETEMP:
-> -> DBSPACETEMP tempdbs #Default temp dbspaces
-> ->
-> ->
-> ->
-> -> :/ >onstat -d |more
-> -> Dbspaces
-> -> address number flags fchunk nchunks flags
-> owner name
-> -> 9de4c158 1 1 1 1 N
-> -> informix rootdbs
-> -> 9e8a5a58 2 1 2 1 N
-> informix logdbs
-> -> 9e8a5b18 3 1 3 56 N informix
-> -> elitedbs
-> -> 9e8a5bd8 4 2001 29 8 N T
-> -> informix tempdbs
-> ->
-> ->
-> ->
-> -> Thanks,=20
-> ->
-> -> Anthony Ojeda
-> -> Senior Systems Administrator
-> ->
-> -> LATHAM & WATKINS LLP
-> -> 555 W. 5th Street, Suite 800
-> -> Los Angeles, CA 90013-1010
-> -> Direct Tel: (213) 891-7211
-> -> =46ax: (213) 891-7123
-> -> E-mail: anthony.ojeda@lw.com
-> -> www.lw.com
-> ->
-> ->
-> -> This email may contain material that is confidential,
-> -> privileged and/or attorney work product for the sole use of
-> -> the intended recipient. Any review, reliance or
-> -> distribution by others or forwarding without express
-> -> permission is strictly prohibited. If you are not the
-> -> intended recipient, please contact the sender and delete
-> all copies.
-> ->
-> -> Latham & Watkins LLP
-> ->
-> ->
-> ->
->
->
-> *************************************************************
-> *********************
-> This message is sent in strict confidence for the addressee
-> only. It may
-> contain legally privileged information. The contents are not
-> to be disclosed
-> to anyone other than the addressee. Unauthorised recipients
-> are requested
-> to preserve this confidentiality and to advise the sender
-> immediately of any
-> error in transmission.
-> This footnote also confirms that this email message has been
-> swept for the
-> presence of computer viruses, however we cannot guarantee
-> that this message
-> is free from such problems.
-> *************************************************************
-> *********************
->
->
->
Kenneth:
I read the same references you read. (I keep them handy!)
I believe it to be true based on the performance we get here.
I'm on:
IDS 7.23.UC11
SQL 7.20.UD1
Read Dan Michaels response to the group and you'll see what I mean. He said
it much better than I was going to put it.
Anyone else care to chip in!?
Rob
-----Original Message-----
From: Olson, Kenneth (GEI, GEFA) [mailto:Kenneth.Olson@ge.com]
Sent: Thursday, July 15, 2004 10:20 AM
To: Konikoff, Rob (Contractor)
Subject: RE: DBSPACETEMP Variable [3248]
Thanks, but is it true that if you add a chunk without the "T" option to the
DBSPACETEMP Variable all the temp table will be built there regardless of
logged or not?
-----Original Message-----
From: Konikoff, Rob (Contractor) [mailto:konikoffr@BRAGG.ARMY.MIL]
Sent: Thursday, July 15, 2004 9:08 AM
To: Olson, Kenneth (GEI, GEFA); ids@iiug.org
Subject: RE: DBSPACETEMP Variable [3248]
Yes, that is true...
I build temp tables routinely without logs for inquiry only so that we save
processing burden and reduce tape IO. We fill up logs pretty quickly in our
OLTP DB, so this helps control system effort.
If you don't specify "with no log;" then it defaults to the database
default, logged or not logged.
Note: If you are making changes to the dataset via ad hoc queries, LOG YOUR
TRANSACTIONS. Just In Case (JIC) is a viable argument.
Rob
-----Original Message-----
From: forum.subscriber@iiug.org [mailto:forum.subscriber@iiug.org] On Behalf
Of Olson, Kenn....
Sent: Thursday, July 15, 2004 9:18 AM
To: ids@iiug.org
Subject: RE: DBSPACETEMP Variable [3248]
Wow, can anyone confirm this? Thanks.
-----Original Message-----
From: forum.subscriber@iiug.org [mailto:forum.subscriber@iiug.org]On
Behalf Of Simmons, Keith
Sent: Thursday, July 15, 2004 2:45 AM
To: ids@iiug.org
Subject: RE: DBSPACETEMP Variable [3246]
Anthony
There are two types of temporary table, those created 'WITH NO LOG', which
are unlogged, and those without this caveat which are logged in the same
way as any permanent tables in the database.
There are also two type of dbspaces. Those created with the '-t' option
which can only contain unlogged tables and those created without this option
which can only contain logged tables. The '-t' option doesn't really mean
temporary, more it means unlogged.
The solution to you problem is to create a dbspace without the '-t' option,
but include it in the colon (':') separated list of dbspaces in the
DBSPACETEMP parameter of you onconfig file.
If you do this the logged temp tables will go in the logged temp dbspace
(until it fills then they will default to rootdbspace) and the unlogged
tables will go into the unlogged temp space.
-> -----Original Message-----
-> From: Anthony.Oje.... [mailto:Anthony.Ojeda@LW.com]
-> Sent: Wednesday, July 14, 2004 10:47 PM
-> To: ids@iiug.org
-> Subject: DBSPACETEMP Variable [3245]
->
->
-> I'm running into a situation where temporary tables created
-> by "SELECT
-> .... INTO TEMP tmptablename" are using space from the root dbspace
-> instead of our temp dbspace. Both the onconfig and environment
-> DBSPACETEMP variables are set to the temp dbspace that is flagged as
-> temporary space (see below). The only way I can force the temporary
-> table to use the temp dbspace is to add "WITH NO LOG" to the SQL
-> statement. I've consulted Ron Flannery's "The Informix Handbook",
-> "Informix Online Dynamic Server Performance Guide", and the "Informix
-> Guide to SQL", each of which say that all I need to do is set the
-> DBSPACETEMP variable in either the onconfig file or environment, and
-> make sure my temp dbspace was created with onspaces' "-t" control
-> argument.
->
->
->
-> :/ >onstat -c |grep -i dbspacetemp
-> # DBSPACETEMP:
-> DBSPACETEMP tempdbs #Default temp dbspaces
->
->
->
-> :/ >onstat -d |more
-> Dbspaces
-> address number flags fchunk nchunks flags owner name
-> 9de4c158 1 1 1 1 N
-> informix rootdbs
-> 9e8a5a58 2 1 2 1 N informix logdbs
-> 9e8a5b18 3 1 3 56 N informix
-> elitedbs
-> 9e8a5bd8 4 2001 29 8 N T
-> informix tempdbs
->
->
->
-> Thanks,=20
->
-> Anthony Ojeda
-> Senior Systems Administrator
->
-> LATHAM & WATKINS LLP
-> 555 W. 5th Street, Suite 800
-> Los Angeles, CA 90013-1010
-> Direct Tel: (213) 891-7211
-> =46ax: (213) 891-7123
-> E-mail: anthony.ojeda@lw.com
-> www.lw.com
->
->
-> This email may contain material that is confidential,
-> privileged and/or attorney work product for the sole use of
-> the intended recipient. Any review, reliance or
-> distribution by others or forwarding without express
-> permission is strictly prohibited. If you are not the
-> intended recipient, please contact the sender and delete all copies.
->
-> Latham & Watkins LLP
->
->
->
****************************************************************************
******
This message is sent in strict confidence for the addressee only. It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
****************************************************************************
******
The real world is: (IDS 9.21) DBSPACETEMP dbs created database into temp temp table with -t logging with no log goes to -------------- ----------- --------- ------------ ----------- dbstmp1 yes yes yes dbstmp1 dbstmp1 yes yes no rootdbs dbstmp1 yes no yes/no dbstmp1 dbstmp2 no yes/no yes/no dbstmp2 dbstmp1:dbstmp2 dbstmp1:yes no yes/no dbstmp1&dbstmp2 dbstmp2:no dbstmp1:dbstmp2 dbstmp1:yes yes yes dbstmp1&dbstmp2 dbstmp2:no dbstmp1:dbstmp2 dbstmp1:yes yes no dbstmp2 dbstmp2:no regards gary