October 21, 2012, 2:26 am
Hi
I tried to restore my DB(3.5 TB), restoration went successfully, But when trying to rollforward the db it is throwing an error.
db2 "rollforward db dcecm40v to end of logs and stop overflow log path ('/appl/db2i1db/DCECM40V>
it is processing for a while and then i get the below error
SQL1224N The database manager is not able to accept new requests, has
terminated all requests in progress, or has terminated your particular request
due to a problem with your request. SQLSTATE=55032
when i see list utilities i could see the instance is stopped .
Please let me know how to proceed.
My environemnt is AIX 6, with Db2 V9.1.6
↧
October 21, 2012, 2:53 am
↧
↧
October 22, 2012, 2:28 am
I'm new to ER modelling and i'm having trouble finding the entities.
Question:
Produce an Entity-Relationship Model using UML notation.
Convert to a relational model by specifying the primary and foreign keys, mapping any one-to-one relationships into relations, and decomposing any many-to-many relationships.
MyArea Film and Literary Society (MLFS) provide groups and events for local people. All participants must be members (who pay an annual fee) or their guests who may attend events. Fees vary from one group to another. In addition members may have a reduction in fees depending on their type of membership. For example Individual members pay 100% fees and Concessionary members pay 50%. There are also Household members and a special category called Friends of the Society.
The Society hosts a number of groups which meet monthly. Members can join one or more groups; currently these include Film, Science, Reading and Poetry Groups.
Note that the group code and the ability code are both based on the same domain of values. The latter represents members’ talents which the Society may make use of – this is described later. One group of a particular type (such as Poetry) will be run each year, assuming there are nine or more members who want to join a group. Each group is run by a coordinator, who may change from one year to the next. In addition to the above, the society holds the address and telephone number of each coordinator.
Besides groups, the society also holds one-off special events, such as lectures, films, art exhibitions and musical evenings. Events do not relate to particular groups: they are open to all members and their guests and are organised by one of the coordinators. Events will be led by an outside speaker, or sometimes a member (who have special talents as shown in the example record above) will act as the speaker.
Each event will have only one speaker (whether an outside speaker or a member speaker), but a speaker may speak at a number of events. Details will be held of the event name, the date, and venue and outside speakers (name and telephone number). The Society will keep records of members who attended events and the number of guests for each member per event.
Thank you all :)
↧
October 22, 2012, 2:37 am
Hi,
We are trying to execute a stored procedure (FDWP001) through datastudio..
datastudio version: Release 2.2.1.1
DB2 version: v8 in Z/os
After execution the following error message is displayed in sysout of DAGAWLM..
"DBRM OR PACKAGE NAME ZLT1CDD1.NULLID.FDWP001.194AF24500AF9F80 NOT FOUND IN PLAN DISTSERV"
The stored procedure is binded with package and not the plan...
Kindly help in getting this issue resolved..
Thanks
Balaji N Krishna
-------------------------------------------------------------
SYSOUT message from DAGAWLM...
FDWP001: STARTED AT
FDWP001: MSG-OUT ERR >> 0550-... SEL RUN_INQ; SQLCODE = -805
FDWP001: DSNT408I SQLCODE = -805, ERROR: DBRM OR PACKAGE NAME ZLT1CDD1.NULLID.FDWP001.194AF24500AF9F80 NOT FOUND IN PLAN DISTSERV. REASON
FDWP001: 02
FDWP001: DSNT418I SQLSTATE = 51002 SQLSTATE RETURN CODE
FDWP001: DSNT415I SQLERRP = DSNXEPM SQL PROCEDURE DETECTING ERROR
FDWP001: DSNT416I SQLERRD = -251 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
FDWP001: DSNT416I SQLERRD = X'FFFFFF05' X'00000000' X'00000000' X'FFFFFF
TIC INFORMATION
FDWP001: STORED PROCEDURE: FDWP001
FDWP001: STARTED AT
FDWP001: SP ERROR MSG: ERR >> 0550-... SEL RUN_INQ; SQLCODE = -805 ===> DSNT4
GE NAME ZLT1CDD1.NULLID.FDWP001.194AF24500AF9F80 NOT FOUND IN PLAN DISTSERV. RE
↧
October 22, 2012, 3:29 am
Hi,
I have a table and data as follows;
create table htab (id char(2), name varchar(20));
insert into htab values('1','a');
insert into htab values('1','b');
insert into htab values('2','c');
insert into htab values('3','d');
insert into htab values('3','e');
insert into htab values('3','f');
insert into htab values('4','g');
select * from htab
id name
1 a
1 b
2 c
3 d
3 e
3 f
4 g
I want to show data as
id names
1 a,b
2 c
3 d,e,f
4 g
I have the Function in SQL Server which is working fine as
============
create function dbo.fxn_get_names(@id char(2))
returns varchar(100)
as
begin
declare @names varchar(100)
select @names=isnull(@names+',','') + name from htab where id = @id
return @names
end
GO
select distinct id, names=dbo.fxn_get_names(id) from htab
GO
======================
Actually i want to convert it to DB2 9.1 LUW and tried as follows
xxxxxxxxxxxxxxxxx
CREATE FUNCTION MYFNC(MID CHAR)
RETURNS VARCHAR(100)
LANGUAGE SQL
BEGIN ATOMIC
DECLARE MNAMES VARCHAR(100);
SET MNAMES='';
SELECT (MNAMES || ',' || NAME) MNAMES FROM HTAB WHERE ID = MID;
RETURN MNAMES
END
xxxxxxxxxxxxxxxxx
Getting the following problem
-------------
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token ")" was found following "E MNAMES VARCHAR(100".
Expected tokens may include: "END-OF-STATEMENT". LINE NUMBER=5.
SQLSTATE=42601
SET MNAMES=''
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "MNAMES" was found following "SET ". Expected
tokens may include: "JOIN <joined_table>". SQLSTATE=42601
SELECT (MNAMES || ',' || NAME) MNAMES FROM HTAB WHERE ID = MID
SQL0206N "MID" is not valid in the context where it is used. SQLSTATE=42703
RETURN MNAMES END
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "MNAMES" was found following "RETURN ".
Expected tokens may include: "JOIN <joined_table>". SQLSTATE=42601
SQL0104N An unexpected token "MNAMES" was found following "RETURN ". Expected tokens may include: "JOIN <joined_table>
-------------
Anyone can give me the solution...
-- Humayun
↧
↧
October 22, 2012, 4:11 am
Im currently working on a project that uses Oracle 10g where every action from the user is recorded in a auditlog table. The current table holds the following values:
Code:
AuditID
AuditDate
Username
Page Name
Type (Insert, Delete, Update, Login etc...)
Whenever a user does one of the above Types an audit log is saved.
What I would like to do is to get a count of each page for a particular time scale. For example Day, Month, Year and Quarter.
I have came up with some SQL to get the results for all of the pages together but i am having some trouble with getting the values for each individual page. Below i have given one of the SQL queries that i am using (Year).
Code:
SELECT (SELECT Count(*) from AUDITLOG WHERE to_char(auditdate, 'yy') = to_char(to_date(sysdate)-1100, 'yy')) As Y_2009,
(SELECT Count(*) from AUDITLOG WHERE to_char(auditdate, 'yy') = to_char(to_date(sysdate)-732, 'yy')) As Y_2010,
(SELECT Count(*) from AUDITLOG WHERE to_char(auditdate, 'yy') = to_char(to_date(sysdate)-368, 'yy')) As Y_2011,
(SELECT Count(*) from AUDITLOG WHERE to_char(auditdate, 'yy') = to_char(to_date(sysdate), 'yy')) As Y_2012,
(SELECT Count(*) from AUDITLOG WHERE to_char(auditdate, 'yy') = to_char(to_date(sysdate)+368, 'yy')) As Y_2013
From Dual;
This SQL would give me the results of every single page for each year. However I need to find out the results for each page for each year. Is there anyway of doing this without creating an SQL statement like the one above for each page?
If you would like more information please ask.
↧
October 22, 2012, 4:50 am
Does it the same as validation rules or its different? Also, what i have been told is verification rules is something like giving password on a specific tables, is this true?
↧
October 22, 2012, 5:03 am
I am new to using Access SQL statements. After hours of attempts, I either get erroneous results, or unresolved SYNTAX errors. Hopefully, someone can help me resolve the following problem:
In an SQL statement, I have a table that I would like to obtain the sum for "each" of three columns based on a certain value within a group. Example: For each Region, I would like to know the total sum for column-2 when a "Y" value is found, the total sum for column-3 when a "Y' value is found, and the total sum for column-4 when a "Y" value is found.
TBL-RegionValidation - table name
Region - column1
ProductFlagged - column2
ProductValidated - column3
ProductRemoved - column4
Your assistance would be greatly appreciate!
-Tim
↧
October 22, 2012, 5:55 am
Hello Everyone,
For my Final Thesis i have to create a performance measurment tool for a company.
20 different carriers have to be evaluated in this system.
The problem in this case is that i have to work with an input of 3 different excel logs about customer complaints which are totally unrelated to each other and have different cellformats,columnnames and collumnnumbers for the same specific issue. Every row is about a specific complaint
Example:
Table 1. status, inputdate(DD-MM), responsible person
Table 2 STATUS, resposible pers, inputdat(MM-DD),
Table 3 Inputdate, Resp pers, Stat
These excel logs may not be altered in the new system so i have to collect all data from these logs.
I'd like to automaticly combine the 3 logs into 1 log .
How can i do this?
Do i have to do this in Excel, Access or a external party
I tried to combine this with a query in exel but there is nog relation between the tables and results were poor.
After this step i'd like to check per column if the right cellformat is used and every important cell has a correct value(not empty). Kind of a conversion sheet.
How do i do this
After this i have to add info and analyse per carrier. but I think this is for a later moment to discusas
If you have a totally different solution to this problem i'd like to hear it as well
If you have questions please ask them.
Many thanks in advance,
↧
↧
October 22, 2012, 6:41 am
Hi,
i have been trying to create using script but not able to create since last 1 day.
Below is the script i have run using that i create Server and user mapping but still not able to create Nickname,
Could you please help me to get out of this.
CREATE SERVER SEC_SERVER TYPE DB2/UDB VERSION 9.7 WRAPPER drda AUTHORIZATION "test" PASSWORD "test123" OPTIONS(NODE 'DB2', DBNAME 'SAMPLE');
CREATE USER MAPPING FOR test SERVER SEC_SERVER OPTIONS(REMOTE_AUTHID 'test', REMOTE_PASSWORD 'test123');
CREATE NICKNAME test.TESTING FOR SEC_SERVER.test.TESTING;
Please suggest what actually I am doing wrong with the above script.:eek:
↧
October 22, 2012, 6:51 am
Hello
We have a HP-UX 11.23 development server on which we have installed DB2 Admin-Client 8.1 FP14
Last week the server needed to be rebooted and shortly after that we faced a DB2 issue, we can not easily solve:
The DB2 CLI does not work any longer.
We can not connect to the databases hosted on the DB2-Server:
$ db2 connect to dbname
DB21016E The Command Line Processor encountered a system error while sending
the command to the backend process.
We can connect to the databases using DBI-Perl Module or Java.
Other commands (terminate) don't work either
$ db2 terminate
DB21016E The Command Line Processor encountered a system error while sending
the command to the backend process.
We think about reinstalling the binary, but I would like to use a response file (db2admcl.rsp) from which I have unfortunately no sample.
Could someone help me, either giving me an advice to solve the problem or a sample for the response file.
Thanks a lot in advance
Best regards
Renaud
↧
October 22, 2012, 8:56 am
Role: Senior Level Oracle Apps DBA
Start Date: ASAP
Work Location: Mountain View, CA
Duration: 6+ months
Rate: Open Plus expenses
* Onsite: 4 days onsite and Friday remote
Job Description/ Required Skills:
-Oracle EBS
-Needs Manager Level
-Advise Client on the Technical direction on implementation for the Oracle EBS Suite
-Install and maintain application environment
-Lead a team of about 5 DBA's
-Good Communication Skills
-Must be able to interact directly with the client
If you are interested or know someone who may be interested in this opportunity, please respond to this email with your resume, rate information and availability date to:
garrydawkins@hotmail.com
240-602-1648
↧
October 22, 2012, 9:02 am
Hi,
During the install of DB2 9.7 to Windows Server 2008 R2 Standard, Service Pack 1, this error pops up during the last step of the installation process:
An error occurred while trying to start the "DB2" instance". The return code is "4" and the SQL message is: "Process_Error".
When I check the application logs in the event viewer, I see this error:
ADM12008C The product "DB2 Enterprise Server Edition" does not have a valid
license key installed and the evaluation period has expired. Functions specific
to this product are not enabled. If you have licensed this product, please
ensure the license key is properly installed. You can install the license via
using License Center or db2licm command line utility. The license file can be
obtained from your licensed product CD.
I re-installed the license using this command db2licm -a C:\db2wse_o.lic
This was the output of the command:
LIC1402I License added successfully.
LIC1426I This product is now licensed for use as outlined in your License Agree ment. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT, LOCATED IN THE FOLLOWING DIRECTORY: "C:\PROGRA~1\IBM\SQLLIB\license\en"
However, when I try to start the DB2 using db2start command, I get the license error again:
10/22/2012 11:35:39 0 0 SQL8000N DB2START processing failed; a valid product license was not found. If you have licensed this product, ensure the license key is properly registered. You can register the license via the License Cent er or db2licm command line utility. The license key can be obtained from your licensed product CD. SQL1032N No start database manager command was issued. SQLSTATE=57019
Also, I ran the db2val command, I got this output:
DBI1379I The db2val command is running. This can take several minutes.
DBI1333I Installation file validation for the DB2 copy DB2COPY1
was successful.
DBI1338E The validation of instance DB2 failed. Reason
code=3.
Explanation:
1. The default instance is not set.
2. Some files in the instance directory are damaged. The symbolic links
of the files are not pointing to the current DB2 copy installation
path, and the file permission and ownership might have been changed.
3. The DB2 Extended Security setup does not allow the current user to
start an instance. If Extended Security is enabled, the user needs to
be in the DB2ADMNS group.
4. To start the instance, read permission is required to the
/etc/services file.
5. SYSADM authority is required to validate this instance.
6. The partitioned database environment setting is not correct.
7. The instance failed to start because of system errors.
8. An unexpected internal error occurred.
User response:
1. Set the DB2INSTDEF profile registry variable to an instance in the
DB2 copy.
2. Run the db2iupdt or db2nrupdt command with the -k option for the
instance.
3. Add the current user to the DB2ADMNS group and rerun the command.
4. Ensure you have read permission to the /etc/services file.
5. Log on as a user with the SYSADM authority and retry the command.
6. Check the partitioned database environment validation log file for
details.
7. Check the log file for details.
8. Rerun the db2val command. If this error persists, contact your IBM
service representative.
DBI1344E The validation tasks of the db2val command failed.
This makes no sense. First it told me that the license install was successful. However, when I re-installed the license successfully, and tried to start DB2 again, I got the license error again.
Please help me asap. I really don't know why this happens.
↧
↧
October 22, 2012, 9:44 am
Situation:
- I'm still pretty new to writing serious SQL.
- I have a bunch of similarly named tables on a lot of different schemas on a lot of different servers.
- I need to delete them all.
Soooo. I'm guessing I need to write some kind of stored procedure, but the concept of how best to do this is still rather nebulous to me. Can anyone out there forcibly thrust me in the right direction? Just...a general idea... some skeletal pseudo code...
Will greatly appreciate the help.
:beer:
↧
October 22, 2012, 10:24 am
Hello and thanks in advance for any responses
I have 3 excel spreadsheets that I have imported into 3 separate tables in a access db.
1. BESExport
table contains name, email, phone
2. BESSupportPagers
table contains name, email, phone, cost centre
3. CostCenters
table contains name, email, phone, cost centre, and a number of other fields
I am trying to figure out a query to match the names in (1) BESExport to the cost centers in BESSUpportPagers and CostCenters with out having to combine them all into one table.
I am pretty new to this, so sorry if this is a repetitive question.
Thanks
Jim
↧
October 22, 2012, 11:40 am
What's better on disk space, saving pdf's in an access table (as OLE) or using hyperlinks. I am working with Access 2010.
↧
October 22, 2012, 11:50 am
Hi all, I'm hoping someone can help me out with this, or at least point me to a specific post where this has already been covered. I'm sure this is probably very simple, and I'm just overthinking it.
I've been tasked with building a payroll database in Access 2007 for our per diem staff. They can work on multiple cases in one day, and some of those cases do carry over into the next day. Also, multiple staff members can work on the same case, so there would be multiple entries for the same case, which links to the main Case table in a (many-to-one relationship). The table for their hours is called Time Card Hours, and is set up as follows:
CaseID - text
StaffCode - text
DateIn - short date
TimeIn - long time
DateOut - short date
TimeOut- long time
Example: Tech1 starts a case at 8:30 PM on 10-20-2012 and finishes at 3:00 AM on 10-21-2012. Tech1 then starts another case at 10:45 AM and finishes at 4:00 PM. Tech1 then logs time from 6:00 PM to 7:30 PM on paperwork, before getting one last case, starting at 11:10 PM, and ending at 4:35 AM on 10-22-2012.
I've been able to successfully calculate the total time spent on each case, even spanning midnight, with DateDiff, but I haven't been able to figure out how to calculate the total time spent working each day by the tech. This is extremely important because California law dictates that overtime be applied if more than 8 hours are worked in any given day. Would I be better off doing these calculations in a report instead of a query? Is this possible with the way I have my table currently structured? I did add fields for the start and end date of each day (12:00:00 AM and 11:59:59 PM), but don't know if it's of any help. I'm really in a bind here, can anyone help me out please?
↧
↧
October 23, 2012, 7:24 am
hello
i want to retrieve data from database and print it in a table in the same filed
i've two tables in the database one is called : Student
and the other is called course
Student have rows (Student_name , ID , Course_id)
Course have rows (Course_name , Course_id)
i want to retrieve Course name with all students that are taken it
such as
Course Name Student Name
Math101 John , Mily , Mike .. etc
what kind of query i should write ? and how to make table that print so many data in one filed ?
thank you
↧
October 23, 2012, 9:22 am
Hello,
I have a 12 month contract opportunity in Pembroke, NH. Please review the details below, if interested please reply with you current Word formatted resume and contact details, and I will call you to discuss.
Oracle R12 O2C Functional Lead
$110 /hr plus expenses
Starts: 10/29/12
12 Months + extensions
Pembroke, NH
Looking for a senior level Oracle R12 resource with expert knowledge of Order to Cash module to assist with a company wide R12 implementation. Must have previous hands on functional and some technical experience with the O2C module. The right candidate will have experience working with senior level management to develop, design, and execute the O2C integration. Previous Blueprint design and Workshop Walkthrough experience is also required.
Chris Belden
Account Manager
Patriot Consulting
Patriot Consulting works exclusively with end clients and specializes in Enterprise staffing. Our core competencies include Enterprise Applications, Database, and Business Intelligence. If you do not wish to receive emails from Patriot, please click the unsubscribe button below.
For this and other open/closed positions, we encourage you to visit our job board at
Patriot Consulting Upcoming Projects | Patriot Consulting
Click here to send this e-mail to a colleague
Click here if you no longer wish to receive e-mails like this
↧
October 23, 2012, 10:08 am
Hi was wondering if anyone knew if its possible to get the calendar to open when a script is set up on a press button. And if so how I'd do this?
Sorry if this is really simple thing to do however this is my first real attempt at this & I'm really struggling with this particular item!
Thanks for your help
↧