473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

LIST ACTIVE DATABASES

Hi when I try to run LIST ACTIVE DATABASES AT DBPARTITIONNUM <partnum>
or LIST ACTIVE DATABASES GLOBAL, I always get an error message. Does
anyone know why? I'm on v8 fp 5

output :
db2 => list active databases at dbpartitionnum 1;
SQL0104N An unexpected token "1" was found following "<identifier>".
Expected tokens may include: "GLOBAL". SQLSTATE=42601

db2 => list active databases at GLOBAL;
SQL0104N An unexpected token "GLOBAL" was found following "AT".
Expected
tokens may include: "DBPARTITIONNUM". SQLSTATE=42601

db2 => list active databases;

Active Databases

Database name = SAMPLE
Applications connected currently = 1
Database path = C:\DB2\NODE0000\SQL00001\
Nov 12 '05 #1
3 7715
How many partitions do you have?

Amit wrote:
Hi when I try to run LIST ACTIVE DATABASES AT DBPARTITIONNUM <partnum>
or LIST ACTIVE DATABASES GLOBAL, I always get an error message. Does
anyone know why? I'm on v8 fp 5

output :
db2 => list active databases at dbpartitionnum 1;
SQL0104N An unexpected token "1" was found following "<identifier>".
Expected tokens may include: "GLOBAL". SQLSTATE=42601

db2 => list active databases at GLOBAL;
SQL0104N An unexpected token "GLOBAL" was found following "AT".
Expected
tokens may include: "DBPARTITIONNUM". SQLSTATE=42601

db2 => list active databases;

Active Databases

Database name = SAMPLE
Applications connected currently = 1
Database path = C:\DB2\NODE0000\SQL00001\


Nov 12 '05 #2
Many - but they are all logical partitions on the same machine.

Btw, I found an error in my previous posting.
Read:
list active databases at GLOBAL
as:
list active databases GLOBAL
SQL0104N An unexpected token "GLOBAL" was found following "GLOBAL".
Expected
tokens may include: "ADD". SQLSTATE=42601
"Blair Adamache" <ba*******@2muchspam.yahoo.com> wrote in message
news:c1**********@hanover.torolab.ibm.com...
How many partitions do you have?

Amit wrote:
Hi when I try to run LIST ACTIVE DATABASES AT DBPARTITIONNUM <partnum>
or LIST ACTIVE DATABASES GLOBAL, I always get an error message. Does
anyone know why? I'm on v8 fp 5

output :
db2 => list active databases at dbpartitionnum 1;
SQL0104N An unexpected token "1" was found following "<identifier>".
Expected tokens may include: "GLOBAL". SQLSTATE=42601

db2 => list active databases at GLOBAL;
SQL0104N An unexpected token "GLOBAL" was found following "AT".
Expected
tokens may include: "DBPARTITIONNUM". SQLSTATE=42601

db2 => list active databases;

Active Databases

Database name = SAMPLE
Applications connected currently = 1
Database path = C:\DB2\NODE0000\SQL00001\

Nov 12 '05 #3
Amit wrote:
Many - but they are all logical partitions on the same machine.

Btw, I found an error in my previous posting.
Read:
list active databases at GLOBAL
as:
list active databases GLOBAL
SQL0104N An unexpected token "GLOBAL" was found following "GLOBAL".
Expected
tokens may include: "ADD". SQLSTATE=42601
"Blair Adamache" <ba*******@2muchspam.yahoo.com> wrote in message
news:c1**********@hanover.torolab.ibm.com...
How many partitions do you have?

Amit wrote:
> Hi when I try to run LIST ACTIVE DATABASES AT DBPARTITIONNUM <partnum>
> or LIST ACTIVE DATABASES GLOBAL, I always get an error message. Does
> anyone know why? I'm on v8 fp 5
>
> output :
> db2 => list active databases at dbpartitionnum 1;
> SQL0104N An unexpected token "1" was found following "<identifier>".
> Expected tokens may include: "GLOBAL". SQLSTATE=42601
>
> db2 => list active databases at GLOBAL;
> SQL0104N An unexpected token "GLOBAL" was found following "AT".
> Expected
> tokens may include: "DBPARTITIONNUM". SQLSTATE=42601
>
> db2 => list active databases;
>
> Active Databases
>
> Database name = SAMPLE
> Applications connected currently = 1
> Database path = C:\DB2\NODE0000\SQL00001\


Funny, seems to be a bug. I got the same weird error
message on Linux, using DB2 8.1.4.

However you might use the 'db2_all' utility to accomplish
the same:

Listing active databases on Partition 2:
----------------------------------------
db2_all '<<+2< db2 list active databases'

Best regards

Eric
--
IT-Consulting Herber
***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dasod | last post by:
I would like to know if my method to remove list objects is correct in this small test program. It seems to me that there might be a simplier way, but I'm afraid I don't know enough about list...
2
by: Rick Langschultz | last post by:
I am writing an Active Server Page application that will get all of the databases that a user can access. Is there a way I can do this with Active Server Pages? I also will provide the users with...
11
by: Chuck | last post by:
Is there a command that will list all of the databases for a particular instance on the local machine, whether they are activated or not? If there is no such command, is there at least a way to...
0
by: Mike Cox | last post by:
Andy M wrote: > ALERT > > There is a person by the name of Mike Cox who's trying > to turn this mailing list into a Big-8 newsgroup. No, I'm trying to get teh postgresql groups which are...
2
by: Alpha | last post by:
I need to retrieve and set information in Active Directory in a new project that I'll be working on. I went to Amazon.com to look for a good book on this subject but found books on this subject...
6
by: AA Arens | last post by:
Hi, I have a database with 2 main forms. Contacts and companies. I share the base with two others via LAN. On the companies form I have buttons to navigate throught the records (>400). We are...
1
by: dariophoenix | last post by:
Hi, WeĦre getting a segmentation fault because weĦre trying to delete elements from a List while traversing it, i.e.: void Character::deleteProcessed(list<Line> &active,int y){ bool...
7
by: bhrosey via AccessMonster.com | last post by:
I have a table that I use as a lookup reference on a form. The table includes the employee name and a yes/no field that gets checked whenever the employee leaves the company. Obviously I don't...
2
by: tlyczko | last post by:
Is comp.databases.ms-sqlserver more active than microsoft.public.sqlserver.server, or is it the other way around?? Which NG is better for general and 'learning SQL 2005' types of questions?? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.